Hi everyone,
I just installed Seafile (latest version, 13) using Docker Compose, using an existing nginx instance instead of Caddy (relevant documentation: /13.0/setup/use_other_reverse_proxy/#add-reverse-proxy-for-related-services).
When trying to open any .sdoc file, the page shows “加载文件内容错误” which should correspond to “load doc content error” in other posts on this forum.
Using the network inspection tool in Firefox, I could identify a request going to https://seafile.example.com/sdoc-server/api/v1/docs/8f6e3821-f01d-434b-9d3f-8b737ed27f8c/. This request closed with a 500 code, and a JSON was returned:
{"error_type":"get_doc_download_link_error","error_msg":"Internal Server Error"}
My environment file seems properly set up according to the official docs. The only change I’ve done (besides the required ones like setting passwords and hostname) is changing SEAFILE_SERVER_PROTOCOL to https instead of http.
I found these two lines in seadoc-data/logs/sdoc-server.log whenever I tried to access an .sdoc file:
[2025-08-02 15:48:28] [ERROR] document-controller.js[56] - Get doc download link error
[2025-08-02 15:48:28] [ERROR] document-controller.js[64] - Get doc download link error. request url is: http://seafile/api/v2.1/seadoc/download-link/8f6e3821-f01d-434b-9d3f-8b737ed27f8c/
Where could I look to resolve this issue? Thank you in advance!