Back

After Upgrade Unable to Login with Admin Account

  • 0
  • General
ZachHandley
8 Jul, 2023, 23:48

Finally found the docker-compose.yml and upgraded but now I can't login with the admin account and can't reset the password because SMTP is not setup

TL;DR
After upgrading, the user is unable to login with the admin account and cannot reset the password due to SMTP not being set up. Possible solution: - Check if there are any differences in the .env files. - Compare the old and new docker-compose.yml files to see if there are any issues. - Verify that there is no nested appwrite folder. - Set up SMTP to enable password reset functionality.
Drake
9 Jul, 2023, 00:58

What's in the folder with your old docker compose file?

ZachHandley
9 Jul, 2023, 01:01
Drake
9 Jul, 2023, 01:10

Wait so do you have a nested appwrite folder?

ZachHandley
9 Jul, 2023, 01:10

I found it

ZachHandley
9 Jul, 2023, 01:10

and moved it

ZachHandley
9 Jul, 2023, 01:10

is moving it the issue?

ZachHandley
9 Jul, 2023, 01:11

once I moved it the install and migration worked flawlessly

Drake
9 Jul, 2023, 01:11

What was going on before?

ZachHandley
9 Jul, 2023, 01:12

the errors described in the other <#1127347149265436782>

ZachHandley
9 Jul, 2023, 01:12

I found the docker-compose.yml, stupid place for it (I thought one Appwrite instance per database backend) and so I had it in a dumb place, I moved it, and then ran the upgrade

ZachHandley
9 Jul, 2023, 01:13

everything works and it launches, no errors, but I can't login anymore

Drake
9 Jul, 2023, 01:15

So nothing in the docker logs for the appwrite folder?

ZachHandley
9 Jul, 2023, 01:15
TypeScript
[Error] Timestamp: 2023-07-08T23:46:09+00:00
[Error] Method: GET
[Error] URL: /v1/account
[Error] Type: Appwrite\Extend\Exception
[Error] Message: User (role: guests) missing scope (account)
[Error] File: /usr/src/code/app/controllers/general.php
[Error] Line: 365
[Error] Timestamp: 2023-07-08T23:46:10+00:00
[Error] Method: POST
[Error] URL: /v1/account/sessions/email
[Error] Type: Appwrite\Extend\Exception
[Error] Message: Rate limit for the current endpoint has been exceeded. Please try again after some time.
[Error] File: /usr/src/code/app/controllers/shared/api.php
[Error] Line: 166
[Error] Timestamp: 2023-07-08T23:48:59+00:00
[Error] Method: POST
[Error] URL: /v1/account/sessions/email
[Error] Type: Appwrite\Extend\Exception
[Error] Message: Rate limit for the current endpoint has been exceeded. Please try again after some time.
[Error] File: /usr/src/code/app/controllers/shared/api.php
[Error] Line: 166
[Error] Timestamp: 2023-07-08T23:50:22+00:00
[Error] Method: POST
[Error] URL: /v1/account/sessions/email
[Error] Type: Appwrite\Extend\Exception
[Error] Message: Rate limit for the current endpoint has been exceeded. Please try again after some time.
[Error] File: /usr/src/code/app/controllers/shared/api.php
[Error] Line: 166
Drake
9 Jul, 2023, 01:17

These are fine.

Using your terminal, go to the appwrite folder and run ls -la

ZachHandley
9 Jul, 2023, 01:28
Drake
9 Jul, 2023, 01:31

Compare the two .env files to see if there's a difference in them

ZachHandley
9 Jul, 2023, 01:38

oh you know what, I changed the Appwrite server instance secret key

ZachHandley
9 Jul, 2023, 01:38

could that do it?

Drake
9 Jul, 2023, 01:39

Ya that would do it. That is used to encrypt things like hashed passwords, session secrets, function variables, etc. If you change the value, Appwrite can't decrypt those values

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