docker-compose启动时报错已解决 悬赏5积分
基于官网安装说明[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
🍉
好的
回复
|
🐐 这个问题我遇到过,只要执行:chown -R 1001:1001 /data/zentao/db/ 其中,/data/zentao/db/替换为mysql容器映射的宿主机目录。替换成功后,重新执行docker-compose即可。 |