POSTGRESQL: Cannot log in postgresql in debian 9
NickName:Afroid1000 Ask DateTime:2021-08-17T17:27:25

POSTGRESQL: Cannot log in postgresql in debian 9

I am trying to log in my postgresql.After researching I have solved a slew of many issues from a weird python dependency issue to creating sudoers with names and passwords as db to removing and reinstalling postgresql, still i cannot log in as the default user "postgres". A simple error but i cannot find a straight forward answer.

 Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

NOTE:

  1. My first installation,postgresql 11, I changed pg_hba.conf from peer to md5 but refused to login.
  2. I removed postgresql 11 using many commands to purge it out of my system but am shocked anytime i do a locate postgress or locate psql i find a list of postgresql files. The most weird is running *apt-get remove --auto-remove postgresql* and sudo apt --purge remove postgresql -y then running service postgresql start only for it to start!Cannot wrap my head around this after trying several times, i thought it would be removed completely?!.
  3. Though I can locate pg_hba.conf, the actual file is totally nonexitent when I ls the containing directory!!! Are there many /etc/ folders, seems am looking at the wrong /etc/ ?

Copyright Notice:Content Author:「Afroid1000」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/68814888/postgresql-cannot-log-in-postgresql-in-debian-9

More about “POSTGRESQL: Cannot log in postgresql in debian 9” related questions

POSTGRESQL: Cannot log in postgresql in debian 9

I am trying to log in my postgresql.After researching I have solved a slew of many issues from a weird python dependency issue to creating sudoers with names and passwords as db to removing and

Show Detail

No config files after a PostgreSQL installation on Debian Stretch

I had installed postgresql and postgis on new Debian stable (Stretch 9) like I did it on Debian 8. When I'm connecting as postgresql user, I had an error: postgres@servername:~$ psql psql: n'a...

Show Detail

Unable to find postgresql-client-10 on Debian Stretch ARM

I am trying to build docker image on Apple M1 chip Mac and one of the steps include installing postgresql-client-10 package. The base image is ruby-2.6.5-stretch and I have added file repository

Show Detail

Missing PostgreSQL package for Debian 8.x

Over several years and versions Debian offered a package for Postgresql, albeit not the latest versions which were only available via pinning to testing or unstable. But currently - march 2017 - the

Show Detail

Postgresql cannot start and no error log

I am finding myself in a weird situation. A server which has been running for years (ubuntu, ruby 1.8, rails, nginx, and postgresql) is now giving me errors (it stopped working, so i rebooted, and it

Show Detail

postgresql log about no existing database

I don't understand this postgresql log : 2022-03-27 08:00:19.441 UTC [584262] postgres@boutique2 FATAL: database "boutique2" does not exist 2022-03-27 08:00:19.704 UTC [584264] postgres@

Show Detail

Install postgresql 9.2 on debian wheezy (on virtualbox)

I have virtualbox with Debian Wheezy. I'm trying to install Postgresql 9.2 on it. When I trying do it by this instruction i have next: Reading package lists... Done Building dependency tree Reading

Show Detail

Reset PostgreSQL Administrator Password in Debian

I forgotten/mistype password during PostgreSQL installation. I tried to use resources online but the file pathway is always not found. Any specific step by step for Debian?

Show Detail

postgresql – No crypt function on Debian stretch

I have PostgreSQL 9.6 installation on my Debian Stretch (9). When I want to use crypt() or gen_salt() functions, it says: ERROR: function gen_salt(unknown, integer) does not exist LINE 1: select

Show Detail

postgresql – No crypt function on Debian stretch

I have PostgreSQL 9.6 installation on my Debian Stretch (9). When I want to use crypt() or gen_salt() functions, it says: ERROR: function gen_salt(unknown, integer) does not exist LINE 1: select

Show Detail