pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Jungwirth <pj@illuminatedcomputing.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Pg_auto_failover
Date: Wed, 25 Sep 2019 11:09:53 -0700
Message-ID: <ca3988a9-3f6c-e671-a4e1-9733cc2e036f@illuminatedcomputing.com> (raw)
In-Reply-To: <CAM-M3TmDbc1rLnToXHAfN0_BLkdtDXk-6oxckVNMo8xLcf5n7w@mail.gmail.com>
References: <CAM-M3T=z2dLi3WARyBoiXVT0mEntnpn-G-_trXjRZYhRr_naPA@mail.gmail.com>
	<CAGrpgQ_UZOqB95sKD0=-XS6ja_WEGQRsDAmADiVnqcCCDVvJdg@mail.gmail.com>
	<CAM-M3TmDbc1rLnToXHAfN0_BLkdtDXk-6oxckVNMo8xLcf5n7w@mail.gmail.com>

On 9/25/19 8:55 AM, Sonam Sharma wrote:
> My user has permission to touch inside the Fs.
> I am not getting why it is checking for /backup.
> 
> Any suggestions on this , what else I can check

In addition to the code already linked to, I would look at 
https://github.com/citusdata/pg_auto_failover/blob/1290edd0bab54c627f577cf4462bd16a56b20a1a/src/bin/...

You see that pg_auto_failover is trying to `mkdir -p $pgdata/../backup` 
(where pgdata is a C variable, not a shell/environment variable). You 
might want to read through the rest of that code to see where pgdata is 
coming from, and see if it's being set correctly. Do you really want 
/backup at the root level?

Clearly whatever user is running pg_basebackup doesn't have permission 
to make that directory. But maybe that's okay and the directory should 
be somewhere else.

-- 
Paul              ~{:-)
pj@illuminatedcomputing.com





view thread (20+ messages)  latest in thread

Message-ID: <ca3988a9-3f6c-e671-a4e1-9733cc2e036f@illuminatedcomputing.com>
Permalink:  ../ca3988a9-3f6c-e671-a4e1-9733cc2e036f@illuminatedcomputing.com/
Also on:    postgresql.org/message-id/ca3988a9-3f6c-e671-a4e1-9733cc2e036f@illuminatedcomputing.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: pj@illuminatedcomputing.com
  Subject: Re: Pg_auto_failover
  In-Reply-To: <ca3988a9-3f6c-e671-a4e1-9733cc2e036f@illuminatedcomputing.com>
  References: <CAM-M3T=z2dLi3WARyBoiXVT0mEntnpn-G-_trXjRZYhRr_naPA@mail.gmail.com> <CAGrpgQ_UZOqB95sKD0=-XS6ja_WEGQRsDAmADiVnqcCCDVvJdg@mail.gmail.com> <CAM-M3TmDbc1rLnToXHAfN0_BLkdtDXk-6oxckVNMo8xLcf5n7w@mail.gmail.com> <ca3988a9-3f6c-e671-a4e1-9733cc2e036f@illuminatedcomputing.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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