Back

v1.3.1 Can't Login After Upgrade

  • 1
  • Self Hosted
  • Accounts
  • Users
6lackknight
19 Apr, 2023, 09:21

I just upgraded my appwrite version from 1.2.1 to 1.3.1 following the upgrade instructions here: https://appwrite.io/docs/upgrade. The upgrade went fine without errors, the I went ahead to do the migration, which also had no errors.

Problem is now I cannot login to the upgraded instance or create a new account. The error on the logs is also in the screenshot:

[Error] Timestamp: 2023-04-19T09:17:14+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-04-19T09:17:29+00:00 [Error] Method: POST [Error] URL: /v1/account [Error] Type: Appwrite\Extend\Exception [Error] Message: The current project has exceeded the maximum number of users. Please check your user limit in the Appwrite console. [Error] File: /usr/src/code/app/controllers/api/account.php [Error] Line: 97

TL;DR
After upgrading from version 1.2.1 to 1.3.1 of Appwrite, the user is unable to login or create a new account. There are two potential solutions mentioned in the thread: 1. Check if the `_APP_OPENSSL_KEY_V1` in the new `.env` file matches the one in the backup. They should be the same. 2. Ensure that the upgrade command was run in the `root` directory and the migrate command in the `appwrite` directory. Additionally, the error logs indicate the following issues: - The user is missing the 'account' scope, causing a login error
6lackknight
19 Apr, 2023, 09:37

v1.3.1 Can't Login After Upgrade

joeyouss
19 Apr, 2023, 17:49

Hey, where did you run the upgrade command? in which folder?

safwan
19 Apr, 2023, 23:29

Ah it could be an issue of a wrong directory when upgrading. This happened to me.

TypeScript
| root
   |- appwrite

You need to run the upgrade command in the root directory. The migrate command needs to be run in the appwrite directory.

safwan
19 Apr, 2023, 23:31

When you upgrade, appwrite should create backups of your .env. Compare the _APP_OPENSSL_KEY_V1 in the backup and in the new env

safwan
19 Apr, 2023, 23:31

They need to be the same

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