timvisee / send

:mailbox_with_mail: Simple, private file sharing. Mirror of https://gitlab.com/timvisee/send
https://send.vis.ee
Mozilla Public License 2.0
4.35k stars 252 forks source link

Uploads fail after Send has been running for a extended period fo time #183

Open TheFiZi opened 10 months ago

TheFiZi commented 10 months ago

Not 100% sure what the issue is but after leaving Send running for a few weeks uploads will stall at 5% and the following error is displayed in the console:

> send@3.4.23 prod
> node server/bin/prod.js

CRITICAL FirefoxSend.uncaughtException: Error: ENOENT: no such file or directory, unlink '/tmp/send-073ff301/7-bf23461dc1331994'
    at Object.unlinkSync (node:fs:1767:3)
    at WriteStream.<anonymous> (/var/www/send.mydomain.com/server/storage/fs.js:34:12)
    at WriteStream.emit (node:events:525:35)
    at WriteStream.emit (node:domain:489:12)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

If I restart Send it works fine for another few weeks.

I don't use my instance regularly so it could only work for a few days for all I know.

TeamBarryBrowne commented 4 months ago

I noticed this also, and it turned out, I was exhausting the RAM in my environment.