Closed breachedvince closed 2 years ago
Seems to be a relatively old commit, try updating
Ok.
It's likely due to chunks temporary data timing out
The default timeout in config is 30 minutes If someone happened to only finish uploading their chunks when the timer was about to run out, it could indeed potentially throw that error
If you can confirm it isn't something else, a temporary workaround is to simply increase the timeout I'll add some potential fixes tomorrow
I'm on a VPN so the IP doesn't matter if your worrying!
I think you probably misconfigured that domain in your nginx config
For some reason nginx thinks domainnamehere.com/api/upload
is a static path located at /lolisafestore/api/upload
If it was lolisafe itself that was having a file permission issue, you basically wouldn't be seeing that on your nginx logs (at most you'd see it reporting that the request ended with http error code 500 or equivalent), since nginx is simply routing the requests from clients to/from lolisafe
Meaning it's likely unrelated with the undefined hasher errors
Keep in mind this is only for files 2gb> all the other files that are like 900mb or 1gb work perfectly fine.
Update: No more hasher errors after updating. Its failing to send the last POST request to api/uploads/finishchunks. Maybe you could try to upload something 1GB and see if it works.
Tested some files ranging from ~1.8GB to ~7.84GB at 95MB chunk size (the latter was split up to 89 chunks), all worked fine
Re-uploaded the latter to test if hasher still worked properly with files that size, and it did indeed detect duplicate properly
~22GB file at 1MB chunk size just for the heck of it
This later succeeded
Hmm, I will just re-install/ redo all my configs and lolisafe you can close this.
Can you help me with this error.
`[2022-05-06 22:20:52] TypeError: Cannot read properties of undefined (reading 'hasher') at /root/lolisafe/controllers/uploadController.js:575:42 at async Promise.all (index 0) at async Object.self.actuallyFinishChunks (/root/lolisafe/controllers/uploadController.js:529:5) at async Object.self.finishChunks (/root/lolisafe/controllers/uploadController.js:511:5)