Wrong Password after update

Support intro

Hi,

I updated my NC Instance to 15.0.10 to 15.0.14.1
Now, Impossible to connect on the web Interface… “Wrong password”
Impossible to send new password by mail "Couldn’t send reset email. ".

I changed it via OCC => Same Problem
I tried to create a new account via OCC => Same Problem

In logs, i just see " Login failed".

Have you an idea about my problem ?

Thanks

Nextcloud version 15.0.14.1:
Operating system and version Debian 9:
Apache or nginx version Apache 2.4.25:
PHP version 7.3.7:

The issue you are facing:

Is this the first time you’ve seen this error? Y:

Steps to replicate it:

  1. Update NextCloud

The output of the config.php

<?php
$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'cloud.xx',
  ),
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 0,
    'dbindex' => 0,
  ),
  'datadirectory' => '/home/xx/DataNextcloud',
  'overwrite.cli.url' => 'https://cloud.xx',
  'auth.bruteforce.protection.enabled' => false,
  'dbtype' => 'mysql',
  'version' => '15.0.14.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextclouduser',
  'dbpassword' => 'xx',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 'infra.xx',
  'updater.release.channel' => 'production',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'ssl0.ovh.net',
  'mail_smtpname' => 'xx',
  'mail_smtppassword' => 'xx',
  'mail_smtpport' => '465',
  'data-fingerprint' => 'xx',
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' => 
  array (
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'mysql.utf8mb4' => true,
  'updater.secret' => 'xx',
);

Hi,

Before the update did you take a backup of your config directory? If you used the updater I think this creates a backup of the config file for you.

If so compare the ‘passwordsalt’ variables from the config.php file in the backup, with the value of the current variable in the current (updated) config.php file … do you see where I’m going with this?

If they are not identical replace the updated config.php ‘passwordsalt’ value with the one from your backup.

SPECIAL NOTE: If you have created any new users, or users have update their password since your update, they will have used the updated passwordsalt value to hash them. This means those WONT work after reverting.

You may find the following useful: https://docs.nextcloud.com/server/latest/admin_manual/maintenance/upgrade.html

Hi,

Thanks for your response.
Yes, passwordsalt is the same than older Nextcloud versions…