Why do you overwrite ../lib/private/Http/Client/Client.php again with false values?

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2): 18.0.3
Operating system and version (eg, Ubuntu 17.04): ubuntu-server 18.04.4
Apache or nginx version (eg, Apache 2.4.25): NGinx 1.17.4
PHP version (eg, 7.1): 7.3

The issue you are facing: Could not connect to appstore: cURL error 28: Connection timed out after 10001 milliseconds (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Is this the first time you’ve seen this error? (Y/N): N

Steps to replicate it:

  1. repair the RequestOptions::TIMEOUT => 30 , value in /var/www/nextcloud/lib …
  2. set value to a working value RequestOptions::TIMEOUT => 600,
  3. make the update to NC 18.0.3
  4. see your error log and see that the error is back
  5. repair the file “Client.php” again and remark that the error disappears again

I have adjusted that value already in 18.0.1 and again in 18.0.2 now a third time.
Please set the default value in this file “Client.php” to RequestOptions::TIMEOUT => 600,

THX :slight_smile:

Please make change request to the code in the bug tracker: https://github.com/nextcloud/server/issues
However, such long time to connect is a bit strange. Do you have a slow internet connection or do you have network problems?

Nothing of both!

My Speed is very good, and other web applications are running like a charm.

It is a Nextcloud Problem and highly advised by one of your Nextcloud professionals himself!

Please compare this advice with my post above:

https://www.c-rieger.de/nextcloud-alert/

It is recommented that since document server is integrated in Nextcloud, app store should have a larger Timeout value because your shop is too slow for that amount of data.

Here is my Speedtest of today:

and from speed.hetzner.de?

The Link you gave is no speed test it is just a testfile download

I gave you the reference speedtest results … believe me, my inet speed is awfully great :slight_smile:

and you can download it and check the speed. It’s in the same datacenter. Speed can also depend on the peering between large ISP.

OK made the Download - but same here - my VDSL Speed shouldn’t be the bottleneck

here the pics of today

and a second one

Or DNS problem, that getting the hostname the first time takes a long time? If you use the command line, they disabled the timeouts since 18.0.2, so if you use the occ command it should be working (https://github.com/nextcloud/server/pull/19430). For the webinterface, they are more careful not to end up with a non-responsive update procedure just because something is not available (servers down, non-working internet connection, …).

OK Nextcloud Updater should then be more attentive with existing Configurations!

It is senseless if NC ignore those settings without questioning to change existing settings.
NC should more carefully like samba or other serverside settings. When updating here with a new config then the (linux) updater is asking the admin for overwrite config or leaving existing one.

Or make the Timeout Value as variable that could be set by admin and can be read by the config file, so that values stay unchanged.

Or give the local admins more options to modify the update process so that you have the choice to leave files modified and not overwritten by a “stupid” updater.

And i’m not alone with the problem, that the existing Timeout Limits are too strong for many others either. When the same problem has been posted again and again (thanks for the links of the issue github db) then it might be a good advice to investigate why higher values solve the timeout problems and why other admins who recommend those values (see my link in post 3) running better with that.

Sorry, but this is no option or setting. You just manually changed the code. How do you want an updater app to know, if such a manual change will work in a new version? If they changed the logic of some function or even removed parts of the code that you changed?

That would be the proper solution. Make a feature request on github.

Sure that would be great. If it is not the connection speed like in your case, it would be great to know. However, it needs a system with that problem. From the logs, it seems that curl is used, if you get the URL that creates the large timeout, you can manually start curl from the command line in debugging mode (option -v, add more v to increase debug level) so you can see what takes so much time.