Upgrade from 25.0.13.2 to 26.0.10.1 not possible

Nextcloud version (eg, 20.0.5): 25.0.13.2
Operating system and version (eg, Ubuntu 20.04): Docker Image 25.0.13.2
Apache or nginx version (eg, Apache 2.4.25): Docker Image 25.0.13.2
PHP version (eg, 7.4): Docker Image 25.0.13.2

The issue you are facing:
When trying to update to 26.0.10.1 the container doesn’t start. In the log I found the message:

    Can't start Nextcloud because the version of the data (25.0.13.2) is higher than the docker image version (26.0.10.1) and downgrading is not supported. Are you sure you have pulled the newest image version?

Notice the weird error message, it is telling me that 25.0.13.2 is higher than 26.0.10.1 :woozy_face:

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

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  '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,
    ),
  ),
  'instanceid' => <removed>,
  'passwordsalt' => <removed>,
  'secret' => <removed>,
  'trusted_domains' => 
  array (
    0 => <removed>
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '25.0.13.2',
  'overwrite.cli.url' => <removed>,
  'dbname' => <removed>,
  'dbhost' => <removed>,
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => <removed>,
  'dbpassword' => <removed>,
  'installed' => true,
  'loglevel' => 2,
  'maintenance' => false,
  'theme' => '',
  'default_phone_region' => 'DE',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => <removed>,
  'mail_domain' => <removed>,
  'mail_smtphost' => <removed>,
  'updater.secret' => <removed>,
);

I tried to remove the config.php file and got the message:

    Can't start Nextcloud because the version of the data (0.0.0.0) is higher than the docker image version (26.0.10.1) and downgrading is not supported. Are you sure you have pulled the newest image version?

I edited config.php and set manually ‘26.0.10.1’ as version and got the message:

    Can't start Nextcloud because the version of the data (26.0.10.1) is higher than the docker image version (26.0.10.1) and downgrading is not supported. Are you sure you have pulled the newest image version?

Is there any way to recover from that ?
Many thanks

Check your docker image version and pull the one you want. See docker documentation to learn more.

Docker does not follow the built in updater process.

It is exactly the problem. I am actually running docker image 25.0.13.2 and tried to update to docker image 26.0.10.1. No way :frowning:

I was able to fix the problem.
I found the message “”“Invalid “post_max_size” setting. Invalid quantity “10G”: value is out of range”“” in the log.
After having removed the entry “PHP_UPLOAD_LIMIT=10G” in my docker-compose, the problem is gone. Update was successful.

1 Like