pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
: postgres: archiver process failed on 0000000100000F72000000F0
6+ messages / 4 participants
[nested] [flat]

* : postgres: archiver process failed on 0000000100000F72000000F0
@ 2011-11-11 16:28  Venkat Balaji <venkat.balaji@verse.in>
  0 siblings, 2 replies; 6+ messages in thread

From: Venkat Balaji @ 2011-11-11 16:28 UTC (permalink / raw)
  To: pgsql-general

Hello,

WAL Archive process in our production is not working.

[postgres@hostname]$ ps -ef | grep archive
postgres 12077 16015  0 10:19 pts/4    00:00:00 grep archive
postgres 31126 27607  0 Nov10 ?        00:01:18 postgres: archiver process
  failed on 0000000100000F72000000F0

I see WAL files getting accumulated in pg_xlog location and the status in
"archive_status" is shown as ".ready".

Is there anyway we can only restart archiving process without disturbing
the actual cluster ?

Actually, we had killed a process using "kill  -9 " and the db went into
recovery mode and was back up and running.

We have no issues with the application as well.

postgres=# select pg_is_in_recovery();

 pg_is_in_recovery
-------------------
 f
(1 row)

Please help to resolve this !

Thanks
VB

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: : postgres: archiver process failed on 0000000100000F72000000F0
@ 2011-11-11 17:33  Venkat Balaji <venkat.balaji@verse.in>
  parent: Venkat Balaji <venkat.balaji@verse.in>
  1 sibling, 0 replies; 6+ messages in thread

From: Venkat Balaji @ 2011-11-11 17:33 UTC (permalink / raw)
  To: pgsql-general

This problem has been resolved !!

Thanks
VB

On Fri, Nov 11, 2011 at 9:58 PM, Venkat Balaji <venkat.balaji@verse.in>wrote:

> Hello,
>
> WAL Archive process in our production is not working.
>
> [postgres@hostname]$ ps -ef | grep archive
> postgres 12077 16015  0 10:19 pts/4    00:00:00 grep archive
> postgres 31126 27607  0 Nov10 ?        00:01:18 postgres: archiver process
>   failed on 0000000100000F72000000F0
>
> I see WAL files getting accumulated in pg_xlog location and the status in
> "archive_status" is shown as ".ready".
>
> Is there anyway we can only restart archiving process without disturbing
> the actual cluster ?
>
> Actually, we had killed a process using "kill  -9 " and the db went into
> recovery mode and was back up and running.
>
> We have no issues with the application as well.
>
> postgres=# select pg_is_in_recovery();
>
>  pg_is_in_recovery
> -------------------
>  f
> (1 row)
>
> Please help to resolve this !
>
> Thanks
> VB
>

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: : postgres: archiver process failed on 0000000100000F72000000F0
@ 2011-11-11 17:35  David Kerr <dmk@mr-paradox.net>
  parent: Venkat Balaji <venkat.balaji@verse.in>
  1 sibling, 0 replies; 6+ messages in thread

From: David Kerr @ 2011-11-11 17:35 UTC (permalink / raw)
  To: Venkat Balaji <venkat.balaji@verse.in>; +Cc: pgsql-general

On Fri, Nov 11, 2011 at 09:58:56PM +0530, Venkat Balaji wrote:
- Hello,
- 
- WAL Archive process in our production is not working.
- 
- [postgres@hostname]$ ps -ef | grep archive
- postgres 12077 16015  0 10:19 pts/4    00:00:00 grep archive
- postgres 31126 27607  0 Nov10 ?        00:01:18 postgres: archiver process
-   failed on 0000000100000F72000000F0
- 
- I see WAL files getting accumulated in pg_xlog location and the status in
- "archive_status" is shown as ".ready".
- 
- Is there anyway we can only restart archiving process without disturbing
- the actual cluster ?
- 
- Actually, we had killed a process using "kill  -9 " and the db went into
- recovery mode and was back up and running.
- 
- We have no issues with the application as well.
- 
- postgres=# select pg_is_in_recovery();
- 
-  pg_is_in_recovery
- -------------------
-  f
- (1 row)
- 
- Please help to resolve this !

If you fix the problem causing the archiver process to fail it will start processing
the logs again.

check your postgres logs and check your archive_command in your postgresql.conf and 
make sure that everything is correct there. 

Dave



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* postgres: archiver process failed on 000000010000020A00000073
@ 2020-04-01 17:09  Silvio Fabi - NBS srl <s.fabi@nbsgroup.it>
  0 siblings, 1 reply; 6+ messages in thread

From: Silvio Fabi - NBS srl @ 2020-04-01 17:09 UTC (permalink / raw)
  To: pgsql-general

Hi,

