From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Jérémy Garniaux <jeremy@mapper.fr>
To: pgsql-general@lists.postgresql.org
Subject: Re: psql could not connect to server after complete reinstallation [Ubuntu 21.10 / PostgreSQL 13]
Date: Wed, 27 Oct 2021 08:58:06 -0700
Message-ID: <f1e3dd27-7670-7bfb-f616-2cf4bb39d979@aklaver.com> (raw)
In-Reply-To: <9e818078-3773-ba04-2ee8-eb7d1ef79439@mapper.fr>
References: <9e818078-3773-ba04-2ee8-eb7d1ef79439@mapper.fr>
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.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, jeremy@mapper.fr
Subject: Re: psql could not connect to server after complete reinstallation [Ubuntu 21.10 / PostgreSQL 13]
In-Reply-To: <f1e3dd27-7670-7bfb-f616-2cf4bb39d979@aklaver.com>
References: <9e818078-3773-ba04-2ee8-eb7d1ef79439@mapper.fr> <f1e3dd27-7670-7bfb-f616-2cf4bb39d979@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox