打开知识库会显示 AxiosError
有解决了么?
如果要修改caddy代理端口,需要以下变动:1.修改env中SEAFILE_SERVER_HOSTNAME,添加端口号;2. caddy.yml的ports新增新的端口映射:“新端口:新端口”;
需要在.env文件中加入下面行么??
EXTERNAL_HTTP_PORT=8000
SEAFILE_SERVER_URL=http://${SEAFILE_SERVER_HOSTNAME}:${EXTERNAL_HTTP_PORT}
不需要,.env中修改这个配置就可以。SEAFILE_SERVER_HOSTNAME=*****:8000
非常感谢,之前port写的8000:80,一直不行
但是知识库还是显示错误,有解决方案么?
你试试访问 https://your-sdoc-server-domain:8000/sdoc-server/ ,看看 sdoc-server 能否正常被浏览器访问。如果能访问,能看到 “Welcome to sdoc-server” 信息。
Welcome to sdoc-server. The current version is 2.0.7
可以访问
但是知识库点新建页面没有反应,导入文件显示错误
已经折腾好几天了搞不定
另外问一下seahub_settings.py这个文件在哪个位置?
谢谢
这个先需要看下 Chrome 的控制台有什么报错。分析下是哪个请求报错。
这里 500 错误的话,说明 seahub 部分出错。可以看下 seahub.log 中具体的错误信息。
[2025-10-22 02:49:18] [WARNING] django.request:253 log_response Not Found: /favicon.ico
[2025-10-22 02:50:51] [WARNING] django.request:253 log_response Not Found: /api/v2.1/query-io-status/
[2025-10-22 02:52:53] [ERROR] seahub.api2.endpoints.wiki2:626 post HTTPConnectionPool(host=‘seafile.xxxxxxx.com’, port=8000): Max retries exceeded>
[2025-10-22 02:52:53] [ERROR] django.request:253 log_response Internal Server Error: /api/v2.1/wiki2/fdbaef1f-f8bc-4294-8892-a70863a44878/pages/
[2025-10-22 03:03:44] [WARNING] django.request:253 log_response Not Found: /api/v2.1/query-io-status/
[2025-10-22 03:04:13] [ERROR] seahub.api2.endpoints.wiki2:626 post HTTPConnectionPool(host=‘seafile.xxxxxxx.com’, port=8000): Max retries exceeded>
[2025-10-22 03:04:13] [ERROR] django.request:253 log_response Internal Server Error: /api/v2.1/wiki2/fdbaef1f-f8bc-4294-8892-a70863a44878/pages/
[2025-10-22 03:04:39] [ERROR] seahub.api2.endpoints.wiki2:626 post HTTPConnectionPool(host=‘seafile.xxxxxxx.com’, port=8000): Max retries exceeded>
[2025-10-22 03:04:39] [ERROR] django.request:253 log_response Internal Server Error: /api/v2.1/wiki2/fdbaef1f-f8bc-4294-8892-a70863a44878/pages/
[2025-10-22 03:07:05] [ERROR] seahub.api2.endpoints.wiki2:626 post HTTPConnectionPool(host=‘seafile.xxxxxxx.com’, port=8000): Max retries exceeded>
[2025-10-22 03:07:05] [ERROR] django.request:253 log_response Internal Server Error: /api/v2.1/wiki2/fdbaef1f-f8bc-4294-8892-a70863a44878/pages/
这个是因为首次访问 wiki 的时候,seahub 需要通过 http://seafile.xxxxxxx.com:8000/seafhttp 来创建一个空页面。本地访问 http://seafile.xxxxxxx.com:8000/seafhttp 目前出现了连通的问题。
你可以先测试下打开和编辑一个普通的 sdoc 文件是否能工作。
转换docx文件到sdoc文件失败,显示错误,
新建sdoc文件,打开一直是一个圆圈在转
并且发现把一个文件移动到我的资料库失败了,但是从我新建的两个资料库间可以互相移动文件
我的.env文件是这么写的
SeaDoc service
ENABLE_SEADOC=true
SEADOC_SERVER_URL=http://seafile.xxxxxxx.com:8000/sdoc-server
这个是因为 sdoc-server 需要通过你配置的外网地址来访问 seahub 服务。你检查下 sdoc-server 的日志,并检查下在 docker 内部能否通过外网地址访问 seahub 服务。
我看到有方案是添加host来解决
我修改了caddy文件
services:
caddy:
image: ${SEAFILE_CADDY_IMAGE:-lucaslorentz/caddy-docker-proxy:2.9-alpine}
restart: unless-stopped
container_name: seafile-caddy
ports:
- 8000:8000
- 8443:8443
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:
# !!! 新增:分配静态 IP 地址 !!!
ipv4_address: 172.20.0.2
healthcheck:
test: ["CMD-SHELL", "curl --fail http://localhost:2019/metrics || exit 1"]
start_period: 20s
interval: 20s
timeout: 5s
retries: 3
networks:
seafile-net:
name: seafile-net
# !!! 新增:定义网络子网 !!!
ipam:
config:
# 为 Docker Compose 网络定义固定的子网
- subnet: 172.20.0.0/24
修改seadoc.yml文件
extra_hosts:
# 替换 172.19.0.3 为你实际获取到的 Caddy 容器的 IP
- "seafile.jxxxxx.com:172.19.0.2"
好像还是没有解决。
另外我就没有sdoc-server的日志,奇怪
opt/seafile-data/seafile/logs$ ls
enterpoint.log notification-server.log.2025-10-21 seafile.log seaf-md-server.log seasearch_index.log
file_updates_sender.log onlyoffice.log seafile.log.2025-10-21 seahub_email_sender.log
logrotate.log seafevents.log seafile-monitor.log seahub.log
notification-server.log seafile-ai.log seaf-md-server-access.log seahub.log.2025-10-21
sdoc-server 的日志在 /opt/seadoc-data/logs,其中 /opt/seadoc-data 是 sdoc-server 的默认挂载的 volume
[2025-10-22 07:29:51] [INFO] excalidraw-manager.js[41] - Exiting server process: 41
[2025-10-22 07:29:51] [INFO] excalidraw-manager.js[101] - 0 docs saved.
[2025-10-22 07:36:09] [INFO] www.js[25] - Starting sdoc server process: 42
[2025-10-22 07:37:52] [ERROR] document-controller.js[56] - The content of the document loaded error
[2025-10-22 07:37:52] [ERROR] document-controller.js[74] - Load 测试.sdoc(aaebc149-4727-4266-a088-bf4ef4639695) from http://seafile.xxxxxx.com:80>
[2025-10-22 07:40:48] [INFO] document-manager.js[44] - Exiting server process: 42
[2025-10-22 07:40:48] [INFO] document-manager.js[104] - 0 docs saved.
[2025-10-22 07:40:48] [INFO] excalidraw-manager.js[41] - Exiting server process: 42
[2025-10-22 07:40:48] [INFO] excalidraw-manager.js[101] - 0 docs saved.
[2025-10-22 07:41:28] [INFO] www.js[25] - Starting sdoc server process: 41
[2025-10-22 07:41:50] [ERROR] document-controller.js[56] - The content of the document loaded error
[2025-10-22 07:41:50] [ERROR] document-controller.js[74] - Load 测试.sdoc(aaebc149-4727-4266-a088-bf4ef4639695) from http://seafile.xxxxxx.com:80>
[2025-10-22 07:46:28] [INFO] document-manager.js[104] - 0 docs saved.
[2025-10-22 07:46:28] [INFO] excalidraw-manager.js[101] - 0 docs saved.
[2025-10-22 07:51:28] [INFO] document-manager.js[104] - 0 docs saved.
[2025-10-22 07:51:28] [INFO] excalidraw-manager.js[101] - 0 docs saved.
[2025-10-22 07:54:47] [INFO] document-manager.js[44] - Exiting server process: 41
[2025-10-22 07:54:47] [INFO] document-manager.js[104] - 0 docs saved.
[2025-10-22 07:54:47] [INFO] excalidraw-manager.js[41] - Exiting server process: 41
[2025-10-22 07:54:47] [INFO] excalidraw-manager.js[101] - 0 docs saved.
[2025-10-22 07:55:16] [INFO] www.js[25] - Starting sdoc server process: 41
[2025-10-22 07:56:34] [ERROR] document-controller.js[56] - The content of the document loaded error
[2025-10-22 07:56:34] [ERROR] document-controller.js[74] - Load 测试.sdoc(aaebc149-4727-4266-a088-bf4ef4639695) from http://seafile.xxxxxx.com:80>
[2025-10-22 08:00:16] [INFO] document-manager.js[104] - 0 docs saved.
[2025-10-22 08:00:16] [INFO] excalidraw-manager.js[101] - 0 docs saved.
[2025-10-22 08:05:16] [INFO] document-manager.js[104] - 0 docs saved.
[2025-10-22 08:05:16] [INFO] excalidraw-manager.js[101] - 0 docs saved.
[2025-10-22 08:10:16] [INFO] document-manager.js[104] - 0 docs saved.
[2025-10-22 08:10:16] [INFO] excalidraw-manager.js[101] - 0 docs saved.
是不是因为它又去访问80端口导致的?我的80口外网访问不了
你好方便的话,你把 sdoc-server.log 中

这里完整的路径发一下,可以将您的域名修改一下,其他的内容不要修改





