Answer the question
In order to leave comments, you need to log in
How to solve PostgreSQL access problem?
Hello, I am raising the OSM server. Previously, I did not work with PostgreSQl, but I understand slowly. I do everything according to the official manual. But I'm stuck on the osm2pgsql utility, which produces the following:
osm2pgsql SVN version 0.88.1 (64bit id space)
Using built-in tag processing pipeline
Osm2pgsql failed due to ERROR: Error: Connection to database failed: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Answer the question
In order to leave comments, you need to log in
Finger in the sky - the socket has not been updated
sudo systemctl stop postgres
sudo systemctl start postgres
sudo systemctl status postgres
/var/lib/postgresql/***/pg_hba.conf
Check connection permissions.
make trust everywhere, if it works on the basis of this, you will disable it.
Most likely there is a check on localhost
This happens because of this and backups are not made from the console. Standard utilities at the same time pass and work.
After changing the parameters, you will need to restart the database
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question