Hello everybody! Here is my problem. I deployed a...
# replication-troubleshooting
g
Hello everybody! Here is my problem. I deployed airbyte locally and am still finding my ways around adjusting the
docker-compose.yaml
file to my needs. I need to create a Postgres source from a the postgres running on the host machine, same one deploying airbyte. I tried using
host.docker.internal
and also adding it to the
extra_hosts
of the
worker
service, but it's not working. I just get this error message, and can't seem to get much else from the logs, any ideas?
e
Hello Gabriel! I think it should be resolved by service name because they are in the same network
g
yeah not really my case, my database is not part of the airbyte docker network (internal or external) it lives in my host, normally I can connect to it by adding an extra_hosts to my docker-compose service, like so
Copy code
extra_hosts:
  - "host.docker.internal:host-gateway"
I have added this host to every container, and it's there in the /etc/hosts file with my hosts ip address, as it should be But I still can't connect to it, which makes me think that maybe that's not the issue, but something else The problem is, I can't understand the problem with the current logs I'm getting, I have no idea what's going on
e
I got it.
image.png
works fine
but Im working on linux, also I tried with docker gateway ip
Copy code
5: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 02:42:30:8a:49:c8 brd ff:ff:ff:ff:ff:ff
    inet 172.26.0.1/16 brd 172.26.255.255 scope global docker0
in my case is 172.26.0.1 test connection passed
and in first time test connection can be failed, if airbyte couldnt pull image, try to
Copy code
docker pull airbyte/source-postgres:1.0.42
hope it helps
g
you used the docker gateway ip directly in the
Host
? Maybe my problem was using host.docker.internal instead, I'll give it a try later today
👍 1
it worked! I thought I could
host.docker.internal
as I do when creating connections in python and pgadmin, but nope, had to input the ip address manually. Thanks!!! PS.: maybe that should be made clearer in the docs
e
Im glad to hear that! Maybe, but im not employee airbyte🙂
m
g
@Marcos Marx (Airbyte) yep, honestly didn't find the docs very clear in that regard. It mentions the host.docker.internal, but not the fact I needed to input the docker gateway host manually. It's also not clear, which docker services I need to add the
extra_hosts
to
maybe I could contribute somehow to the docs, do you think it's worth?
u
Of course! Contributions are always welcome!