diced / zipline

A ShareX/file upload server that is easy to use, packed with features, and with an easy setup!
https://zipline.diced.sh/
MIT License
1.31k stars 128 forks source link

Bug: IO Error when uploading a larger zip file #544

Open Pumpline opened 5 months ago

Pumpline commented 5 months ago

What happened?

When uploading a larger zip (in this case 6 gigabyte) file, an error occurs.

Version

latest (ghcr.io/diced/zipline or ghcr.io/diced/zipline:latest)

What browser(s) are you seeing the problem on?

Firefox

Zipline Logs

[Error: ENOENT: no such file or directory, open 'C:\Users\ADMINI~1\AppData\Local\Temp\2\zipline\zipline_partial_Uv2c_0_20971520'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\2\\zipline\\zipline_partial_Uv2c_0_20971520'
}

Browser Logs

Browser is not noticing this issue as I saw, tries to continue to upload but the upload bar stays stuck.

Additional Info

No response

diced commented 4 months ago

Is this issue still happening? Could you turn on the debug logs and show the logs surrounding the error if it's still happening?

diced commented 4 months ago

A possibility is that the temp directory isn't being created, I don't test Zipline on windows but try to create the C:\Users\ADMINI~1\AppData\Local\Temp\2\zipline directory your self and see if the issue is resolved. Obviously this isn't a solution but I'll have to investigate it in more detail later on windows.

Pumpline commented 4 months ago

Hey there, the named folder already exists. https://pumpline.de/cloud/aiv314TzUFoPipftwKuh.png

diced commented 4 months ago

Not sure if this will fix it, but try setting the CORE_TEMP_DIRECTORY variable to somewhere other than inside of AppData\Local\Temp for example maybe just your user folder and call the directory something like zipline_temp.

reference: https://zipline.diced.sh/docs/config/core#core_temp_directory