docker搭建的11.0突然无法使用,网页显示502

seafile-mysql | 2024-10-20 3:38:46 75147 [Warning] Aborted connection 75147 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 4:37:02 75077 [Warning] Aborted connection 75077 to db: ‘seafile_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 4:37:02 75092 [Warning] Aborted connection 75092 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 4:37:02 75094 [Warning] Aborted connection 75094 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 4:37:02 75095 [Warning] Aborted connection 75095 to db: ‘seafile_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 4:37:02 75110 [Warning] Aborted connection 75110 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 4:37:02 75096 [Warning] Aborted connection 75096 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 4:37:02 75078 [Warning] Aborted connection 75078 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 4:37:02 75113 [Warning] Aborted connection 75113 to db: ‘seafile_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 4:37:02 75114 [Warning] Aborted connection 75114 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 4:37:02 75130 [Warning] Aborted connection 75130 to db: ‘seafile_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 4:37:02 75129 [Warning] Aborted connection 75129 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 4:37:02 75131 [Warning] Aborted connection 75131 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 4:37:02 75146 [Warning] Aborted connection 75146 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 4:37:02 75149 [Warning] Aborted connection 75149 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 4:37:02 75148 [Warning] Aborted connection 75148 to db: ‘seafile_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 4:38:06 75164 [Warning] Aborted connection 75164 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 5:38:46 75183 [Warning] Aborted connection 75183 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 6:38:06 75200 [Warning] Aborted connection 75200 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 7:37:55 75075 [Warning] Aborted connection 75075 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got timeout reading communication packets)
seafile-mysql | 2024-10-20 7:38:46 75219 [Warning] Aborted connection 75219 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 8:38:06 75260 [Warning] Aborted connection 75260 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 8:38:46 75165 [Warning] Aborted connection 75165 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 8:38:46 75166 [Warning] Aborted connection 75166 to db: ‘seafile_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 8:38:46 75167 [Warning] Aborted connection 75167 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 8:38:46 75182 [Warning] Aborted connection 75182 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 8:38:46 75185 [Warning] Aborted connection 75185 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 8:38:46 75184 [Warning] Aborted connection 75184 to db: ‘seafile_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 8:38:46 75201 [Warning] Aborted connection 75201 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 8:38:46 75202 [Warning] Aborted connection 75202 to db: ‘seafile_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 8:38:46 75203 [Warning] Aborted connection 75203 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 8:38:46 75218 [Warning] Aborted connection 75218 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 8:38:46 75220 [Warning] Aborted connection 75220 to db: ‘seafile_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 8:38:46 75221 [Warning] Aborted connection 75221 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 8:38:46 75258 [Warning] Aborted connection 75258 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 8:38:46 75261 [Warning] Aborted connection 75261 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)
seafile-mysql | 2024-10-20 9:38:46 75279 [Warning] Aborted connection 75279 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.18.0.4’ (Got an error reading communication packets)

version: ‘2.0’
services:
db:
image: mariadb:10.5
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=db_dev # Requested, set the root’s password of MySQL service.
- MYSQL_LOG_CONSOLE=true
volumes:
- /opt/seafile-mysql/db:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
networks:
- seafile-net

memcached:
image: memcached:1.6
container_name: seafile-memcached
entrypoint: memcached -m 256
networks:
- seafile-net

seafile:
image: seafileltd/seafile-mc:latest
container_name: seafile
ports:
- “80:80”
- “8088:443” # If https is enabled, cancel the comment.
volumes:
- /opt/seafile-data:/shared # Requested, specifies the path to Seafile data persistent store.
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=db_dev # Requested, the value shuold be root’s password of MySQL service.
- TIME_ZONE=Asia/Shanghai # Optional, default is UTC. Should be uncomment and set to your local time zone.
- SEAFILE_ADMIN_EMAIL=me@example.com # Specifies Seafile admin user, default is ‘me@example.com’.
- SEAFILE_ADMIN_PASSWORD=asecret # Specifies Seafile admin password, default is ‘asecret’.
- SEAFILE_SERVER_LETSENCRYPT=true # Whether use letsencrypt to generate cert.
- SEAFILE_SERVER_HOSTNAME=********** # Specifies your host name.
depends_on:
- db
- memcached
networks:
- seafile-net

networks:
seafile-net:

连接数据库失败,如果之前正常,突然无法使用,可以尝试docker compose restart 重启服务

同樣的問題,我是用下面指令方式解決

docker rm -f seafile
docker-compose up -d

感谢,但我这边试了,还是502

我把两个资料和数据库目录都删掉,只保留docker-compose.yml文件,删除容器,然后重新使用docker-compose up -d 命令重建容器也是无法打开

看下所有容器是否启动正常,检查下docker-compose.yml文件配置是否正确呢

找到原因了,ssl证书过期了 :joy: