pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Pg_auto_failover
20+ messages / 7 participants
[nested] [flat]

* Pg_auto_failover
@ 2019-09-18 14:19 Sonam Sharma <sonams1209@gmail.com>
  2019-09-18 14:31 ` Re: Pg_auto_failover Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 20+ messages in thread

From: Sonam Sharma @ 2019-09-18 14:19 UTC (permalink / raw)
  To: pgsql-general

Can someone please guide me in installing pg_auto_failover.. where can I
get the rpm package for this ?

^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: Pg_auto_failover
  2019-09-18 14:19 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
@ 2019-09-18 14:31 ` Adrian Klaver <adrian.klaver@aklaver.com>
  2019-09-18 14:56   ` Re: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  0 siblings, 1 reply; 20+ messages in thread

From: Adrian Klaver @ 2019-09-18 14:31 UTC (permalink / raw)
  To: Sonam Sharma <sonams1209@gmail.com>; pgsql-general

On 9/18/19 7:19 AM, Sonam Sharma wrote:
> Can someone please guide me in installing pg_auto_failover.. where can I 
> get the rpm package for this ?


OS and version?

Postgres version?



-- 
Adrian Klaver
adrian.klaver@aklaver.com





^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: Pg_auto_failover
  2019-09-18 14:19 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-18 14:31 ` Re: Pg_auto_failover Adrian Klaver <adrian.klaver@aklaver.com>
@ 2019-09-18 14:56   ` Sonam Sharma <sonams1209@gmail.com>
  2019-09-18 15:01     ` Re: Pg_auto_failover Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 20+ messages in thread

From: Sonam Sharma @ 2019-09-18 14:56 UTC (permalink / raw)
  To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: pgsql-general

Adrian,

Postgres version : 10.7
Os version : Linux Redhat 7.4

On Wed, Sep 18, 2019, 8:01 PM Adrian Klaver <adrian.klaver@aklaver.com>
wrote:

> On 9/18/19 7:19 AM, Sonam Sharma wrote:
> > Can someone please guide me in installing pg_auto_failover.. where can I
> > get the rpm package for this ?
>
>
> OS and version?
>
> Postgres version?
>
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
>

^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: Pg_auto_failover
  2019-09-18 14:19 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-18 14:31 ` Re: Pg_auto_failover Adrian Klaver <adrian.klaver@aklaver.com>
  2019-09-18 14:56   ` Re: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
@ 2019-09-18 15:01     ` Adrian Klaver <adrian.klaver@aklaver.com>
  2019-09-23 17:38       ` Re: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  0 siblings, 1 reply; 20+ messages in thread

From: Adrian Klaver @ 2019-09-18 15:01 UTC (permalink / raw)
  To: Sonam Sharma <sonams1209@gmail.com>; +Cc: pgsql-general

On 9/18/19 7:56 AM, Sonam Sharma wrote:
> Adrian,
> 
> Postgres version : 10.7
> Os version : Linux Redhat 7.4

If you are installing from the PGDG repos then the package is there:

https://yum.postgresql.org/10/redhat/rhel-7-x86_64/repoview/pg_auto_failover_10.html


You can also go here:

https://github.com/citusdata/pg_auto_failover

and see your other options.

