Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6107

Postgres install on Ubuntu 24 - can't connect [migrated]

$
0
0

I have installed postgresql on my ubuntu 24 box using apt install postgresql postgresql-contrib - the install works fine no issues. I can start postgresql fine as well.

However when I try 'psql' I get error

psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory    Is the server running locally and accepting connections on that socket?

I think the reason may be that no postgres user is created on install. When I do getent passwd postgres nothing is returned

Also /var/run/postgresql doesn't exist

This seems like an odd one, I can't find anything on it. Perhaps the install is silent failing? Any help really appreciated


Viewing all articles
Browse latest Browse all 6107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>