On 16/01/09 9:23, drum.lucas@gmail.com wrote: > Hi all! > > I've done the pg_basebackup from the live to a new slave server... > > I've recovery the wal files, but now that I configured to replicate from the master (recovery.conf) I got this error: > > ../wal_archive/0000000400000C68000000C8` not found > ../wal_archive/00000005.history` not found > > FATAL: timeline 2 of the primary does not match recovery target timeline 1
Can you post the contents of your recovery.conf file, suitably anonymised if necessary?
Regards Ian Barwick
Hi Lucas,
I followed your question I generated the same error:
cp: cannot stat `/pgdata/arch/00000003.history': No such file or directory
2016-01-09 14:11:42 IST FATAL: timeline 1 of the primary does not
match recovery target timeline 2
It looks like You have a set up A (Master) ---> B (Replica) ---> C Replica (Base backup from Replica B)
It seems you have used recovery.conf (to replicate from master to slave) to new replica setup C and there is high probability not changing the primary connection info
in C's recovery.conf (Replica B's Connection info)
During testing providing B's connection info in C's recovery.conf resolved the issue.
Please verify the Primary connection info parameter in recovery.conf (C replica) might resolve your problem.