Back

appwrite selfhosted error at login page

  • 1
  • Self Hosted
  • Auth
YasharHTML
11 Mar, 2024, 22:17

When I try to login to selfhost appwrite console (mariadb is in aws which was used for 1.4.x) on docker logs it says Invalid document structure: Unknown attribute: “factors”

TL;DR
Developers are facing an error at the login page of their self-hosted Appwrite app, related to migrations from version 1.4.x to 1.5.3. The error seems to be due to the migration process not updating the database correctly. The issue might be specific to migrations. Check if the necessary attributes are added in the migration. Make sure MariaDB and Redis are correctly configured as environment variables in AWS. Consider running the latest migration to fix any issues. The error message is "Invalid document structure: Unknown attribute: “factors”".
Ryan
11 Mar, 2024, 22:18

Which version of Appwrite are you running?

YasharHTML
11 Mar, 2024, 22:18

1.5.3 migrated today

YasharHTML
11 Mar, 2024, 22:18

Exactly now in my EC2

YasharHTML
11 Mar, 2024, 22:19

Redis and MariaDB is in aws itself not with dockercompose, they are passed in as env vars

Ryan
11 Mar, 2024, 22:19

Did you go from 1.4.13 -> 1.5.3?

YasharHTML
11 Mar, 2024, 22:19

Yeah

Ryan
11 Mar, 2024, 22:19

I had a similar issue in 1.5.2, and I'm running my 1.5.3 migration now to see if it's been fixed

YasharHTML
11 Mar, 2024, 22:20

Do I need to change anything in DB?

Ryan
11 Mar, 2024, 22:20

It definitely sounds like an issue with migrations though as it's looking for an attribute related to MFA which should have been added in the migration

YasharHTML
11 Mar, 2024, 22:20

I use the db I used for 1.4.13

Ryan
11 Mar, 2024, 22:21

When you run the migration on a new version, it updates the db to match what is needed for 1.5 so it should be fine

Ryan
11 Mar, 2024, 22:21

Let me check to see if my migration still has the issue and then we can see if it's still an issue in 1.5.3 as a whole or if it's more specific to your migrations

YasharHTML
11 Mar, 2024, 22:22

I can send relevant data if necessary

YasharHTML
11 Mar, 2024, 22:24

Will it work with local test db?

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