长亭百川云 - 技术讨论

长亭百川云

技术讨论长亭漏洞情报库IP 威胁情报SLA在线工具
热门产品
雷池 WAF 社区版
IP 威胁情报
网站安全监测
百川漏扫服务
云堡垒机
百川云
技术文档
开发工具
长亭漏洞情报库
网安百科
安全社区
CT STACK 安全社区
雷池社区版
XRAY 扫描工具
长亭科技
长亭科技官网
万众合作伙伴商城
长亭 BBS 论坛
友情链接
关注或联系我们
添加百川云公众号,移动管理云安全产品
咨询热线:
4000-327-707
百川公众号
百川公众号
百川云客服
百川云客服

Copyright ©2024 北京长亭科技有限公司
icon
京ICP备2024055124号-2

容器启动失败

发布于 1 年前

# 雷池 WAF

发布于 1 年前

头像

......

更新于 1 年前

1

0

Docker version 27.0.3
Docker Compose ersion v2.32.1

.env配置文件
image.png

safeline-luigi和safeline-mgt容器启动失败

safeline-luigi容器日志:

1stdout: 2025/01/04 17:03:03 [35m/work/pkg/pg/db.go:19
2stdout: [0m[31m[error] [0mfailed to initialize database, got error failed to connect to `host=safeline-pg user=safeline-ce database=safeline-ce`: dial error (dial tcp 172.22.222.2:5432: connect: connection refused)
3stderr: panic: init db failed: failed to connect to `host=safeline-pg user=safeline-ce database=safeline-ce`: dial error (dial tcp 172.22.222.2:5432: connect: connection refused)
4stderr: 
5stderr: goroutine 1 [running]:
6stderr: luigi/pkg/pg.Init({0x4000038009?, 0x8?})
7stderr: 	/work/pkg/pg/db.go:58 +0x98
8stderr: luigi/pkg/pg.init.0()
9stderr: 	/work/pkg/pg/db.go:77 +0xb4

safeline-mgt容器日志:

1stderr: 2025/01/04 17:03:02 [notice] 7#7: using the "epoll" event method
2stderr: 2025/01/04 17:03:02 [notice] 7#7: nginx/1.25.5
3stderr: 2025/01/04 17:03:02 [notice] 7#7: built by gcc 13.2.1 20231014 (Alpine 13.2.1_git20231014) 
4stderr: 2025/01/04 17:03:02 [notice] 7#7: OS: Linux 6.1.57
5stderr: 2025/01/04 17:03:02 [notice] 7#7: getrlimit(RLIMIT_NOFILE): 1048576:1048576
6stderr: 2025/01/04 17:03:02 [notice] 8#8: start worker processes
7stderr: 2025/01/04 17:03:02 [notice] 8#8: start worker process 10
8stderr: 2025/01/04 17:03:02 [notice] 8#8: start worker process 11
9stderr: 2025/01/04 17:03:02 [notice] 8#8: start worker process 12
10stderr: 2025/01/04 17:03:02 [notice] 8#8: start worker process 13
11stderr: panic: failed to connect to `host=safeline-pg user=safeline-ce database=safeline-ce`: dial error (dial tcp 172.22.222.2:5432: connect: connection refused)
​
头像

雷池 - 小小

更新于 1 年前

0

2

docker ps 以及 docker logs -f safeline-pg 看看数据库服务是否正常

头像

......

更新于 1 年前

屏幕截图 2025-01-06 193143.png

屏幕截图 2025-01-06 193424.png

头像

雷池 - 小小

更新于 1 年前

看起来容器的 dns 解析有问题,可以尝试重启系统或者 docker 看看

头像

......

更新于 1 年前

重启还是这样

​
头像

yinsel

更新于 10 个月前

0

0

一模一样的问题
image.png

头像

雷池 - 小小

更新于 10 个月前

你这连接地址都不对。.env 写错了吧

​
头像
相关贴子
#
建议为社区版本添加深色模式支持
#
希望雷池添加可以生成原服务器域名证书的功能
#
雷池规则广场:拦截常见扫描器
#
certd创建自动化流水线使用letsencrypt申请证书并更新雷池waf证书
#
一个站点,nginx 里面需要多个location不同判断,如何自定义