Closed cnmars closed 1 hour ago
https://github.com/nezhahq/nezha/issues/517 看我的解决办法,重新配置一下面板然后改回原来的秘钥
024/12/02 10:19:26 NEZHA>> init i18n failed: open translations/auto/LC_MESSAGES/nezha.po: file does not exist
2024/12/02 10:19:26 NEZHA>> Dashboard::START 8008
[GIN] 2024/12/02 - 10:19:46 | 200 | 384.782µs | 207.32.219.181 | GET "/"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xc8c546]
goroutine 72 [running]:
github.com/nezhahq/nezha/pkg/i18n.(*Localizer).T(0x0, {0x11ec003, 0x8})
github.com/nezhahq/nezha/pkg/i18n/i18n.go:68 +0x26
github.com/nezhahq/nezha/service/singleton.checkStatus()
github.com/nezhahq/nezha/service/singleton/alertsentinel.go:159 +0x488
github.com/nezhahq/nezha/service/singleton.AlertSentinelStart()
github.com/nezhahq/nezha/service/singleton/alertsentinel.go:81 +0x2bc
created by main.main in goroutine 1
github.com/nezhahq/nezha/cmd/dashboard/main.go:124 +0x371
2024/12/02 10:20:04 NEZHA>> init i18n failed: open translations/auto/LC_MESSAGES/nezha.po: file does not exist
2024/12/02 10:20:04 NEZHA>> Dashboard::START 8008
[GIN] 2024/12/02 - 10:20:06 | 200 | 328.613µs | 141.11.133.43 | GET "/"
[GIN] 2024/12/02 - 10:20:07 | 200 | 513.899µs | 141.11.133.43 | GET "/api/v1/profile"
[GIN] 2024/12/02 - 10:20:07 | 200 | 454.727µs | 141.11.133.43 | GET "/api/v1/setting"
[GIN] 2024/12/02 - 10:20:07 | 200 | 522.16µs | 141.11.133.43 | GET "/api/v1/server-group"
[GIN] 2024/12/02 - 10:20:10 | 200 | 163.03µs | 141.11.133.43 | GET "/dashboard"
[GIN] 2024/12/02 - 10:20:10 | 200 | 405.488µs | 141.11.133.43 | GET "/api/v1/setting"
[GIN] 2024/12/02 - 10:20:10 | 200 | 1.820577ms | 141.11.133.43 | GET "/api/v1/server"
[GIN] 2024/12/02 - 10:20:10 | 200 | 389.905µs | 141.11.133.43 | GET "/api/v1/profile"
[GIN] 2024/12/02 - 10:20:10 | 200 | 504.982µs | 141.11.133.43 | GET "/api/v1/server-group"
[GIN] 2024/12/02 - 10:20:10 | 200 | 518.749µs | 141.11.133.43 | GET "/api/v1/refresh-token"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xc8c546]
docker 里也一样
517 看我的解决办法,重新配置一下面板然后改回原来的秘钥
不行啊 试过了
517 看我的解决办法,重新配置一下面板然后改回原来的秘钥
不行啊 试过了
有大佬提交了,还没合并,着急的话可以自己fork编译
配置文件里语言是auto的改下,改成支持的代码比如 zh_CN
Environment
6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux
Agent Version
1.0.2
Describe the bug
To Reproduce
Additional Context
Validation