Hello good people, I have the docker version runni...
# troubleshoot
p
Hello good people, I have the docker version running and want to test connecting to a MongoDB and Postgres databases running on my localhost (not the datahub docker localhost). It seems I cannot simply use localhost:5432 as the host & port because both DBs are not running inside datahub docker; any suggestions?
l
Hey there šŸ‘‹ I'm The DataHub Community Support bot. I'm here to help make sure the community can best support you with your request. Let's double check a few things first: 1ļøāƒ£ There's a lot of good information on our docs site: www.datahubproject.io/docs, Have you searched there for a solution? Yes button 2ļøāƒ£ It's not uncommon that someone has run into your exact problem before in the community. Have you searched Slack for similar issues? Yes button
p
None of this helped including following some of the other solutions like using host.docker.internal:5432
d
Hello Nuwan, can you post the logs here? šŸ™‚ Additionally, have you given restarting the docker containers a shot?
p
Hey Hyejin, I did restart docker several times.
would this do?
d
Thanks for posting logs. I wonder the error message was same with localhost:5432. Could you try with this steps in the thread (allow remote access and change localhost to ip of the host) and share how it goes? : https://datahubspace.slack.com/archives/CUMUWQU66/p1655738761656169?thread_ts=1655724639.963709&cid=CUMUWQU66
p
From various other non datahub posts I tried all that is described in @numerous-diamond-76461’s post except the step; how did I miss that
Copy code
# IPv4 local connections:
host    all             all             0.0.0.0/0            md5
It works now thanks šŸ™ Hyejin
I suppose I have to figure out the same for MongoDB