nextcloud_ynh icon indicating copy to clipboard operation
nextcloud_ynh copied to clipboard

Community Document Server installtion fails due to cURL timeout

Open utzer opened this issue 3 years ago • 5 comments

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.

utzer avatar Dec 12 '20 10:12 utzer

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

Thovi98 avatar Dec 14 '20 13:12 Thovi98

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.

utzer avatar Dec 15 '20 22:12 utzer

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 !

Thovi98 avatar Dec 15 '20 22:12 Thovi98

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.

utzer avatar Dec 16 '20 13:12 utzer

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

15538 avatar Jan 17 '21 14:01 15538