Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mfmld-0005Zl-1S for pgsql-general@arkaria.postgresql.org; Wed, 27 Oct 2021 17:31:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mfmlc-0005pN-0g for pgsql-general@arkaria.postgresql.org; Wed, 27 Oct 2021 17:31:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mfmla-0005pA-Ej for pgsql-general@lists.postgresql.org; Wed, 27 Oct 2021 17:31:11 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mfmlU-0005Bi-Bw for pgsql-general@lists.postgresql.org; Wed, 27 Oct 2021 17:31:10 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 5761C5C01F1; Wed, 27 Oct 2021 13:31:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 27 Oct 2021 13:31:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=f 8D00a10V3SgrbpG9UYwJBDYn1NcRr+3OteJxr2PjIY=; b=dQZkPoNWxeampzT2P 8lxUjgvJ4D/RkOuTOdQbWimLK1odMTf660l7Acc3Sasmdt+rS2XpbWzf9uzVcp6o nD1wXxYk12tzguPkEHIpKNekW+f2KDvbJgZWHlcMnarcg/mTr6fE67+Ci/+1WAlr 7YOi96UqgiG8gXCgXG2wNULqtSP9SKsPE6s95XAvYBCHQO3QdVVDAE6Bk3VtxRir in3/+x875SHoEKfXCEhgfzxh7hOrS6n9I+KgAlflTUvZqQDHIlLJkZHoxj4ojLkY CL7mTQm60t1e3BU2sb2tu+39ZgBb7bkUtON3jpjsDFoHdpZUadj1YhCtkJnDU2rm XSXMQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=f8D00a10V3SgrbpG9UYwJBDYn1NcRr+3OteJxr2Pj IY=; b=QhPcN3geJ1fQ8BM6vfJU7lIKKJRzfl+R7omWmPcLLFTSPkdFuJkSS19AN IByC6SUfdLjroDM97qwY/VMtFNyc500Djjyf9ylc30bEKr22eW1Z15gMtk4evgQC BtkD46rAF8HeSsWLzdg/R34chTDlzK5T06QcF3K80IoHbWK61nlVud5A+rUtVyQ7 OpvaISllRH4CsQeIuEx1vYZV/qq1oQC7Gn0p6J3goivik9BomR3006gfbAf3Z20Z VAjpnCQdvIQhlzg8Y7YqrXceq0YcbTEWYmYdknmP3BeEbL4GZspcnIS3PIJ4o29Y u4mYt0Fyddmzivp2/X5Qa32XulZPA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdegtddguddutdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepveevfeevfeeugeffkeekhfegieeufffgteeujedv gffhueejjefhkeejleegtdegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 27 Oct 2021 13:30:59 -0400 (EDT) Subject: Re: psql could not connect to server after complete reinstallation [Ubuntu 21.10 / PostgreSQL 13] To: =?UTF-8?B?SsOpcsOpbXkgR2FybmlhdXg=?= , pgsql-general@lists.postgresql.org References: <9e818078-3773-ba04-2ee8-eb7d1ef79439@mapper.fr> <90ebbc17-a029-7340-2272-f37363dd5651@mapper.fr> From: Adrian Klaver Message-ID: <1f138d29-de52-a680-d8a1-27fc66bae52c@aklaver.com> Date: Wed, 27 Oct 2021 10:30:58 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <90ebbc17-a029-7340-2272-f37363dd5651@mapper.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/27/21 9:01 AM, Jérémy Garniaux wrote: > Hi Adrian, > > Thanks for answering on both sides! > >> >> Same response as to your SO question: >> >> What is the output of pg_lsclusters? > Ver Cluster Port Status                Owner    Data > directory              Log file > 12  main    5432 down,binaries_missing postgres > /var/lib/postgresql/12/main /var/log/postgresql/postgresql-12-main.log > 13  main    5433 online                postgres > /var/lib/postgresql/13/main /var/log/postgresql/postgresql-13-main.log > > Your Postgres 13 cluster is up and listening on 5433. Your choices: 1) Connect using psql -d -U -p 5433 2) Open: sudo vi /etc/postgresql/13/main/postgresql.conf and change port = 5433 to port = 5432 and then restart server. While you are at it: sudo pg_dropcluster 12 main to get rid of the orphaned cluster. -- Adrian Klaver adrian.klaver@aklaver.com