Back

Setting Up Local env

  • 0
  • General
EniXo
19 Apr, 2024, 23:47

Hello everyone :appwritebow: ,

I'm currently trying to set up a local environment since I forked the project in order to investigate on this issue : https://github.com/appwrite/appwrite/issues/7758

I've run this command, which effectively run the containers :

TypeScript
docker run --rm --interactive --tty \
  --volume $PWD:/app \
  composer update --ignore-platform-reqs --optimize-autoloader --no-plugins --no-scripts --prefer-dist

I have access to localhost:8080 but when I'm trying to log/sign I have a 500 - Internal Server Error, here's the trace from appwrite/appwrite-dev :

TypeScript
2024-04-20 01:40:46 [Error] Timestamp: 2024-04-19T23:40:46+00:00
2024-04-20 01:40:46 [Error] Method: POST
2024-04-20 01:40:46 [Error] URL: /v1/account/sessions/email
2024-04-20 01:40:46 [Error] Type: Utopia\Database\Exception\Structure
2024-04-20 01:40:46 [Error] Message: Invalid document structure: Unknown attribute: "factors"
2024-04-20 01:40:46 [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
2024-04-20 01:40:46 [Error] Line: 3070

2024-04-20 01:41:00 [Error] Timestamp: 2024-04-19T23:41:00+00:00
2024-04-20 01:41:00 [Error] Method: POST
2024-04-20 01:41:00 [Error] URL: /v1/account
2024-04-20 01:41:00 [Error] Type: Utopia\Database\Exception\Structure
2024-04-20 01:41:00 [Error] Message: Invalid document structure: Unknown attribute: "mfa"
2024-04-20 01:41:00 [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
2024-04-20 01:41:00 [Error] Line: 3070```

I might have missed something 🥺
TL;DR
Developers trying to set up a local environment for a project on Appwrite are encountering a 500 - Internal Server Error when trying to log in. The error message shows issues with unknown attributes "factors" and "mfa". The error seems to stem from the database structure in the code. Check the database configuration and ensure it aligns with the project's requirements to resolve the issue.
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