nextcloud_ynh
nextcloud_ynh copied to clipboard
Community Document Server installtion fails due to cURL timeout
When trying to install the "Community Document Server" app in Nextcloud it stops with a timeout due to the cURL command taking more than 120s.
The error is:
cURL error 28: Operation timed out after 120000 milliseconds with 248456116 out of 378283893 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
I think this timeout should be increased if it is in the hand of the Yunohost App, it seems the server this Nextcloud app is installed from it pretty slow, seems to be around 30MBit/s for the download.
This is what I am trying to do.
It can happen, try installing with command line :
sudo -u nextcloud php7.3 -d memory_limit=512M /var/www/nextcloud/occ app:install documentserver_community
After trying again and again it worked at some point. I think this could be fixed by allowing cURL execution time higher than 120 s.
Not sure about memory limit that you, @Thovi98, are suggesting.
Okay, sorry that it didn’t work for you, as it worked for me (it was maybe for another reason). Glad to see that now it worked for you !
The purpose of this issue was that someone sets the timeout higher for NextCloud in Yunohost. Or maybe this is better to be implemented upstream, but someone here should know how to implement it.
I have been working on this for 2 days ans finally got to watch at this
https://help.nextcloud.com/t/community-document-server-curl-error-28-operation-timed-out-after-120000-millisecond/80589/17
B