Nextcloud version (eg, 18.0.2): 18.0.4
Operating system and version (eg, Ubuntu 20.04): Centos 8
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.37
PHP version (eg, 7.1): 7.3.5
The issue you are facing:
After mirgration to a new server I got login issues for database stored nextcloud users.
Is this the first time you’ve seen this error? (Y/N):
Yes
Steps to replicate it:
- Maintenance mode on old server
- Created database dump
- Created file backup
- Transferd data to new server
- Imported database dump to a new clean database
- Imported files to directoryroot of the vhost
- Tested access with maintenance mode on - successfull
- Tested login with maintenance mode off - unsuccessfull with nextcloud database user; successfull with LDAP user
The output of your Nextcloud log in Admin > Logging:
[no app in context] Warning: Login failed: *username* (Remote IP: XXX.XXX.XXX.XXX)
POST /index.php/login
from XXX.XXX.XXX.XXX at 2020-05-06T10:11:59+02:00
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
$CONFIG = array (
'instanceid' => '',
'passwordsalt' => '',
'secret' => '',
'trusted_domains' =>
array (
0 => '',
1 => '',
),
'datadirectory' => '/html/nextcloud/data',
'dbtype' => 'mysql',
'version' => '18.0.4.2',
'overwrite.cli.url' => '',
'dbname' => 'nextcloud',
'dbhost' => '',
'dbport' => '',
'dbtableprefix' => '',
'mysql.utf8mb4' => true,
'dbuser' => '',
'dbpassword' => '',
'installed' => true,
'tempdirectory' => '/html/data/tmp/',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'maintenance' => false,
'skeletondirectory' => '',
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'twofactor_enforced' => 'false',
'twofactor_enforced_groups' =>
array (
),
'twofactor_enforced_excluded_groups' =>
array (
),
'updater.release.channel' => 'stable',
'theme' => '',
'loglevel' => 1,
'logtimezone' => 'Europe/Berlin',
'memcache.local' => '\\OC\\Memcache\\ArrayCache',
'mail_from_address' => '',
'mail_domain' => '',
'mail_smtpauth' => ,
'mail_smtphost' => '',
'mail_smtpport' => '',
'mail_smtpname' => '',
'mail_smtppassword' => '',
'data-fingerprint' => '',
'mail_smtpsecure' => '',
'mail_smtpauthtype' => '',
);
The output of your Apache log in /var/log/____
:
Nothing