Sentry Unable to connect to Apache已解决 悬赏5积分
使用docker-compose安装运行报错
16:28:16.25 Welcome to the Easysoft ZenTao 21.1 container
16:28:16.25 Subscribe to project updates by watching https://www.zentao.net
16:28:16.25 Submit issues and feature requests at https://www.zentao.net/ask.html
16:28:16.26
16:28:16.27 INFO ==> Prepare persistence directories.
16:28:16.40 INFO ==> Render php.ini with environment variables.
16:28:16.41 INFO ==> Check zentao data owner...
16:28:16.41 INFO ==> Render apache sites config with envionment variables.
16:28:16.42 INFO ==> Prepare custom extensions.
16:28:16.43 INFO ==> Check whether the MySQL is available.
16:28:16.44 INFO ==> Check whether the Apache is available.
16:28:17.44 WARN ==> Apache: Waiting MySQL 1 seconds
16:28:17.44 WARN ==> Sentry: Waiting Apache 1 seconds
16:28:19.44 WARN ==> Apache: Waiting MySQL 2 seconds
16:28:19.45 WARN ==> Sentry: Waiting Apache 2 seconds
16:28:23.45 WARN ==> Apache: Waiting MySQL 4 seconds
16:28:23.45 WARN ==> Sentry: Waiting Apache 4 seconds
16:28:31.46 WARN ==> Apache: Waiting MySQL 8 seconds
16:28:31.46 WARN ==> Sentry: Waiting Apache 8 seconds
16:28:47.46 WARN ==> Sentry: Waiting Apache 16 seconds
16:28:47.46 WARN ==> Apache: Waiting MySQL 16 seconds
16:29:19.47 WARN ==> Sentry: Waiting Apache 32 seconds
16:29:19.47 WARN ==> Apache: Waiting MySQL 32 seconds
16:29:19.47 ERROR ==> Sentry Maximum number of retries reached!
16:29:19.47 ERROR ==> Apache Maximum number of retries reached!
16:29:19.47 ERROR ==> Sentry Unable to connect to Apache: 127.0.0.1:80
16:29:19.47 ERROR ==> Apache Unable to connect to MySQL: zentao-db:6686
s6-supervise 03-roadrunner: warning: finish script lifetime reached maximum value - sending it a SIGKILL
禅道版本:禅道开源版 21.1
安装包类型:Linux安装包
操作系统:
客户端浏览器:
禅道-阿龙
2024-11-27 16:38:17
1、错误信息是禅道无法正常连接数据库,可以检查下外置数据库是否可以正常访问: 根据备注提供的信息可以调整下参数试试:ZT_MYSQL_PORT=3306 (目前配置使用的是内部网络;如果走桥接网络,则需要修改ZT_MYSQL_HOST为宿主机ip) 2、另外也可以使用禅道容器内置数据库,参考compose文件配置:
回复
|
docker-compose.yaml内容如下
# docker-compose.yaml
version: '2'
services:
# db service for zentao
zentao-db:
image: mariadb:10.6
container_name: zentao-db
ports:
- '6686:3306'
volumes:
- /data/zentao/db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=pass4Zentao
- MYSQL_DATABASE=zentao
networks:
- zentao-net
# zentao service
zentao:
image: hub.zentao.net/app/zentao
container_name: zentao
ports:
- '7881:80'
volumes:
- /data/zentao/file:/data
depends_on:
- zentao-db
environment:
- ZT_MYSQL_HOST=zentao-db
- ZT_MYSQL_PORT=6686
- ZT_MYSQL_USER=root
- ZT_MYSQL_PASSWORD=pass4Zentao
- ZT_MYSQL_DB=zentao
- PHP_MAX_EXECUTION_TIME=600
- PHP_MEMORY_LIMIT=512M
- PHP_POST_MAX_SIZE=1024M
- PHP_UPLOAD_MAX_FILESIZE=1024M
- LDAP_ENABLED=false
- SMTP_ENABLED=false
- APP_DEFAULT_PORT=7881
- APP_DOMAIN=zentao.xingheyungu.cn
- PROTOCOL_TYPE=http
- IS_CONTAINER=true
- LINK_GIT=false
- LINK_CI=false
networks:
- zentao-net
networks:
zentao-net:
driver: bridge