使用docker-compose布署12一直不成功

seafile            | ----------------------------------------
seafile            | Successfully created seafile admin
seafile            | ----------------------------------------
seafile            | 
seafile            | 
seafile            | 
seadoc             | [2025-02-12 13:47:48] Start seadoc_converter/main.py 
seadoc             | CRITICAL:root:SDOC_DIR is not set
seadoc             | Traceback (most recent call last):
seadoc             |   File "/opt/sdoc-server/sdoc-server-1.0.4/seadoc-converter/seadoc_converter/main.py", line 3, in <module>
seadoc             |     import config
seadoc             |   File "/opt/sdoc-server/sdoc-server-1.0.4/seadoc-converter/seadoc_converter/config.py", line 24, in <module>
seadoc             |     raise RuntimeError('SDOC_DIR is not set')
seadoc             | RuntimeError: SDOC_DIR is not set
seafile-mysql      | 2025-02-12 13:47:49 15 [Warning] Aborted connection 15 to db: 'seahub_db' user: 'seafile' host: '172.20.0.6' (Got an error reading communication packets)
seafile            | 
seafile            | Seahub is started
seafile            | 
seafile            | Done.
seafile            | 

打开网页显示空白

2月11号单独建了个文件夹试用12是可以用的,我就把原来的11的数据备份了,打算今天就换12,结果备份好了,重新用布署12就不行

用docker-compose logs --follow查看日志,觉得有两处比较可疑
[Warning] Aborted connection 15 to db: ‘seahub_db’ user: ‘seafile’ host: ‘172.20.0.6’ (Got an error reading communication packets)

raise RuntimeError(‘SDOC_DIR is not set’)

第一处不知道是为什么,第二处说我没设置sdoc文件夹,可是我在.env里面是已经设置好了的

这是我改的.env,除了volume,hostname 之外 其他的都没有改

COMPOSE_FILE='seafile-server.yml,caddy.yml,seadoc.yml'
COMPOSE_PATH_SEPARATOR=','


SEAFILE_IMAGE=seafileltd/seafile-mc:12.0-latest
SEAFILE_DB_IMAGE=mariadb:10.11
SEAFILE_MEMCACHED_IMAGE=memcached:1.6.29
SEAFILE_CADDY_IMAGE=lucaslorentz/caddy-docker-proxy:2.9-alpine

SEAFILE_VOLUME=/mnt/storage-tus/seafile-test/seafile-data
SEAFILE_MYSQL_VOLUME=/mnt/storage-tus/seafile-test/seafile-mysql/db
SEAFILE_CADDY_VOLUME=/mnt/storage-tus/seafile-test/seafile-caddy

SEAFILE_MYSQL_DB_HOST=db
INIT_SEAFILE_MYSQL_ROOT_PASSWORD=ROOT_PASSWORD
SEAFILE_MYSQL_DB_USER=seafile
SEAFILE_MYSQL_DB_PASSWORD=PASSWORD

TIME_ZONE=Asia/Shanghai

JWT_PRIVATE_KEY=4e6Hjtnx6yM1UGLttNgxZqT22b0CEcIUhjrJsui3

SEAFILE_SERVER_HOSTNAME=127.0.0.1
SEAFILE_SERVER_PROTOCOL=http

INIT_SEAFILE_ADMIN_EMAIL=me@example.com
INIT_SEAFILE_ADMIN_PASSWORD=asecret


SEADOC_IMAGE=seafileltd/sdoc-server:1.0-latest
SEADOC_VOLUME=/mnt/storage-tus/seafile-test/seadoc-data

ENABLE_SEADOC=true


NOTIFICATION_SERVER_IMAGE=seafileltd/notification-server:12.0-latest
NOTIFICATION_SERVER_VOLUME=/mnt/storage-tus/seafile-test/notification-data

目前的状况是 服务应该都运行起来了 但是打开127.0.0.1:8000(这个端口我也改了caddy.yml)后 页面是一片空白,连错误页面也没有

你可以先把 seadoc.yml 去掉。这个是我们部署脚本的一个 bug。下周会修复。

去掉了,运行后打开网页还是一片空白

