[SOLVED] Failed to create connection: php_network_getaddresses: getaddrinfo failed
- 0
- Self Hosted
- General
what container do you need logs of?
I did get The _APP_CONNECTIONS_MAX variable is not set. Defaulting to a blank string
when I run the command the first try.
how did you upgrade?
I upgraded to 1.4.0 using this command
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.4.0
then I cd into appwrite directory, to run the migration command it failed. So I noticed that 1.4.1 was released so I backed out of appwrite directory and I ran 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.4.1
then I cd back into the appwrite directory to run the migration command, for it to fail also
what's in your appwrite folder right now? and what's the output of pwd
?
what's the output of docker compose logs redis
?
Do you need more before that It looks normal before that.
seems like it's online... but the logs from the other containers are still saying they can't connect?
Yeah, so strange
Didn't have this issue before 1.4.0 though
Should I try to go back?
no. try to restart everything with docker compose down && docker compose up -d
Lol everything is working now? Should I try running the migration command again?
Also added _APP_CONNECTIONS_MAX=20
to .env
before restarting everything. (said in the GitHub page)
Ok running the migration command everything is working.
So either the fix is
A. 1. Add `_APP_CONNECTIONS_MAX=20` to `.env` file.
2. then run `docker compose down && docker compose up -d`
3. then run the migration command as usual.
(Maybe?)
B. 1. run `docker compose down && docker compose up -d`
2. then run the migration command as usual.```
you shouldn't need that anymore
Ok for testing I removed _APP_CONNECTIONS_MAX=20
from .env
and I ran docker compose down && docker compose up -d
and still everything works lol. So yeah I guess just restarting everything fixes it.
Idk anyways, thank you!
[SOLVED] Failed to create connection: php_network_getaddresses: getaddrinfo failed
I want to just mention that I had the same issue today after 1.4.0 upgrade - the "fix" above works, but maybe a PSA could be added if it's the same for everyone upgrading.
you should be upgrading to the latest patch version (1.4.1 right now) which doesn't have the problem
Recommended threads
- Custom Domains
Hi All, Should be a quick config issue. I'm setting up custom domains on the hosted version. I have verified the domain with the CNAME but appwrite isn't gene...
- Unauthorized Charge After Appwrite Pro F...
I was using Appwrite Pro credits worth $100, which were valid until November. During this period, I was exploring Appwrite's services. However, I recently notic...
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...