Hi I’ve changed my user password on syncloud and now I can’t login to Nextcloud any more. It also says that there have been too many login requests from my site (after I tried to login for some times)
All information I found on the internet to reset the brute force protection does not work (can’t reset password via occ, can’t access databases, …)
Changing password via occ does also not work
root@odroid-xu3and4:~# snap run nextcloud.occ user:resetpassword admin
Enter a new password:
Confirm the new password:
Error while resetting password!
I changed the password in the user-App because I was afraid of an activation request my syncloud-device showed me (was afraid of an password attack - in combination with this email that my 30-day trial period expires). So I did a complete activation process and had to enter a (new?) password. Afterwards I changed the main password on the device and also the root account (to get a better security-feeling)
Problem is not solved yet
The other users (like backup) do not exist after I reinstalled nextcloud. And the user seems not to be admin any more (I can’t configure nextcloud - e.g. contacts).
I tried:
snap run nextcloud.occ files:scan --all
but I get an error:
An unhandled exception has been thrown:
TypeError: OC\Files\Cache\Scanner::scanChildren(): Argument #6 ($oldSize) must be of type int, float given, called in /snap/nextcloud/711/nextcloud/lib/private/Files/Cache/Scanner.php on line 347 and defined in /snap/nextcloud/711/nextcloud/lib/private/Files/Cache/Scanner.php:391
Stack trace: [...]
just reverted the version, but Nextcloud does not support downgrading so you have to remove it and install again.
Hopefully that will help to index your files if that worked before.
Hi Boris - I did reinstall nextcloud to 706 - that worked, but I have only one user in nextcloud and it is not an admin user (I can’t add apps or users in nextcloud)
My old nextcloud users existed only in nextcloud (did I miss to make a backup before reinstalling?)
But what is still weird, is that I can not add users or add ons
OK, I am not sure why but very rarely it happens, usually after upgrades, ldap group mapping is really strange in Nextcloud.
Can you run these commands and show the out put?
Check
snap run nextcloud.psql -c "select * from oc_ldap_group_mapping"
snap run nextcloud.psql -c "select * from oc_ldap_group_members"
Show groups:
snap run nextcloud.occ group:list
Make all admins
snap run nextcloud.psql -c "update oc_ldap_group_mapping set owncloud_name = 'admin'"
snap run nextcloud.psql -c "update oc_ldap_group_members set owncloudname = 'admin'"
Did you create any group or user inside nextcloud (not using Syncloud Users app) after the install?
Also try removing nextcloud and installing fresh to see if that changes anything.
Hi Boris,
peter is the main user of the Syncloud device, the first I installed and the only one I managed with the Users-App. All the other users have been created in Nextcloud (e.g. a backup user or family members).
So I think my problem with these additional users is: I did not make a backup (am I right?!)
Is there a better way to remove and install nextcloud as via
snap remove nextcloud
snap install nextcloud
That was what I did at least twice already, but I can do it again. I even did it this way for downgrading (as you recommended)
The command user:info produced the following output:
Reinstall and check by running the command and also logging into the UI.
If that does not help try re-activating the device to the same domain (Settings - Activation) and then reinstalling nextcloud. That will reset syncloud users (ldap).