Hello i installed seafile on my Fujitsu Futro S740 with 4gb RAM. I made an own domain with SSL (Caddy) for Seafile. When i try to open any picture or video when i’m not in my homenetwork Seafile often cannot open them. Sometimes they open but after more than 30s or longer. If i’m in my home network everything runs really fast. What can be the problem?
The fact that Seafile runs fast on your local network suggests that your server hardware and the Seafile installation itself are working correctly. The slowdown you experience externally is most likely related to your network connection or the reverse proxy configuration.
Here are a few steps to troubleshoot and identify the bottleneck:
1. Check your ISP Upload Speed
When you access Seafile from outside your home, you are “downloading” files from your server. This means the speed is limited by your home internet’s upload speed.
- Run a speed test from a device inside your home network.
- If your upload speed is low (e.g., 1-5 Mbps), loading large images or high-bitrate videos will naturally take a long time.
2. Use Browser Developer Tools
You can see exactly where the delay is happening:
- Open your browser’s Developer Tools (usually F12) and go to the Network tab.
- Try to open a picture while on an external network.
- Look for the media file request. Check if the time is spent in Waiting (TTFB) or Content Download.
- High TTFB: Could indicate a processing delay or a routing/proxy issue.
- High Content Download: Confirms the connection speed is the bottleneck.
3. Check Caddy Logs
Since you are using Caddy, check its logs for any errors, timeouts, or retries when you attempt to access media externally. If Caddy is running in Docker, you can use:
docker logs <caddy_container_name>
4. Check Seafile Slow Logs
Seafile tracks slow requests in its own logs. Check the logs/slow_logs directory within your Seafile installation. Specifically, look at the storage slow log to see if the server is struggling to retrieve files from the disk when accessed via the external domain.