Back

Can't create organization or project

  • 0
  • General
Pietras
18 Apr, 2023, 12:54

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

TL;DR
Summary: The user is experiencing an issue where they cannot create organizations or projects. They have tried running migrations and restarting the app, but the problem persists. Another user suggests checking a specific discussion thread for a possible solution. The user shares an error message indicating an invalid document structure with an unknown attribute. They provide additional logs and ask for further assistance. Another user asks for docker logs and docker ps output. The user shares similar errors and provides more logs. The user mentions they cannot create a new user, organization, or project. They also mention they have checked the upgrade documentation without success. They share logs and mention that the account was created
Pietras
18 Apr, 2023, 13:05

Here is a HTTP response in dev mode.

joeyouss
18 Apr, 2023, 13:33

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

Pietras
18 Apr, 2023, 13:41

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?

Pietras
18 Apr, 2023, 14:06

Here are logs from response

Pietras
18 Apr, 2023, 14:08

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

Pietras
18 Apr, 2023, 14:08

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

joeyouss
18 Apr, 2023, 14:11

thank you for sharing - let me check once

joeyouss
18 Apr, 2023, 14:12

can you check docker logs once?

Pietras
18 Apr, 2023, 14:16

[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

Pietras
18 Apr, 2023, 14:19

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

joeyouss
18 Apr, 2023, 14:30
  1. docker logs appwrite
  2. docker ps -a
joeyouss
18 Apr, 2023, 14:31

outputs please

Pietras
18 Apr, 2023, 14:32
TypeScript
[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
Pietras
18 Apr, 2023, 14:32
joeyouss
18 Apr, 2023, 14:56

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

Pietras
18 Apr, 2023, 15:07

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.

joeyouss
18 Apr, 2023, 15:26

makes sense, making a note of this for my team

joeyouss
19 Apr, 2023, 17:41

@Pietras any update after running the migration?

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