pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedRunning pg_upgrade Version 11
6+ messages / 5 participants
[nested] [flat]
* Running pg_upgrade Version 11
@ 2018-11-06 05:27 rob stone <floriparob@gmail.com>
2018-11-06 06:17 ` Re: Running pg_upgrade Version 11 Michael Paquier <michael@paquier.xyz>
2018-11-06 14:10 ` Re: Running pg_upgrade Version 11 Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 2 replies; 6+ messages in thread
From: rob stone @ 2018-11-06 05:27 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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?
TIA,
Rob
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Running pg_upgrade Version 11
2018-11-06 05:27 Running pg_upgrade Version 11 rob stone <floriparob@gmail.com>
@ 2018-11-06 06:17 ` Michael Paquier <michael@paquier.xyz>
2018-11-07 00:30 ` Re: Running pg_upgrade Version 11 rob stone <floriparob@gmail.com>
1 sibling, 1 reply; 6+ messages in thread
From: Michael Paquier @ 2018-11-06 06:17 UTC (permalink / raw)
To: rob stone <floriparob@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
On Tue, Nov 06, 2018 at 04:27:35PM +1100, rob stone wrote:
> 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?
Having 0600 as umask for those files is normal. Don't you have more
logs about the error? You should not see this error, except if data_v10
is not a data folder initialized correctly, so perhaps you messed up
something in your environment?
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Running pg_upgrade Version 11
2018-11-06 05:27 Running pg_upgrade Version 11 rob stone <floriparob@gmail.com>
2018-11-06 06:17 ` Re: Running pg_upgrade Version 11 Michael Paquier <michael@paquier.xyz>
@ 2018-11-07 00:30 ` rob stone <floriparob@gmail.com>
2018-11-07 05:13 ` Re: Running pg_upgrade Version 11 Ron <ronljohnsonjr@gmail.com>
2018-11-27 14:40 ` Re: Running pg_upgrade Version 11 Bruce Momjian <bruce@momjian.us>
0 siblings, 2 replies; 6+ messages in thread
From: rob stone @ 2018-11-07 00:30 UTC (permalink / raw)
To: Michael Paquier <michael@paquier.xyz>; +Cc: pgsql-general@lists.postgresql.org
On Tue, 2018-11-06 at 15:17 +0900, Michael Paquier wrote:
> On Tue, Nov 06, 2018 at 04:27:35PM +1100, rob stone wrote:
> > 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?
>
> Having 0600 as umask for those files is normal. Don't you have more
> logs about the error? You should not see this error, except if
> data_v10
> is not a data folder initialized correctly, so perhaps you messed up
> something in your environment?
> --
> Michael
Problem caused by my eyesight.
A colleague pointed out the typo in the argument to the -d parameter.
Working as intended.
Sorry for the noise. My apologies.
Thanks,
Robert
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Running pg_upgrade Version 11
2018-11-06 05:27 Running pg_upgrade Version 11 rob stone <floriparob@gmail.com>
2018-11-06 06:17 ` Re: Running pg_upgrade Version 11 Michael Paquier <michael@paquier.xyz>
2018-11-07 00:30 ` Re: Running pg_upgrade Version 11 rob stone <floriparob@gmail.com>
@ 2018-11-07 05:13 ` Ron <ronljohnsonjr@gmail.com>
1 sibling, 0 replies; 6+ messages in thread
From: Ron @ 2018-11-07 05:13 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 11/06/2018 06:30 PM, rob stone wrote:
>
> On Tue, 2018-11-06 at 15:17 +0900, Michael Paquier wrote:
>> On Tue, Nov 06, 2018 at 04:27:35PM +1100, rob stone wrote:
>>> 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?
>> Having 0600 as umask for those files is normal. Don't you have more
>> logs about the error? You should not see this error, except if
>> data_v10
>> is not a data folder initialized correctly, so perhaps you messed up
>> something in your environment?
>> --
>> Michael
>
>
> Problem caused by my eyesight.
> A colleague pointed out the typo in the argument to the -d parameter.
> Working as intended.
That's why I like to line up my statements
/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
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Running pg_upgrade Version 11
2018-11-06 05:27 Running pg_upgrade Version 11 rob stone <floriparob@gmail.com>
2018-11-06 06:17 ` Re: Running pg_upgrade Version 11 Michael Paquier <michael@paquier.xyz>
2018-11-07 00:30 ` Re: Running pg_upgrade Version 11 rob stone <floriparob@gmail.com>
@ 2018-11-27 14:40 ` Bruce Momjian <bruce@momjian.us>
1 sibling, 0 replies; 6+ messages in thread
From: Bruce Momjian @ 2018-11-27 14:40 UTC (permalink / raw)
To: rob stone <floriparob@gmail.com>; +Cc: Michael Paquier <michael@paquier.xyz>; pgsql-general@lists.postgresql.org
On Wed, Nov 7, 2018 at 11:30:18AM +1100, rob stone wrote:
>
>
> On Tue, 2018-11-06 at 15:17 +0900, Michael Paquier wrote:
> > On Tue, Nov 06, 2018 at 04:27:35PM +1100, rob stone wrote:
> > > 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?
> >
> > Having 0600 as umask for those files is normal. Don't you have more
> > logs about the error? You should not see this error, except if
> > data_v10
> > is not a data folder initialized correctly, so perhaps you messed up
> > something in your environment?
> > --
> > Michael
>
>
>
> Problem caused by my eyesight.
> A colleague pointed out the typo in the argument to the -d parameter.
> Working as intended.
Should the error message be improved?
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Running pg_upgrade Version 11
2018-11-06 05:27 Running pg_upgrade Version 11 rob stone <floriparob@gmail.com>
@ 2018-11-06 14:10 ` Adrian Klaver <adrian.klaver@aklaver.com>
1 sibling, 0 replies; 6+ messages in thread
From: Adrian Klaver @ 2018-11-06 14:10 UTC (permalink / raw)
To: rob stone <floriparob@gmail.com>; pgsql-general@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2018-11-27 14:40 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-11-06 05:27 Running pg_upgrade Version 11 rob stone <floriparob@gmail.com>
2018-11-06 06:17 ` Michael Paquier <michael@paquier.xyz>
2018-11-07 00:30 ` rob stone <floriparob@gmail.com>
2018-11-07 05:13 ` Ron <ronljohnsonjr@gmail.com>
2018-11-27 14:40 ` Bruce Momjian <bruce@momjian.us>
2018-11-06 14:10 ` Adrian Klaver <adrian.klaver@aklaver.com>
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