Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gkRYK-0007zI-Ue for pgsql-general@arkaria.postgresql.org; Fri, 18 Jan 2019 10:39:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gkRYJ-0007W2-Nf for pgsql-general@arkaria.postgresql.org; Fri, 18 Jan 2019 10:39:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gkRQW-0007mp-5o for pgsql-general@lists.postgresql.org; Fri, 18 Jan 2019 10:31:04 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gkRQS-0003k8-7q for pgsql-general@postgresql.org; Fri, 18 Jan 2019 10:31:03 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 42C15117A6FAA for ; Fri, 18 Jan 2019 03:30:59 -0700 (MST) Date: Fri, 18 Jan 2019 03:30:59 -0700 (MST) From: Michal To: pgsql-general@postgresql.org Message-ID: <1547807459253-0.post@n3.nabble.com> Subject: Upgrading from 9.2.15 to 9.4.20 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Im trying to upgrade PostgreSQL from 9.2.15 to 9.4.20 with this : /usr/pgsql-9.4/bin/pg_upgrade --old-bindir=/usr/bin --new-bindir=/usr/pgsql-9.4/bin --old-datadir=/var/lib/pgsql/ data --new-datadir=/var/lib/pgsql/9.4/data Can anybody help me with this? I also try -p port parameter not helped. Both databse instances are shut down. that give me this output : Performing Consistency Checks ----------------------------- Checking cluster versions ok *failure* Consult the last few lines of "pg_upgrade_server.log" for the probable cause of the failure. connection to database failed: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/run/postgresql/.s.PGSQL.50432"? could not connect to old postmaster started with the command: "/usr/bin/pg_ctl" -w -l "pg_upgrade_server.log" -D "/var/lib/pgsql/data" -o "-p 50432 -b -c listen_addresses='' -c unix_so cket_permissions=0700 -c unix_socket_directory='/run/postgresql'" start Failure, exiting -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html