I’m trying to track down an issue with uploads failing when using an upload link. Uploads fail with a notice “Network error” in the Web UI.
I have checked all relevant logs but have not found much of help. In nginx log the upstream seafile server returns a HTTP 500 - Internal server error.
After turning on debug logging in nginx and comparing with a successful upload it looks like everything is working as it should, up to the HTTP 500 reply.
While uploading, the file appears on the server in seafile-data/httptemp/cluster-shared/ but once transfer completes, it vanishes. The only trace it was ever there I see in seafile.log:
[01/08/2020 01:56:26 PM] upload-file.c(368): clamdscan process encounter error, error code: 2. [01/08/2020 01:59:11 PM] repo-mgr.c(7374): Temp file /opt/seafile/seafile-data/httptemp/cluster-shared/IKARUS-TestVirus.apkL3RYD0 doesn't exist, remove reocrd from db.
I’ve chown -R seafile:seafile’d the whole seafile directory tree just in case but this did not fix it.
For comparison, I tested uploading as a logged in user which works as expected.
I’m all out of ideas. How to track this down?