# Downloading certain Apps not working

**URL:** <https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603>\
**Category:** ℹ️ Support\
**Tags:** nc17, office\
**Created:** [October 23, 2019, 8:22pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603 "2019-10-23T20:22:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![padwa](https://help.nextcloud.com/letter_avatar/padwa/32/5_5575768a8748004e209b776fc1b2916d.png) [@padwa](https://help.nextcloud.com/u/padwa)\
**Post date:** [October 23, 2019, 8:22pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/1 "2019-10-23T20:22:00Z")

</div>

Hi, i’ve got a Nextcloud instance running on ubuntu.  
This instance got migrated from CentOS, but I’ve already tried a new installation, the problem still persists.  
The problem is, i’cant install certain apps out of the appstore. Some are downloadable, e.g. the W2G app, but others are failing with the error: _“cURL error 28: Operation timed out after 30000 milliseconds with 1113682 out of 3112147 bytes received (see [http://curl.haxx.se/libcurl/c/libcurl-errors.html](http://curl.haxx.se/libcurl/c/libcurl-errors.html))”_, for example the deck app.

[/details]

Nextcloud version 17.0.0.9  
Operating system and version Ubuntu 19.10  
Apache or nginx version 2.4.41  
PHP version 7.3

The issue you are facing:

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

Steps to replicate it:

1. Try to install the Deck app
2. 
3. 

The output of your Nextcloud log in **Admin \> Logging** :

[settings] Error: GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 30000 milliseconds with 1026642 out of 3112147 bytes received (see [http://curl.haxx.se/libcurl/c/libcurl-errors.html](http://curl.haxx.se/libcurl/c/libcurl-errors.html)) at \<\>

1. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 149  
GuzzleHttp\Handler\CurlFactory::createRejection(GuzzleHttp\Handl … l}, {errno: 28,error … 1})  
Dieser Text wird versteckt/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 102  
GuzzleHttp\Handler\CurlFactory::finishError(GuzzleHttp\Handler\CurlHandler {}, GuzzleHttp\Handl … l}, GuzzleHttp\Handler\CurlFactory {})
2. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php line 43  
GuzzleHttp\Handler\CurlFactory::finish(GuzzleHttp\Handler\CurlHandler {}, GuzzleHttp\Handl … l}, GuzzleHttp\Handler\CurlFactory {})
3. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php line 28  
GuzzleHttp\Handler\CurlHandler-\>\_\_invoke("\*\*\* sensitive parameter replaced _ **", "** _ sensitive parameter replaced \*\*\*")
4. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php line 51  
GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler{closure}("\*\*\* sensitive parameters replaced \*\*\*")
5. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php line 37  
GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler{closure}("\*\*\* sensitive parameters replaced \*\*\*")
6. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 30  
GuzzleHttp\PrepareBodyMiddleware-\>\_\_invoke("\*\*\* sensitive parameter replaced _ **", "** _ sensitive parameter replaced \*\*\*")
7. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php line 70  
GuzzleHttp\Middleware::GuzzleHttp{closure}("\*\*\* sensitive parameters replaced \*\*\*")
8. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php line 107  
GuzzleHttp\RedirectMiddleware-\>\_\_invoke("\*\*\* sensitive parameter replaced _ **", "** _ sensitive parameter replaced \*\*\*")
9. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php line 72  
GuzzleHttp\RedirectMiddleware-\>checkRedirect(GuzzleHttp\Psr7\Request {}, “\*\*\* sensitive parameter replaced _ **", "** _ sensitive parameter replaced \*\*\*”)
10. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/FulfilledPromise.php line 39  
GuzzleHttp\RedirectMiddleware-\>GuzzleHttp{closure}("\*\*\* sensitive parameters replaced \*\*\*")
11. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php line 47  
GuzzleHttp\Promise\FulfilledPromise::GuzzleHttp\Promise{closure}("\*\*\* sensitive parameters replaced \*\*\*")
12. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 246  
GuzzleHttp\Promise\TaskQueue-\>run(true)
13. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 223  
GuzzleHttp\Promise\Promise-\>invokeWaitFn()
14. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 267  
GuzzleHttp\Promise\Promise-\>waitIfPending()
15. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 225  
GuzzleHttp\Promise\Promise-\>invokeWaitList()
16. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 62  
GuzzleHttp\Promise\Promise-\>waitIfPending()
17. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 131  
GuzzleHttp\Promise\Promise-\>wait()
18. /var/www/nextcloud/lib/private/Http/Client/Client.php line 144  
GuzzleHttp\Client-\>request(“get”, “[https://github](https://github). … z”, {proxy: null,ver … e})
19. /var/www/nextcloud/lib/private/Installer.php line 269  
OC\Http\Client\Client-\>get(“[https://github](https://github). … z”, {save\_to: "/mnt/ … "})
20. /var/www/nextcloud/settings/Controller/AppSettingsController.php line 444  
OC\Installer-\>downloadApp(“deck”)
21. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 170  
OC\Settings\Controller\AppSettingsController-\>enableApps([“deck”], [])
22. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99  
OC\AppFramework\Http\Dispatcher-\>executeController(OC\Settings\Cont … {}, “enableApps”)
23. /var/www/nextcloud/lib/private/AppFramework/App.php line 126  
OC\AppFramework\Http\Dispatcher-\>dispatch(OC\Settings\Cont … {}, “enableApps”)
24. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47  
OC\AppFramework\App::main(“OC\Settings\C … r”, “enableApps”, OC\AppFramework\ … {}, {\_route: "settin … "})
25. \<\>  
OC\AppFramework\Routing\RouteActionHandler-\>\_\_invoke({\_route: "settin … "})
26. /var/www/nextcloud/lib/private/Route/Router.php line 297  
undefinedundefinedcall\_user\_func(OC\AppFramework\ … {}, {\_route: "settin … "})
27. /var/www/nextcloud/lib/base.php line 1000  
OC\Route\Router-\>match("/settings/apps/enable")
28. /var/www/nextcloud/index.php line 42  
OC::handleRequest()

POST /settings/apps/enable  
from 217.236.117.163 by \*\*\*\* at 2019-10-23T20:10:14+00:00

The output of your config.php file

\<?php $CONFIG = array ( 'passwordsalt' =\> '\*\*\*\*\*\*\*\*', 'secret' =\> '\*\*\*\*\*\*\*\*', 'trusted\_domains' =\> array ( 0 =\> '\*\*\*\*\*\*\*\*\*', ), 'datadirectory' =\> '/mnt/cloudData/data', 'dbtype' =\> 'mysql', 'version' =\> '17.0.0.9', 'overwrite.cli.url' =\> 'http://localhost', 'dbname' =\> 'nextcloud', 'dbhost' =\> 'localhost', 'dbport' =\> '', 'dbtableprefix' =\> 'oc\_', 'dbuser' =\> '\*\*\*\*\*\*\*', 'dbpassword' =\> '\*\*\*\*\*\*\*\*', 'installed' =\> true, 'htaccess.RewriteBase' =\> '/', 'instanceid' =\> '\*\*\*\*\*\*\*', 'memcache.local' =\> '\\OC\\Memcache\\APCu', 'maintenance' =\> false, 'theme' =\> '', 'loglevel' =\> 2, 'memcache.distributed' =\> '\\OC\\Memcache\\Redis', 'redis' =\> array ( 'host' =\> '/var/run/redis/redis.sock', 'port' =\> 0, 'timeout' =\> 0, 'password' =\> '\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* ), 'memcache.locking' =\> '\\OC\\Memcache\\Redis', 'updater.release.channel' =\> 'stable', 'twofactor\_enforced' =\> 'true', 'twofactor\_enforced\_groups' =\> array ( ), ), 'twofactor\_enforced\_excluded\_groups' =\> array ( 0 =\> '\*\*\*\*\*\*\*\*\*\*\*', ), 'trusted\_proxies' =\> array ( 0 =\> '\*\*\*\*\*\*\*\*', ), 'data-fingerprint' =\> '\*\*\*\*\*\*\*\*\*\*\*\*', );

---

<div class="post-metadata">

**Author:** ![TP75](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tp75/32/12565_2.png) [@TP75](https://help.nextcloud.com/u/TP75)\
**Post date:** [October 23, 2019, 8:29pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/2 "2019-10-23T20:29:07Z")

</div>

@padwa Hi Dwayne and welcome.

AFAIK this can happen irregularly due to apparent traffic overload of the Nextcloud Appstore or similar.

Give it some time and retry the download later. Unfortunately, the ‘curl’ tool involved cannot deduce much and nobody thought about how to reduce this kind of message with certain url by means of an optional filter to the NC Logging apparently.

Furthermore, you could try to download the resp. Apps from the Nextcloud Appstore by help of your browser as a workaround. It is quite easy to copy the packaged app archives into the `nextcloud/apps` folder if you have access to CLI and feel familiar with such effort.  
🧑 😃

Please keep in mind you can destroy things when on the CLI and acting unwisely.  
😇

---

<div class="post-metadata">

**Author:** ![padwa](https://help.nextcloud.com/letter_avatar/padwa/32/5_5575768a8748004e209b776fc1b2916d.png) [@padwa](https://help.nextcloud.com/u/padwa)\
**Post date:** [October 23, 2019, 8:41pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/3 "2019-10-23T20:41:18Z")

</div>

Hi,

thanks for your fast answer, the problem persists since two or three weeks now, so this is unlikely.  
Is there any way to set the timeout manually to a higher value?

---

<div class="post-metadata">

**Author:** ![TP75](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tp75/32/12565_2.png) [@TP75](https://help.nextcloud.com/u/TP75)\
**Post date:** [October 23, 2019, 9:05pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/4 "2019-10-23T21:05:00Z")

</div>

You may take a look at: [Add config option to change curl timeout #21821](https://github.com/owncloud/core/issues/21821)  
However, this may not meet your needs in a timely fashion or be no solution at all to you , I presume

* * *

In the meantime you should just download the app package file by help of your internet browser as mentioned above, I propose. Furthermore, there is [the ‘wget’ tool for CLI](https://en.wikipedia.org/wiki/Wget) which could be of assistance to you in low bandwidth scenarios or after a download interrupt.

[Docs » Apps management](https://docs.nextcloud.com/server/stable/admin_manual/apps_management.html)

Unpack the file in a local folder after the download succeeded. Put the resulting folder and all it’s contents just under `nextcloud/apps` by means of an applicable `sudo -u www-data` copy command on CLI by using the correct user name for your NC server install. Enable this App by help of the `occ` command on CLI (the preferred way for this kind of activities) or in the NC administration GUI as appropriate. Never make more than one sole folder as copy of this or similar NC App package in parallel folders with different names from same NC Apps (e.g., due to renaming for backup) in `nextcloud/apps` as this would bring quite a trouble.

Please think first, act second only and always have the protection of your data in mind. 😇

* * *

Generally speaking you could add a [proxy cache](https://en.wikipedia.org/wiki/Web_cache) to your local network or install such a thingie on your local computer. Routing any traffic through such self managed internet service could be quite helpful for downloads against regular interrupts or in lastingly bad network conditions.

@padwa Please accept my apologies if I cannot be of a greater assistance.

---

<div class="post-metadata">

**Author:** ![TP75](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tp75/32/12565_2.png) [@TP75](https://help.nextcloud.com/u/TP75)\
**Post date:** [November 2, 2019, 10:25pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/5 "2019-11-02T22:25:55Z")

</div>

> [@padwa](#):
>
> thanks for your fast answer, the problem persists since two or three weeks now, so this is unlikely.  
> Is there any way to set the timeout manually to a higher value?

Any news?  
😸

* * *

## Await a **fix** to heal the apparent core issue

see below:

> [@Downloading certain Apps not working](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/11):
>
> Hi, I’ve solved the Problem by manually Setting the Value for "RequestOptions::TIMEOUT " to 120 or a higher value in the following file: “/path/to/nextcloud/lib/private/Http/Client/Client.php” In this File, there’s a hard coded timeout for cURL, which is used for Appdownloads. After this Change, everything is working. This soloution is found here:

* * *

## Presumably **outdated** by the apparent fix:

There may be a solution available to overcome interrupted downloads like:

> [@Update from 16.0.1 to 16.0.5 (Privacy and Recommendations "Apps Missing Updates")](https://help.nextcloud.com/t/update-from-16-0-1-to-16-0-5-privacy-and-recommendations-apps-missing-updates/63182/4):
>
> After researching this, I was able to fix it by going into /etc/php/7.0/apache2/php.ini and doing the following: setting max\_execution\_time to 3600 setting max\_input\_time to 3600 Then, navigate to /var/www/html/nextcloud (at least in my case) and issue the following command: sudo -u www-data php occ maintenance:repair Once completed, I was able to restart the updater in the web interface to complete my upgrade. I’m all set! Thanks for everything slight_smile

However, you should always prefer the most current PHP 7.3 official package for NC 15 & NC 16 & NC 17 installs instead of PHP 7.2 if feasible. Please be also aware of the correct paths to two different `php.ini` files. Always heed the [PHP syntax](https://www.php.net/docs.php) in each of the `php.ini` config files, I presume.

This example is suitable for the Apache 2.x web server only.

Please consult the [NC 16 Admin Docs » Nextcloud configuration](https://docs.nextcloud.com/server/16/admin_manual/configuration_server/index.html) for the admin tasks in general.

Point the plain text editor of your convenience at both `/etc/php/7.3/apache2/php.ini` and `/etc/php/7.3/cli/php.ini` to change the following:

- setting the parameter`max_execution_time` to `3600` i.e. one hour

```auto

; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
; default: max_execution_time = 30
max_execution_time = 3600

```

- setting the parameter `max_input_time` to `3600` i.e. one hour

```auto

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
; Note: This directive is hardcoded to -1 for the CLI SAPI
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://php.net/max-input-time
; default: max_input_time = 60
max_input_time = 3600

```

However, please consider to use more conservative values (i.e. lower numbers) for avoiding unexpectedly long running scripts which could result in unwanted load to your server performance.

- [http://php.net/max-execution-time](http://php.net/max-execution-time)
- [http://php.net/max-input-time](http://php.net/max-input-time)

Hope this helps.  
😄

---

<div class="post-metadata">

**Author:** ![Ruebezahl](https://help.nextcloud.com/letter_avatar/ruebezahl/32/5_5575768a8748004e209b776fc1b2916d.png) [@Ruebezahl](https://help.nextcloud.com/u/Ruebezahl)\
**Post date:** [November 3, 2019, 1:52pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/6 "2019-11-03T13:52:29Z")

</div>

Hallo,  
I have the same problems with different Nextcloud (17.0) installations at different places. So I think it has nothing to do with the internet connection. Some apps I could update, but with some it is impossible (Bookmarks, Talk …).  
I tried to find the file with the timeout-options but it does not exist (like in the owncloud link above).  
What else could help to solve the problem?  
Thank you!  
Ruebezahl

---

<div class="post-metadata">

**Author:** ![TP75](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tp75/32/12565_2.png) [@TP75](https://help.nextcloud.com/u/TP75)\
**Post date:** [November 3, 2019, 8:35pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/7 "2019-11-03T20:35:31Z")

</div>

The above example is suitable for NC 17 similarily.

Please consult the [NC 17 Admin Docs » Nextcloud configuration](https://docs.nextcloud.com/server/17/admin_manual/configuration_server/index.html) for the admin tasks in general.

Hope this helps.  
😃

---

<div class="post-metadata">

**Author:** ![Xohoo378](https://help.nextcloud.com/user_avatar/help.nextcloud.com/xohoo378/32/19949_2.png) [@Xohoo378](https://help.nextcloud.com/u/Xohoo378)\
**Post date:** [November 4, 2019, 2:41pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/8 "2019-11-04T14:41:18Z")

</div>

Hello,  
same problem here on a fresh nextcloud 17.0 installation on raspbian with nginx and php 7.3.11.  
Some small apps were downloaded and installed successfully, but larger app installations fail.  
Changing max\_execution\_time or max\_input\_time in `/etc/php/7.3/cli/php.ini` or `/etc/php/7.3/fpm/php.ini` didn’t fix the problem.  
I also tried searching the config files for nc and php but couldn’t find the right timeout anywere.  
This [https://stackoverflow.com/questions/21501159/curl-error-operation-timed-out](https://stackoverflow.com/questions/21501159/curl-error-operation-timed-out) may fix the issue, but I don’t know were the right place for this would be.

I would be very happy about some help on this, thanks.

---

<div class="post-metadata">

**Author:** ![TP75](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tp75/32/12565_2.png) [@TP75](https://help.nextcloud.com/u/TP75)\
**Post date:** [November 4, 2019, 2:50pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/9 "2019-11-04T14:50:10Z")

</div>

Did you **restart the web service** to make the changed parameters work accordingly?

I appreciate your approach to look for other solutions like CURL optimisations.

* * *

Furtherly:

> [@Xohoo378](#):
>
> nextcloud 17.0 installation on raspbian with nginx and php 7.3.11

Learning of your configuration I would like to point at two more articles:

(1) some advice on Apache versus NGINX install

> [@Urgent security issue in NGINX/php-fpm](https://help.nextcloud.com/t/urgent-security-issue-in-nginx-php-fpm/62665/55):
>
> You may consult the below article for background information.  
> [Why NextCloudPi uses Apache and not Nginx](https://ownyourbits.com/2017/06/12/why-nextcloudpi-uses-apache-and-not-nginx/)

(2) the availabilty of a pre-packaged NC for Rasp out-of-the box effort like NCP

- [NextCloudPi (NCP)](https://ownyourbits.com/nextcloudpi/)

Happy hacking.  
🌻

---

<div class="post-metadata">

**Author:** ![Xohoo378](https://help.nextcloud.com/user_avatar/help.nextcloud.com/xohoo378/32/19949_2.png) [@Xohoo378](https://help.nextcloud.com/u/Xohoo378)\
**Post date:** [November 4, 2019, 3:10pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/10 "2019-11-04T15:10:14Z")

</div>

> [@TP75](#):
>
> Did you **restart the web service** to make the changed parameters work accordingly?

Sure, I restarted the web server, and since this did not fix the problem, rebooted the whole system.

---

<div class="post-metadata">

**Author:** ![padwa](https://help.nextcloud.com/letter_avatar/padwa/32/5_5575768a8748004e209b776fc1b2916d.png) [@padwa](https://help.nextcloud.com/u/padwa)\
**Post date:** [November 4, 2019, 8:54pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/11 "2019-11-04T20:54:59Z")

</div>

Hi,

I’ve solved the Problem by manually Setting the Value for  
_"RequestOptions::TIMEOUT "_  
to 120 or a higher value in the following file:  
“/path/to/nextcloud/lib/private/Http/Client/Client.php”  
In this File, there’s a hard coded timeout for cURL, which is used for Appdownloads.  
After this Change, everything is working.  
This soloution is found here:

> <https://github.com/nextcloud/server/issues/17685>
>
> Steps to reproduce
> Try to update an app in web interface.
> Actual behaviour
> The hard timeout of 30s in Client.php (/var/www/nextcloud/lib/private/Http/Client/Client.php) leads to premature...

---

<div class="post-metadata">

**Author:** ![TP75](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tp75/32/12565_2.png) [@TP75](https://help.nextcloud.com/u/TP75)\
**Post date:** [November 4, 2019, 9:07pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/12 "2019-11-04T21:07:57Z")

</div>

@padwa Good catch, I guess. 👍

Hm, there was a commit establishing such value for the first time to the code just 2 months ago. Would fit with the observed download drop-outs, I presume.

😄

* * *

Please everybody note I took the liberty to just copy & paste from ‘@padwa’ - ‘Dwayne Parker’ - to produce the below issue report to nextcloud/server

- [improve the timeout value for CURL #17808](https://github.com/nextcloud/server/issues/17808)

Note: The here contribution was copied by @padwa from

- [Appstore Update Timeout due to Client.php #17685](https://github.com/nextcloud/server/issues/17685)

Hope this helps.  
😄

* * *

Some early birds and this report are comprised as:

- [Set timeout for http requests to 10min #17807](https://github.com/nextcloud/server/pull/17807)

Happy hacking.  
👋

---

<div class="post-metadata">

**Author:** ![Ruebezahl](https://help.nextcloud.com/letter_avatar/ruebezahl/32/5_5575768a8748004e209b776fc1b2916d.png) [@Ruebezahl](https://help.nextcloud.com/u/Ruebezahl)\
**Post date:** [November 4, 2019, 10:52pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/13 "2019-11-04T22:52:59Z")

</div>

Hi,  
I tried the solution from padwa but in this file was no entry with “… TIMEOUT”.  
I found another solution that worked on two nextcloud server: the bookmarks-app was unable to update. So I deactivated it, deleted it and installed it new. This was working without errors. Than I tried to update Talk and the other apps that were impossible to update before: and it worked for all apps as fast as ever!  
Maybe here was only the bookmarks app blocking the updates?

---

<div class="post-metadata">

**Author:** ![TP75](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tp75/32/12565_2.png) [@TP75](https://help.nextcloud.com/u/TP75)\
**Post date:** [November 4, 2019, 11:05pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/14 "2019-11-04T23:05:00Z")

</div>

> [@Ruebezahl](#):
>
> tried the solution from padwa but in this file was no entry with “… TIMEOUT”.

Depends on the NC version and this value was introduced to the code only recently.

---

<div class="post-metadata">

**Author:** ![padwa](https://help.nextcloud.com/letter_avatar/padwa/32/5_5575768a8748004e209b776fc1b2916d.png) [@padwa](https://help.nextcloud.com/u/padwa)\
**Post date:** [November 5, 2019, 12:17pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/15 "2019-11-05T12:17:08Z")

</div>

Just to clarify this, this is not my solution, I found this solution in the following Github Issue:

> <https://github.com/nextcloud/server/issues/17685>
>
> Steps to reproduce
> Try to update an app in web interface.
> Actual behaviour
> The hard timeout of 30s in Client.php (/var/www/nextcloud/lib/private/Http/Client/Client.php) leads to premature...

---

<div class="post-metadata">

**Author:** ![knedlyk](https://help.nextcloud.com/letter_avatar/knedlyk/32/5_5575768a8748004e209b776fc1b2916d.png) [@knedlyk](https://help.nextcloud.com/u/knedlyk)\
**Post date:** [January 28, 2020, 4:27pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/17 "2020-01-28T16:27:13Z")

</div>

It works until next upgrade…

---

<div class="post-metadata">

**Author:** ![MosfetWall](https://help.nextcloud.com/letter_avatar/mosfetwall/32/5_5575768a8748004e209b776fc1b2916d.png) [@MosfetWall](https://help.nextcloud.com/u/MosfetWall)\
**Post date:** [March 24, 2020, 6:37pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/18 "2020-03-24T18:37:27Z")

</div>

Ty,

It helped me install Document Server Community

---

<div class="post-metadata">

**Author:** ![Rainer\_Klute](https://help.nextcloud.com/user_avatar/help.nextcloud.com/rainer_klute/32/61163_2.png) [@Rainer\_Klute](https://help.nextcloud.com/u/Rainer_Klute)\
**Post date:** [December 19, 2020, 11:32am UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/19 "2020-12-19T11:32:35Z")

</div>

At least in Nextcloud 20.0.4, there’s a hardcoded limit of 120 seconds. I was just able to solve the problem by increasing this limit. After that, I successfully downloaded the _Collabora Online - Built-in CODE Server_ app.

Look for the following line in **/path/to/nextcloud/lib/private/Installer.php** , and change the 120 to what you see fit:

**$timeout = $this-\>isCLI ? 0 : 120;**

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 10:41am UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/20 "2024-12-04T10:41:16Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 3:50pm UTC](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603/21 "2024-12-11T15:50:00Z")

</div>


