Hi, I am trying to connect to a Postgres instance...
# troubleshoot
b
Hi, I am trying to connect to a Postgres instance running on my local machine. The instance is running and accessible through SQL editors etc. I am getting the error below;
Copy code
[2023-04-17 11:12:13,532] ERROR    {datahub.entrypoints:188} - Command failed: (psycopg2.OperationalError) could not connect to server: Connection refused
	Is the server running on host "localhost" (127.0.0.1) and accepting
	TCP/IP connections on port 5432?
could not connect to server: Cannot assign requested address
	Is the server running on host "localhost" (::1) and accepting
	TCP/IP connections on port 5432?
On the host and port I tried various alternatives but I couldn't succeed; • host.docker.internal:5432 • localhost:5432 • 127.0.0.1:5432 Could you help me with this? Thanks
šŸ” 1
šŸ“– 1
āœ… 1
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: āœ… There's a lot of good information on our docs site: www.datahubproject.io/docs, Have you searched there for a solution? āœ… It's not uncommon that someone has run into your exact problem before in the community. Have you searched Slack for similar issues? Did you find a solution to your issue? āŒ Sorry you weren't able to find a solution. I'm sending you some tips on info you can provide to help the community troubleshoot. Whenever you feel your issue is solved, please react āœ… to your original message to let us know!
b
After I restart the docket container,
host.docker.internal:5432
worked magically.
āœ”ļø 1