docker icon indicating copy to clipboard operation
docker copied to clipboard

Error connecting to Citus master

Open aliyildizoz opened this issue 4 years ago • 1 comments

image

Hi, I am getting the following error when trying to connect to citus master with psql commands.

psql -h localhost -U postgres -p 5500
psql: error: server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.

But I am able to connect without error with the following command.

docker exec -it citus_master psql -U postgres
psql (13.2 (Debian 13.2-1.pgdg100+1))
Type "help" for help.

postgres=#

I need to connect to citus with psql commands as it needs to be connected via Node Js application. Or is there another way to do this? Thank you.

aliyildizoz avatar Aug 11 '21 08:08 aliyildizoz

I faced same issue with latest 10.2 docker image on windows and also had a local postgresql13 running as a windows service, I stopped that service, and then was able to connect to the postgresql docker instance using psql from the command prompt.

anandsowm avatar Dec 03 '21 15:12 anandsowm