-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Bug]: Upload using web interface has continuous long pauses without doing anything #34781
Comments
Theory: you see the progress bar advance while the buffers are flushed through the network, even when the data hasn't fully reached the PHP process. Then once the PHP process starts working, this seems to cause a delay. Note: you cannot compare the upload behavior with other solutions as the deployments and frameworks (non-PHP) used there are different |
I have tested this locally with a 400 MB file and I don't see those pauses between chunks, so it's definitely not a new bug. Now if you're uploading multiple files that are bigger than 10 MB, it will use chunking and you'll see "pauses in the middle of the progress bar" that correspond to the chunk assembly of each of the files. Note: you can also increase the chunk size for the web UI here: https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html#adjust-chunk-size-on-nextcloud-side If your provider allows up to 100 MB you could set that value there so that you don't get those chunk assembly pauses for files < 100 MB. |
ref: some research about making chunk assembly asynchronous: #28395 |
Can you check if that fixes your problem? |
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions. |
Bug description
During the upload of big files using web interface there are continuous insanely long pauses (pauses last several minutes not just few seconds) that make large files upload insanely slow.
Searching among forum some people suggested in similar cases that this is due chunks processing time, but I have carefully checked running processes and resources usage on the server to try to understand where is the sever bottleneck that cause these long pauses during upload but with my surprise CPU and disk usage are nearly idle status, so these delays cannot be justified with "server it is busy processing chunks" because this is not the case and server resources are blatantly unused while Nextcloud upload "sleep" in these pauses.
The problem isn't client side because if I try exactly the same upload with a different cloud provider e.g. OneDrive or Google Drive , it goes smooth without any of these weird pauses.
I use Cloudflare and my plan has a limit of 100MB max for each upload request but max chunk size is 100000000 byte so this shouldn't be a problem.
The cyclicality of the pauses suggests this is related with the chunks (the pauses happens at every 95.4MB uploaded with my chunk size set to 100000000 byte), but in any case, it is a bug because there isn't any resource limit or overuse that could justify these pauses.
Nextcloud version 25
Steps to reproduce
Expected behavior
Smooth upload without significant pauses.
Installation method
Community Manual installation with Archive
Operating system
Debian/Ubuntu
PHP engine version
PHP 7.4
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: