Raspberry Pi 4 - NextcloudPi 18.0.2 - it is a Debian
Nextcloud version: 18.104.22.168
Operating system and version: Linux cloud 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l GNU/Linux
Apache or nginx version: Apache
PHP version: php 7.3 - php-fpm
The issue I am facing:
my nextcloud is running on RaspPi4 an ssd: one partion is the OS, second partition in mounted to /var/www, third part. /var/lib/mysql, forth part. is backup.
Yesterday the cloud hang up and I had to power off - the RaspPi was working nearby the windows in the sun and maybe it was going hot.
After that, I can’t login the user “ncp” (admin) and user “user” (user): “wrong user or password”.
I got this problem a few month before (no sun, but hangup too and no login anymore) and I did a reinstall - I am lazy. Now I stored data in the cloud - now I am afraid.
I connected via ssh: all the data are still present in the file system.
doing “sudo -u www-data php /var/www/nextcloud/occ user:list” shows only user “ncp”, no user “user”.
doing “sudo -u www-data php /var/www/nextcloud/occ user:resetpassword ncp” works: I set a new password and “ncp” can login again. Did nothing else than logging in, until now.
The questions are:
is it possible to do:
- “sudo -u www-data php /var/www/nextcloud/occ user:add user”
- “sudo -u www-data php /var/www/nextcloud/occ files:scan user”
Does user:add delete the directory “/var/www/nextcloud/data/user”?
Can I access the data again? Has there any rights to be corrected - in the database perhaps?
I backed-up /var/www and /var/lib/mysql via rsync on a separat partition, but I never did a complete restore - only some files. Is it possible (rsync /var/www + /var/lib/mysql in maintenace mode)?
I can not understand, why a poweroff can perform a crash like this. I did no adminwork, only watching files; maybe an automatic uploud via smartphone. Where is the user “user” gone? Who changes why both passwords? What else has gone?
It happened two times and I hope you can give me some answers or show me where I can find Information about this questions.
Thank you very much.