From: Joseph <syscon780@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] pg_upgrade91 - You must have read and write access in the current directory
Date: Sun, 4 Dec 2011 20:25:31 -0700 [thread overview]
Message-ID: <20111205032531.GE28855@syscon4.inet> (raw)
In-Reply-To: <20111205023714.GA7999@pacific.net.au>
On 12/05/11 13:37, Gregory Shearman wrote:
>In linux.gentoo.user, Joseph wrote:
>> I'm upgrading form posgresql 9.0 to 9.1, it seem to the upgrade went OK but when try to transfer the data
>> base:
>> pg_upgrade91 -v --old-datadir=/var/lib/postgresql/9.0/data/ --new-datadir=/var/lib/postgresql/9.1/data
>> --old-bindir=/usr/lib/postgresql-9.0/bin/ --new-bindir=/usr/lib/postgresql-9.1/bin/
>> Running in verbose mode
>> Performing Consistency Checks
>> -----------------------------
>> Checking current, bin, and data directories
>> You must have read and write access in the current directory.
>> Failure, exiting
>>
>> What am I doing wrong?
>
>Have you checked that you have read and write access in the current
>directory before running the command?
>
>I did the upgrade as the "postgres" user and made sure that I ran the
>command from a read/writable directory for that user.
>
>--
>Regards,
>Gregory.
Yes, I did "su postgres"
and ls -al /var/lib/postgresql/9.1/
drwx------ 13 postgres postgres 4096 Dec 4 18:20 data
so it should work.
--
Joseph
next prev parent reply other threads:[~2011-12-05 3:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <i4w0x-w6-7@gated-at.bofh.it>
2011-12-05 2:37 ` [gentoo-user] pg_upgrade91 - You must have read and write access in the current directory Gregory Shearman
2011-12-05 3:25 ` Joseph [this message]
[not found] <i4EAO-6Xu-5@gated-at.bofh.it>
[not found] ` <i4EAO-6Xu-7@gated-at.bofh.it>
[not found] ` <i4EAO-6Xu-9@gated-at.bofh.it>
[not found] ` <i4EAO-6Xu-3@gated-at.bofh.it>
[not found] ` <i4L9i-1nZ-67@gated-at.bofh.it>
2011-12-05 22:24 ` Gregory Shearman
[not found] <i4wMV-1QN-5@gated-at.bofh.it>
[not found] ` <i4wMV-1QN-3@gated-at.bofh.it>
[not found] ` <i4xpD-34S-7@gated-at.bofh.it>
2011-12-05 10:56 ` Gregory Shearman
2011-12-05 17:59 ` Joseph
2011-12-05 1:52 Joseph
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111205032531.GE28855@syscon4.inet \
--to=syscon780@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox