
I got a server error 500 during organization or project creation. How to check what is going on?

Here is a HTTP response in dev mode.

Hi - please share the response and which version of appwrite are you using?

The latest one, the account was created on some previous version and I think that is the problem here.
I tried to move all MariaDB from old version to the latest one. How can I restore these data? How to move e.g one project only from old app write instance?


Here are logs from response

Unfortunately, I was aware of Upgrade section in Doc and it doesn't changing anything

Now, I can't create a new user, new organization, or new project.

thank you for sharing - let me check once

can you check docker logs once?

[Error] Timestamp: 2023-04-18T14:13:10+00:00 [Error] Method: POST [Error] URL: /v1/projects [Error] Type: Utopia\Database\Exception\Structure [Error] Message: Invalid document structure: Unknown attribute: "region" [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php [Error] Line: 2426


It's true, but I run migration few times and there is no change 😦

docker logs appwrite
docker ps -a

outputs please

[Error] Timestamp: 2023-04-18T14:20:11+00:00
[Error] Method: POST
[Error] URL: /v1/projects
[Error] Type: Utopia\Database\Exception\Structure
[Error] Message: Invalid document structure: Unknown attribute: "region"
[Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
[Error] Line: 2426
[2023-04-18 14:21:41 #1.1] INFO Server is shutdown now
Worker 5 started successfully
Worker 6 started successfully
Worker 4 started successfully
Worker 3 started successfully
Worker 2 started successfully
Worker 1 started successfully
[Setup] - Server database init started...
[Setup] - Creating database: appwrite...
[Setup] - Server database init completed...
Server started successfully (max payload is 6,291,456 bytes)
Master pid 1, manager pid 7
[Error] Timestamp: 2023-04-18T14:24:15+00:00
[Error] Method: POST
[Error] URL: /v1/projects
[Error] Type: Utopia\Database\Exception\Structure
[Error] Message: Invalid document structure: Unknown attribute: "region"
[Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
[Error] Line: 2426


since you mentioned you already ran migration - which is the ideal solution
please confirm once this has been replicated: https://github.com/appwrite/appwrite/discussions/5066#discussioncomment-4833537
usually server errors after migration happen after forgetting to run a command. If you have done these steps then it must be an internal error and I will need to investigate a bit deeper

Yeah, it still reproducing. I have made a migration few times, I also few times restarted a app write dockers.
In case when I am running fresh instance then this problem is not occurring, but I would like to keep my data, or at least the structure of projects.

makes sense, making a note of this for my team

@Pietras any update after running the migration?
Recommended threads
- OpenAI Whisper on Appwrite Sites
Hey guys, just wondering if I can serve an OpenAI Whisper AI on appwrite / appwrite sites. tiny model is like ~40-50MB
- Google Oauth help
this error pops up (TypeError: (0 , {imported module [project]/src/lib/auth.ts [app-rsc] (ecmascript)}.signIn) is not a function) but cant find a way to solve i...
- 404 errors after 7 Days
Local hosted Appwrite via docker. Last version and current version. After exactly 7 days Appwrite stops working. I get 404 route not found, cannot access anyth...
