Community Document Server - cURL error 28: Operation timed out after 120000 millisecond

Hello User,

how can i solved this problem?

cURL error 28: Operation timed out after 120000 milliseconds with 98581052 out of 315849196 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

I have found many case

https://duckduckgo.com/?q=+cURL+error+28%3A+Operation+timed+out+after+120000+millisecond&t=canonical&ia=web

My Docker System:

https://hub.docker.com/_/nextcloud

Thank you for the solution in 2020?

nc-kay

98 MB from 315 MB ?

Can you find the destination server and destination url or document?
Perhaps the server is not accessable. Test it with “ping”.

How can i test the ping for server, i use a Docker_Container at home?

ping xxxxxxxxxxxxxxxxx?

nc-kay

Test 2

cURL error 28: Operation timed out after 120000 milliseconds with 96196156 out of 315849196 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Test 3

cURL error 28: Operation timed out after 120000 milliseconds with 60649020 out of 315849196 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

############################

Where can i find "“/path/to/nextcloud/lib/private/Http/Client/Client.php” in my Docker_Container?

I think “curl” wants to connect to e.g. apps.nextcloud.com . Cann you “ping” server in the internet?

ping apps.nextcloud.com
PING apps.nextcloud.com (88.198.160.138) 56(84) bytes of data.

No, i don’t get any information.

But I can reach this site:

https://apps.nextcloud.com/

Perhaps you can test:

curl https://apps.nextcloud.com

wget https://apps.nextcloud.com

Host System: Ubuntu 18.04

curl https://apps.nextcloud.com

https://pastebin.com/gZf0f5SL

###############################################

wget https://apps.nextcloud.com

wget https://apps.nextcloud.com

–2020-05-06 11:08:57-- https://apps.nextcloud.com/
Auflösen des Hostnamens apps.nextcloud.com (apps.nextcloud.com) … 88.198.160.138
Verbindungsaufbau zu apps.nextcloud.com (apps.nextcloud.com)|88.198.160.138|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 161308 (158K) [text/html]
Wird in »index.html« gespeichert.

index.html 100%[===================================================================================================================>] 157,53K 788KB/s in 0,2s

2020-05-06 11:08:58 (788 KB/s) - »index.html« gespeichert [161308/161308]

What should i do, to solved the problem?

Host System: Ubuntu 18.04
Virtualbox Guest System: RancherOS with Nextcloud Container.

The connections between your server and the nextcloud-server works. But in the header you wrote somethink about “Community Document Server”. Can you post details? Do you know the name and/or ip-address of the server? Can you write somethink about the error-condition?

Hello, the RancherOS 1.5.5 with the Nextcloud Container is in my home-network.
RancherOS i a security only Docker-OS System.
Other apps, i can install in Nextctoud Container without problems.

This is a timeout issue in the NC code, however best not to use the app at all but install OO in a separate docker instance for example.

The Community Document Server does not save files properly.

Hello mvv_vmd, did you know a goot tutorial to “install OO in a separate docker instance for example”?

OO is OnlyOffice

https://hub.docker.com/r/onlyoffice/documentserver

How can i integrate onlyoffice/documentserver-Docker-Container in my Nextcloud-Docker-Container?

On my webbased server i can install the app Community Document Server.

This is the official documentation

But how can integrate the extern Docker-CommunityServer in my Nextcloud 18?

With the Onlyoffice NC app, you also need that for the Community Document Server app to work.

https://apps.nextcloud.com/apps/onlyoffice

Is this a good stable solution?

Than i use 3 Docker-Container.

https://hub.docker.com/_/nextcloud

https://hub.docker.com/_/mariadb

https://hub.docker.com/r/onlyoffice/documentserver

Greets

nc-kay

I don’t can Use the 3 Docker-Container Solution with RancherOS.

Distributive : 64-bit Red Hat, CentOS or other compatible distributive with kernel version 3.8 or later, 64-bit Debian, Ubuntu or other compatible distributive with kernel version 3.8 or later

and

Before you start ONLYOFFICE Community Server , you need to create the following folders:

RancherOS is an hardenend Linux System!

cURL error 28: Operation timed out after 120000 milliseconds with 99608124 out of 315849196 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Which other way i can use to solved the problem?

What worked to me was to change curl’s timeout at the time of invoking it by software installer in: [path to nextcloud]/lib/private/Installer.php. You will see a line that says something like:

// Download the release
$tempFile = $this->tempManager->getTemporaryFile('.tar.gz');
$timeout = $this->isCLI ? 0 : 120;
$client = $this->clientService->newClient();

Change the 120 (seconds) value and put something bigger or remove the condition and leave it always in 0 (unlimited, but perhaps not the best idea).

5 Likes

Work form me
Thanks

thanks, it’s work for me