#After upgrading to 1.4.5, this error shows:
73 messages · Page 1 of 1 (latest)
The password contains characters like } ] ) ; *
After downgrading to 1.3.7, this shows
Starting Data Migration to version 1.3.7
Warning: Redis::pconnect(): php_network_getaddresses: getaddrinfo failed: Try again in /usr/src/code/app/init.php on line 650
php_network_getaddresses: getaddrinfo failed: Try again
So I can call docker compose up -d without having migrated yet?
Updating to 1.3.8 and docker compose down && docker compose up -d didn't help. Same error afterwards.
Also the fix to you've sent me the link to was regarding the appwrite migrate for 1.3.7, which is not the main issue. Was just funny that it couldn't migrate to the same version. The main (first) error is with 1.4.5.
The restarting of the compose should remove the first error
Didn't help 😦
Everything that I need works well with 1.3.8, so I'll just try upgrading some other time.
Thanks for your effort and help ❤️
I still have the same error when upgrading to 1.4.13
What was your upgrading procedure?
Do you have backups?
Yes. I just finished recovering from the backup.
1.3.8
This is my upgrade procedure (I tried with 1.4.5 before, and today with 1.4.13)
docker pull appwrite/appwrite:1.3.8
docker run -it --rm
--volume /var/run/docker.sock:/var/run/docker.sock
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw
--entrypoint="install"
appwrite/appwrite:1.3.8
cd appwrite
(When upgrading major or minor version:)
docker compose exec appwrite migrate
docker compose up -d
I used this script: https://gist.github.com/Meldiron/47b5851663668102a676aff43c6341f7
It worked, but I guess, the sql users were not recovered. I will just restore from the DigitalOcean backup...
I recommend Steven's backup procedure in the future: https://youtu.be/lM5yZEPtlvg?si=G-4HowqXCQvzLCcX
Appwrite is a self-hosted backend-as-a-service platform that provides developers with all the core APIs required to build any application.
It's a good practice to backup your Appwrite server data regularly if you need to restore it later.
Backup/Restore scripts: https://gist.github.com/stnguyen90/fee636ff652b8ecbf761935b2aa254fb
Backup Notes...
But is the bug known that I got after every upgrading to 1.4.x?
Unable to parse DSN: mariadb://user:...
So from 1.3.8, you should run:
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="upgrade" \
appwrite/appwrite:1.4.13
That command in the main folder, not in the Appwrite install folder.
Then run the migration command:
docker compose exec appwrite migrate
``` (In the appwrite folder)
And yes, it's directly to latest patch
That's exactly what I pasted above, no?
You ran "install" entrypoint instead and also it's 1.3.8 and not 1.4.
From what I understand you're with 1.3.8, right?
Yes, obviously I replaced the version with the one I installed
So the entrypoint could have been the issue?
It worked many times before lol
Maybe. No idea
hmmmm can you try url encoding the password?
if that doesn't work, you might need to change the password 😬
Wait, but you're not able to make it run even in older versions?
1.3.8 works. I use Appwrite for a long time.
But any upgrade to 1.4.x failed.
I'm trying with the correct entrypoint now...
Is this a yes?
Previous installation found, do you want to overwrite it (a backup will be created before overwriting)? (Y/n)
Do you have made a backup prior to this?
No, as I just recovered it from the DigitalOcean backup, and will do it again if it fails
I recovered via the script mentioned above, which worked after a few attempts, but my sql users weren't able to connect
This is yes (Y)
Thanks, it's running
After it, it won't work. Run after
docker compose exec appwrite migrate
Same error, the entrypoint change didn't help
Where do you got the error?
migrate
When running the docker exec appwrite migrate?
If it's because of the special characters in the pw, maybe there could be a fix in the future
Yes
Then yes, that's probably the issue
Appwrite installed successfully
root@api:~# cd appwrite
root@api:~/appwrite# docker compose exec appwrite migrate
Unable to parse DSN: mariadb://user...
Ok so I'll wait for a fix
You can change the DB password to something that doesn't contain special characters and then update the env var. It should work that way
Okay
Do you think, in a future release there will be a fix for this issue?
No idea, but you will need to go through 1.4.13 prior to 1.5 for example
You can change the password, run migration, and then change the password to what it was initially
i told you to encode the password
And DS told me to change the passwords.
I changed (all 4) database passwords and was able to upgrade and to the migration.
If changed back, the migrate fails again.
Now it's running, the database connects, but the domain and its ip say bad gateway.
Checck that the . env variable
_APP_DOMAIN actually have your domain
Yes it has, and it also happens through the droplet's ip
Could you send a screenshot of it?
Of a blank page saying Bad Gateway at the top left?
Okay, then I know what's it, thanks for the description 😅
What do you get when running
docker compose logs appwrite
?
And
docker compose logs traefik
?
In your appwrite installation folder
Just restored the droplet again.
I really appreciate your super fast support, and the product, but I don't have time for fixing bugs when I don't actually need an upgrade.
You changed the password back and then things stopped working?
The database was accessible. The user interface was not.
Maybe it was a cache problem
I used incognito mode
Appwrite has internal caches