Cannot upgrade nextcloud on Dietpi

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 19.0.5
Operating system and version (eg, Ubuntu 20.04): Dietpi v6.34.3
Apache or nginx version (eg, Apache 2.4.25): ``
PHP version (eg, 7.4): PHP 7.3.19-1~deb10u1 (cli) (built: Jul 5 2020 06:46:45) ( NTS )

The issue you are facing:
Cannont upgrade to newest version. In dasboard there’s version Nextcloud 19.0.8 available but when open upgrade manager I see: Step 5 is currently in process. Please reload this page later.

Is this the first time you’ve seen this error? (Y/N):
I see that issue for long time when I move my nextcloud to other sd-card.
Steps to replicate it:

  1. Go to nextcloud dashboard and click upgrade.
  2. Go to Dietpi console and try ncc upgrade - tells that is newest version
  3. Try to upgrade manually:
mysqldump nextcloud > /root/nextcloud.sql
sudo -u www-data php7.3 /var/www/nextcloud/updater/updater.phar

but have that:

Nextcloud Updater - version: v19.0.3-8-gbfdc40b
Step 5 is currently in process. Please call this command later.

The output of your Nextcloud log in Admin > Logging:

[PHP] Error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) at /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158

at 2021-02-14T11:55:21+00:00

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

<?php
$CONFIG = array (
  'passwordsalt' => '-----------------------------',
  'secret' => '--------------------------------------',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '*',
  ),
  'datadirectory' => '/mnt/dietpi_userdata/nextcloud_data',
  'dbtype' => 'mysql',
  'version' => '19.0.5.2',
  'hashingThreads' => 4,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/run/redis/redis-server.sock',
    'port' => 0,
  ),
  'overwrite.cli.url' => 'http://localhost/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_admin',
  'dbpassword' => '-------------------------',
  'installed' => true,
  'instanceid' => '--------------',
  'maintenance' => false,
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
    0 => 'admin',
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'theme' => '',
  'loglevel' => 2,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtpport' => '465',
  'mail_smtpname' => '------------------',
  'mail_smtppassword' => '---------------',
  'mail_from_address' => '--------------',
  'mail_domain' => '-----------',
  'mail_smtphost' => '------------',
  'updater.release.channel' => 'stable',
  'updater.secret' => '------------------------',
);

When try to reinstall I see that message at the end:

Regards,
PRzemek

I fix it with maintance:repair.