Back

self-hosted Appwrite user login error

  • 0
  • Flutter
  • Web
  • General
  • Accounts
  • Users
tahakhawaja
2 Aug, 2023, 22:32

I have a self-hosted appwrite instance on a digital ocean droplet. I deleted the user that I created and now when I go to create a new one I get this error:

{"message":"The current user has been blocked. You can unblock the user from the Appwrite console.","code":401,"type":"user_blocked","version":"1.3.8"}

When I use a different browser and go to the console and try to create a new instance I get this error:

The current project has exceeded the maximum number of users. Please check your user limit in the Appwrite console.

How can I fix this?

TL;DR
User deleted their only user in their self-hosted Appwrite instance and now they can't create a new user. When trying to create a new user, they get an error saying the current user has been blocked. When using a different browser, they get an error saying the project has exceeded the maximum number of users. To fix this: 1. Edit the `.env` file and change the value of `_APP_CONSOLE_WHITELIST_ROOT` to `disabled`. 2. Run `docker compose down && docker compose up -d`. 3. After the containers restart, you should be able to create another user.
Binyamin
2 Aug, 2023, 22:32

Which user you've deleted?

Binyamin
2 Aug, 2023, 22:33

A frontend user? or the console admin user?

tahakhawaja
2 Aug, 2023, 22:33

Console admin user I believe

Binyamin
2 Aug, 2023, 22:34

Okay

Binyamin
2 Aug, 2023, 22:35

Edit your .env file Change the value of _APP_CONSOLE_WHITELIST_ROOT to disabled like so

TypeScript
_APP_CONSOLE_WHITELIST_ROOT=disabled

Then run

TypeScript
docker compose down && docker compose up -d

And you should be able to create another user.

Binyamin
2 Aug, 2023, 22:35

After you can set it it back to enabled so no one else would be able to create another user

tahakhawaja
2 Aug, 2023, 22:36

So is it just one user per account?

Binyamin
2 Aug, 2023, 22:36

Is for the safety of your Appwrite

Binyamin
2 Aug, 2023, 22:36

You can create unlimited number of users from the console.

Binyamin
2 Aug, 2023, 22:36

But in most cases you would want to block the registration from the outside

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more