Uppdate from Nextclous 20 -> 21 = php cronjob error

After updating form 20.0.8 to 21.0 the cronjob fails with this error message:

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

Update:
I get the exact same error message when I try to run the following recommend command from
the Security & setup warnings page: “occ db:add-missing-indices”

[/details]

Nextcloud version (eg, 20.0.5): 21.0
Operating system and version (eg, Ubuntu 20.04): Gentoo
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.46
PHP version (eg, 7.4): 7.4.15

Is this the first time you’ve seen this error? (Y/N): Y

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

<?php
$CONFIG = array (
'version' => '21.0.0.18',
'instanceid' => 'ocec... removed',
'passwordsalt' => '6da... removed',
'datadirectory' => '/mnt/Cloud/nextcloud/data',
'maintenance' => false,
'default_phone_region' => '3166-.. removed',
'theme' => '',
'defaultapp' => 'apporder',
'installed' => true,
'forcessl' => true,
'enable_previews' => true,
'preview_libreoffice_path' => '/usr/bin/libreoffice',
'appstore.experimental.enabled' => false,
'trashbin_retention_obligation' => 'auto',
'trusted_domains' =>
array (                                                                                                                                           [27/132]
0 => 'removed',
1 => '192.168.1.101',
),
'appcodechecker' => false,
'secret' => 'cbc6f...... removed',
'htaccess.RewriteBase' => '/',
'overwrite.cli.url' => 'removed',
'integrity.check.disabled' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => '0',
'timeout' => '0.0',
),
'mail_domain' => 'removed',
'mail_smtpmode' => 'smtp',
'mail_from_address' => 'nextcloud',
'mail_smtpauthtype' => 'PLAIN',
'mail_smtphost' => 'localhost',
'mail_smtpport' => '587',
'dbtype' => 'mysql',
'dbname' => 'nextcloud',
'dbhost' => '127.0.0.1',
'dbtableprefix' => 'nc_',
'dbuser' => 'removed',
'dbpassword' => 'removed',
'mysql.utf8mb4' => true,
'log_type' => 'file',
'logtimezone' => 'removed',
'logdateformat' => 'd.m.Y, H:i:s',
'loglevel' => 0,
'log_query' => false,
'logfile' => '/var/log/nextcloud/nextcloud.log',
'log_rotate_size' => 54857600,
'app.mail.verify-tls-peer' => '0',
'updater.release.channel' => 'stable',
'app_install_overwrite' =>
array (
0 => 'bruteforcesettings',
1 => 'contacts',
2 => 'ocsms',
3 => 'breezedark',
4 => 'quicknotes',
),
'mail_sendmailmode' => 'smtp',
'mail_smtpauth' => 1,
'mail_smtpname' => 'removed',
'mail_smtppassword' => 'removed',
'updater.secret' => 'removed ',
);

PHP Info:
Memory Limit: 2 GB
Max Execution Time: 3600
Upload max size: 1 GB

Let me know if more info in needed.

as usual … plse search the forum before opening a new thread…

first hit for me was: