Back

[solved] New Users Cant Register For Self Hosted

  • 0
  • Self Hosted
  • Web
Elfinslayer
10 Jul, 2023, 01:37

Hey all, I've been using Appwrite for a few weeks now and I am looking to get a few friends added to my project. When they go to register for my self hosted instance it throws an error about max users for a project (see attached). I looked through the console and I could only find the Users Limit at the auth level (second screenshot) which was set to unlimited. Any insight here?

TL;DR
The user was experiencing an issue where new users couldn't register for their self-hosted instance. They initially thought it was due to a cached email from an old invite, but that wasn't the issue. However, they later discovered that they had missed setting an environment variable, which caused the error. They provided a link to learn more about environment variables and shared the specific variable that needed to be set in the `.env` file. The solution was to set `_APP_CONSOLE_WHITELIST_ROOT` to "disabled" and then restart the server using the command `docker compose down && docker compose up -d`.
Elfinslayer
10 Jul, 2023, 01:37
Binyamin
10 Jul, 2023, 01:40

For that you'll need to edit your .env file and set _APP_CONSOLE_WHITELIST_ROOT to disabled

TypeScript
_APP_CONSOLE_WHITELIST_ROOT=disabled

Then run

TypeScript
docker compose down && docker compose up -d
Binyamin
10 Jul, 2023, 01:40

To find out more about environment variables check this https://appwrite.io/docs/environment-variables#general

Elfinslayer
10 Jul, 2023, 01:40

oh shoot, i totally missed that env variable. thanks!

Elfinslayer
10 Jul, 2023, 01:49

follow up question, that seems to stop that maximum users error but it throws another error saying that user already exists (they don't)

Elfinslayer
10 Jul, 2023, 01:58

yea.. ignore that, it seems to have cached the email from an old invite that didnt work

Elfinslayer
10 Jul, 2023, 02:01

[solved] New Users Cant Register For Self Hosted

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