> 
> On Wed, Sep 18, 2019, 8:01 PM Adrian Klaver <adrian.klaver@aklaver.com 
> <mailto:adrian.klaver@aklaver.com>> wrote:
> 
>     On 9/18/19 7:19 AM, Sonam Sharma wrote:
>      > Can someone please guide me in installing pg_auto_failover..
>     where can I
>      > get the rpm package for this ?
> 
> 
>     OS and version?
> 
>     Postgres version?
> 
> 
> 
>     -- 
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: Pg_auto_failover
  2019-09-18 14:19 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-18 14:31 ` Re: Pg_auto_failover Adrian Klaver <adrian.klaver@aklaver.com>
  2019-09-18 14:56   ` Re: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-18 15:01     ` Re: Pg_auto_failover Adrian Klaver <adrian.klaver@aklaver.com>
@ 2019-09-23 17:38       ` Sonam Sharma <sonams1209@gmail.com>
  2019-09-23 17:41         ` Re: Pg_auto_failover Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 20+ messages in thread

From: Sonam Sharma @ 2019-09-23 17:38 UTC (permalink / raw)
  To: Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-general

I have installed the PostgreSQL 11 from source.(untarred the file and then
make install as postgres user since we don't have root access) . Can you
please help in installing the extension for pg_auto_failover.. is it
possible as postgres user only ??

Thanks,
Sonam

On Wed, Sep 18, 2019, 8:31 PM Adrian Klaver <adrian.klaver@aklaver.com>
wrote:

> On 9/18/19 7:56 AM, Sonam Sharma wrote:
> > Adrian,
> >
> > Postgres version : 10.7
> > Os version : Linux Redhat 7.4
>
> If you are installing from the PGDG repos then the package is there:
>
>
> https://yum.postgresql.org/10/redhat/rhel-7-x86_64/repoview/pg_auto_failover_10.html
>
>
> You can also go here:
>
> https://github.com/citusdata/pg_auto_failover
>
> and see your other options.
>
> >
> > On Wed, Sep 18, 2019, 8:01 PM Adrian Klaver <adrian.klaver@aklaver.com
> > <mailto:adrian.klaver@aklaver.com>> wrote:
> >
> >     On 9/18/19 7:19 AM, Sonam Sharma wrote:
> >      > Can someone please guide me in installing pg_auto_failover..
> >     where can I
> >      > get the rpm package for this ?
> >
> >
> >     OS and version?
> >
> >     Postgres version?
> >
> >
> >
> >     --
> >     Adrian Klaver
> >     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> >
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
>

^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: Pg_auto_failover
  2019-09-18 14:19 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-18 14:31 ` Re: Pg_auto_failover Adrian Klaver <adrian.klaver@aklaver.com>
  2019-09-18 14:56   ` Re: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-18 15:01     ` Re: Pg_auto_failover Adrian Klaver <adrian.klaver@aklaver.com>
  2019-09-23 17:38       ` Re: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
@ 2019-09-23 17:41         ` Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 0 replies; 20+ messages in thread

From: Adrian Klaver @ 2019-09-23 17:41 UTC (permalink / raw)
  To: Sonam Sharma <sonams1209@gmail.com>; pgsql-general

