NC 21 Manual Update Issues

hello i just upgrade manually from nextcloud 20.0.7 to 21.0.0 but now here some error i am facing how can i fix this help me please

if i run

sudo -u apache php /var/www/nextcloud/occ db:add-missing-indices

its shows

PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 1052672 bytes) in /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php on line 133

Here Some Logs Got From Nextcloud loggs

{"reqId":"YDQZ09Riz1Kj2SUayR0QGAAAAE4","level":0,"time":"2021-02-22T20:53:39+00:00","remoteAddr":"192.168.1.100","user":"testuser","app":"music","method":"GET","url":"/index.php/apps/logreader/poll?lastReqId=YDQZ09Riz1Kj2SUayR0QFwAAAE0","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36","version":"21.0.0.18","id":"603419d3c5e16"}

Running Nextcloud version: 21.0.0
Running OS: Fedora 33
Apache: 2.4.46
PHP: 7.4

There seems to be an issue about this:

2 Likes

For many it seems to be fixed if apcu is enable in the command line:

add this line in /etc/php/*/cli/conf.d/20-apcu.ini (path depends a bit on the distribution used):

apc.enable_cli=1

4 Likes