Open bain3 opened 2 months ago
Ok I managed to create a hotfix for our instance. .pipe()
does not properly propagate errors, and on top of that, the ws stream is not properly closed.
https://git.nolog.cz/NoLog.cz/send/commit/f7e889b875538d57ec95f0a5be7a5f7ca25e16db
If you've been running send for a long time with a bit of traffic, then I recommend running fsck
on the filesystem where you store files. This reclaimed multiple hundreds of gigs of disk space for us. I assume ext4 did not like all the open but deleted files.
If the user aborts the upload in some way, for example by clicking the "Cancel" button during upload, the server does not correctly close the upload pipeline.
Steps to reproduce
lsof -p <pid>
and see that the file is still open (this blocks automatic deletion by an external script! File does not get actually deleted from fs until the descriptor is closed...)