Skip to content
Back

After upgrading to 1.4.5, this error shows:

  • 0
  • Self Hosted
Achim
10 Oct, 2023, 21:13
TypeScript
Unable to parse DSN: mariadb://user:...```
TL;DR
Developers are encountering errors after upgrading to version 1.4.5. One suggested solution is to change the password, run migration, and then change the password back. An additional recommendation is to change the DB password to exclude special characters and update the environment variable accordingly. One developer shared their successful recovery using a provided script but noted that SQL users were not recovered. The thread discusses different versions and their respective upgrade procedures. Two possible solutions include utilizing a backup procedure by Steven and a script shared in the thread. There seems to be a recurring issue with the error "Unable to parse DSN: mariadb://user:..." after upgrading
Achim
10 Oct, 2023, 21:16

The password contains characters like } ] ) ; *

Achim
10 Oct, 2023, 21:17

After downgrading to 1.3.7, this shows

TypeScript
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
Binyamin
10 Oct, 2023, 21:22

Check and follow this

Achim
10 Oct, 2023, 21:46

So I can call docker compose up -d without having migrated yet?

Binyamin
10 Oct, 2023, 21:46

That for sure

Binyamin
10 Oct, 2023, 21:46

Also it's recommend to upgrade and migrate to 1.3.8 first

Achim
10 Oct, 2023, 22:35

Updating to 1.3.8 and docker compose down && docker compose up -d didn't help. Same error afterwards.

Achim
10 Oct, 2023, 22:40

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.

Binyamin
10 Oct, 2023, 22:42

The restarting of the compose should remove the first error

Achim
10 Oct, 2023, 22:42

Didn't help 😦

Achim
10 Oct, 2023, 22:44

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 ❀️

Achim
7 Mar, 2024, 23:57

migrate

D5
7 Mar, 2024, 23:57

When running the docker exec appwrite migrate?

Achim
7 Mar, 2024, 23:57

If it's because of the special characters in the pw, maybe there could be a fix in the future

Achim
7 Mar, 2024, 23:57

Yes

D5
7 Mar, 2024, 23:57

Then yes, that's probably the issue

Achim
7 Mar, 2024, 23:57

Appwrite installed successfully root@api:# cd appwrite root@api:/appwrite# docker compose exec appwrite migrate Unable to parse DSN: mariadb://user...

D5
7 Mar, 2024, 23:57

As Steven mentioned

D5
7 Mar, 2024, 23:58

Seems, yes, definitely the DB password πŸ˜…

Achim
7 Mar, 2024, 23:58

Ok so I'll wait for a fix

D5
7 Mar, 2024, 23:59

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

Achim
8 Mar, 2024, 00:00

Okay

Do you think, in a future release there will be a fix for this issue?

D5
8 Mar, 2024, 00:01

No idea, but you will need to go through 1.4.13 prior to 1.5 for example

D5
8 Mar, 2024, 00:01

You can change the password, run migration, and then change the password to what it was initially

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