Hi there,
facing some issue when trying to upgrade my nextcloud install. When starting to check for apps in appstore, upgrade runs for a while and then drops out with message below.
Already checked
- to pass memory limit to php “PHP_MEMORY_LIMIT=512M php ./occ upgrade”
- that “apc.enable_cli=1” is in the config files (seems to be standard)
Nextcloud version (eg, 20.0.5): 21.0.3.1
Operating system and version (eg, Ubuntu 20.04): docker php-fpm
Apache or nginx version (eg, Apache 2.4.25): nginx 1.21.1
PHP version (eg, 7.4): 7.4
The issue you are facing:
When upgrading to latest version, check of apps in appstore runs for quite some while until exiting with the following error message:
Checking for update of app accessibility in appstore
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/lib/private/Http/Client/DnsPinMiddleware.php on line 66
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/lib/private/Log/ErrorHandler.php on line 66
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- update docker image
- run “/usr/bin/docker exec -u www-data nextcloud php occ upgrade”
- wait
The output of your Nextcloud log in Admin > Logging:
can't access
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'updatechecker' => false,
'instanceid' => 'xxx',
'passwordsalt' => 'xxx',
'secret' => 'xxx',
'trusted_domains' =>
array (
0 => 'xxx',
1 => 'xxx',
2 => 'xxx',
),
'datadirectory' => '/var/www/html/data',
'overwrite.cli.url' => 'xxx',
'dbtype' => 'mysql',
'version' => '21.0.3.1',
'dbname' => 'nextcloud',
'dbhost' => 'mariadb',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'xxx',
'mysql.utf8mb4' => true,
'installed' => true,
'mail_smtpmode' => 'smtp',
'enablePreviewProviders' => 'false',
'maintenance' => true,
'loglevel' => 0,
'logtimezone' => 'Europe/Berlin',
'default_phone_region' => 'DE',
'htaccess.RewriteBase' => '/',
'mail_from_address' => 'devices',
'mail_domain' => 'xxx',
'trashbin_retention_obligation' => 'auto, 90',
'appstore.experimental.enabled' => true,
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'theme' => '',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpsecure' => 'tls',
'mail_smtpauth' => 1,
'mail_smtphost' => 'xxx',
'memcache.local' => '\\OC\\Memcache\\APCu',
'mail_smtpname' => 'xxx',
'mail_smtppassword' => 'xxx',
'mail_smtpport' => '587',
'mail_sendmailmode' => 'smtp',
'app_install_overwrite' =>
array (
0 => 'files_retention',
1 => 'bruteforcesettings',
2 => 'rainloop',
),
);