Nextcloud Client - Timeout with Large Files
-
I am getting a "Connection closed" error when trying to sync a file > 700 MB. The upload/ sync is through their Windows desktop client, not through GUI. I found that there is a
request_terminate_timeout
option as mentioned here. I am not sure if this error is related.Did anyone face this problem?
-
@neurokrish I think
request_terminate_timeout
in a PHP-fpm configuration. We use modphp in cloudron, so that setting is not the fix.Do you see any error in the nextcloud logs when the upload fails ?
-
@girish nothing in the logs. When I watch the progress in the desktop client as the file gets uploaded, everything seems to be going on fine until it fails with a "connection closed" error. Is there any other way I can troubleshoot and report?
-
@girish the file uploaded successfully. I noticed that each time it tried to upload the file, some of it was presumably cached somewhere. So, it did not restart from zero but at some % of the file (e.g., starts at 300 MB or 500 MB and so on for a 770 MB file). In the end as this happened, it had only a part of the file left to upload and perhaps could finish it within a certain time limit set somewhere.
So, I guess, we need to increase the timeout period for the client but I have no idea how. Here is some more info. from their website, which may help you troubleshoot.
EDIT: that link is probably for file upload through GUI. may be one can play with the chunk size for upload and change it to 20 MB from the default of 10 MB. This way, the upload will be faster and get around the timeout issue? Not sure..
-
@neurokrish do you see any errors reported by the app in the app logs at the point when the upload fails? Also check if the app gets restarted due to memory limits on Cloudron side.
-
@nebulon nothing in the log file of the nextcloud Cloudron app. However, after looking around, I think it is the Windows client issue. I have the exact same error as mentioned here (looked into the Windows client logs) . They suggest a fix changing values in
mod_reqtimeout
in apache. Can you look into this and let me know if I can change anything to test? -
@neurokrish this module is not enabled on Cloudron's apache. So, I think it's probably some client side issue.