The space is not freed up if I upload through the website and cancel before finishing.

I’ve installed the Seagate Pro version of Dockers twice, and I’ve noticed the following: when you upload a large file, say 2GB, to the web, but cancel it just before it’s finished. The corresponding blocks are no longer freed. I’ve cleared the history, emptied the trash, and run the gc command. And nothing: those blocks and their occupied space remain.

If you canceled before the upload was finished, the file hadn’t yet been broken up into blocks, which I guess is why gc didn’t help. What’s not being cleaned up is the temp file. While trying to verify that I could reproduce what you are seeing, I found that I had some left over temp files that were about a year old.

You can manually delete these temp files, they are in “/opt/seafile/seafile-data/httptemp/cluster-shared/”.

So @daniel.pan , this looks like a bug to me.

Hello @tomservo @jesus28 , if you canceled before the upload was finished, the file hadn’t yet been broken up into blocks, so gc didn’t help. Temporary files under cluster-shared are usually cleaned up periodically, if they are not cleaned up, it may be a problem with the version of the seafile server you are currently using. Which seafile server version are you currently using?

Mine was on 12.0.9 when I checked. But since there were files almost a year old in there, I suspect it goes back to something in the version 11 range when those files were created.

Hello @tomservo,the files in the cluster-shared directory are periodically deleted based on WebUploadTempFiles table. In older versions of the server, records in this table might have been cleared, but the local cache was not cleaned up. Currently, you can manually delete these temporary files.