Re: Error message in wal_log for Streaming replication

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Nimesh Satam <nimesh(dot)zedo(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Error message in wal_log for Streaming replication
Date: 2010-10-05 21:05:17
Message-ID: 1286312717.9636.10.camel@jdavis-ux.asterdata.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, 2010-10-05 at 14:41 +0530, Nimesh Satam wrote:
> We have been trying to implement the streaming replication on one of
> our test servers. We have set archive_xlogs to on. But on the standby
> server, when we start the database we get error the following errors:
>
> LOG: shutting down
> LOG: database system is shut down
> LOG: database system was shut down in recovery at 2010-10-05 05:05:27
> EDT
> LOG: entering standby mode
> cp: cannot stat
> `/home/postgres/archive_xlogs/000000010000000D00000036': No such file
> or directory
> LOG: consistent recovery state reached at D/36000078
> LOG: database system is ready to accept read only connections
> LOG: invalid record length at D/36000078
> cp: cannot stat
> `/home/postgres/archive_xlogs/000000010000000D00000036': No such file
> or directory
> LOG: streaming replication successfully connected to primary
>
> The file "000000010000000D00000036" is seen in pg_xlog folder of the
> primary database, but is not yet pushed to the archive location.
>
> Can you let us know what the error means and if we are doing anything
> wrong?

[ this question is more appropriate on pgsql-general ]

Those aren't postgres error messages, those are error messages generated
by "cp".

See:
http://www.postgresql.org/docs/9.0/static/archive-recovery-settings.html

"The command will be asked for file names that are not present in the
archive; it must return nonzero when so asked."

So, it is safe to ignore those errors.

Personally, I would use a restore_command that is silent when the file
doesn't exist so that it doesn't pollute your logs. I'm not sure why the
documentation suggests "cp".

Regards,
Jeff Davis

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Craig Ringer 2010-10-06 01:23:35 Re: Runtime dependency from size of a bytea field
Previous Message Merlin Moncure 2010-10-05 16:11:29 Re: Runtime dependency from size of a bytea field