- Nextcloud Server version : 31.0.2
- Operating system and version: Ubuntu 22.04.5 LTS (GNU/Linux 5.15.0-1073-raspi aarch64)
- Web server and version: Nginx 1.18.0
- PHP version: 8.3
After upgrade from 30.0.6.2 to 31.0.2 i received error in my browser:
Downgrading is not supported and is likely to cause unpredictable issues (from 31.0.2 to 30.0.6.2)
I restarted php-FPM service and the problem disappeared.
But then, a new problem appeared:
Cannot login to nextcloud with a valid admin user/password. The login page is merely reloaded. No user is able to log in.
I tried resetting the password for the account, but it didn’t help.
My problem is similar to this topic. But the topic is already closed and there is no solution there
how to fix this?
Log entries
Nextcloud
{"reqId":"llVoGC9oaQETMsfioRAB","level":2,"time":"2025-03-22T20:18:44+00:00","remoteAddr":"192.168.1.1","user":false,"app":"no app in context","method":"GET","url":"/login?direct=1&user=---","message":"Capabilities of OCA\\CloudFederationAPI\\Capabilities took 0.54 seconds to generate.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"31.0.2.1","data":[]}
Web server /var/log/nginx/access.log
192.168.1.1 - - [23/Mar/2025:00:12:07 +0300] "POST /login HTTP/1.1" 303 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0"
192.168.1.1 - - [23/Mar/2025:00:12:07 +0300] "GET /login?direct=1&user=--- HTTP/1.1" 200 7938 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0"
Configuration
Nextcloud config.php
<?php
$CONFIG = array (
'instanceid' => '----',
'passwordsalt' => '-------',
'secret' => '-------------',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'cloud.myhost.domain',
2 => '192.168.1.9',
),
'datadirectory' => '/www/nextcloud/data',
'dbtype' => 'mysql',
'version' => '31.0.2.1',
'default_phone_region' => 'EN',
'overwritehost' => 'cloud.myhost.domain',
'overwriteprotocol' => 'https',
'dbname' => 'dbname',
'dbhost' => '127.0.0.1:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'dbuser',
'dbpassword' => 'pass',
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.distributed' => '\\OC\\Memcache\\Memcached',
'memcached_servers' =>
array (
0 =>
array (
0 => '127.0.0.1',
1 => 11211,
),
),
'overwrite.cli.url' => 'https://192.168.1.9',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
),
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'adm',
'mail_domain' => 'mail.domain',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'mail.host',
'mail_smtpport' => '465',
'mail_smtpname' => 'email',
'mail_smtppassword' => 'pass',
'twofactor_enforced' => 'false',
'twofactor_enforced_groups' =>
array (
0 => 'test',
),
'twofactor_enforced_excluded_groups' =>
array (
),
'app_install_overwrite' =>
array (
0 => 'twofactor_gateway',
1 => 'admin_notifications',
2 => 'bruteforcesettings',
),
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
'simpleSignUpLink.shown' => false,
'enable_previews' => true,
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\TXT',
1 => 'OC\\Preview\\MarkDown',
2 => 'OC\\Preview\\OpenDocument',
3 => 'OC\\Preview\\PDF',
4 => 'OC\\Preview\\MSOffice2003',
5 => 'OC\\Preview\\MSOfficeDoc',
6 => 'OC\\Preview\\Image',
7 => 'OC\\Preview\\Photoshop',
8 => 'OC\\Preview\\TIFF',
9 => 'OC\\Preview\\SVG',
10 => 'OC\\Preview\\Font',
11 => 'OC\\Preview\\MP3',
12 => 'OC\\Preview\\Movie',
13 => 'OC\\Preview\\MKV',
14 => 'OC\\Preview\\MP4',
15 => 'OC\\Preview\\AVI',
16 => 'OC\\Preview\\HEIC',
),
'updater.release.channel' => 'stable',
'maintenance_window_start' => 1,
);