Back

[SOLVED] Error migrating from 1.3.8 to 1.4.2

  • 0
  • Self Hosted
silent
13 Sep, 2023, 20:27

I have recently tried to upgrade to 1.4.2 from 1.3.8 and have been met with cataclysmic failure. When I upgrade, the upgrade goes fine, but the migration always fails.

I'm not really sure why the upgrade process is failing.

TypeScript
me@server:~/appwrite$ sudo docker compose exec appwrite migrate
Failed to create connection: php_network_getaddresses: getaddrinfo failed: Try again
TL;DR
Summary: The user was experiencing issues while migrating from version 1.3.8 to 1.4.2. They tried various solutions, including redeploying 1.3.8 and running the migration again, but it didn't work. They also attempted to upgrade to version 1.4.0 as a stepping stone but encountered an error. The migration process resulted in an error related to a missing attribute "documentSecurity" in the "projects" collection. The user tried restarting the Docker containers but encountered a networking error. Solution: The issue was resolved, and everything is now running smoothly on version 1
Binyamin
13 Sep, 2023, 20:28

Run

Binyamin
13 Sep, 2023, 20:28
TypeScript
docker compose down
docker compose up -d
Binyamin
13 Sep, 2023, 20:28

Then rerun migrate

Binyamin
13 Sep, 2023, 20:28

And let us know

silent
13 Sep, 2023, 20:29

Ok. Standby

silent
13 Sep, 2023, 20:44
TypeScript
Starting Data Migration to version 1.4.2
Migrating Project: Appwrite (console)
Migrating Collections
Migrating Collection "projects"
'database' from projects: Invalid document structure: Missing required attribute "documentSecurity"
#0 /usr/src/code/vendor/utopia-php/database/src/Database/Database.php(970): Utopia\Database\Database->updateDocument(Object(Utopia\Database\Document), 'projects', Object(Utopia\Database\Document))

With a whole lot more errors complaining about "documentSecurity"

silent
13 Sep, 2023, 20:50

I don't even mind trying to start over. I have the entire mariadb backed up...I just can't get it to migrate. And the upgrade to 1.4.0 as a stepping stone doesn't seem to work with the upgrade method at all

TypeScript
me@server:~$ sudo docker run -it --rm     --volume /var/run/docker.sock:/var/run/docker.sock     --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw     --entrypoint="upgrade"     appwrite/appwrite:1.4.0
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "upgrade": executable file not found in $PATH: unknown.
Binyamin
13 Sep, 2023, 21:07

Have you migrate to version 1.3.8?

silent
13 Sep, 2023, 21:08

I've done a lot of things. I know at one point I did. I'm just not sure if it was this last try. Are you saying to redeploy 1.3.8 then run migration, then upgrade to 1.4.2 then run migration again?

Binyamin
13 Sep, 2023, 21:08

Yes. It's worth a shot

silent
13 Sep, 2023, 21:09

Ok. I'll work on that and give it a go.

silent
13 Sep, 2023, 21:34

That worked flawlessly.

silent
13 Sep, 2023, 21:44

Everything is back up and running on 1.4.2

Thank you very much for the help

Binyamin
13 Sep, 2023, 21:47

Fantastic <:appwritefire:823999000330895380>

Guille
13 Sep, 2023, 23:21

[SOLVED] Error migrating from 1.3.8 to 1.4.2

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