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
Run
docker compose down
docker compose up -d
Then rerun migrate
And let us know
Ok. Standby
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"
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.
Have you migrate to version 1.3.8?
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?
Yes. It's worth a shot
Ok. I'll work on that and give it a go.
That worked flawlessly.
Everything is back up and running on 1.4.2
Thank you very much for the help
Fantastic <:appwritefire:823999000330895380>
[SOLVED] Error migrating from 1.3.8 to 1.4.2
Recommended threads
- Having issues with login via CLI
``` ~/appwrite appwrite login --endpoint https://localhost/v1 --verbose ? Enter your email myvalidemai...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...