Back

[SOLVED] Problem with migrating from 1.3.1 to 1.4.3

  • 0
  • Self Hosted
Binyamin
29 Sep, 2023, 17:48

You're running

TL;DR
Issue: Problem with migrating from version 1.3.1 to version 1.4.3 Solution: - Delete individual images on docker and recreate the whole database as a lesson learned to create better backups. - Try running 'docker compose down -v'. - If the above doesn't work, uninstall the entire appwrite with the rest of the packages. - To uninstall, run 'docker compose down' and 'docker compose up -d' again. Then migrate. - If encountering errors, try rolling back from 1.3.1 to 1.3.8 before migrating to 1.4.
Pietrekt
29 Sep, 2023, 17:48

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.3.8

Binyamin
29 Sep, 2023, 17:49

For version 1.3.8 change upgrade to install

Binyamin
29 Sep, 2023, 17:49

In the entrypoint

Binyamin
29 Sep, 2023, 17:49

The upgrade is only from version 1.4.x

Pietrekt
29 Sep, 2023, 17:55

after all that i got exact same error as at the beginning

Pietrekt
29 Sep, 2023, 17:57

also by trying to acces the site not by localhost but by ip adress i got this error

Pietrekt
29 Sep, 2023, 18:02

i tried to check logs on docker desktop but they are all empty except these

Binyamin
29 Sep, 2023, 18:02

In version 1.3.8 everything operated correctly?

Binyamin
29 Sep, 2023, 18:02

The migration when smoothly?

Pietrekt
29 Sep, 2023, 18:04

should i migrate from 1.3.1 to 1.3.8?

Binyamin
29 Sep, 2023, 18:04

Yes

Binyamin
29 Sep, 2023, 18:04

Step 3

Binyamin
29 Sep, 2023, 18:04

Make sure you've all the backups

Pietrekt
29 Sep, 2023, 18:08

migration went smoothly but i cannot login to my account now

Binyamin
29 Sep, 2023, 18:08

Check to see if you see errors? Try in incognito

Binyamin
29 Sep, 2023, 18:09

You can always restore to the backup and to version 1.3.1

Pietrekt
29 Sep, 2023, 18:38

actually i dont have backup of volumes cause it was beyond my skills i only have sql dump and collections headers

Pietrekt
29 Sep, 2023, 18:39

i tried now rolling back to 1.3.1 to 1.3.8 then to 1.4.3 but now as i start i have this error showed up: {"message":"Error: Error handler had an error: Failed to create connection: php_network_getaddresses: getaddrinfo failed: Try again","code":500,"file":"usrsrccodevendorutopia-phpframeworksrcApp.php","line":551,"trace":[{"file":"usrsrccodevendorutopia-phpframeworksrcApp.php","line":673,"function":"execute","class":"UtopiaApp","type":"->","args":[{},{},{}]},{"file":"usrsrccodeapphttp.php","line":253,"function":"run","class":"UtopiaApp","type":"->","args":[{},{}]}],"version":"1.4.3"}

Binyamin
29 Sep, 2023, 18:40

For that all you need to do is run

TypeScript
docker compose down && docker compose up -d

Again. Then migrate

Pietrekt
29 Sep, 2023, 18:43

i somehow got past previous problem but got stopped by another

Pietrekt
29 Sep, 2023, 20:19

Soo after trying dozens of things i think it's time to uninstall whole appwrite with rest of the packages but i don't know how "compose down -v" doesn't seem to work

Drake
5 Oct, 2023, 16:43

how about docker compose down -v?

Pietrekt
5 Oct, 2023, 19:43

Yea, that's what I meant, I eventually got it by deleting individual images on docker and recreating whole database, so I learned a lesson to create better backups

Pietrekt
5 Oct, 2023, 19:44

[SOLVED] Problem with migrating from 1.3.1 to 1.4.3

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