Re: pg_standby error - can't find 00000001.history - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_standby error - can't find 00000001.history
Date
Msg-id 18110.1236899011@sss.pgh.pa.us
Whole thread Raw
In response to pg_standby error - can't find 00000001.history  (Eric Soroos <eric-psql@soroos.net>)
Responses Re: pg_standby error - can't find 00000001.history  (Eric Soroos <eric-psql@soroos.net>)
List pgsql-general
Eric Soroos <eric-psql@soroos.net> writes:
> 2009-03-12 13:40:18 PDT LOG:  starting archive recovery
> 2009-03-12 13:40:18 PDT LOG:  restore_command = "/usr/lib/postgresql/
> 8.2/bin/pg_standby -l -d -k 100 -r 2 -s 2 -w 0 -t /tmp/pgsql.trigger.
> 5432 /data/pg/repl-db3 %f %p 2>> standby.log"
> 2009-03-12 13:40:18 PDT FATAL:  could not restore file
> "00000001.history" from archive: return code 32512
> 2009-03-12 13:40:18 PDT LOG:  startup process (PID 6223) exited with
> exit code 1

Hmm ... 32512 is 0x7F00, which I think means exit(127), which is
generally what the shell returns when it can't find the program
it's supposed to execute.

> sh: /usr/lib/postgresql/8.2/bin/pg_standby: not found
> sh: /usr/lib/postgresql/8.2/bin/pg_standby: not found
> sh: /usr/lib/postgresql/8.2/bin/pg_standby: not found
> sh: /usr/lib/postgresql/8.2/bin/pg_standby: not found

This seems to square with the above conclusion.

> 2) What file is not found?  It sorta looks like the pg_standby
> binary, but I'm not sure that I believe that.

Permissions problems on some containing directory, perhaps?

            regards, tom lane

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Question about Privileges
Next
From: Tom Lane
Date:
Subject: Re: I don't want to back up index files