Hi,
Environment:
- Seafile Pro: seafileltd/seafile-pro-mc:13.0-latest (Docker Compose, container port 80)
- Proxy: Pangolin tunnel on VPS (removed Caddy)
What works:
Seahub web UI accessible via Pangolin
Browse files, login, create libraries
What fails:
File downloads return 500 Internal Server Error
Everything used to work with 12.0, and I followed the upgrading manual for 13.0. Am I missing some config?
Here are some points to check to help resolve the issue:
- Pangolin Proxy Configuration: Investigate the Pangolin tunnel configuration. The 500 error specifically on file downloads suggests a potential issue with how Pangolin handles these requests. Check for:
- Timeouts: Large file downloads might be timing out at the proxy level.
- Header Forwarding: Ensure all necessary headers (e.g.,
X-Forwarded-For, Host, X-Real-IP) are correctly forwarded by Pangolin to the Seafile Docker container.
- URL Rewriting/Path Handling: Verify that Pangolin is correctly rewriting or passing the download URLs generated by Seafile 13.0. There might be a slight change in the URL structure for downloads in the new version.
- Error Logs: Check Pangolin’s access and error logs for any specific errors related to the 500 responses for file downloads.
- Seafile Logs: Examine the logs seafile. A 500 error means the request reached the Seafile server but it failed internally. The logs should provide more detailed information about what went wrong during the file download attempt.
Hi Daniel,
Thank you!
I checked some log files and found the problem which I resolved as by adding UserDownloadRateLimit and UserUploadRateLimit