# 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:** 1\
**Showing post:** 5

<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.  
😄

---

_[View the full topic](https://help.nextcloud.com/t/downloading-certain-apps-not-working/62603)._
