-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 when using limitedStore and hitting the storage limit #249
Comments
Thanks for reporting this! I was able to reproduce this by creating uploads until the data store hit the specified limit. After that I deleted some files from the data directory. Now, tusd is not able to delete some old uploads when it tries to reclaim disk space for new uploads. It seems as if you have another service/user which deletes files from the data directory and collided with tusd. This should be fixed in the latest commit in the master branch, please test it out and tell me if it fixes your problem. BTW, we are considering dropping support for the limitedstore package in the next major version (see #212). Due to limitedstore's design, it is not able to persist the internal state between restarts and therefore is not able to cleanup files which were created by previous tusd processes. Furthermore, limitedstore only works if you only have a single tusd process running, which is rarely the case. We have had problems with these limitations in the past and therefore have never used it in production. We also recommend you to reconsider your setup, even if the next major version will take some more time. |
Ahhhh, I had manually deleted some images after doing initial testing with it. My bad, thanks! I understand that this isn't the ideal setup. This was a quick test run to see if |
You're welcome. I just want to add that we have been using tusd with AWS S3 in production for years without any problems related to the integration with AWS S3, so I am pretty happy about that. |
Oh I don't doubt that, the problem for us is I'm not convinced S3-compatible endpoints properly emulate S3 so potential for issues there for us. |
When using
-store-size
, we're seeing 404s when the disk usage hits the limit.tusd
log snippet:Version:
Environment:
Running in docker, with arguments:
tusd --hooks-dir /srv/tusd-hooks -port 8080 -max-size 31457280 -store-size 1073741824 -behind-proxy
Disk usage:
The text was updated successfully, but these errors were encountered: