Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gK24M-0003Qn-M4 for pgsql-general@arkaria.postgresql.org; Tue, 06 Nov 2018 14:11:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gK24K-0001Fn-Jn for pgsql-general@arkaria.postgresql.org; Tue, 06 Nov 2018 14:11:00 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1gK24J-0001Fg-3v for pgsql-general@lists.postgresql.org; Tue, 06 Nov 2018 14:11:00 +0000 Received: from [64.147.123.25] (helo=wout2-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gK24A-0007Xd-VX for pgsql-general@lists.postgresql.org; Tue, 06 Nov 2018 14:10:58 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 5F30E1010; Tue, 6 Nov 2018 09:10:28 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 06 Nov 2018 09:10:28 -0500 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=M U5eIqqS20ELKbjhS8HAV29TMZSyf5d1RPr1Y0nMblc=; b=z0Y9jiRXfbuDPUKhu rTyAAp7a4mY9Y2dsJT0aEMMdRXJr882PosBItMSsERQUWuMD7tmXJbdtrcmbZVt7 RvFtsx2uoW3Wtn2VH2cF5qaBdiDYhxwwCiPQoO64jkNB8so2QfgynWrd/p6G/xzl 4FUFrZT1P9LbnDUBnY80eM9BCmNJVjI83SYkNx48ziL0ijLwJ12EFT4vuuPXktX2 0HKIzU6j4rqhXd9ERmCrbytJ7o7hTBVi9K2VJr9Tb+IziVHesfspCZYYu1DnrCZp zlasFkeo4e7s9nytWWQ6WubNAu+Td3OFz3ccDgQDRv0mEE1kRQJ+1j2A3b1irdTo vgh6Q== 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=MU5eIqqS20ELKbjhS8HAV29TMZSyf5d1RPr1Y0nMb lc=; b=ALNDrkPdBBDwUDPHCW0hhg3nf4b1gJy3zVIUGdd7LgwJn43IKW9UzwMPt f2qpaaowlVdJ3ZcU9sCk9iDtDBqN32g7/jdUXgQko8sFLGtwZw2ra9hk/+cWrhgW wDdXLQvwS+xQEoIxaONfcJL88Ai+fY/XqDFyuf1zN32yo/jJqXNsmFmrcobSgFjp kOHHnSkRLswQoPlMxZtt9FMuZbIPzJi5LZjvS/hg95IQilpzLBNUh35AWT2I664A kcyGz/TDHFfXq2PYHRrRQfsMO1F5VkFcHDl/GGhdYTc3j+sajBI/4oB1dc3+lLMI 6xWKASlAf7IrrHqwp68eUkgtQmF+Q== X-ME-Sender: X-ME-Proxy: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 9F297E4AB8; Tue, 6 Nov 2018 09:10:25 -0500 (EST) Subject: Re: Running pg_upgrade Version 11 To: rob stone , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: Date: Tue, 6 Nov 2018 06:10:23 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.25 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/5/18 9:27 PM, rob stone wrote: > Hello, > > Trying to run pg_upgrade from version 10 to version 11 on the test > server and pulling the following error:- > > could not open version file: /home/postgres/testing/data_v10/PG_VERSION > Failure, exiting > > O/S is:- Debian 4.18.10-2 (2018-11-02) x86_64 GNU/Linux > > Running pg_upgrade as user postgres. > > These are the permissions on the version 10 file:- > > -rw------- 1 postgres postgres 3 Mar 23 2018 PG_VERSION > > These are the permissions on the version 11 file:- > > -rw------- 1 postgres postgres 3 Nov 6 14:50 PG_VERSION > > This is the command being run:- > > /usr/lib/postgresql/11/bin/pg_upgrade -b /usr/lib/postgresql/10/bin -B > /usr/lib/postgresql/11/bin -d /home/postgres/testing/data_v10 -D > /home/postgres/testing/data_v11 > > > Logged in as user postgres and postgres owns the files created by > initdb, so is this a permissions problem or am I having a brain fade? Is: /home/postgres/testing/data_v10/ the correct path to the data directory? What happens if you add?: -U postgres Maybe there is a PGUSER env variable set that is not postgres. > > > TIA, > Rob > > > > > -- Adrian Klaver adrian.klaver@aklaver.com