今天重新部署了seafile13,宿主机是群晖,docker方式安装,按照官方yml配置,启用了https,因443端口被禁用,所以映射到10443,现在PC客户端能正常工作,可以同步资料库,android移动端和网页能浏览目录,无法上传下载,Android端log附下:2025-11-19 15:40:16.659 D/SLog: App Env Info
2025-11-19 15:40:16.659 D/SLog: SDK: 31
2025-11-19 15:40:16.659 D/SLog: Brand: HUAWEI
2025-11-19 15:40:16.659 D/SLog: Model: ALT-AL10
2025-11-19 15:40:16.659 D/SLog: Release: 12
2025-11-19 15:40:16.659 D/SLog: Build Version: 3.0.16
2025-11-19 15:40:16.659 D/SLog: Build Code:197
2025-11-19 15:40:19.191 D/SLog: DataMigrationActivity, finishMigration
2025-11-19 15:40:22.372 D/SLog: SeafileAuthenticator, SeafileAuthenticator created.
2025-11-19 15:40:22.375 D/SLog: SeafileAuthenticator, addAccount of type com.seafile.seadroid2.account.api2
2025-11-19 15:40:47.031 E/SLog: java.lang.RuntimeException: java.security.cert.CertificateException
2025-11-19 15:40:50.535 D/SLog: SeafileAuthenticatorActivity, finishLogin
2025-11-19 15:40:50.696 D/SLog: StorageManager, 副存储 (不可用)
2025-11-19 15:40:51.735 D/SLog: FileSyncService, startFolderMonitor(), backup path: /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:40:51.737 D/SLog: MainActivity, bond FileSyncService
2025-11-19 15:40:51.761 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:40:51.763 D/SLog: FileSyncService, onStop()
2025-11-19 15:40:51.790 D/SLog: onCleared
2025-11-19 15:40:51.795 D/SLog: onCleared
2025-11-19 15:40:51.796 D/SLog: CompositeDisposable dispose all
2025-11-19 15:40:51.797 D/SLog: onCleared
2025-11-19 15:40:51.797 D/SLog: CompositeDisposable dispose all
2025-11-19 15:40:51.797 D/SLog: onCleared
2025-11-19 15:40:51.797 D/SLog: CompositeDisposable dispose all
2025-11-19 15:40:51.799 D/SLog: onCleared
2025-11-19 15:40:51.835 D/SLog: onCleared
2025-11-19 15:40:51.836 D/SLog: CompositeDisposable dispose all
2025-11-19 15:40:51.845 E/SLog: FileSyncService, onDestroy(), file monitor service destroy
2025-11-19 15:40:52.477 D/SLog: FileSyncService, startFolderMonitor(), backup path: /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:40:52.477 D/SLog: MainActivity, bond FileSyncService
2025-11-19 15:40:52.485 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:40:52.487 D/SLog: FileSyncService, onStop()
2025-11-19 15:40:52.788 D/SLog: onCleared
2025-11-19 15:40:52.788 D/SLog: CompositeDisposable dispose all
2025-11-19 15:40:57.489 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:40:57.501 D/SLog: FileSyncService, onStop()
2025-11-19 15:40:58.367 D/SLog: getDirentsSingleFromServer(), The list has been inserted into the local database
2025-11-19 15:41:02.283 D/SLog: ScrollState{index=9, top=-100}
2025-11-19 15:41:02.503 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:41:02.513 D/SLog: FileSyncService, onStop()
2025-11-19 15:41:04.338 D/SLog: ScrollState{index=3, top=-8}
2025-11-19 15:41:06.216 D/SLog: getDirentsSingleFromServer(), The list has been inserted into the local database
2025-11-19 15:41:07.514 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:41:07.516 D/SLog: FileSyncService, onStop()
2025-11-19 15:41:09.624 D/SLog: ScrollState{index=13, top=-30}
2025-11-19 15:41:12.518 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:41:12.559 D/SLog: FileSyncService, onDirectoryCreate(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile/ye219@qq.com (ye219.top)
2025-11-19 15:41:12.559 D/SLog: FileSyncService, onDirectoryCreate(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile/ye219@qq.com (ye219.top)/软件应用_7dcd
2025-11-19 15:41:12.559 D/SLog: FileSyncService, onDirectoryCreate(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile/ye219@qq.com (ye219.top)/软件应用_7dcd/SecureCRT
2025-11-19 15:41:12.559 D/SLog: FileSyncService, onStop()
2025-11-19 15:41:17.560 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:41:17.640 D/SLog: FileSyncService, onStop()
2025-11-19 15:41:22.641 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:41:22.680 D/SLog: FileSyncService, onStop()
2025-11-19 15:41:27.681 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:41:27.710 D/SLog: FileSyncService, onStop()
2025-11-19 15:41:32.711 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:41:32.761 D/SLog: FileSyncService, onStop()
2025-11-19 15:41:37.762 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:41:37.843 D/SLog: FileSyncService, onStop()
2025-11-19 15:41:42.845 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:41:42.885 D/SLog: FileSyncService, onStop()
2025-11-19 15:41:47.886 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:41:47.913 D/SLog: FileSyncService, onStop()
2025-11-19 15:41:52.914 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:41:52.992 D/SLog: FileSyncService, onStop()
2025-11-19 15:41:57.993 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:41:58.071 D/SLog: FileSyncService, onStop()
2025-11-19 15:42:03.072 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:42:03.125 D/SLog: FileSyncService, onStop()
2025-11-19 15:42:08.126 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:42:08.152 D/SLog: FileSyncService, onStop()
2025-11-19 15:42:13.153 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:42:13.179 D/SLog: FileSyncService, onStop()
2025-11-19 15:42:18.180 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:42:18.221 D/SLog: FileSyncService, onStop()
2025-11-19 15:42:18.330 E/SLog: failed to connect to ye219.top/115.221.234.209 (port 443) from /100.110.172.172 (port 43836) after 120000ms: isConnected failed: ETIMEDOUT (Connection timed out)
2025-11-19 15:42:18.386 D/SLog: MainActivity, onRestart
2025-11-19 15:42:18.458 D/SLog: getDirentsSingleFromServer(), The list has been inserted into the local database
2025-11-19 15:42:18.850 D/SLog: onCleared
2025-11-19 15:42:18.851 D/SLog: CompositeDisposable dispose all
2025-11-19 15:42:23.222 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:42:23.267 D/SLog: FileSyncService, onStop()
2025-11-19 15:42:28.268 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:42:28.318 D/SLog: FileSyncService, onStop()
2025-11-19 15:42:31.707 D/SLog: CompositeDisposable dispose all
2025-11-19 15:42:32.469 D/SLog: CompositeDisposable dispose all
2025-11-19 15:42:33.319 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:42:33.340 D/SLog: FileSyncService, onStop()
2025-11-19 15:42:35.071 D/SLog: TabSettings2Fragment, cache size:0 bytes
2025-11-19 15:42:38.341 D/SLog: FileSyncService, onStart(), /storage/emulated/0/Android/media/com.seafile.seadroid2/Seafile
2025-11-19 15:42:38.356 D/SLog: FileSyncService, onStop()
8082端口好像没使用,是不是现在不需要了。
ye219@SA6400:~/seafile-install$ sudo netstat -tlnp
Password:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN 13328/nginx: master
tcp 0 0 0.0.0.0:5001 0.0.0.0:* LISTEN 13328/nginx: master
tcp 0 0 0.0.0.0:10443 0.0.0.0:* LISTEN 15127/docker-proxy
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 13782/smbd
tcp 0 0 0.0.0.0:5357 0.0.0.0:* LISTEN 13328/nginx: master
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 13328/nginx: master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 9032/sshd: /usr/bin
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 4580/inetd
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 15660/postgres
tcp 0 0 127.0.0.1:33304 0.0.0.0:* LISTEN 10303/synomibaction
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 13328/nginx: master
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 13782/smbd
tcp 0 0 127.0.0.1:512 0.0.0.0:* LISTEN 20179/termd
tcp 0 0 127.0.0.1:161 0.0.0.0:* LISTEN 12688/snmpd
tcp 0 0 0.0.0.0:6690 0.0.0.0:* LISTEN 20928/syncd
tcp 0 0 0.0.0.0:10180 0.0.0.0:* LISTEN 15152/docker-proxy
tcp6 0 0 :::5000 :::* LISTEN 13328/nginx: master
tcp6 0 0 :::5001 :::* LISTEN 13328/nginx: master
tcp6 0 0 :::10443 :::* LISTEN 15133/docker-proxy
tcp6 0 0 :::139 :::* LISTEN 13782/smbd
tcp6 0 0 :::5357 :::* LISTEN 13328/nginx: master
tcp6 0 0 :::5006 :::* LISTEN 16418/httpd
tcp6 0 0 :::80 :::* LISTEN 13328/nginx: master
tcp6 0 0 :::22 :::* LISTEN 9032/sshd: /usr/bin
tcp6 0 0 :::443 :::* LISTEN 13328/nginx: master
tcp6 0 0 :::3261 :::* LISTEN -
tcp6 0 0 :::445 :::* LISTEN 13782/smbd
tcp6 0 0 :::3263 :::* LISTEN -
tcp6 0 0 :::3264 :::* LISTEN -
tcp6 0 0 :::3265 :::* LISTEN 14395/scsi_plugin_s
tcp6 0 0 :::6690 :::* LISTEN 20928/syncd
tcp6 0 0 :::10180 :::* LISTEN 15158/docker-proxy
从您的日志来看,有两项关键错误:
1.java.security.cert.CertificateException,您启用了 https,但是证书校验未通过,检查您的证书是否为正规合法证书;
2.2025-11-19 15:42:18.330 E/SLog: failed to connect to ye219.top/115.221.234.209 (port 443) from /100.110.172.172 (port 43836) after 120000ms: isConnected failed: ETIMEDOUT (Connection timed out),您修改了 https 端口为 10443,但是这里连接使用的还是 443 端口,按照以下方式来检查您修改端口的方式是否正确:
我无法确定您是使用的是 nginx 还是 caddy 作为代理。
如果使用的是 nginx,请参考这份文档确保代理配置正确:seafile-manual-cn ,同时修改各服务 yml 文件中的 ports 标签;
如果使用的是 caddy,请按照如下步骤来修改默认端口号,以 demo.seafile.com 和 5200 端口为例:
1.修改 env 文件中的 SEAFILE_SERVER_HOSTNAME 变量,带上需要修改的端口号;
2.修改 caddy.yml 中的 ports 标签,如下所示:
services:
caddy:
image: ${SEAFILE_CADDY_IMAGE:-lucaslorentz/caddy-docker-proxy:2.9-alpine}
restart: unless-stopped
container_name: seafile-caddy
ports:
- 80:80
- 443:443
- 5200:5200
environment:
- CADDY_INGRESS_NETWORKS=seafile-net
...
我用caddy的,.env中SEAFILE_SERVER_HOSTNAME=ye219.top:11443。caddy中caddy:
image: ${SEAFILE_CADDY_IMAGE:-lucaslorentz/caddy-docker-proxy:2.9-alpine}
restart: unless-stopped
container_name: seafile-caddy
ports:
- 80:80
- 443:443
- 11443:11443
environment: - CADDY_INGRESS_NETWORKS=seafile-net
volumes: - /var/run/docker.sock:/var/run/docker.sock
- ${SEAFILE_CADDY_VOLUME:-/opt/seafile-caddy}:/data/caddy
networks: - seafile-net
启动时提示443端口被占用
Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint seafile-caddy (1160e02e8a850580bffebbb2dae64fb4e3f1c8cf78aaaf9da5c45a77a53456f3): failed to bind host port for 0.0.0.0:80:172.18.0.3:80/tcp: address already in use
明白了,注释掉80:80和443:443端口,仅使用11443:11443就可以了。问题解决,谢谢!