Re: aborting startup due to startup process failure

From: "George Wilk" <gwilk(at)ellacoya(dot)com>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: aborting startup due to startup process failure
Date: 2007-06-29 10:44:40
Message-ID: 007b01c7ba3a$7f093d90$0d7ba8c0@ellacoya.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Tom,

You nailed it right in the head! My bad... My exit code was causing the
problem. Once I changed it to 1 the recovery mode exited and the database
came up:

waiting for file: 0000000100000000000000F2
--- trigger found ---
--- exiting recovery mode ---
exiting with 1
LOG: could not open file "pg_xlog/0000000100000000000000F2"
LOG: redo done at 0/F1000070
file: 0000000100000000000000F1
path: pg_xlog/RECOVERYXLOG
LOG: restored log file "0000000100000000000000F1" from archive
LOG: archive recovery complete
LOG: database system is ready

Thanks to all who contributed to this thread - much obliged.
Cheers,
~george

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Thursday, June 28, 2007 10:16 PM
To: George Wilk
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] aborting startup due to startup process failure

"George Wilk" <gwilk(at)ellacoya(dot)com> writes:
> I am running a warm standby server, which executes the following command
in
> a recovery mode:
> [ when done: ]
> exit 133

Did you pick that number out of a hat? Postgres thinks it means that
the recovery command died horribly, and abandons the recovery as a
safety measure. (Per Single Unix Spec, this exit code from a shell
script would ordinarily mean that some program the shell called
died with a signal 5.)

Use "exit 1" or some low number like that to signal ordinary failure
to find the requested xlog file. Numbers larger than about 125 mean
catastrophic failure of the recovery command.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message George Wilk 2007-06-29 11:55:21 missing history file
Previous Message Tom Lane 2007-06-29 02:16:08 Re: aborting startup due to startup process failure