Plesk

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

Symptoms

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:

    memory_limit = 512M

  6. Click OK to apply the changes.

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