Problems during the update

I encountered some problems during the update.

Synology NAS with DSM 6.2.4-25556 Update 7
PHP 7.4.30 & MariaDB 10.3.29-0070

I’m trying to update NC 25.0.5 to NC 25.0.13, but I get the following error during the update:

Verify integrity …PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 186434456 bytes) in phar:///volume1/web/nextcloud/updater/updater.phar/lib/Updater.php on line 652

The value of memory_limit = 512M

1 Like

But the script says

which is exactly 128M.

Please recheck your php settings


Much and good luck,
ernolf

I see. Can you tell me where to change this parameter? I changed it in the file /etc/php/php.ini

You can pass any php.ini parameter with --define

from man php

       --define foo[=bar]
       -d foo[=bar]   Define INI entry foo with value bar

so this would be your solution:

php --define memory_limit=512M -f /var/www/nextcloud/updater/updater.phar

I don’t know Synology. Php often makes use of multiple php.ini files. I can only confirm, that 128M is the default value.


Much and good luck,
ernolf

1 Like

php --ini to see all the config files in-use.
php -i to see the currently merged (active) config values.

1 Like

Thank you all. I managed to update to the latest version.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.