-
Notifications
You must be signed in to change notification settings - Fork 87
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
Chunked upload fails when user quota is zero #217
Comments
Just tested with the desktop client and I'm getting the same result: |
Hello, You can change the chunk size during the upload : In your databases : INSERT INTO oc_appconfig (appid, configkey, configvalue) VALUES (‘files’, ‘max_chunk_size’, ‘524288000’); (to modify to 500 Mb files) |
Should be fixed with this commit nextcloud/server@0fb070b (see nextcloud/server#11485) |
@xinux4d Thanks for providing a potential workaround, although I ended up provisioning a small personal quota instead for the short term. @proxyconcept Applied and can confirm it's working! :) |
Steps to reproduce
Expected behaviour
Upload progress bar should display and proceed as normal. I expect everything to work as long as the file size is lesser than the configured max upload limit i.e. 511 MB.
Actual behaviour
Upload fails silently.
However, if the user quota is increased such that it is non-zero but still lesser than the file size, the upload fails with a message like 'insufficient quota'.
The error logs indicate that for a small file, it is
PUT
into the group folder directly. Whereas for larger files requiring chunked transfer, it usesMKCOL
to create a temporary folder in the user's directory where the quota is zero. But this shouldn't matter, because as soon as the transfer finishes, it is moved to the group folder and does not require quota from the user.I haven't had time to investigate this, but I believe that either the temporary chunked uploads should go into some private part of the group folder OR have some way of bypassing the user quota when it is not intended for the user's storage.
Server configuration
Operating system: NixOS 18.03
Web server: Nginx 1.15.0
Database: PostgreSQL 10.4
PHP version: 7.2.10
Nextcloud version: 14.0.0
Logs
These logs are the results from attempting to upload two files. The first 400 KB file succeeds, but the 46 MB file fails silently.
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
The text was updated successfully, but these errors were encountered: