Re: psql could not connect to server after complete reinstallation [Ubuntu 21.10 / PostgreSQL 13]

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Jérémy Garniaux <jeremy(at)mapper(dot)fr>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: psql could not connect to server after complete reinstallation [Ubuntu 21.10 / PostgreSQL 13]
Date: 2021-10-27 15:58:06
Message-ID: f1e3dd27-7670-7bfb-f616-2cf4bb39d979@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/27/21 08:51, Jérémy Garniaux wrote:
> Hi,
>
> After experiencing issues related to the existence of two different
> PostgreSQL versions installed on the same machine, I decided to do a
> "remove --purge postgresql*" and reinstall postgresql-13. Now the output
> of "psql --version" is "psql (PostgreSQL) 13.4 (Ubuntu 13.4-1)".
> However, trying to enter psql, I have this error:
>
> psql: error: could not connect to server: Aucun fichier ou dossier de ce
> type
>     Is the server running locally and accepting
>     connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
>
> I assume this has been asked many times, but I tried different solutions
> proposed on similar posts and none solved my issue.

Same response as to your SO question:

What is the output of pg_lsclusters?

>
> Thanks,
>
> Best regards
>
> Jeremy
>
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jérémy Garniaux 2021-10-27 16:01:52 Re: psql could not connect to server after complete reinstallation [Ubuntu 21.10 / PostgreSQL 13]
Previous Message Jérémy Garniaux 2021-10-27 15:51:52 psql could not connect to server after complete reinstallation [Ubuntu 21.10 / PostgreSQL 13]