无法启动1Panel面板

前面因为日志把硬盘塞满了导致整个服务崩掉了,手动删除日志腾出空间后,1Panel还是无法启动,系统是 Debian 12

目前看 Docker 里的东西还正常用,但 1Panel 本身起不来了,试过 1pctl restart,会仰卧起坐,反复启动和停止,重启服务器也无效
journalctl -u 1panel -exf 中的部分结果

May 13 05:52:04 s1627313444.sa.net systemd[1]: Started 1panel.service - 1Panel, a modern open source linux panel.
░░ Subject: A start job for unit 1panel.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit 1panel.service has finished successfully.
░░ 
░░ The job identifier is 4741939.
May 13 05:52:04 s1627313444.sa.net systemd[1]: 1panel.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ An ExecStart= process belonging to unit 1panel.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 2.
May 13 05:52:04 s1627313444.sa.net systemd[1]: 1panel.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit 1panel.service has entered the 'failed' state with result 'exit-code'.
May 13 05:52:09 s1627313444.sa.net systemd[1]: 1panel.service: Scheduled restart job, restart counter is at 74039.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ Automatic restarting of the unit 1panel.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
May 13 05:52:09 s1627313444.sa.net systemd[1]: Stopped 1panel.service - 1Panel, a modern open source linux panel.
░░ Subject: A stop job for unit 1panel.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A stop job for unit 1panel.service has finished.
░░ 
░░ The job identifier is 4742003 and the job result is done.

麻烦提供一下日志信息 /opt/1panel/log/1Panel.log

目前看日志似乎都是这个问题:

[2024-05-14 01:22:31] [INFO] Starting synchronization with App Store...  
panic: tls: failed to find any PEM data in certificate input

goroutine 1 [running]:
github.com/1Panel-dev/1Panel/backend/server.Start()
	github.com/1Panel-dev/1Panel/backend/server/server.go:79 +0x8f4
github.com/1Panel-dev/1Panel/cmd/server/cmd.glob..func10(0x74b39a0?, {0x29d4ffa?, 0x0?, 0x0?})
	github.com/1Panel-dev/1Panel/cmd/server/cmd/root.go:22 +0x17
github.com/spf13/cobra.(*Command).execute(0x74b39a0, {0xc00010c200, 0x0, 0x0})
	github.com/spf13/cobra@v1.7.0/command.go:940 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0x74b39a0)
	github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3bd
github.com/spf13/cobra.(*Command).Execute(0x4069d9?)
	github.com/spf13/cobra@v1.7.0/command.go:992 +0x19
main.main()
	./main.go:23 +0x25

面板设置中有打开 https 吗,如果开了的话,用 1pctl reset https 先关闭

禁用https后确实可以了,刚刚翻了一下源码,对应的找了一下,发现我系统里 /opt/1panel/secret/server.crt 这个文件的大小为空,应该是这个导致的 :rofl: