debian安装后无法启动1panel服务

1panel安装后服务一直是activating code=exited, status=2

系统信息:
image

log:

1月 26 21:35:00 edgenet-atlas systemd[1]: Started 1panel.service - 1Panel, a modern open source linux panel.
1月 26 21:35:00 edgenet-atlas 1panel[2725]: [2025-01-26 21:35:00] [INFO] init logger successfully
1月 26 21:35:00 edgenet-atlas 1panel[2725]: [2025-01-26 21:35:00] [INFO] init monitor db successfully
1月 26 21:35:00 edgenet-atlas 1panel[2725]: [2025-01-26 21:35:00] [INFO] init db successfully
1月 26 21:35:05 edgenet-atlas systemd[1]: Stopping 1panel.service - 1Panel, a modern open source linux panel...
1月 26 21:35:05 edgenet-atlas systemd[1]: 1panel.service: Deactivated successfully.
1月 26 21:35:05 edgenet-atlas systemd[1]: Stopped 1panel.service - 1Panel, a modern open source linux panel.
1月 26 21:35:05 edgenet-atlas systemd[1]: Started 1panel.service - 1Panel, a modern open source linux panel.
1月 26 21:35:05 edgenet-atlas 1panel[2788]: [2025-01-26 21:35:05] [INFO] init logger successfully
1月 26 21:35:05 edgenet-atlas 1panel[2788]: [2025-01-26 21:35:05] [INFO] init monitor db successfully
1月 26 21:35:05 edgenet-atlas 1panel[2788]: [2025-01-26 21:35:05] [INFO] init db successfully
1月 26 21:35:05 edgenet-atlas 1panel[2788]: [2025-01-26 21:35:05] [ERROR] %!v(PANIC=Error method: runtime error: invalid memory address o>
1月 26 21:35:05 edgenet-atlas systemd[1]: 1panel.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
1月 26 21:35:05 edgenet-atlas systemd[1]: 1panel.service: Failed with result 'exit-code'.
1月 26 21:35:10 edgenet-atlas systemd[1]: 1panel.service: Scheduled restart job, restart counter is at 1.

/opt/1panel/log/1Panel.log 截图看一下

太长了 似乎是重复的 我截取了部分

[2025-01-27 14:06:19] [INFO] init logger successfully  
[2025-01-27 14:06:19] [INFO] init monitor db successfully  
[2025-01-27 14:06:19] [INFO] init db successfully  
[2025-01-27 14:06:19] [ERROR] %!v(PANIC=Error method: runtime error: invalid memory address or nil pointer dereference)  
fatal error: panic while printing panic value: type runtime.errorString
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xaa023a]

goroutine 1 gp=0xc0000061c0 m=3 mp=0xc00007ce08 [running]:
runtime.throw({0xc0018b9c40?, 0x2f60d1f?})
	runtime/panic.go:1067 +0x48 fp=0xc000e11368 sp=0xc000e11338 pc=0x474e08
runtime.preprintpanics.func1()
	runtime/panic.go:646 +0xbc fp=0xc000e11400 sp=0xc000e11368 pc=0x46c73c
panic({0x29f4600?, 0x7622770?})
	runtime/panic.go:785 +0x132 fp=0xc000e114b0 sp=0xc000e11400 pc=0x474b12
runtime.panicmem(...)
	runtime/panic.go:262
runtime.sigpanic()
	runtime/signal_unix.go:917 +0x359 fp=0xc000e11510 sp=0xc000e114b0 pc=0x477219
github.com/nicksnyder/go-i18n/v2/i18n.(*Localizer).getMessageTemplate(0x0, {0x2f1fc4a, 0xe}, 0x0)
	github.com/nicksnyder/go-i18n/v2@v2.4.0/i18n/localizer.go:193 +0x3a fp=0xc000e11580 sp=0xc000e11510 pc=0xaa023a
github.com/nicksnyder/go-i18n/v2/i18n.(*Localizer).LocalizeWithTag(0x0, 0xc000e116c8)
	github.com/nicksnyder/go-i18n/v2@v2.4.0/i18n/localizer.go:168 +0x28a fp=0xc000e11668 sp=0xc000e11580 pc=0xa9feea
github.com/nicksnyder/go-i18n/v2/i18n.(*Localizer).Localize(...)
	github.com/nicksnyder/go-i18n/v2@v2.4.0/i18n/localizer.go:123
github.com/1Panel-dev/1Panel/backend/i18n.GetErrMsg({0x2f1fc4a?, 0x2c?}, 0x30?)
	github.com/1Panel-dev/1Panel/backend/i18n/i18n.go:59 +0xca fp=0xc000e11728 sp=0xc000e11668 pc=0xcdfa2a
github.com/1Panel-dev/1Panel/backend/buserr.BusinessError.Error({{0x2f1fc4a, 0xe}, {0x0, 0x0}, 0x0, {0x0, 0x0}})
	github.com/1Panel-dev/1Panel/backend/buserr/errors.go:22 +0x7c fp=0xc000e11798 sp=0xc000e11728 pc=0xce011c
github.com/1Panel-dev/1Panel/backend/buserr.(*BusinessError).Error(0xc000e11890?)
	<autogenerated>:1 +0x67 fp=0xc000e11818 sp=0xc000e11798 pc=0xce0867
runtime.preprintpanics(0xc000e11890?)
	runtime/panic.go:652 +0x116 fp=0xc000e11868 sp=0xc000e11818 pc=0x43ab56
panic({0x2cb9540?, 0xc001976240?})
	runtime/panic.go:802 +0x15e fp=0xc000e11918 sp=0xc000e11868 pc=0x474b3e
github.com/1Panel-dev/1Panel/backend/init/migration.Init()
	github.com/1Panel-dev/1Panel/backend/init/migration/migrate.go:105 +0xc96 fp=0xc000e119b0 sp=0xc000e11918 pc=0x2564c76
github.com/1Panel-dev/1Panel/backend/server.Start()
	github.com/1Panel-dev/1Panel/backend/server/server.go:41 +0x39 fp=0xc000e11c80 sp=0xc000e119b0 pc=0x2698639
github.com/1Panel-dev/1Panel/cmd/server/cmd.init.func12(0xc000b38a00?, {0x2f01c78?, 0x4?, 0x2f01718?})
	github.com/1Panel-dev/1Panel/cmd/server/cmd/root.go:25 +0xf fp=0xc000e11c90 sp=0xc000e11c80 pc=0x269b5af
github.com/spf13/cobra.(*Command).execute(0x766b5a0, {0xc0000501c0, 0x0, 0x0})
	github.com/spf13/cobra@v1.8.0/command.go:983 +0xaaa fp=0xc000e11e18 sp=0xc000e11c90 pc=0x108e88a
github.com/spf13/cobra.(*Command).ExecuteC(0x766b5a0)
	github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff fp=0xc000e11ef0 sp=0xc000e11e18 pc=0x108f15f
github.com/spf13/cobra.(*Command).Execute(0x0?)
	github.com/spf13/cobra@v1.8.0/command.go:1039 +0x13 fp=0xc000e11f08 sp=0xc000e11ef0 pc=0x108ecb3
main.main()
	./main.go:43 +0x1a fp=0xc000e11f50 sp=0xc000e11f08 pc=0x26a0ffa
runtime.main()
	runtime/proc.go:272 +0x28b fp=0xc000e11fe0 sp=0xc000e11f50 pc=0x43eaeb
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000e11fe8 sp=0xc000e11fe0 pc=0x47d661

goroutine 2 gp=0xc000006700 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:424 +0xce fp=0xc000076fa8 sp=0xc000076f88 pc=0x474f2e
runtime.goparkunlock(...)
	runtime/proc.go:430
runtime.forcegchelper()
	runtime/proc.go:337 +0xb3 fp=0xc000076fe0 sp=0xc000076fa8 pc=0x43ee33
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000076fe8 sp=0xc000076fe0 pc=0x47d661
created by runtime.init.7 in goroutine 1
	runtime/proc.go:325 +0x1a

goroutine 3 gp=0xc000006c40 m=nil [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:424 +0xce fp=0xc000077780 sp=0xc000077760 pc=0x474f2e
runtime.goparkunlock(...)
	runtime/proc.go:430
runtime.bgsweep(0xc000098000)
	runtime/mgcsweep.go:317 +0xdf fp=0xc0000777c8 sp=0xc000077780 pc=0x4266bf
runtime.gcenable.gowrap1()
	runtime/mgc.go:204 +0x25 fp=0xc0000777e0 sp=0xc0000777c8 pc=0x41ad65
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000777e8 sp=0xc0000777e0 pc=0x47d661
created by runtime.gcenable in goroutine 1
	runtime/mgc.go:204 +0x66

goroutine 4 gp=0xc000006e00 m=nil [GC scavenge wait]:
runtime.gopark(0x10000?, 0x52258c0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:424 +0xce fp=0xc000077f78 sp=0xc000077f58 pc=0x474f2e
runtime.goparkunlock(...)
	runtime/proc.go:430
runtime.(*scavengerState).park(0x76a2e20)
	runtime/mgcscavenge.go:425 +0x49 fp=0xc000077fa8 sp=0xc000077f78 pc=0x424089
runtime.bgscavenge(0xc000098000)
	runtime/mgcscavenge.go:658 +0x59 fp=0xc000077fc8 sp=0xc000077fa8 pc=0x424619
runtime.gcenable.gowrap2()
	runtime/mgc.go:205 +0x25 fp=0xc000077fe0 sp=0xc000077fc8 pc=0x41ad05
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000077fe8 sp=0xc000077fe0 pc=0x47d661
created by runtime.gcenable in goroutine 1
	runtime/mgc.go:205 +0xa5

goroutine 5 gp=0xc000007340 m=nil [finalizer wait]:
runtime.gopark(0x490013?, 0xc000076660?, 0xbe?, 0x9?, 0x7efca55d3ae8?)
	runtime/proc.go:424 +0xce fp=0xc000076620 sp=0xc000076600 pc=0x474f2e
runtime.runfinq()
	runtime/mfinal.go:193 +0x107 fp=0xc0000767e0 sp=0xc000076620 pc=0x419de7
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000767e8 sp=0xc0000767e0 pc=0x47d661
created by runtime.createfing in goroutine 1
	runtime/mfinal.go:163 +0x3d

goroutine 6 gp=0xc0001f6700 m=nil [GC worker (idle)]:
runtime.gopark(0x3694c5c3bb58?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:424 +0xce fp=0xc000078738 sp=0xc000078718 pc=0x474f2e
runtime.gcBgMarkWorker(0xc0000a6150)
	runtime/mgc.go:1412 +0xe9 fp=0xc0000787c8 sp=0xc000078738 pc=0x41d0a9
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1328 +0x25 fp=0xc0000787e0 sp=0xc0000787c8 pc=0x41cf85
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000787e8 sp=0xc0000787e0 pc=0x47d661
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1328 +0x105

goroutine 17 gp=0xc0007e0000 m=nil [GC worker (idle)]:
runtime.gopark(0x3694c5c3ba4d?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:424 +0xce fp=0xc000072738 sp=0xc000072718 pc=0x474f2e
runtime.gcBgMarkWorker(0xc0000a6150)
	runtime/mgc.go:1412 +0xe9 fp=0xc0000727c8 sp=0xc000072738 pc=0x41d0a9
runtime.gcBgMarkStartWorkers.gowrap1()
	runtime/mgc.go:1328 +0x25 fp=0xc0000727e0 sp=0xc0000727c8 pc=0x41cf85
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000727e8 sp=0xc0000727e0 pc=0x47d661
created by runtime.gcBgMarkStartWorkers in goroutine 1
	runtime/mgc.go:1328 +0x105

goroutine 18 gp=0xc0001f7500 m=nil [select]:
runtime.gopark(0xc000c86f80?, 0x2?, 0x80?, 0xe0?, 0xc000c86f74?)
	runtime/proc.go:424 +0xce fp=0xc000c86e10 sp=0xc000c86df0 pc=0x474f2e
runtime.selectgo(0xc000c86f80, 0xc000c86f70, 0x0?, 0x0, 0x0?, 0x1)
	runtime/select.go:335 +0x7a5 fp=0xc000c86f38 sp=0xc000c86e10 pc=0x450d05
github.com/golang/glog.(*fileSink).flushDaemon(0x76a2038)
	github.com/golang/glog@v1.2.2/glog_file.go:349 +0xb4 fp=0xc000c86fc8 sp=0xc000c86f38 pc=0x946f74
github.com/golang/glog.init.1.gowrap1()
	github.com/golang/glog@v1.2.2/glog_file.go:164 +0x25 fp=0xc000c86fe0 sp=0xc000c86fc8 pc=0x946005
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000c86fe8 sp=0xc000c86fe0 pc=0x47d661
created by github.com/golang/glog.init.1 in goroutine 1
	github.com/golang/glog@v1.2.2/glog_file.go:164 +0x126

goroutine 19 gp=0xc0001f76c0 m=nil [chan receive]:
runtime.gopark(0xc000072f60?, 0x628b85?, 0x10?, 0xce?, 0x52a12a0?)
	runtime/proc.go:424 +0xce fp=0xc000072f18 sp=0xc000072ef8 pc=0x474f2e
runtime.chanrecv(0xc0000a6ee0, 0x0, 0x1)
	runtime/chan.go:639 +0x41c fp=0xc000072f90 sp=0xc000072f18 pc=0x40a05c
runtime.chanrecv1(0x0?, 0x0?)
	runtime/chan.go:489 +0x12 fp=0xc000072fb8 sp=0xc000072f90 pc=0x409c12
runtime.unique_runtime_registerUniqueMapCleanup.func1(...)
	runtime/mgc.go:1781
runtime.unique_runtime_registerUniqueMapCleanup.gowrap1()
	runtime/mgc.go:1784 +0x2f fp=0xc000072fe0 sp=0xc000072fb8 pc=0x41dd8f
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000072fe8 sp=0xc000072fe0 pc=0x47d661
created by unique.runtime_registerUniqueMapCleanup in goroutine 1
	runtime/mgc.go:1779 +0x96

goroutine 36 gp=0xc0007e0a80 m=nil [select]:
runtime.gopark(0xc000079758?, 0x3?, 0x0?, 0x0?, 0xc00007971a?)
	runtime/proc.go:424 +0xce fp=0xc0000795b8 sp=0xc000079598 pc=0x474f2e
runtime.selectgo(0xc000079758, 0xc000079714, 0xc00081d620?, 0x0, 0xc0007e0a80?, 0x1)
	runtime/select.go:335 +0x7a5 fp=0xc0000796e0 sp=0xc0000795b8 pc=0x450d05
github.com/1Panel-dev/1Panel/backend/log.(*AsynchronousWriter).writer(0xc000ec7b20)
	github.com/1Panel-dev/1Panel/backend/log/writer.go:176 +0xce fp=0xc0000797c8 sp=0xc0000796e0 pc=0x255604e
github.com/1Panel-dev/1Panel/backend/log.NewWriterFromConfig.gowrap1()
	github.com/1Panel-dev/1Panel/backend/log/writer.go:165 +0x25 fp=0xc0000797e0 sp=0xc0000797c8 pc=0x2555ce5
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0000797e8 sp=0xc0000797e0 pc=0x47d661
created by github.com/1Panel-dev/1Panel/backend/log.NewWriterFromConfig in goroutine 1
	github.com/1Panel-dev/1Panel/backend/log/writer.go:165 +0x8bf

goroutine 35 gp=0xc000e368c0 m=nil [select]:
runtime.gopark(0xc000c83ed0?, 0x5?, 0xb0?, 0x22?, 0xc000c83de6?)
	runtime/proc.go:424 +0xce fp=0xc000c83c70 sp=0xc000c83c50 pc=0x474f2e
runtime.selectgo(0xc000c83ed0, 0xc000c83ddc, 0x76a1f20?, 0x0, 0xedf29195b?, 0x1)
	runtime/select.go:335 +0x7a5 fp=0xc000c83d98 sp=0xc000c83c70 pc=0x450d05
github.com/robfig/cron/v3.(*Cron).run(0xc00192d540)
	github.com/robfig/cron/v3@v3.0.1/cron.go:263 +0xb3c fp=0xc000c83fc8 sp=0xc000c83d98 pc=0xaa5adc
github.com/robfig/cron/v3.(*Cron).Start.gowrap2()
	github.com/robfig/cron/v3@v3.0.1/cron.go:222 +0x25 fp=0xc000c83fe0 sp=0xc000c83fc8 pc=0xaa4e45
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc000c83fe8 sp=0xc000c83fe0 pc=0x47d661
created by github.com/robfig/cron/v3.(*Cron).Start in goroutine 1
	github.com/robfig/cron/v3@v3.0.1/cron.go:222 +0xba

goroutine 37 gp=0xc0007e0e00 m=nil [select]:
runtime.gopark(0xc001922f88?, 0x2?, 0x8?, 0x81?, 0xc001922f84?)
	runtime/proc.go:424 +0xce fp=0xc001922e28 sp=0xc001922e08 pc=0x474f2e
runtime.selectgo(0xc001922f88, 0xc001922f80, 0x0?, 0x0, 0x0?, 0x1)
	runtime/select.go:335 +0x7a5 fp=0xc001922f50 sp=0xc001922e28 pc=0x450d05
database/sql.(*DB).connectionOpener(0xc001911ad0, {0x5258678, 0xc000ba8aa0})
	database/sql/sql.go:1253 +0x87 fp=0xc001922fb8 sp=0xc001922f50 pc=0xb9b047
database/sql.OpenDB.gowrap1()
	database/sql/sql.go:833 +0x28 fp=0xc001922fe0 sp=0xc001922fb8 pc=0xb99368
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc001922fe8 sp=0xc001922fe0 pc=0x47d661
created by database/sql.OpenDB in goroutine 1
	database/sql/sql.go:833 +0x130

goroutine 38 gp=0xc0007e1340 m=nil [select]:
runtime.gopark(0xc001923790?, 0x2?, 0x90?, 0x23?, 0xc00192375c?)
	runtime/proc.go:424 +0xce fp=0xc001923600 sp=0xc0019235e0 pc=0x474f2e
runtime.selectgo(0xc001923790, 0xc001923758, 0x0?, 0x0, 0x0?, 0x1)
	runtime/select.go:335 +0x7a5 fp=0xc001923728 sp=0xc001923600 pc=0x450d05
database/sql.(*DB).connectionCleaner(0xc001911ad0, 0x0?)
	database/sql/sql.go:1096 +0x9c fp=0xc0019237c0 sp=0xc001923728 pc=0xb9a4fc
database/sql.(*DB).startCleanerLocked.gowrap1()
	database/sql/sql.go:1083 +0x25 fp=0xc0019237e0 sp=0xc0019237c0 pc=0xb9a425
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0019237e8 sp=0xc0019237e0 pc=0x47d661
created by database/sql.(*DB).startCleanerLocked in goroutine 1
	database/sql/sql.go:1083 +0x105

goroutine 39 gp=0xc0007e1500 m=nil [select]:
runtime.gopark(0xc001923f88?, 0x2?, 0x8?, 0x81?, 0xc001923f84?)
	runtime/proc.go:424 +0xce fp=0xc001923e28 sp=0xc001923e08 pc=0x474f2e
runtime.selectgo(0xc001923f88, 0xc001923f80, 0x0?, 0x0, 0x0?, 0x1)
	runtime/select.go:335 +0x7a5 fp=0xc001923f50 sp=0xc001923e28 pc=0x450d05
database/sql.(*DB).connectionOpener(0xc001911e10, {0x5258678, 0xc000ba9540})
	database/sql/sql.go:1253 +0x87 fp=0xc001923fb8 sp=0xc001923f50 pc=0xb9b047
database/sql.OpenDB.gowrap1()
	database/sql/sql.go:833 +0x28 fp=0xc001923fe0 sp=0xc001923fb8 pc=0xb99368
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc001923fe8 sp=0xc001923fe0 pc=0x47d661
created by database/sql.OpenDB in goroutine 1
	database/sql/sql.go:833 +0x130

goroutine 40 gp=0xc0007e1a40 m=nil [select]:
runtime.gopark(0xc001924790?, 0x2?, 0x70?, 0x24?, 0xc00192475c?)
	runtime/proc.go:424 +0xce fp=0xc001924600 sp=0xc0019245e0 pc=0x474f2e
runtime.selectgo(0xc001924790, 0xc001924758, 0x0?, 0x0, 0x0?, 0x1)
	runtime/select.go:335 +0x7a5 fp=0xc001924728 sp=0xc001924600 pc=0x450d05
database/sql.(*DB).connectionCleaner(0xc001911e10, 0x0?)
	database/sql/sql.go:1096 +0x9c fp=0xc0019247c0 sp=0xc001924728 pc=0xb9a4fc
database/sql.(*DB).startCleanerLocked.gowrap1()
	database/sql/sql.go:1083 +0x25 fp=0xc0019247e0 sp=0xc0019247c0 pc=0xb9a425
runtime.goexit({})
	runtime/asm_amd64.s:1700 +0x1 fp=0xc0019247e8 sp=0xc0019247e0 pc=0x47d661
created by database/sql.(*DB).startCleanerLocked in goroutine 1
	database/sql/sql.go:1083 +0x105

完整的日志:
1Panel.log (261.6 KB)