Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 438272 bytes) in /var/www/html/3rdparty/composer/autoload_real.php on line 37
this has nothing to do with the shape of the cron command, when upgraded to nextcloud 21 (from rc2 in my case) the occ command simply runs out of all available memory.
Tried php 7.0 7.3 8.0 nothing changes.
Nothing on the logs, system, php or nextcloud.
This is a BIG problem as without occ the installation is stuck in maintenance mode after the upgrade…
Update broke my installation too. The problem so far is that occ doesn’t do a thing here and always bails out with the same memory error. I tried to give the PHP process 8 GB of memory… nope.
Update 1:
in config/config.php you can disable the maintenance mode - find the line 'maintenance' => true, and set it to ‘false’ and you’re good to go back on the web updater.
cron is still an issue as it relies on occ…
Same issue here, tried with php7.3, php7.4, php.8.0, tried editing memory limit in php.ini & the command line -1, to no avail. occ simply gets killed every time. Thank God I didn’t go through with the browser upgrade, would’ve crashed my install. I just hope this gets fixed in a future release, looking forward to test drive 21.
I limited the memory to 8 GB and it went into ‘OOM’ mode… I don’t think that removing the limit is THE solution as it will just feast on memory. (upadte:) … until the OOM killer sets a stop to it.
Similar, after upgrading to version 21, the occ upgrade command got a segmentation fault.
So I manually upgraded, the instance works in the cloud, but the occ command always uses up all RAM and returns with a segmentation fault. Is this a nextcloud error or php?
I had APCu activated in the nextcloud config.php. It seems I didn’t have apc.enable_cli=1 in /etc/php/8.0/cli/conf.d/20-apcu.ini. After I added that line to the file occ worked and there was no segmentation error anymore.