Skip to content
Back

Appwrite 1.7.1 "Utopia\Domains\Domain::__construct(): Argument #1 ($domain) must be of type string"

  • 0
  • Self Hosted
Victor Freitas
20 May, 2025, 12:23

Hi guys, first of all thank you for this wonderful tool and for being open source for everyone, I migrated my appwrite from 1.6.2 to 1.7.1 and it is giving this error in the log of appwrite container.

TypeScript
  [Error] Message: Utopia\Domains\Domain::__construct(): Argument #1 ($domain) must be of type string, null given, called in /usr/src/code/app/controllers/api/console.php on line 49
  [Error] File: /usr/src/code/vendor/utopia-php/domains/src/Domains/Domain.php
  [Error] Line: 66

my console version is 5.3.18, I am using coolify.

TL;DR
Developers encountered an error during migration from Appwrite 1.6.2 to 1.7.1, receiving a "Argument #1 ($domain) must be of type string" error. To fix this, they need to run the migration command using the following command: ``` docker run -it --rm ^ --volume //var/run/docker.sock:/var/run/docker.sock ^ --volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^ --entrypoint="upgrade" ^ appwrite/appwrite:1.7.1 ``` Additionally, they should run the command
Guille
20 May, 2025, 12:31

Hey @Victor Freitas did you ran the migration command?

Victor Freitas
20 May, 2025, 12:32

Hi @Guille No, I just changed the image version and redeployed, it worked with 1.6.0 to 1.6.2 a while ago

Guille
20 May, 2025, 12:33

You shuld run docker compose exec appwrite migrate

https://appwrite.io/docs/advanced/self-hosting/update

Victor Freitas
20 May, 2025, 12:34

I am going to try

Guille
20 May, 2025, 12:34
TypeScript
docker run -it --rm ^
    --volume //var/run/docker.sock:/var/run/docker.sock ^
    --volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^
    --entrypoint="upgrade" ^
    appwrite/appwrite:1.7.1

Try first using that command

Guille
20 May, 2025, 12:35

and then the migration

Guille
20 May, 2025, 12:35

so all your containers will be updated as well

Victor Freitas
20 May, 2025, 12:35

🫡

Victor Freitas
20 May, 2025, 12:35

Ok

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