# Nextcloud no longer working after updating to 21

**URL:** <https://help.nextcloud.com/t/nextcloud-no-longer-working-after-updating-to-21/112058>\
**Category:** ℹ️ Support\
**Tags:** update\_problems, nc21\
**Created:** [March 27, 2021, 3:32am UTC](https://help.nextcloud.com/t/nextcloud-no-longer-working-after-updating-to-21/112058 "2021-03-27T03:32:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Einzbernmoe](https://help.nextcloud.com/letter_avatar/einzbernmoe/32/6_22734026db12803ebb3e059622ac3534.png) [@Einzbernmoe](https://help.nextcloud.com/u/Einzbernmoe)\
**Post date:** [March 27, 2021, 3:32am UTC](https://help.nextcloud.com/t/nextcloud-no-longer-working-after-updating-to-21/112058/1 "2021-03-27T03:32:52Z")

</div>

Nextcloud version _(eg, 20.0.5)_: `Nextcloud 21`  
Operating system and version _(eg, Ubuntu 20.04)_: `Manjaro Linux (linux 5.4)`  
Apache or nginx version _(eg, Apache 2.4.25)_: `Apache 2.4.46`  
PHP version _(eg, 7.4)_: `8.0.3`

The issue you are facing:  
After updating the nextcloud package through my package manager trying to load nextcloud only gives “Internal server error”. Trying to run OCC only results in:  
`PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php on line 133`  
This happens on both php versions 7.4 and 8.0.

Is this the first time you’ve seen this error? Y

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

`Cannot access logs since I cannot log in to web interface, and any attempts to get nextcloud to produce a log file have been met with no success`

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):  
`https://pastebin.com/L6MH5MKi`

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_22734026db12803ebb3e059622ac3534.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [March 27, 2021, 8:14am UTC](https://help.nextcloud.com/t/nextcloud-no-longer-working-after-updating-to-21/112058/2 "2021-03-27T08:14:06Z")

</div>

You are not the first one: [[SOLVED] Occ command; PHP Fatal error, Allowed memory size of XXX bytes exhausted - #3 by onny](https://help.nextcloud.com/t/solved-occ-command-php-fatal-error-allowed-memory-size-of-xxx-bytes-exhausted/108521/3)

---

<div class="post-metadata">

**Author:** ![Einzbernmoe](https://help.nextcloud.com/letter_avatar/einzbernmoe/32/6_22734026db12803ebb3e059622ac3534.png) [@Einzbernmoe](https://help.nextcloud.com/u/Einzbernmoe)\
**Post date:** [March 27, 2021, 8:23am UTC](https://help.nextcloud.com/t/nextcloud-no-longer-working-after-updating-to-21/112058/3 "2021-03-27T08:23:48Z")

</div>

I have gone through this and the posted solution did not work for me.  
Specifically, adding `apc.enable_cli=1` to `/etc/php/conf.d/apcu.ini` made no difference.

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_22734026db12803ebb3e059622ac3534.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [March 29, 2021, 11:17am UTC](https://help.nextcloud.com/t/nextcloud-no-longer-working-after-updating-to-21/112058/4 "2021-03-29T11:17:28Z")

</div>

Well, this command was just for the command line interaction. The origin is that you can have this error, if you enabled apcu in your Nextcloud config file but it is not properly enabled on your system. Perhaps try to comment out the corresponding line in your Nextcloud config, and if it works then, you can try to figure out what is wrong with your apcu setup.

---

<div class="post-metadata">

**Author:** ![Einzbernmoe](https://help.nextcloud.com/letter_avatar/einzbernmoe/32/6_22734026db12803ebb3e059622ac3534.png) [@Einzbernmoe](https://help.nextcloud.com/u/Einzbernmoe)\
**Post date:** [March 31, 2021, 6:23pm UTC](https://help.nextcloud.com/t/nextcloud-no-longer-working-after-updating-to-21/112058/5 "2021-03-31T18:23:48Z")

</div>

So disabling apcu outright allowed occ to work, however I am still getting an internal server error when I try to use the web interface. With php now working though, nextcloud has managed to produce some logs

> **[nextcloud.log - Pastebin.com](https://pastebin.com/0VFtZ3ky)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_22734026db12803ebb3e059622ac3534.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [April 1, 2021, 8:38am UTC](https://help.nextcloud.com/t/nextcloud-no-longer-working-after-updating-to-21/112058/6 "2021-04-01T08:38:03Z")

</div>

If you start searching with some of the terms, you can find a few github issues. Some are related to specific apps ([TypeError: substr(): Argument #3 ($length) must be of type ?int, bool given in /server/test/apps/notify\_push/lib/SetupWizard.php:84 · Issue #54 · nextcloud/notify\_push · GitHub](https://github.com/nextcloud/notify_push/issues/54)), other to the config with php 8 ([Errors logged during 20/21 installation · Issue #22590 · nextcloud/server · GitHub](https://github.com/nextcloud/server/issues/22590)), some other bug that will be fixed with NC 21.0.1 ([[stable21] Register service aliases und parameters just once by backportbot-nextcloud · Pull Request #25794 · nextcloud/server · GitHub](https://github.com/nextcloud/server/pull/25794)).

We don’t know what apps you are using. It’s a bit painful to go through all the links you find and check it out yourself. Apps are pretty easy if you can disable them temporarily. And it seems you don’t get the memory size error any more?

---

<div class="post-metadata">

**Author:** ![Einzbernmoe](https://help.nextcloud.com/letter_avatar/einzbernmoe/32/6_22734026db12803ebb3e059622ac3534.png) [@Einzbernmoe](https://help.nextcloud.com/u/Einzbernmoe)\
**Post date:** [April 1, 2021, 10:34pm UTC](https://help.nextcloud.com/t/nextcloud-no-longer-working-after-updating-to-21/112058/7 "2021-04-01T22:34:22Z")

</div>

> [@tflidd](#):
>
> And it seems you don’t get the memory size error any more?

Yes, disabling apcu resolved it

---

<div class="post-metadata">

**Author:** ![Einzbernmoe](https://help.nextcloud.com/letter_avatar/einzbernmoe/32/6_22734026db12803ebb3e059622ac3534.png) [@Einzbernmoe](https://help.nextcloud.com/u/Einzbernmoe)\
**Post date:** [April 2, 2021, 2:31am UTC](https://help.nextcloud.com/t/nextcloud-no-longer-working-after-updating-to-21/112058/8 "2021-04-02T02:31:21Z")

</div>

Well, disabling the logreader app made the error disappear, however i’m still getting an internal server error when I try to load the page

---

<div class="post-metadata">

**Author:** ![Einzbernmoe](https://help.nextcloud.com/letter_avatar/einzbernmoe/32/6_22734026db12803ebb3e059622ac3534.png) [@Einzbernmoe](https://help.nextcloud.com/u/Einzbernmoe)\
**Post date:** [April 4, 2021, 8:09pm UTC](https://help.nextcloud.com/t/nextcloud-no-longer-working-after-updating-to-21/112058/9 "2021-04-04T20:09:42Z")

</div>

Currently, this is all that is in the nextcloud log:

```auto
{"reqId":"Anab4OICvZ5E9kT4lIsd","level":0,"time":"April 02, 2021 02:34:58","remoteAddr":"","user":"--","app":"camerarawpreviews","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.0.18"}
{"reqId":"Anab4OICvZ5E9kT4lIsd","level":0,"time":"April 02, 2021 02:34:58","remoteAddr":"","user":"--","app":"serverDI","method":"","url":"--","message":"The requested alias \"PreviewManager\" is deprecated. Please request \"OCP\\IPreview\" directly. This alias will be removed in a future Nextcloud version.","userAgent":"--","version":"21.0.0.18"}
{"reqId":"Anab4OICvZ5E9kT4lIsd","level":0,"time":"April 02, 2021 02:34:58","remoteAddr":"","user":"--","app":"contacts","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.0.18"}
{"reqId":"Anab4OICvZ5E9kT4lIsd","level":0,"time":"April 02, 2021 02:34:58","remoteAddr":"","user":"--","app":"extract","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.0.18"}
{"reqId":"Anab4OICvZ5E9kT4lIsd","level":0,"time":"April 02, 2021 02:34:58","remoteAddr":"","user":"--","app":"files_external","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.0.18"}
{"reqId":"Anab4OICvZ5E9kT4lIsd","level":0,"time":"April 02, 2021 02:34:58","remoteAddr":"","user":"--","app":"files_sharing","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.0.18"}
{"reqId":"Anab4OICvZ5E9kT4lIsd","level":0,"time":"April 02, 2021 02:34:58","remoteAddr":"","user":"--","app":"group_everyone","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.0.18"}
{"reqId":"Anab4OICvZ5E9kT4lIsd","level":0,"time":"April 02, 2021 02:34:58","remoteAddr":"","user":"--","app":"music","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.0.18"}
{"reqId":"Anab4OICvZ5E9kT4lIsd","level":0,"time":"April 02, 2021 02:34:58","remoteAddr":"","user":"--","app":"suspicious_login","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.0.18"}

```

This information does not seem related to the error when trying to access nextcloud though

> **[apache log - Pastebin.com](https://pastebin.com/2Ww73GRb)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Apparently apache has been logging all the important stuff

---

<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 13, 2024, 9:01am UTC](https://help.nextcloud.com/t/nextcloud-no-longer-working-after-updating-to-21/112058/10 "2024-12-13T09:01:02Z")

</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 13, 2024, 9:01am UTC](https://help.nextcloud.com/t/nextcloud-no-longer-working-after-updating-to-21/112058/11 "2024-12-13T09:01:04Z")

</div>


