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.
me@server:~/appwrite$ sudo docker compose exec appwrite migrate
Failed to create connection: php_network_getaddresses: getaddrinfo failed: Try again
Summary
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
Sep 13, 2023, 20:28
Run
Binyamin
Sep 13, 2023, 20:28
docker compose down
docker compose up -d
Binyamin
Sep 13, 2023, 20:28
Then rerun migrate
Binyamin
Sep 13, 2023, 20:28
And let us know
silent
Python Developer
Sep 13, 2023, 20:29
Ok. Standby
silent
Python Developer
Sep 13, 2023, 20:44
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
Python Developer
Sep 13, 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
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
Sep 13, 2023, 21:07
Have you migrate to version 1.3.8?
silent
Python Developer
Sep 13, 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?