On 9/23/19 10:38 AM, Sonam Sharma wrote:
> I have installed the PostgreSQL 11 from source.(untarred the file and 
> then make install as postgres user since we don't have root access) . 
> Can you please help in installing the extension for pg_auto_failover.. 
> is it possible as postgres user only ??

Follow the install from source instructions here:

https://github.com/citusdata/pg_auto_failover

> 
> Thanks,
> Sonam
> 
> On Wed, Sep 18, 2019, 8:31 PM Adrian Klaver <adrian.klaver@aklaver.com 
> <mailto:adrian.klaver@aklaver.com>> wrote:
> 
>     On 9/18/19 7:56 AM, Sonam Sharma wrote:
>      > Adrian,
>      >
>      > Postgres version : 10.7
>      > Os version : Linux Redhat 7.4
> 
>     If you are installing from the PGDG repos then the package is there:
> 
>     https://yum.postgresql.org/10/redhat/rhel-7-x86_64/repoview/pg_auto_failover_10.html
> 
> 
>     You can also go here:
> 
>     https://github.com/citusdata/pg_auto_failover
> 
>     and see your other options.
> 
>      >
>      > On Wed, Sep 18, 2019, 8:01 PM Adrian Klaver
>     <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
>      > <mailto:adrian.klaver@aklaver.com
>     <mailto:adrian.klaver@aklaver.com>>> wrote:
>      >
>      >     On 9/18/19 7:19 AM, Sonam Sharma wrote:
>      >      > Can someone please guide me in installing pg_auto_failover..
>      >     where can I
>      >      > get the rpm package for this ?
>      >
>      >
>      >     OS and version?
>      >
>      >     Postgres version?
>      >
>      >
>      >
>      >     --
>      >     Adrian Klaver
>      > adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
>     <mailto:adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>>
>      >
> 
> 
>     -- 
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* pg_auto_failover
@ 2019-09-20 16:09 Bhardwaj, SONAM- SONAM R <sonam.kumari@lowes.com>
  2019-09-20 16:11 ` Fwd: FW: pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  0 siblings, 1 reply; 20+ messages in thread

From: Bhardwaj, SONAM- SONAM R @ 2019-09-20 16:09 UTC (permalink / raw)
  To: pgsql-general

Hi,

When I am setting up keeper ,

[postgres@lablnxdb001 ~]$ pg_autoctl run --pgdata /opt/primary
08:51:03 INFO  Managing PostgreSQL installation at "/opt/primary"
08:51:03 INFO  PostgreSQL is running in "/opt/primary" on port 6433
08:51:03 ERROR default_version or installed_version for extension "pgautofailover" is NULL
08:51:03 FATAL Failed to check version compatibility with the monitor extension "pgautofailover", see above for details

Its failing with above error.
The version it's showing is :

[postgres@lablnxdb001 primary]$ pg_autoctl --version
pg_autoctl version 1.0.4

I have installed rpm of version 10.7.

Can someone please help.

Thanks & Regards,
Sonam
Infrastructure System Engineering - DB2 UDB/SYBASE
[cid:image001.png@01D2B91B.44E1A5E0]

________________________________
NOTICE: All information in and attached to the e-mails below may be proprietary, confidential, privileged and otherwise protected from improper or erroneous disclosure. If you are not the sender's intended recipient, you are not authorized to intercept, read, print, retain, copy, forward, or disseminate this message. If you have erroneously received this communication, please notify the sender immediately by phone (704-758-1000) or by e-mail and destroy all copies of this message electronic, paper, or otherwise. By transmitting documents via this email: Users, Customers, Suppliers and Vendors collectively acknowledge and agree the transmittal of information via email is voluntary, is offered as a convenience, and is not a secured method of communication; Not to transmit any payment information E.G. credit card, debit card, checking account, wire transfer information, passwords, or sensitive and personal information E.G. Driver's license, DOB, social security, or any other information the user wishes to remain confidential; To transmit only non-confidential information such as plans, pictures and drawings and to assume all risk and liability for and indemnify Lowe's from any claims, losses or damages that may arise from the transmittal of documents or including non-confidential information in the body of an email transmittal. Thank you.

Attachments:

image003.png (image/png, 15.4K) download view image
^ permalink raw reply [nested|flat] 20+ messages in thread

* Fwd: FW: pg_auto_failover
  2019-09-20 16:09 pg_auto_failover Bhardwaj, SONAM- SONAM R <sonam.kumari@lowes.com>
@ 2019-09-20 16:11 ` Sonam Sharma <sonams1209@gmail.com>
  0 siblings, 0 replies; 20+ messages in thread

From: Sonam Sharma @ 2019-09-20 16:11 UTC (permalink / raw)
  To: pgsql-general

Hi,



When I am setting up keeper ,



[postgres@lablnxdb001 ~]$ pg_autoctl run --pgdata /opt/primary

08:51:03 INFO  Managing PostgreSQL installation at "/opt/primary"

08:51:03 INFO  PostgreSQL is running in "/opt/primary" on port 6433

08:51:03 ERROR default_version or installed_version for extension
"pgautofailover" is NULL

08:51:03 FATAL Failed to check version compatibility with the monitor
extension "pgautofailover", see above for details



Its failing with above error.

The version it’s showing is :



[postgres@lablnxdb001 primary]$ pg_autoctl --version

pg_autoctl version 1.0.4



I have installed rpm of version 10.7.



Can someone please help.



*Thanks & Regards,*

*Sonam*

*Infrastructure System Engineering – DB2 UDB/SYBASE*

*[image: cid:image001.png@01D2B91B.44E1A5E0]*


------------------------------
NOTICE: All information in and attached to the e-mails below may be
proprietary, confidential, privileged and otherwise protected from improper
or erroneous disclosure. If you are not the sender's intended recipient,
you are not authorized to intercept, read, print, retain, copy, forward, or
disseminate this message. If you have erroneously received this
communication, please notify the sender immediately by phone (704-758-1000)
or by e-mail and destroy all copies of this message electronic, paper, or
otherwise. By transmitting documents via this email: Users, Customers,
Suppliers and Vendors collectively acknowledge and agree the transmittal of
information via email is voluntary, is offered as a convenience, and is not
a secured method of communication; Not to transmit any payment information
E.G. credit card, debit card, checking account, wire transfer information,
passwords, or sensitive and personal information E.G. Driver's license,
DOB, social security, or any other information the user wishes to remain
confidential; To transmit only non-confidential information such as plans,
pictures and drawings and to assume all risk and liability for and
indemnify Lowe's from any claims, losses or damages that may arise from the
transmittal of documents or including non-confidential information in the
body of an email transmittal. Thank you.

Attachments:

image001.png (image/png, 15.4K) download view image
^ permalink raw reply [nested|flat] 20+ messages in thread

* Pg_auto_failover
@ 2019-09-24 15:41 Sonam Sharma <sonams1209@gmail.com>
  2019-09-24 16:22 ` Fwd: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-24 16:41 ` Re: Pg_auto_failover Rob Sargent <robjsargent@gmail.com>
  2019-09-24 18:45 ` Re: Pg_auto_failover bricklen <bricklen@gmail.com>
  0 siblings, 3 replies; 20+ messages in thread

From: Sonam Sharma @ 2019-09-24 15:41 UTC (permalink / raw)
  To: pgsql-general

I was setting up pg_auto_failover. Have successfully set up and monitor and
primary instance. While setting up secondary it's failing with below :

ERROR Failed to ensure empty directory "//backup" : Permission denied
Error Failed initialise standby server , see above for details.

Where is it located?

Can someone please help

^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Fwd: Pg_auto_failover
  2019-09-24 15:41 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
@ 2019-09-24 16:22 ` Sonam Sharma <sonams1209@gmail.com>
  2019-09-24 16:40   ` Re: Pg_auto_failover Rob Sargent <robjsargent@gmail.com>
  2 siblings, 1 reply; 20+ messages in thread

From: Sonam Sharma @ 2019-09-24 16:22 UTC (permalink / raw)
  To: pgsql-general

Can someone please help

---------- Forwarded message ---------
From: Sonam Sharma <sonams1209@gmail.com>
Date: Tue, Sep 24, 2019, 9:11 PM
Subject: Pg_auto_failover
To: pgsql-general <pgsql-general@postgresql.org>


I was setting up pg_auto_failover. Have successfully set up and monitor and
primary instance. While setting up secondary it's failing with below :

ERROR Failed to ensure empty directory "//backup" : Permission denied
Error Failed initialise standby server , see above for details.

Where is it located?

Can someone please help

^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: Pg_auto_failover
  2019-09-24 15:41 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-24 16:22 ` Fwd: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
@ 2019-09-24 16:40   ` Rob Sargent <robjsargent@gmail.com>
  0 siblings, 0 replies; 20+ messages in thread

From: Rob Sargent @ 2019-09-24 16:40 UTC (permalink / raw)
  To: Sonam Sharma <sonams1209@gmail.com>; +Cc: pgsql-general



> On Sep 24, 2019, at 10:22 AM, Sonam Sharma <sonams1209@gmail.com> wrote:
> 
> Can someone please help
> 
> ---------- Forwarded message ---------
> From: Sonam Sharma <sonams1209@gmail.com <mailto:sonams1209@gmail.com>>
> Date: Tue, Sep 24, 2019, 9:11 PM
> Subject: Pg_auto_failover
> To: pgsql-general <pgsql-general@postgresql.org <mailto:pgsql-general@postgresql.org>>
> 
> 
> I was setting up pg_auto_failover. Have successfully set up and monitor and primary instance. While setting up secondary it's failing with below :
> 
> ERROR Failed to ensure empty directory "//backup" : Permission denied
> Error Failed initialise standby server , see above for details.
> 
> Where is it located? 
> 
> Can someone please help


What os, what version of postgres. How was it installed

^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: Pg_auto_failover
  2019-09-24 15:41 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
@ 2019-09-24 16:41 ` Rob Sargent <robjsargent@gmail.com>
  2019-09-24 17:38   ` Re: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2 siblings, 1 reply; 20+ messages in thread

From: Rob Sargent @ 2019-09-24 16:41 UTC (permalink / raw)
  To: Sonam Sharma <sonams1209@gmail.com>; +Cc: pgsql-general



> On Sep 24, 2019, at 9:41 AM, Sonam Sharma <sonams1209@gmail.com> wrote:
> 
> I was setting up pg_auto_failover. Have successfully set up and monitor and primary instance. While setting up secondary it's failing with below :
> 
> ERROR Failed to ensure empty directory "//backup" : Permission denied
> Error Failed initialise standby server , see above for details.
> 
> Where is it located? 
> 
> Can someone please help

“//backup” looks like a typo in the configuration




^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: Pg_auto_failover
  2019-09-24 15:41 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-24 16:41 ` Re: Pg_auto_failover Rob Sargent <robjsargent@gmail.com>
@ 2019-09-24 17:38   ` Sonam Sharma <sonams1209@gmail.com>
  2019-09-24 17:45     ` Re: Pg_auto_failover Rob Sargent <robjsargent@gmail.com>
  0 siblings, 1 reply; 20+ messages in thread

From: Sonam Sharma @ 2019-09-24 17:38 UTC (permalink / raw)
  To: Rob Sargent <robjsargent@gmail.com>; +Cc: pgsql-general

Hi Rob,
Os : Linux rhel x86_64
Postgres version : 11.2
Installed the rpm of pg_auto_failover and then set up the monitor, primary.
Secondary is failing with given error


On Tue, Sep 24, 2019, 10:11 PM Rob Sargent <robjsargent@gmail.com> wrote:

>
>
> > On Sep 24, 2019, at 9:41 AM, Sonam Sharma <sonams1209@gmail.com> wrote:
> >
> > I was setting up pg_auto_failover. Have successfully set up and monitor
> and primary instance. While setting up secondary it's failing with below :
> >
> > ERROR Failed to ensure empty directory "//backup" : Permission denied
> > Error Failed initialise standby server , see above for details.
> >
> > Where is it located?
> >
> > Can someone please help
>
> “//backup” looks like a typo in the configuration

^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: Pg_auto_failover
  2019-09-24 15:41 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-24 16:41 ` Re: Pg_auto_failover Rob Sargent <robjsargent@gmail.com>
  2019-09-24 17:38   ` Re: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
@ 2019-09-24 17:45     ` Rob Sargent <robjsargent@gmail.com>
  2019-09-24 17:58       ` Re: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  0 siblings, 1 reply; 20+ messages in thread

From: Rob Sargent @ 2019-09-24 17:45 UTC (permalink / raw)
  To: Sonam Sharma <sonams1209@gmail.com>; +Cc: pgsql-general



> On Sep 24, 2019, at 11:38 AM, Sonam Sharma <sonams1209@gmail.com> wrote:
> 
> Hi Rob,
> Os : Linux rhel x86_64
> Postgres version : 11.2
> Installed the rpm of pg_auto_failover and then set up the monitor, primary. Secondary is failing with given error
> 

Well //backup is a valid reference to /backup (double slash simply gets reduced to single slash).  Does /backup exist and if so, is it empty.  Can you find “//backup” (or even “backup”) anywhere in the parts you “set up”?






^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: Pg_auto_failover
  2019-09-24 15:41 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-24 16:41 ` Re: Pg_auto_failover Rob Sargent <robjsargent@gmail.com>
  2019-09-24 17:38   ` Re: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-24 17:45     ` Re: Pg_auto_failover Rob Sargent <robjsargent@gmail.com>
@ 2019-09-24 17:58       ` Sonam Sharma <sonams1209@gmail.com>
  0 siblings, 0 replies; 20+ messages in thread

From: Sonam Sharma @ 2019-09-24 17:58 UTC (permalink / raw)
  To: Rob Sargent <robjsargent@gmail.com>; +Cc: pgsql-general

Hi Rob,

I have no where mentioned /backup. I have manually create backup inside /
folder to check why it's giving the error.  The /backup folder is empty
only.


On Tue, Sep 24, 2019, 11:15 PM Rob Sargent <robjsargent@gmail.com> wrote:

>
>
> > On Sep 24, 2019, at 11:38 AM, Sonam Sharma <sonams1209@gmail.com> wrote:
> >
> > Hi Rob,
> > Os : Linux rhel x86_64
> > Postgres version : 11.2
> > Installed the rpm of pg_auto_failover and then set up the monitor,
> primary. Secondary is failing with given error
> >
>
> Well //backup is a valid reference to /backup (double slash simply gets
> reduced to single slash).  Does /backup exist and if so, is it empty.  Can
> you find “//backup” (or even “backup”) anywhere in the parts you “set up”?
>
>

^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: Pg_auto_failover
  2019-09-24 15:41 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
@ 2019-09-24 18:45 ` bricklen <bricklen@gmail.com>
  2019-09-25 15:55   ` Re: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2 siblings, 1 reply; 20+ messages in thread

From: bricklen @ 2019-09-24 18:45 UTC (permalink / raw)
  To: Sonam Sharma <sonams1209@gmail.com>; +Cc: pgsql-general

On Tue, Sep 24, 2019 at 8:41 AM Sonam Sharma <sonams1209@gmail.com> wrote:

> I was setting up pg_auto_failover. Have successfully set up and monitor
> and primary instance. While setting up secondary it's failing with below :
>
> ERROR Failed to ensure empty directory "//backup" : Permission denied
> Error Failed initialise standby server , see above for details.
>

If you're using the tool from Citus, per
https://github.com/citusdata/pg_auto_failover/blob/d8ba26f47a60eaf1e1dc63ae67279553984d84f5/src/bin/...
Is the problem literally that the OS user executing the commands does not
have sufficient permission to work in that directory? If you are creating
your data directory manually in "/", you might want to create a directory
under that path that the user executing the commands has sufficient
permission to modify (delete, create, write to)

^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: Pg_auto_failover
  2019-09-24 15:41 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-24 18:45 ` Re: Pg_auto_failover bricklen <bricklen@gmail.com>
@ 2019-09-25 15:55   ` Sonam Sharma <sonams1209@gmail.com>
  2019-09-25 18:09     ` Re: Pg_auto_failover Paul Jungwirth <pj@illuminatedcomputing.com>
  0 siblings, 1 reply; 20+ messages in thread

From: Sonam Sharma @ 2019-09-25 15:55 UTC (permalink / raw)
  To: bricklen <bricklen@gmail.com>; +Cc: pgsql-general

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

On Wed, Sep 25, 2019, 12:15 AM bricklen <bricklen@gmail.com> wrote:

>
>
> On Tue, Sep 24, 2019 at 8:41 AM Sonam Sharma <sonams1209@gmail.com> wrote:
>
>> I was setting up pg_auto_failover. Have successfully set up and monitor
>> and primary instance. While setting up secondary it's failing with below :
>>
>> ERROR Failed to ensure empty directory "//backup" : Permission denied
>> Error Failed initialise standby server , see above for details.
>>
>
> If you're using the tool from Citus, per
> https://github.com/citusdata/pg_auto_failover/blob/d8ba26f47a60eaf1e1dc63ae67279553984d84f5/src/bin/...
> Is the problem literally that the OS user executing the commands does not
> have sufficient permission to work in that directory? If you are creating
> your data directory manually in "/", you might want to create a directory
> under that path that the user executing the commands has sufficient
> permission to modify (delete, create, write to)
>

^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: Pg_auto_failover
  2019-09-24 15:41 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-24 18:45 ` Re: Pg_auto_failover bricklen <bricklen@gmail.com>
  2019-09-25 15:55   ` Re: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
@ 2019-09-25 18:09     ` Paul Jungwirth <pj@illuminatedcomputing.com>
  2019-09-28 13:44       ` Re: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  0 siblings, 1 reply; 20+ messages in thread

From: Paul Jungwirth @ 2019-09-25 18:09 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

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





^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: Pg_auto_failover
  2019-09-24 15:41 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-24 18:45 ` Re: Pg_auto_failover bricklen <bricklen@gmail.com>
  2019-09-25 15:55   ` Re: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-25 18:09     ` Re: Pg_auto_failover Paul Jungwirth <pj@illuminatedcomputing.com>
