This almost drove me nuts. I set up a new NC installation, with the same old domain, but did not restore the old accounts. So, 3 phones 3 computers with all the DAVx5, NC clients etc. tried to log in with invalid logins, so.. I get locked out.
Although the posts above are somewhat helpful, not one presented me with the detailed solution, step-by-step.
Therefore, for those beginners like me,
Below is how I solved the problem on any Debian/Ubuntu based nc installation.
(Should work for NCP, NC-TurnKey LXC on Proxmox, etc.)
-
Logout from all your clients (mobile/desktop/CalDav etc.
-
Go to any “show my IP” homepage to see what IP you currently have (or use the terminal, router, or, and.. and and.. many ways to find out your IP)
-
then go to the terminal of your Nextcloud instance and use the following command to reset your IP’s login attempts:
sudo -u www-data php /var/www/nextcloud/occ security:bruteforce:reset 0.0.0.0
Note: replace 0.0.0.0 with your IP address.
That should solve it.
if your have NC installed as a snap see this post below