Ungewolltes Downgrading - unintentionally Downgrading

Hallo,

get the message:„Downgrading is not supported and is likely to cause unpredictable issues (from 27.0.0.8 to 26.0.4.2)“

Nextcloud version: 27.0.0
Operating system and version : openSUSE Tumbleweed VERSION="20230623"
Apache or nginx version: Apache 2.4.57
PHP version: 8.2.7

The issue you are facing: Downgrading is not supported and is likely to cause unpredictable issues (from 27.0.0.8 to 26.0.4.2) although I didn’t initiate it and didn’t want it.

Is this the first time you’ve seen this error? (Y/N): N

Steps to replicate it:

  1. I have no idea how to find the cause.

The output of your Nextcloud log in Admin > Logging:

{"reqId":"mZOfjiUwDxzXB6sZpxGf","level":3,"time":"2023-07-26T08:30:14+00:00","remoteAddr":"192.168.120.8","user":"monika","app":"PHP","method":"PROPFIND","url":"/remote.php/dav/addressbooks/users/monika/contacts/","message":"Optional parameter $trustedServers declared before required parameter $groupManager is implicitly treated as a required parameter at /srv/www/htdocs/nextcloud/apps/dav/lib/CardDAV/SystemAddressbook.php#60","userAgent":"Thunderbird CardBook/86.3","version":"27.0.0.8","data":{"app":"PHP"}}
{"reqId":"rBiEwdurA9GcgW3p6yvC","level":3,"time":"2023-07-29T13:39:47+00:00","remoteAddr":"192.168.120.8","user":"monika","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"OCP\\HintException: Downgrading is not supported and is likely to cause unpredictable issues (from 27.0.0.8 to 26.0.4.2) at /srv/www/htdocs/nextcloud/lib/private/legacy/OC_Util.php#1215","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"27.0.0.8","data":{"app":"PHP"}}
{"reqId":"RhzxbhI3oNGus9zW1HbR","level":3,"time":"2023-07-29T13:40:01+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Downgrading is not supported and is likely to cause unpredictable issues (from 27.0.0.8 to 26.0.4.2)","userAgent":"--","version":"27.0.0.8","exception":{"Exception":"OCP\\HintException","Message":"Downgrading is not supported and is likely to cause unpredictable issues (from 27.0.0.8 to 26.0.4.2)","Code":0,"Trace":[{"file":"/srv/www/htdocs/nextcloud/lib/private/legacy/OC_Util.php","line":505,"function":"needUpgrade","class":"OC_Util","type":"::"},{"file":"/srv/www/htdocs/nextcloud/lib/base.php","line":713,"function":"checkServer","class":"OC_Util","type":"::"},{"file":"/srv/www/htdocs/nextcloud/lib/base.php","line":1174,"function":"init","class":"OC","type":"::"},{"file":"/srv/www/htdocs/nextcloud/cron.php","line":43,"args":["/srv/www/htdocs/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/srv/www/htdocs/nextcloud/lib/private/legacy/OC_Util.php","Line":1215,"Hint":"Downgrading is not supported and is likely to cause unpredictable issues (from 27.0.0.8 to 26.0.4.2)","CustomMessage":"--"}}

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

<?php
$CONFIG = array (
  'instanceid' => 'ocecqv1fa0l0',
  'passwordsalt' => 'OX4KrX/BvPBLwYHmIxJOlop9tfZV93',
  'secret' => 'XfBR025/Apc7CVtt0nlAx9ZKTTX/oVaHDrr6vsGwvIAmJPoC',
  'trusted_domains' => 
  array (
    0 => '192.168.xxx.x',
  ),
  'datadirectory' => '/srv/www/htdocs/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '27.0.0.8',
  'overwrite.cli.url' => 'https://192.168.xxx.x /nextcloud',
  'dbname' => 'xxx',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxx',
  'dbpassword' => 'xxx',
  'installed' => true,
  'force_language' => 'de',
  'default_phone_region' => 'DE',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_from_address' => 'xxx.xxx',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'gmx.de',
  'mail_smtphost' => 'mail.gmx.net',
  'mail_smtpport' => '465',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'xxx.xxx@gmx.de',
  'mail_smtppassword' => 'xxx,',
  'mail_smtpsecure' => 'ssl',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

The output of your Apache/nginx/system log in /var/log/____:
error.log

[Sat Jul 29 16:42:37.650843 2023] [ssl:warn] [pid 4170] AH01909: fla.nextcloud.de:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jul 29 16:42:37.651027 2023] [ssl:error] [pid 4170] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: emailAddress=monika.flach@gmx.de,CN=Flach,O=Privat,L=NU,ST=BRBG,C=DE / issuer: emailAddress=monika.flach@gmx.de,CN=Flach,O=Privat,L=NU,ST=BRBG,C=DE / serial: 675BE58B569F1389CAF4634036B77A40F6099DAB / notbefore: Mar 12 13:26:59 2023 GMT / notafter: Mar 11 13:26:59 2024 GMT]
[Sat Jul 29 16:42:37.651036 2023] [ssl:error] [pid 4170] AH02604: Unable to configure certificate fla.nextcloud.de:443:0 for stapling
[Sat Jul 29 16:42:37.754900 2023] [ssl:warn] [pid 4170] AH01909: fla.nextcloud.de:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jul 29 16:42:37.754957 2023] [ssl:error] [pid 4170] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: emailAddress=monika.flach@gmx.de,CN=Flach,O=Privat,L=NU,ST=BRBG,C=DE / issuer: emailAddress=monika.flach@gmx.de,CN=Flach,O=Privat,L=NU,ST=BRBG,C=DE / serial: 675BE58B569F1389CAF4634036B77A40F6099DAB / notbefore: Mar 12 13:26:59 2023 GMT / notafter: Mar 11 13:26:59 2024 GMT]
[Sat Jul 29 16:42:37.754971 2023] [ssl:error] [pid 4170] AH02604: Unable to configure certificate fla.nextcloud.de:443:0 for stapling

error_log


[Sat Jul 29 16:40:25.209642 2023] [mpm_prefork:notice] [pid 4252] AH00170: caught SIGWINCH, shutting down gracefully

PHP Warning: PHP Startup: Unable to load dynamic library 'php_gd.dll' (tried: /usr/lib64/php8/extensions/php_gd.dll (/usr/lib64/php8/extensions/php_gd.dll: cannot open shared object file: No such file or directory), /usr/lib64/php8/extensions/php_gd.dll.so (/usr/lib64/php8/extensions/php_gd.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library 'php_mbstring.dll' (tried: /usr/lib64/php8/extensions/php_mbstring.dll (/usr/lib64/php8/extensions/php_mbstring.dll: cannot open shared object file: No such file or directory), /usr/lib64/php8/extensions/php_mbstring.dll.so (/usr/lib64/php8/extensions/php_mbstring.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

[Sat Jul 29 16:42:37.758086 2023] [mpm_prefork:notice] [pid 4170] AH00163: Apache/2.4.57 (Linux/SUSE) PHP/8.2.8 OpenSSL/3.1.1 configured -- resuming normal operations

[Sat Jul 29 16:42:37.758104 2023] [core:notice] [pid 4170] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -D SSL -D phpMyAdmin -C PidFile /run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

How did you install Nextcloud?

What can happen, e.g. you install Nextcloud 26 via your Linux package manager. Then you use the internal Nextcloud updater to upgrade to NC 27.
Now your Linux package manager ships a new update to NC 26.0.4 and then puts back NC 26 code.

If you use the package manager, then go for all the update through the package manager.

Yes, that was the cause. There was also an installation in the package manager. Thanks for the help. :slight_smile: