Re: What is "return code" for WAL send command - Mailing list pgsql-general

From Fredric Fredricson
Subject Re: What is "return code" for WAL send command
Date
Msg-id 4CC5366E.4080201@bonetmail.com
Whole thread Raw
In response to What is "return code" for WAL send command  (zhong ming wu <mr.z.m.wu@gmail.com>)
Responses Re: What is "return code" for WAL send command
List pgsql-general
  On 10/23/2010 02:01 PM, zhong ming wu wrote:
>
> Hello
>
> I have a master PG 8.1.11 sending WAL files to a cold-standby using rsync
>
> For some reason it failed recently with "return codes 32512" and I
> couldn't find this num. as a valid rsync exit code
>
> During the time that the error was going on I tried the rsync command
> manually and didn't error
>
I guess you have fallen into the common pitfall that cron does not read
bash ini files and does not set the $PATH variable. If you want your
scripts to be run by cron you must make them independent of $PATH and
other variables set by .bashrc etc.

My $.02.
/Fredric
>
> Can someone tell me what kind if error is 32512
>
> Thanks
>
> Mr. Wu
>


Attachment

pgsql-general by date:

Previous
From: Alban Hertroys
Date:
Subject: Re: Getting ROW_COUNT from MOVE in 8.3
Next
From: David W Noon
Date:
Subject: Re: What is "return code" for WAL send command