seafile            | *** Running /etc/my_init.d/01_create_data_links.sh...
seafile            | *** Booting runit daemon...
seafile            | *** Runit started as PID 16
seafile            | *** Running /scripts/enterpoint.sh...
seafile            | 2025-02-13 16:56:15 Nginx ready 
seafile            | 2025-02-13 16:56:15 This is an idle script (infinite loop) to keep container running. 
seafile            | [2025-02-13 16:56:15] Now running setup-seafile-mysql.py in auto mode.
seafile            | Checking python on this machine ...
seafile            | 
seafile-mysql      | 2025-02-13 08:55:48+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.10+maria~ubu2204 started.
seafile-mysql      | 2025-02-13 08:55:49+00:00 [Warn] [Entrypoint]: /sys/fs/cgroup///memory.pressure not writable, functionality unavailable to MariaDB
seafile-mysql      | 2025-02-13 08:55:49+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
seafile-mysql      | 2025-02-13 08:55:49+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.10+maria~ubu2204 started.
seafile-mysql      | 2025-02-13 08:55:49+00:00 [Note] [Entrypoint]: Initializing database files
seafile-mysql      | 2025-02-13  8:55:49 0 [Warning] mariadbd: io_uring_queue_init() failed with errno 1
seafile-mysql      | 2025-02-13  8:55:49 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
seafile-mysql      | 2025-02-13 08:56:04+00:00 [Note] [Entrypoint]: Database files initialized
seafile-mysql      | 2025-02-13 08:56:04+00:00 [Note] [Entrypoint]: Starting temporary server
seafile-mysql      | 2025-02-13 08:56:04+00:00 [Note] [Entrypoint]: Waiting for server startup
seafile-mysql      | 2025-02-13  8:56:04 0 [Note] Starting MariaDB 10.11.10-MariaDB-ubu2204 source revision 3d0fb150289716ca75cd64d62823cf715ee47646 server_uid oKy6kXSLEtVIoBcZkHc1ctEC1iw= as process 124
seafile-mysql      | 2025-02-13  8:56:04 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
seafile-mysql      | 2025-02-13  8:56:04 0 [Note] InnoDB: Number of transaction pools: 1
seafile-mysql      | 2025-02-13  8:56:04 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
seafile-mysql      | 2025-02-13  8:56:04 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
seafile-mysql      | 2025-02-13  8:56:04 0 [Warning] mariadbd: io_uring_queue_init() failed with errno 1
seafile-mysql      | 2025-02-13  8:56:04 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
seafile-caddy      | {"level":"info","ts":1739436948.9976802,"logger":"docker-proxy","msg":"Running caddy proxy server"}
seafile-caddy      | {"level":"info","ts":1739436948.9991522,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
seafile-mysql      | 2025-02-13  8:56:04 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
seafile-mysql      | 2025-02-13  8:56:04 0 [Note] InnoDB: Completed initialization of buffer pool
seafile-mysql      | 2025-02-13  8:56:04 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes)
seafile-mysql      | 2025-02-13  8:56:04 0 [Note] InnoDB: End of log at LSN=46862
seafile-mysql      | 2025-02-13  8:56:07 0 [Note] InnoDB: 128 rollback segments are active.
seafile-mysql      | 2025-02-13  8:56:07 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
seafile-mysql      | 2025-02-13  8:56:07 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
seafile-mysql      | 2025-02-13  8:56:07 0 [Note] InnoDB: log sequence number 46862; transaction id 14
seafile-mysql      | 2025-02-13  8:56:07 0 [Note] Plugin 'FEEDBACK' is disabled.
seafile-mysql      | 2025-02-13  8:56:07 0 [Note] mariadbd: ready for connections.
seafile-mysql      | Version: '10.11.10-MariaDB-ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 0  mariadb.org binary distribution
seafile-mysql      | 2025-02-13 08:56:08+00:00 [Note] [Entrypoint]: Temporary server started.
seafile-mysql      | 2025-02-13 08:56:10+00:00 [Note] [Entrypoint]: Securing system users (equivalent to running mysql_secure_installation)
seafile-mysql      | 
seafile-caddy      | {"level":"info","ts":1739436948.9994128,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
seafile-caddy      | {"level":"info","ts":1739436948.9994228,"logger":"docker-proxy","msg":"Running caddy proxy controller"}
seafile-caddy      | {"level":"info","ts":1739436949.0008879,"logger":"docker-proxy","msg":"Start","CaddyfilePath":"","EnvFile":"","LabelPrefix":"caddy","PollingInterval":30,"ProxyServiceTasks":true,"ProcessCaddyfile":true,"ScanStoppedContainers":false,"IngressNetworks":"[seafile-net]","DockerSockets":[""],"DockerCertsPath":[""],"DockerAPIsVersion":[""]}
seafile-caddy      | {"level":"info","ts":1739436949.0019963,"logger":"docker-proxy","msg":"Connecting to docker events","DockerSocket":""}
seafile-caddy      | {"level":"info","ts":1739436949.002422,"logger":"docker-proxy","msg":"IngressNetworksMap","ingres":"map[cf9c17be333d73528ca270536f58ae005a8ed8b9f6da73f700ae9211c3961a5f:true seafile-net:true]"}
seafile-caddy      | {"level":"info","ts":1739436949.0142815,"logger":"docker-proxy","msg":"Swarm is available","new":false}
seafile-caddy      | {"level":"info","ts":1739436949.0222425,"logger":"docker-proxy","msg":"New Caddyfile","caddyfile":"# Empty caddyfile"}
seafile-caddy      | {"level":"warn","ts":1739436949.022523,"logger":"docker-proxy","msg":"Caddyfile to json warning","warn":"[Caddyfile:1: Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies]"}
seafile-caddy      | {"level":"info","ts":1739436949.0225337,"logger":"docker-proxy","msg":"New Config JSON","json":"{}"}
seafile-caddy      | {"level":"info","ts":1739436949.022762,"logger":"docker-proxy","msg":"Sending configuration to","server":"localhost"}
seafile-caddy      | {"level":"info","ts":1739436949.0237985,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:2019","uri":"/load","remote_ip":"127.0.0.1","remote_port":"54176","headers":{"Accept-Encoding":["gzip"],"Content-Length":["41"],"Content-Type":["application/json"],"User-Agent":["Go-http-client/1.1"]}}
seafile-caddy      | {"level":"info","ts":1739436949.0238743,"msg":"config is unchanged"}
seafile-caddy      | {"level":"info","ts":1739436949.023883,"logger":"admin.api","msg":"load complete"}
seafile-caddy      | {"level":"info","ts":1739436949.0239751,"logger":"docker-proxy","msg":"Successfully configured","server":"localhost"}
seafile-caddy      | {"level":"info","ts":1739436975.2415545,"logger":"docker-proxy","msg":"New Caddyfile","caddyfile":"http://127.0.0.1 {\n\treverse_proxy 172.20.0.5:80\n}\n"}
seafile-caddy      | {"level":"info","ts":1739436975.24449,"logger":"docker-proxy","msg":"New Config JSON","json":"{\"apps\":{\"http\":{\"servers\":{\"srv0\":{\"listen\":[\":80\"],\"routes\":[{\"match\":[{\"host\":[\"127.0.0.1\"]}],\"handle\":[{\"handler\":\"subroute\",\"routes\":[{\"handle\":[{\"handler\":\"reverse_proxy\",\"upstreams\":[{\"dial\":\"172.20.0.5:80\"}]}]}]}],\"terminal\":true}]}}}}}"}
seafile-caddy      | {"level":"info","ts":1739436975.2445905,"logger":"docker-proxy","msg":"Sending configuration to","server":"localhost"}
seafile-caddy      | {"level":"info","ts":1739436975.245074,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:2019","uri":"/load","remote_ip":"127.0.0.1","remote_port":"54176","headers":{"Accept-Encoding":["gzip"],"Content-Length":["284"],"Content-Type":["application/json"],"User-Agent":["Go-http-client/1.1"]}}
seafile-caddy      | {"level":"info","ts":1739436975.2469766,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
seafile-caddy      | {"level":"info","ts":1739436975.2479312,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc000882200"}
seafile-caddy      | {"level":"warn","ts":1739436975.2483287,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv0","http_port":80}
seafile-caddy      | {"level":"info","ts":1739436975.2501166,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
seafile-caddy      | {"level":"info","ts":1739436975.2512164,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
seafile-caddy      | {"level":"info","ts":1739436975.2512555,"logger":"admin.api","msg":"load complete"}
seafile-caddy      | {"level":"info","ts":1739436975.2514727,"logger":"docker-proxy","msg":"Successfully configured","server":"localhost"}
seafile-caddy      | {"level":"info","ts":1739436975.2555625,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
seafile-caddy      | {"level":"info","ts":1739436975.2786143,"logger":"tls","msg":"cleaning storage unit","storage":"FileStorage:/data/caddy"}
seafile-caddy      | {"level":"info","ts":1739436975.2794397,"logger":"tls","msg":"finished cleaning storage units"}
seafile-mysql      | 2025-02-13 08:56:10+00:00 [Note] [Entrypoint]: Stopping temporary server
seafile-mysql      | 2025-02-13  8:56:10 0 [Note] mariadbd (initiated by: unknown): Normal shutdown
seafile-mysql      | 2025-02-13  8:56:10 0 [Note] InnoDB: FTS optimize thread exiting.
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: Starting shutdown...
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: Buffer pool(s) dump completed at 250213  8:56:11
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: Shutdown completed; log sequence number 46862; transaction id 15
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] mariadbd: Shutdown complete
seafile-mysql      | 
seafile-mysql      | 2025-02-13 08:56:11+00:00 [Note] [Entrypoint]: Temporary server stopped
seafile-mysql      | 
seafile-mysql      | 2025-02-13 08:56:11+00:00 [Note] [Entrypoint]: MariaDB init process done. Ready for start up.
seafile-mysql      | 
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] Starting MariaDB 10.11.10-MariaDB-ubu2204 source revision 3d0fb150289716ca75cd64d62823cf715ee47646 server_uid oKy6kXSLEtVIoBcZkHc1ctEC1iw= as process 1
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: Number of transaction pools: 1
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
seafile-mysql      | 2025-02-13  8:56:11 0 [Warning] mariadbd: io_uring_queue_init() failed with errno 1
seafile-mysql      | 2025-02-13  8:56:11 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: Completed initialization of buffer pool
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes)
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: End of log at LSN=46862
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: 128 rollback segments are active.
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: log sequence number 46862; transaction id 14
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] Plugin 'FEEDBACK' is disabled.
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
seafile-mysql      | 2025-02-13  8:56:11 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] InnoDB: Buffer pool(s) load completed at 250213  8:56:11
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] Server socket created on IP: '0.0.0.0'.
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] Server socket created on IP: '::'.
seafile-mysql      | 2025-02-13  8:56:11 0 [Note] mariadbd: ready for connections.
seafile-mysql      | Version: '10.11.10-MariaDB-ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
seafile            | 
seafile            | verifying password of user root ...  done
seafile            | 
seafile            | ---------------------------------
seafile            | This is your configuration
seafile            | ---------------------------------
seafile            | 
seafile            |     server name:            seafile
seafile            |     server ip/domain:       127.0.0.1
seafile            | 
seafile            |     seafile data dir:       /opt/seafile/seafile-data
seafile            |     fileserver port:        8082
seafile            | 
seafile            |     database:               create new
seafile            |     ccnet database:         ccnet_db
seafile            |     seafile database:       seafile_db
seafile            |     seahub database:        seahub_db
seafile            |     database user:          seafile
seafile            | 
seafile            | 
seafile            | Generating seafile configuration ...
seafile            | 
seafile            | done
seafile            | Generating seahub configuration ...
seafile            | 
seafile            | ----------------------------------------
seafile            | Now creating seafevents database tables ...
seafile            | 
seafile            | ----------------------------------------
seafile            | ----------------------------------------
seafile            | Now creating ccnet database tables ...
seafile            | 
seafile            | ----------------------------------------
seafile            | ----------------------------------------
seafile            | Now creating seafile database tables ...
seafile            | 
seafile            | ----------------------------------------
seafile            | ----------------------------------------
seafile            | Now creating seahub database tables ...
seafile            | 
seafile            | ----------------------------------------
seafile            | 
seafile            | creating seafile-server-latest symbolic link ...  done
seafile            | 
seafile            | 
seafile            | 
seafile            | 
seafile            | -----------------------------------------------------------------
seafile            | Your seafile server configuration has been finished successfully.
seafile            | -----------------------------------------------------------------
seafile            | 
seafile            | run seafile server:     ./seafile.sh { start | stop | restart }
seafile            | run seahub  server:     ./seahub.sh  { start <port> | stop | restart <port> }
seafile            | 
seafile            | -----------------------------------------------------------------
seafile            | If you are behind a firewall, remember to allow input/output of these tcp ports:
seafile            | -----------------------------------------------------------------
seafile            | 
seafile            | port of seafile fileserver:   8082
seafile            | port of seahub:               8000
seafile            | 
seafile            | When problems occur, Refer to
seafile            | 
seafile            |         https://download.seafile.com/published/seafile-manual/home.md
seafile            | 
seafile            | for information.
seafile            | 
seafile            | 
seafile            | [2025-02-13 16:56:41] Updating version stamp
seafile            | 
seafile            | Starting seafile server, please wait ...
seafile            | Seafile server started
seafile            | 
seafile            | Done.
seafile            | 
seafile            | Starting seahub at port 8000 ...
seafile            | 
seafile            | 
seafile            | 
seafile            | ----------------------------------------
seafile            | Successfully created seafile admin
seafile            | ----------------------------------------
seafile            | 
seafile            | 
seafile            | 
seafile-mysql      | 2025-02-13  8:56:46 15 [Warning] Aborted connection 15 to db: 'seahub_db' user: 'seafile' host: '172.20.0.5' (Got an error reading communication packets)
seafile            | 
seafile            | Seahub is started
seafile            | 
seafile            | Done.
seafile            |