Articles in this section

Nextcloud update fails on a domain in Plesk: Step 5 is currently in process. Please call this command later.

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

  • When updating Nextcloud at Domains > example.com > Nextcloud > Update, the operation fails with:

    PLESK_ERROR: Execution filemng has failed with exit code 255, stdout: #!/usr/bin/env php Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4 Step 5 is currently in process. Please call this command later. , stderr:

  • The following error message is logged in /var/log/plesk/panel.log with Plesk debug mode enabled:

    CONFIG_TEXT: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 155926016 bytes) in phar:///var/www/vhosts/example.com/httpdocs/nextcloud_folder/updater/updater.phar/lib/Updater.php on line 637

Cause

Nextcloud update requires more memory_limit than it is set in PHP handler configuration.

Resolution

  1. Connect to the Plesk server via SSH.

  2. Run the following command, substituting X.X with a PHP version used on the domain:

    Note: Replace sys_user with real subscription system user name and nextcloud_folder with folder where Nextcloud is installed.

    # sudo -u sys_user /opt/plesk/php/X.X/bin/php -d memory_limit=1024M /var/www/vhosts/example.com/httpdocs/nextcloud_folder/occ maintenance:repair

  3. Log in to Plesk.

  4. Go to Tools & Settings > PHP Settings > X.X and switch to the php.ini tab.

  5. Set the memory_limit directive to 512M:

    CONFIG_TEXT: memory_limit = 512M

  6. Click OK to apply the changes.

  7. Update Nextcloud again at Domains > example.com > Nextcloud > Update.

Was this article helpful?

Comments

2 comments
Date Votes
  • I got the same error but without memory size exhausted...

    [2023-08-03 11:53:44.789] 3818091:64cb7928c0cd2 DEBUG [util_exec] [d41e9a8dc2270f572404365150b66b09-0] Starting: osdetect
    [2023-08-03 11:53:44.798] 3818091:64cb7928c0cd2 DEBUG [util_exec] [d41e9a8dc2270f572404365150b66b09-0] Finished in 0.00869s, Error code: 0
    [2023-08-03 11:53:44.798] 3818091:64cb7928c0cd2 DEBUG [extension/nextcloud] [64cb7928c30cb] Starting: '/opt/psa/admin/bin/filemng'  'username' 'exec' '/var/www/vhosts/***/username/nextcloud' '/opt/plesk/php/8.1/bin/php' '/opt/psa/admin/plib/modules/nextcloud/scripts/externals/update-nextcloud.php'
    [2023-08-03 11:53:44.855] 3818091:64cb7928c0cd2 DEBUG [extension/nextcloud] [64cb7928c30cb] Finished in 0.0568s, Error code: 255

    After this, nothing else will be logged.

    0
  • The command failed to execute in SSH. There was no X.X (8.0) in PHP Settings, and no tab for php.ini. Nextcloud could not be updated.

    0

Please sign in to leave a comment.