WAL Archive process on my DB Postgresql 10 is not working.
the WAL Archive file 000000010000020A00000073 was accidentally deleted
and there is no backup.
Postgresql tries to run the following command:
rsync -a pg_wal/000000010000020A00000073
barman@database:/var/lib/barman/database/incoming/000000010000020A00000073

but of course it fails

below the message in the postgres log file:
2020-04-01 18:48:19 CEST [18265]: [101016-1] DETAIL:  The failed archive
command was: rsync -a pg_wal/000000010000020A00000073
barman@database:/var/lib/barman/database/incoming/000000010000020A00000073
2020-04-01 18:48:19 CEST [18265]: [101017-1] WARNING:  archiving
write-ahead log file "000000010000020A00000073" failed too many times,
will try again later


Postgresql continues to generate WALs Archive file in local directory
"log" and I have no application problems, but continuous archiving on
the barman repository does not work.

How can I fix this problem?


-- 
Silvio Fabi
NBS srl
Via Val Tiberina 23/A
San Benedetto del Tronto (AP)
Telefono: 0735/7626242
Cellulare: 345/0142435







^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: postgres: archiver process failed on 000000010000020A00000073
@ 2020-04-01 17:36  Alvaro Herrera <alvherre@2ndquadrant.com>
  parent: Silvio Fabi - NBS srl <s.fabi@nbsgroup.it>
  0 siblings, 1 reply; 6+ messages in thread

From: Alvaro Herrera @ 2020-04-01 17:36 UTC (permalink / raw)
  To: Silvio Fabi - NBS srl <s.fabi@nbsgroup.it>; +Cc: pgsql-general

On 2020-Apr-01, Silvio Fabi - NBS srl wrote:

> WAL Archive process on my DB Postgresql 10 is not working.
> the WAL Archive file 000000010000020A00000073 was accidentally deleted
> and there is no backup.
> Postgresql tries to run the following command:
> rsync -a pg_wal/000000010000020A00000073
> barman@database:/var/lib/barman/database/incoming/000000010000020A00000073

Ouch.  This is not a barman problem; accidentally a WAL file is
synonymous with corrupting your database.  Any existing backup that
needs that file is now invalid.  I suggest you run CHECKPOINT and then
take a new backup.  I think removing the 000000010000020A00000073.ready
file from pg_wal should prevent future attempts at archiving it, so that
subsequent WAL files are archived.

By all means, *do not* lose any more WAL files.  It is a very dangerous
thing to do.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: postgres: archiver process failed on 000000010000020A00000073
@ 2020-04-02 08:12  Silvio Fabi - NBS srl <s.fabi@nbsgroup.it>
  parent: Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Silvio Fabi - NBS srl @ 2020-04-02 08:12 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: pgsql-general

thanks Alvaro,
following your instructions I solved the problem.

Il 01/04/2020 19:36, Alvaro Herrera ha scritto:
> On 2020-Apr-01, Silvio Fabi - NBS srl wrote:
>
>> WAL Archive process on my DB Postgresql 10 is not working.
>> the WAL Archive file 000000010000020A00000073 was accidentally deleted
>> and there is no backup.
>> Postgresql tries to run the following command:
>> rsync -a pg_wal/000000010000020A00000073
>> barman@database:/var/lib/barman/database/incoming/000000010000020A00000073
> Ouch.  This is not a barman problem; accidentally a WAL file is
> synonymous with corrupting your database.  Any existing backup that
> needs that file is now invalid.  I suggest you run CHECKPOINT and then
> take a new backup.  I think removing the 000000010000020A00000073.ready
> file from pg_wal should prevent future attempts at archiving it, so that
> subsequent WAL files are archived.
>
> By all means, *do not* lose any more WAL files.  It is a very dangerous
> thing to do.
>

-- 
Silvio Fabi
NBS srl
Via Val Tiberina 23/A
San Benedetto del Tronto (AP)
Telefono: 0735/7626242
Cellulare: 345/0142435







^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2020-04-02 08:12 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-11-11 16:28 : postgres: archiver process failed on 0000000100000F72000000F0 Venkat Balaji <venkat.balaji@verse.in>
2011-11-11 17:33 ` Venkat Balaji <venkat.balaji@verse.in>
2011-11-11 17:35 ` David Kerr <dmk@mr-paradox.net>
2020-04-01 17:09 postgres: archiver process failed on 000000010000020A00000073 Silvio Fabi - NBS srl <s.fabi@nbsgroup.it>
2020-04-01 17:36 ` Re: postgres: archiver process failed on 000000010000020A00000073 Alvaro Herrera <alvherre@2ndquadrant.com>
2020-04-02 08:12   ` Re: postgres: archiver process failed on 000000010000020A00000073 Silvio Fabi - NBS srl <s.fabi@nbsgroup.it>

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