Closed k3n closed 5 years ago
In this instance, it looks like you're trying to connect to a database on localhost
from within the sqitch docker container, which does not include a running database. You need to use an IP address that docker can connect to. Usually this is a 172.x
address that docker uses.
Excellent, from your suggestion I was able to solve it by via the Docker docs:
I updated this section of my config with host.docker.internal
, and it's finding my DB now:
[target "local"]
uri = db:pg://my_db_user:my_password@host.docker.internal/my_db
I am having another issue, but I'll start a new ticket for that. Thank you!
Greetings! First, I'm ecstatic to find this project, if I can only get it to work it'd be the best thing since....Sqitch itself :)
Just got a new dev machine, running Mac Mojave, and installed pg@9.6. I can connect to it via my data tool (DataGrip), see schemas, users, etc. So I know it's up & running.
I pulled the docker-sqitch image and ran the
docker-sqitch.sh
script, but it's complaining:Even though I believe it should have worked (since my other tool can connect fine), based on some StackOverflow suggestions I went and updated my
postgresql.conf
with:And my
pg_hba.conf
with:Restarted postgres, but I'm still getting the same error.
Log file only shows:
Again confirmed postgres is listening:
My
sqitch.conf
:At this point I'm out of ideas, and the search results are turning redundant with their suggestions. Any ideas?
(edited to add
sqitch.conf
)