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 1gkRgk-0008PY-DW for pgsql-general@arkaria.postgresql.org; Fri, 18 Jan 2019 10:47:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gkRgg-0001Ov-RQ for pgsql-general@arkaria.postgresql.org; Fri, 18 Jan 2019 10:47:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gkRgg-0001NY-Eb for pgsql-general@lists.postgresql.org; Fri, 18 Jan 2019 10:47:46 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gkRgc-0002X2-AE for pgsql-general@lists.postgresql.org; Fri, 18 Jan 2019 10:47:45 +0000 Received: from smadev.internal.net (pc131.internal.net [10.9.200.131]) by hermes.gatewaynet.com (8.14.3/8.14.3/Debian-9.4) with ESMTP id x0IAlWt5020651 for ; Fri, 18 Jan 2019 12:47:37 +0200 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id x0IAlWc6077646 for ; Fri, 18 Jan 2019 12:47:32 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: Upgrading from 9.2.15 to 9.4.20 To: pgsql-general@lists.postgresql.org References: <1547807459253-0.post@n3.nabble.com> From: Achilleas Mantzios Message-ID: <0cefb0b6-6ee0-d2ca-6127-3c5104df1b80@matrix.gatewaynet.com> Date: Fri, 18 Jan 2019 12:47:32 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <1547807459253-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Virus-Scanned: clamav-milter 0.98.7 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-28.0 required=5.0 tests=ALL_TRUSTED,DYN_HAM_COORD, DYN_HAM_IT,DYN_HAM_NAUTICAL,DYN_SPAM_MED6 autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 18/1/19 12:30 μ.μ., Michal wrote: > 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 tweak your .pgpass a little bit, I remember from 9.3 to 10 I had to define : /var/lib/pgsql:50432:*:postgres: or just make local UNIX connections trusted in pg_hba.conf also try to start the old postmaster by hand using the command shown and look to verify that you can locate the socket under /run/postgresql/.s.PGSQL.50432 make sure that the dir is there as well. > > > > > -- > Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html > -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt