0

After installing postgres and pgAdmin 4 on Ubuntu 22.04 I want to setup a server listening on localhost.

The pg service is running

enter image description here

but when trying to create a new server I get the following error

enter image description here

I think the terminal error points to the same problem

enter image description here

I think the server is running locally but what am I missing / how can I accept the missing socket connections?

1
  • Check the database server's logfile. In my experience service ... status is rarely helpful. Commented Nov 14, 2022 at 2:34

1 Answer 1

1

Could you check if the listen_addresses in the postgresql.conf accepts connections from localhost or set it to '*', if no special restriction required

Sign up to request clarification or add additional context in comments.

2 Comments

Unfortunately I'm not able to find that file... Based on this linuxconfig.org/ubuntu-22-04-postgresql-installation it should be at /etc/postgresql/<version>/main/postgresql.conf but I can only find a postgresql-common inside etc which does not contain the file
You can run "ps -ef|grep postgres" and look for a path following the "-D" option. The postgres.conf should be located in that directory

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.