@ 2019-09-28 13:44       ` Sonam Sharma <sonams1209@gmail.com>
  2019-09-30 16:39         ` Re: Pg_auto_failover Rene Romero Benavides <rene.romero.b@gmail.com>
  0 siblings, 1 reply; 20+ messages in thread

From: Sonam Sharma @ 2019-09-28 13:44 UTC (permalink / raw)
  To: Paul Jungwirth <pj@illuminatedcomputing.com>; +Cc: pgsql-general@lists.postgresql.org

Thanks Paul, I am able to set up. Does pg_auto_failover only works on v10
and v11.
I am having 9.5 on production.

On Wed, Sep 25, 2019, 11:40 PM Paul Jungwirth <pj@illuminatedcomputing.com>
wrote:

> 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
>
>
>

^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: Pg_auto_failover
  2019-09-24 15:41 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-24 18:45 ` Re: Pg_auto_failover bricklen <bricklen@gmail.com>
  2019-09-25 15:55   ` Re: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
  2019-09-25 18:09     ` Re: Pg_auto_failover Paul Jungwirth <pj@illuminatedcomputing.com>
  2019-09-28 13:44       ` Re: Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
@ 2019-09-30 16:39         ` Rene Romero Benavides <rene.romero.b@gmail.com>
  0 siblings, 0 replies; 20+ messages in thread

From: Rene Romero Benavides @ 2019-09-30 16:39 UTC (permalink / raw)
  To: Sonam Sharma <sonams1209@gmail.com>; +Cc: Paul Jungwirth <pj@illuminatedcomputing.com>; pgsql-general <pgsql-general@lists.postgresql.org>

It seems it does, only 10 and 11 as of this:
"We support Postgres 10 and Postgres 11. "
https://cloudblogs.microsoft.com/opensource/2019/05/06/introducing-pg_auto_failover-postgresql-open-...

On Sat, Sep 28, 2019 at 8:44 AM Sonam Sharma <sonams1209@gmail.com> wrote:

> Thanks Paul, I am able to set up. Does pg_auto_failover only works on v10
> and v11.
> I am having 9.5 on production.
>
> On Wed, Sep 25, 2019, 11:40 PM Paul Jungwirth <pj@illuminatedcomputing.com>
> wrote:
>
>> 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
>>
>>
>>

-- 
El genio es 1% inspiración y 99% transpiración.
Thomas Alva Edison
http://pglearn.blogspot.mx/

^ permalink  raw  reply  [nested|flat] 20+ messages in thread


end of thread, other threads:[~2019-09-30 16:39 UTC | newest]

Thread overview: 20+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-09-18 14:19 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
2019-09-18 14:31 ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-09-18 14:56   ` Sonam Sharma <sonams1209@gmail.com>
2019-09-18 15:01     ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-09-23 17:38       ` Sonam Sharma <sonams1209@gmail.com>
2019-09-23 17:41         ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-09-20 16:09 pg_auto_failover Bhardwaj, SONAM- SONAM R <sonam.kumari@lowes.com>
2019-09-20 16:11 ` Fwd: FW: pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
2019-09-24 15:41 Pg_auto_failover Sonam Sharma <sonams1209@gmail.com>
2019-09-24 16:22 ` Sonam Sharma <sonams1209@gmail.com>
2019-09-24 16:40   ` Rob Sargent <robjsargent@gmail.com>
2019-09-24 16:41 ` Rob Sargent <robjsargent@gmail.com>
2019-09-24 17:38   ` Sonam Sharma <sonams1209@gmail.com>
2019-09-24 17:45     ` Rob Sargent <robjsargent@gmail.com>
2019-09-24 17:58       ` Sonam Sharma <sonams1209@gmail.com>
2019-09-24 18:45 ` bricklen <bricklen@gmail.com>
2019-09-25 15:55   ` Sonam Sharma <sonams1209@gmail.com>
2019-09-25 18:09     ` Paul Jungwirth <pj@illuminatedcomputing.com>
2019-09-28 13:44       ` Sonam Sharma <sonams1209@gmail.com>
2019-09-30 16:39         ` Rene Romero Benavides <rene.romero.b@gmail.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