Docker
596974

docker-compose启动时报错已解决 悬赏5积分

提问者捣蛋的牙膏 答案数2 阅读数922 发表时间2024-01-19 19:52:09

基于官网安装说明[https://www.zentao.net/book/zentaopms/38.html],在Centos7.9中安装禅道。

使用docker-compose.yml进行配置,配置内容如官网。

使用 docker-compose up -d 启动时,系统报错如下,请帮忙确认问题。



zentao  |  19:44:11.62
zentao  |  19:44:11.62 Welcome to the Easysoft ZenTao 18.10 container
zentao  |  19:44:11.62 Subscribe to project updates by watching https://www.zentao.net
zentao  |  19:44:11.63 Submit issues and feature requests at https://www.zentao.net/ask.html
zentao  |  19:44:11.63
zentao  |  19:44:11.63 INFO  ==> Prepare persistence directories.
zentao  |  19:44:11.72 INFO  ==> Render php.ini with environment variables.
zentao  |  19:44:11.72 INFO  ==> Check zentao data owner...
zentao  |  19:44:11.72 INFO  ==> Render apache sites config with envionment variables.
zentao  |  19:44:11.73 INFO  ==> Prepare custom extensions.
zentao  |  19:44:11.75 INFO  ==> Check whether the MySQL is available.
zentao  |  19:44:11.76 INFO  ==> Check whether the Apache is available.
zentao  |  19:44:12.76 WARN  ==> Sentry: Waiting Apache 1 seconds
zentao  |  19:44:12.82 WARN  ==> Apache: Waiting MySQL 1 seconds
zentao  |  19:44:14.77 WARN  ==> Sentry: Waiting Apache 2 seconds
zentao  |  19:44:14.89 WARN  ==> Apache: Waiting MySQL 2 seconds
zentao  |  19:44:18.77 WARN  ==> Sentry: Waiting Apache 4 seconds
zentao  |  19:44:18.95 WARN  ==> Apache: Waiting MySQL 4 seconds
zentao-mysql  | mysql 11:44:11.25
zentao-mysql  | mysql 11:44:11.25 Welcome to the Bitnami mysql container
zentao-mysql  | mysql 11:44:11.26 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-mysql
zentao-mysql  | mysql 11:44:11.26 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-mysql/issues
zentao-mysql  | mysql 11:44:11.26
zentao-mysql  | mysql 11:44:11.27 INFO  ==> ** Starting MySQL setup **
zentao-mysql  | mysql 11:44:11.30 INFO  ==> Validating settings in MYSQL_*/MARIADB_* env vars
zentao-mysql  | mysql 11:44:11.31 INFO  ==> Initializing mysql database
zentao-mysql  | mysql 11:44:11.33 INFO  ==> Updating 'my.cnf' with custom configuration
zentao-mysql  | mysql 11:44:11.33 INFO  ==> Installing database
zentao        |  19:44:26.77 WARN  ==> Sentry: Waiting Apache 8 seconds
zentao        |  19:44:27.02 WARN  ==> Apache: Waiting MySQL 8 seconds
zentao        |  19:44:42.78 WARN  ==> Sentry: Waiting Apache 16 seconds
zentao        |  19:44:43.08 WARN  ==> Apache: Waiting MySQL 16 seconds
zentao        |  19:45:14.79 WARN  ==> Sentry: Waiting Apache 32 seconds
zentao        |  19:45:14.79 ERROR ==> Sentry Maximum number of retries reached!
zentao        |  19:45:14.79 ERROR ==> Sentry Unable to connect to Apache: 127.0.0.1:80
zentao        | s6-supervise 03-roadrunner: warning: finish script lifetime reached maximum value - sending it a SIGKILL
zentao exited with code 0


禅道版本:禅道开源版 18.9

安装包类型:源码包

操作系统:CentOS

客户端浏览器:Chrome

备注
此问题已自行解决,问题原因为映射目录设置错误,给您添麻烦了。
设置备注
内容
答案列表
🍉
2024-01-22 08:24:46
 好的
🌲
2024/07/03
用docker启动的 中间莫名服务中断了,然后启动的时候就报了这个错 。
没管它重启了容器又好了,不知道这个是什么原因。

17:34:29.20 INFO ==> Apache: MySQL is ready.
ERROR 1040 (HY000): Too many connections
17:34:29.22 WARN ==> Sentry: Waiting Apache 1 seconds
stop signal received, grace timeout is: 30 seconds
2024-07-03T09:34:29+0000 DEBUG lock received stop signal, acquiring lock/release mutexes
2024-07-03T09:34:29+0000 DEBUG lock acquired stop mutex
2024-07-03T09:34:29+0000 DEBUG lock signal sent to all resources
2024-07-03T09:34:29+0000 ERROR service wait {"error": "signal: interrupt"}
2024-07-03T09:34:29+0000 INFO service service was stopped {"name": "cron_consumer", "command": "php consumer.php"}
2024-07-03T09:34:29+0000 INFO service service was stopped {"name": "cron_consumer", "command": "php consumer.php"}
2024-07-03T09:34:29+0000 ERROR service wait {"error": "signal: interrupt"}
2024-07-03T09:34:29+0000 INFO service service was stopped {"name": "cron_consumer", "command": "php consumer.php"}
2024-07-03T09:34:29+0000 ERROR service wait {"error": "signal: interrupt"}
2024-07-03T09:34:29+0000 INFO service service was stopped {"name": "cron_consumer", "command": "php consumer.php"}
2024-07-03T09:34:29+0000 ERROR service wait {"error": "signal: interrupt"}
2024-07-03T09:34:29+0000 INFO service service was stopped {"name": "cron_scheduler", "command": "php scheduler.php"}
[INFO] RoadRunner server started; version: 2023.3.4, buildtime: 2023-11-09T16:28:16+0000
[INFO] sdnotify: not notified
2024-07-03T09:34:29+0000 INFO service service was started {"name": "cron_consumer", "command": "php consumer.php"}
2024-07-03T09:34:29+0000 INFO service service was started {"name": "cron_consumer", "command": "php consumer.php"}
2024-07-03T09:34:29+0000 INFO service service was started {"name": "cron_consumer", "command": "php consumer.php"}
2024-07-03T09:34:29+0000 INFO service service was started {"name": "cron_consumer", "command": "php consumer.php"}
2024-07-03T09:34:29+0000 INFO service service was started {"name": "cron_scheduler", "command": "php scheduler.php"}
s6-supervise 03-roadrunner: warning: finish script lifetime reached maximum value - sending it a SIGKILL
17:36:11.73
17:36:11.74 Welcome to the Easysoft ZenTao 18.12 container
17:36:11.74 Subscribe to project updates by watching https://www.zentao.net
17:36:11.74 Submit issues and feature requests at https://www.zentao.net/ask.html
17:36:11.74
17:36:11.75 INFO ==> Prepare persistence directories.
17:36:27.09 INFO ==> Render php.ini with environment variables.
17:36:27.11 INFO ==> Check zentao data owner...
17:36:27.63 INFO ==> Render apache sites config with envionment variables.
17:36:27.65 INFO ==> Prepare custom extensions.
17:36:27.67 INFO ==> Check whether the MySQL is available.
17:36:27.69 INFO ==> Check whether the Apache is available.
[INFO] RoadRunner server started; version: 2023.3.4, buildtime: 2023-11-09T16:28:16+0000
2024/07/03
根据报错信息看是mysql的连接数到达了上线。
需要调整 mysql 的配置文件(找一下映射给宿主机的 my.conf)中的配置,适当的调整 max_connections  的值。

查看当前的最大连接数配置:
SHOW VARIABLES LIKE 'max_connections'; -- 在连接工具中执行

在配置文件中修改max_connections = ? 的值。
需要重启docker后生效。

另外,有禅道使用问题,也可以联系官网商务QQ,邀请加入技术交流群沟通,即时性会更好一些。
🐐
2024-01-22 14:21:59

这个问题我遇到过,只要执行:chown -R 1001:1001 /data/zentao/db/

其中,/data/zentao/db/替换为mysql容器映射的宿主机目录。替换成功后,重新执行docker-compose即可。

🍉
2024/01/22
感谢提供解决方案
联系我们
联系人
徐亚京/高级客户经理
电话(微信)
17663982076
QQ号码
2679672214
联系邮箱
xuyajing@chandao.com
返回顶部
徐亚京
高级客户经理
17663982076
2679672214
统一服务热线 4006-8899-23
我要提问提问有任何问题,您都可以在这里提问。 问题反馈反馈点击这里,让我们聆听您的建议与反馈。