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 appwritedocker 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
- appwrite free plan resources issue
i'm on free plan and i just used 700MB bandwidth with 8mb storage and 141k requests, but when i'm trying to continue developing my app it send me an error messa...
- Startup credits or promo code inquiry fo...
Hello Appwrite team, Happy New Year! I hope you’re all doing well. I’m currently exploring backend solutions for a new SaaS project and Appwrite came highly re...
- Need a web developer
Need. Web developer for a paid project/collaboration