[nextcloud] Running occ command php fatal error
Description:
Since upgrading to Nextcloud 21 I get following error trying to run ./occ or any php file inside the Nextcloud directory:
$ sudo -u http ./occ update
PHP Warning: Module “gd” is already loaded in Unknown on line 0
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php on line 133
This bug occours with php8 and php7 :/ Somehow Nextcloud is running fine through php-fpm and Caddy as web frontend.
Additional info:
* package version(s): nextcloud 21.0.0-4
* config and/or log files etc. https://help.nextcloud.com/t/occ-command-php-fatal-error-allowed-memory-size-of-xxx-bytes-exhausted/108521
* link to upstream bug report, if any https://help.nextcloud.com/t/occ-command-php-fatal-error-allowed-memory-size-of-xxx-bytes-exhausted/108521
Would be happy if someone got some clues for debugging :)
Regareds
Jonas