szabodanika / microbin

A secure, configurable file-sharing and URL shortening web app written in Rust.
https://microbin.eu
BSD 3-Clause "New" or "Revised" License
2.65k stars 163 forks source link

Uploading large files appears to cause microbin to crash #87

Closed Ember-ruby closed 1 year ago

Ember-ruby commented 1 year ago

this starts happening at around 50-70MB, an except from the logs below;

Nov  4 10:06:35 general-hosting systemd[1]: microbin.service: start operation timed out. Terminating.
Nov  4 10:06:35 general-hosting start.sh[761819]: 2022-11-04T10:06:35 [INFO] - SIGTERM received; starting graceful shutdown
Nov  4 10:06:35 general-hosting start.sh[761819]: 2022-11-04T10:06:35 [INFO] - Graceful worker shutdown; finishing 1 connections
Nov  4 10:06:35 general-hosting start.sh[761819]: 2022-11-04T10:06:35 [INFO] - Accept thread stopped
Nov  4 10:07:05 general-hosting systemd[1]: microbin.service: Failed with result 'timeout'.
Nov  4 10:07:05 general-hosting systemd[1]: Failed to start microbin.
Nov  4 10:07:05 general-hosting systemd[1]: microbin.service: Scheduled restart job, restart counter is at 10964.
Nov  4 10:07:05 general-hosting systemd[1]: Stopped microbin.
Nov  4 10:07:05 general-hosting systemd[1]: Starting microbin...
Nov  4 10:07:05 general-hosting start.sh[761899]: 2022-11-04T10:07:05 [INFO] - MicroBin starting on http://0.0.0.0:3956
Nov  4 10:07:05 general-hosting start.sh[761899]: 2022-11-04T10:07:05 [INFO] - Starting 1 workers
Nov  4 10:07:05 general-hosting start.sh[761899]: 2022-11-04T10:07:05 [INFO] - Actix runtime found; starting in Actix runtime

additionally, while it does try to upload the file, it only uploads the file at ~600kib/s, when the connection is able to sustain at least double that

szabodanika commented 1 year ago

Closing as stale, I am able to upload files even over 1GB with the newest version, please report any similar issues here in the future if it keeps happening