[Nextcloud] - Upload large file doesn't work with NC Client #416

Closed
opened 2023-01-27 19:07:55 +01:00 by meaz · 4 comments
Owner

I've done some tests with different big files (overs 600MB): I'm trying to upload them using NC desktop client (so basically just copying in my shared folder). It is uploading, but at the end of the upload, I see "Few seconds left, 800MB on 800MB" on the NC client windows. It stays for like 20 seconds, and then an error popup appears that says ".. 504 Gateway Timeout Error MOVE https://cloud.disroot.org....file"

It looks a bit like this: https://help.nextcloud.com/t/504-gateway-timeout-for-large-file-uploads/87839 or https://help.nextcloud.com/t/error-when-assembling-chunks-status-code-504-on-big-file-upload/99912

I've done some tests with different big files (overs 600MB): I'm trying to upload them using **NC desktop client** (so basically just copying in my shared folder). It is uploading, but at the end of the upload, I see "Few seconds left, 800MB on 800MB" on the NC client windows. It stays for like 20 seconds, and then an error popup appears that says ".. 504 Gateway Timeout Error MOVE https://cloud.disroot.org....file" It looks a bit like this: https://help.nextcloud.com/t/504-gateway-timeout-for-large-file-uploads/87839 or https://help.nextcloud.com/t/error-when-assembling-chunks-status-code-504-on-big-file-upload/99912
meaz added the
bug
Nextcloud
labels 2023-01-27 19:08:08 +01:00
meaz added this to the 23.02 - February milestone 2023-01-29 10:06:22 +01:00
Author
Owner

I've done some tests with webdav, same issue.

I've done some tests with webdav, same issue.
Author
Owner

I realized that when I upload large files I get the 504 Gateway timeout error in the NC desktop client. But if I just wait a minute or so, the file does make it into Nextcloud successfully. So it does work. The issue seems to come from the last step: when the file is copied from the temp folder.

Some tests we could do:

I realized that when I upload large files I get the 504 Gateway timeout error in the NC desktop client. But if I just wait a minute or so, the file does make it into Nextcloud successfully. So it does work. The issue seems to come from the last step: when the file is copied from the temp folder. Some tests we could do: * https://docs.nextcloud.com/server/20/admin_manual/configuration_files/big_file_upload_configuration.html * https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_max_temp_file_size * https://stackoverflow.com/questions/561946/how-do-i-prevent-a-gateway-timeout-with-fastcgi-on-nginx * https://help.nextcloud.com/t/504-gateway-timeout-issue-during-backup-with-nginx-during-update/92100
muppeth added this to the 23.02 - February project 2023-02-15 22:48:33 +01:00
muppeth removed this from the 23.02 - February project 2023-03-01 21:00:09 +01:00
muppeth modified the milestone from 23.02 - February to 23.03 - March 2023-03-01 21:00:12 +01:00
Author
Owner

@muppeth I've fixed it by setting fastcgi_read_timeout 3600s; to cloud nginx config on cloud instance.

That is one of the recommendations found here https://docs.nextcloud.com/server/20/admin_manual/configuration_files/big_file_upload_configuration.html

Though, I'm still wondering why it is not faster to move the file (MOVE https://cloud.disroot.org/whatever/.file). Would you have any idea?

@muppeth I've fixed it by setting `fastcgi_read_timeout 3600s;` to cloud nginx config on cloud instance. That is one of the recommendations found here https://docs.nextcloud.com/server/20/admin_manual/configuration_files/big_file_upload_configuration.html Though, I'm still wondering why it is not faster to move the file (`MOVE https://cloud.disroot.org/whatever/.file`). Would you have any idea?
Author
Owner

I'm closing this as this is fixed on prod.

I'm closing this as this is fixed on prod.
meaz closed this issue 2023-03-05 08:36:43 +01:00
muppeth added this to the 23.03 - March project 2023-03-08 12:15:17 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Disroot/Disroot-Project#416
No description provided.