The error message suggests:
The server is running locally
and according to the result ps -ef | grep "post" ps -ef | grep "post" posted in comments, the answer is final No , server processes do not exist, server is not working.
The fact that you are writing I never encountered psql problems suggests that it has been installed and works before then, in this case, look at the most recent log file inside /var/log/postgresql to check for any fatal message about an error indicating why the server did not start.
Daniel VΓ©ritΓ©
source share