pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6619: Misleading output from slave when host is not running
4+ messages / 4 participants
[nested] [flat]
* BUG #6619: Misleading output from slave when host is not running
@ 2012-04-27 07:47 petteri.raty@aalto.fi
2012-04-27 14:16 ` Re: BUG #6619: Misleading output from slave when host is not running Simon Riggs <simon@2ndQuadrant.com>
2012-04-27 18:29 ` Re: BUG #6619: Misleading output from slave when host is not running Robert Haas <robertmhaas@gmail.com>
0 siblings, 2 replies; 4+ messages in thread
From: petteri.raty@aalto.fi @ 2012-04-27 07:47 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 6619
Logged by: Petteri Räty
Email address: petteri.raty@aalto.fi
PostgreSQL version: 9.1.3
Operating system: Gentoo Linux
Description:
I setup a hot standby master and slave following instructions at:
http://michael.otacoo.com/postgresql-2/postgres-9-1-setup-a-synchronous-stand-by-server-in-5-minutes...
I left archive mode off.
When I started the slave without the master running I got the following
output:
$ postgres -D gsd-replica/
LOG: database system was interrupted while in recovery at log time
2012-04-25 12:01:33 UTC
HINT: If this has occurred more than once some data might be corrupted and
you might need to choose an earlier recovery target.
LOG: entering standby mode
WARNING: WAL was generated with wal_level=minimal, data may be missing
HINT: This happens if you temporarily set wal_level=minimal without taking
a new base backup.
FATAL: hot standby is not possible because wal_level was not set to
"hot_standby" on the master server
HINT: Either set wal_level to "hot_standby" on the master, or turn off
hot_standby here.
LOG: startup process (PID 28761) exited with exit code 1
LOG: aborting startup due to startup process failure
The error message above on the FATAL line is wrong (or at least misleading).
The real problem should be that it can't connect to the master. The
wal_level on the master is hot_standby (captured after I started it):
=# SHOW wal_level;
wal_level
-------------
hot_standby
(1 row)
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #6619: Misleading output from slave when host is not running
2012-04-27 07:47 BUG #6619: Misleading output from slave when host is not running petteri.raty@aalto.fi
@ 2012-04-27 14:16 ` Simon Riggs <simon@2ndQuadrant.com>
2012-04-28 22:45 ` Re: BUG #6619: Misleading output from slave when host is not running Petteri Räty <petteri.raty@aalto.fi>
1 sibling, 1 reply; 4+ messages in thread
From: Simon Riggs @ 2012-04-27 14:16 UTC (permalink / raw)
To: petteri.raty@aalto.fi; +Cc: pgsql-bugs
On Fri, Apr 27, 2012 at 8:47 AM, <petteri.raty@aalto.fi> wrote:
> LOG: entering standby mode
> WARNING: WAL was generated with wal_level=minimal, data may be missing
> HINT: This happens if you temporarily set wal_level=minimal without taking
> a new base backup.
> FATAL: hot standby is not possible because wal_level was not set to
> "hot_standby" on the master server
> HINT: Either set wal_level to "hot_standby" on the master, or turn off
> hot_standby here.
> LOG: startup process (PID 28761) exited with exit code 1
> LOG: aborting startup due to startup process failure
>
> The error message above on the FATAL line is wrong (or at least misleading).
> The real problem should be that it can't connect to the master. The
> wal_level on the master is hot_standby (captured after I started it):
The HINT that we should simply set something on the master is a little
misleading with respect to timing. However, if the master and the
standby aren't even connected and you know that, how did you expect
there to be a causal link between the setting on the master and the
state of the standby?
What do you suggest the messages say?
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #6619: Misleading output from slave when host is not running
2012-04-27 07:47 BUG #6619: Misleading output from slave when host is not running petteri.raty@aalto.fi
2012-04-27 14:16 ` Re: BUG #6619: Misleading output from slave when host is not running Simon Riggs <simon@2ndQuadrant.com>
@ 2012-04-28 22:45 ` Petteri Räty <petteri.raty@aalto.fi>
0 siblings, 0 replies; 4+ messages in thread
From: Petteri Räty @ 2012-04-28 22:45 UTC (permalink / raw)
To: Simon Riggs <simon@2ndQuadrant.com>; +Cc: pgsql-bugs
On 27.04.2012 17:16, Simon Riggs wrote:
> On Fri, Apr 27, 2012 at 8:47 AM, <petteri.raty@aalto.fi> wrote:
>
>> LOG: entering standby mode
>> WARNING: WAL was generated with wal_level=minimal, data may be missing
>> HINT: This happens if you temporarily set wal_level=minimal without taking
>> a new base backup.
>> FATAL: hot standby is not possible because wal_level was not set to
>> "hot_standby" on the master server
>> HINT: Either set wal_level to "hot_standby" on the master, or turn off
>> hot_standby here.
>> LOG: startup process (PID 28761) exited with exit code 1
>> LOG: aborting startup due to startup process failure
>>
>> The error message above on the FATAL line is wrong (or at least misleading).
>> The real problem should be that it can't connect to the master. The
>> wal_level on the master is hot_standby (captured after I started it):
>
> The HINT that we should simply set something on the master is a little
> misleading with respect to timing. However, if the master and the
> standby aren't even connected and you know that, how did you expect
> there to be a causal link between the setting on the master and the
> state of the standby?
>
I started investigating after seeing that it didn't start up and found
that the master had a firewall preventing from connecting to the port
where I had setup postgres to listen.
>
> What do you suggest the messages say?
>
If the slave had no way to connect to the master then how can the slave
tell how "hot_standby" is configured there? I am expecting the message
to tell me that it can't connect to the master.
Regards,
Petteri
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #6619: Misleading output from slave when host is not running
2012-04-27 07:47 BUG #6619: Misleading output from slave when host is not running petteri.raty@aalto.fi
@ 2012-04-27 18:29 ` Robert Haas <robertmhaas@gmail.com>
1 sibling, 0 replies; 4+ messages in thread
From: Robert Haas @ 2012-04-27 18:29 UTC (permalink / raw)
To: petteri.raty@aalto.fi; +Cc: pgsql-bugs
On Fri, Apr 27, 2012 at 3:47 AM, <petteri.raty@aalto.fi> wrote:
> When I started the slave without the master running I got the following
> output:
>
> $ postgres -D gsd-replica/
> LOG: database system was interrupted while in recovery at log time
> 2012-04-25 12:01:33 UTC
> HINT: If this has occurred more than once some data might be corrupted and
> you might need to choose an earlier recovery target.
> LOG: entering standby mode
> WARNING: WAL was generated with wal_level=minimal, data may be missing
> HINT: This happens if you temporarily set wal_level=minimal without taking
> a new base backup.
> FATAL: hot standby is not possible because wal_level was not set to
> "hot_standby" on the master server
> HINT: Either set wal_level to "hot_standby" on the master, or turn off
> hot_standby here.
> LOG: startup process (PID 28761) exited with exit code 1
> LOG: aborting startup due to startup process failure
>
> The error message above on the FATAL line is wrong (or at least misleading).
I think it's trying to tell you that you had wal_level=minimal
configured on the master *at the time you took the base backup*.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2012-04-28 22:45 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-04-27 07:47 BUG #6619: Misleading output from slave when host is not running petteri.raty@aalto.fi
2012-04-27 14:16 ` Simon Riggs <simon@2ndQuadrant.com>
2012-04-28 22:45 ` Petteri Räty <petteri.raty@aalto.fi>
2012-04-27 18:29 ` Robert Haas <robertmhaas@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