
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
- How do you strategically secure day's wo...
I worked entire day to try and solve how to use clerk such that it handles checking user's authentication purely server-side. I wasted entire day on a loop of a...
- `access_denied_to_user` - push new branc...
Why pushig new branch is not allowed? ``` git push origin fix-no_issue_id-fix_variable_name remote: {"auth_status":"access_denied_to_user","body":"Permission t...
- REQUEST FAILED IN MIGRATION
I was trying to moved my archived project to a self-host database . Though the Project is "read only" but there's a message that I can view and migrate data to...
