Nextcloud version (eg, 20.0.5): 22.2.2.0
Operating system and version (eg, Ubuntu 20.04): NextCloudPi version v1.50.0, NextCloudPi image NextCloudPi_docker_09-20-21, OS Debian GNU/Linux 10. 5.10.11-v8+ (aarch64)
The issue you are facing:
Today I noticed that my nextcloud clients did not want to login anymore. I tried the webinterface then and got the message that there were too many failed login attempts from my network. Digging a bit into my nextcloud instance showed, that all user accounts seem to be gone. Also, oc_users database table contains only ncp admin-user from nextcloudpi. ncp is the only user I can log in with anymore. The data of all the users seems to be still there in the data folder.
I have no idea how this might have happened. Can anyone advise me how I can recover from this state? I have a file base backup of my nextcloudpi docker volume.
Is this the first time you’ve seen this error? (Y/N): Yes
Steps to replicate it:
I have no idea.
The output of your Nextcloud log in Admin > Logging:
Level App Nachricht Zeit
Info core Bruteforce attempt from "172.18.0.1" detected for action "login".
2022-09-26T00:57:08+0200
Warning no app in context Login failed: username-private (Remote IP: 172.18.0.1)
2022-09-26T00:57:08+0200
Error core RedisException: NOAUTH Authentication required.
2022-09-26T00:56:58+0200
Error core RedisException: NOAUTH Authentication required.
2022-09-26T00:56:58+0200
Error index RedisException: NOAUTH Authentication required.
2022-09-26T00:56:58+0200
Error core RedisException: NOAUTH Authentication required.
2022-09-26T00:56:58+0200
Error core RedisException: NOAUTH Authentication required.
2022-09-26T00:56:58+0200
Error index RedisException: NOAUTH Authentication required.
2022-09-26T00:56:58+0200
Error core RedisException: NOAUTH Authentication required.
2022-09-26T00:56:57+0200
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
root@rpi4:/mnt/usb1/nextcloudpi/nextcloud/config# cat config.php
<?php
$CONFIG = array (
'passwordsalt' => 'xyxyxyxyx',
'secret' => 'ccxcxcxcxcx',
'trusted_domains' =>
array (
0 => 'localhost',
11 => 'x.y.z',
1 => 'x.y.z',
2 => '192.168.155.73',
5 => 'nextcloudpi.local',
7 => 'nextcloudpi',
8 => 'nextcloudpi.lan',
20 => 'rpi4',
21 => 'foo.barduckdns.org',
3 => 'e6a4f5c39917',
22 => 'dab7a66179b7',
14 => 'e6a4f5c39917',
'' => 'localhost',
),
'forwarded_for_headers' =>
array (
0 => 'HTTP_X_FORWARDED',
1 => 'HTTP_X_FORWARDED_FOR',
),
'datadirectory' => '/data/nextcloud/data',
'dbtype' => 'mysql',
'version' => '22.2.2.0',
'overwrite.cli.url' => 'https://e6a4f5c39917/',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'ncadmin',
'dbpassword' => 'X1+91ZbQQpqOOTlbKRvKjocdT2VQQHprJ2c+sSiFhz0=',
'installed' => true,
'instanceid' => 'ocof344kq2sc',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
'password' => 'ohcfq8SlC43mrrGtYPPdHZTYpK1t1EpuGxc1k6G58BI=',
),
'tempdirectory' => '/var/www/nextcloud/data/tmp',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => 'xyz',
'mail_domain' => 'dsd.sad',
'preview_max_x' => '2048',
'preview_max_y' => '2048',
'jpeg_quality' => '60',
'overwriteprotocol' => 'https',
'overwritehost' => 'dsaddsada.dsn.de:4444',
'maintenance' => false,
'loglevel' => '1',
'mail_sendmailmode' => 'smtp',
'mail_smtpsecure' => 'tls',
'mail_smtpauth' => 1,
'mail_smtphost' => 'xxx',
'mail_smtpport' => '587',
'mail_smtpname' => 'xxx,
'mail_smtppassword' => 'txx',
'theme' => '',
'trusted_proxies' =>
array (
11 => '127.0.0.1',
12 => '::1',
13 => 'localhost',
14 => '127.0.0.1',
),
);