发布于 3 天前
发布于 3 天前
唯风
更新于 3 天前
0
0
报错信息 但是我登录容器safeline-pg 是可以进入数据库的shell的
root@WeiFHWrt:/data/safeline# docker logs safeline-mgt --tail=200
2025/12/05 20:56:10 [notice] 7#7: using the "epoll" event method
2025/12/05 20:56:10 [notice] 7#7: nginx/1.28.0
2025/12/05 20:56:10 [notice] 7#7: built by gcc 14.2.0 (Alpine 14.2.0)
2025/12/05 20:56:10 [notice] 7#7: OS: Linux 6.6.110
2025/12/05 20:56:10 [notice] 7#7: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2025/12/05 20:56:10 [notice] 8#8: start worker processes
2025/12/05 20:56:10 [notice] 8#8: start worker process 9
2025/12/05 20:56:10 [notice] 8#8: start worker process 10
2025/12/05 20:56:10 [notice] 8#8: start worker process 11
2025/12/05 20:56:10 [notice] 8#8: start worker process 12
panic: failed to init pg db: failed to connect to host=safeline-pg user=safeline-ce database=safeline-ce: dial error (dial tcp 172.19.0.2:5432: connect: connection refused)
goroutine 1 [running]:
main.main()
/work/main.go:32 +0x24c
2025/12/05 20:56:13 [notice] 7#7: using the "epoll" event method
2025/12/05 20:56:13 [notice] 7#7: nginx/1.28.0
2025/12/05 20:56:13 [notice] 7#7: built by gcc 14.2.0 (Alpine 14.2.0)
2025/12/05 20:56:13 [notice] 7#7: OS: Linux 6.6.110
2025/12/05 20:56:13 [notice] 7#7: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2025/12/05 20:56:13 [notice] 8#8: start worker processes
2025/12/05 20:56:13 [notice] 8#8: start worker process 9
2025/12/05 20:56:13 [notice] 8#8: start worker process 10
2025/12/05 20:56:13 [notice] 8#8: start worker process 11
2025/12/05 20:56:13 [notice] 8#8: start worker process 12