Harju maakond, Tallinn, Kesklinna linnaosa, Viru väljak 2, 10111
(+90) 532 210 57 18
ConsultingJanuary 30, 2022by glctech0

ERROR: could not open file “pg_wal/00000002.history”

“pg_basebackup: error: could not send replication command “TIMELINE_HISTORY”: ERROR: could not open file “pg_wal/00000002.history”: No such file or directory”

You may have encountered the above error when you run the pg_basebackup command.

You are getting this error because you don’t have “00000002.history” file in your pg_wal directory. This file can sometimes be accidentally deleted by dba.

pgbasebackup error

“pg_wal/00000002.history” if you’re wondering what this file is for. I recommend you to look at this link.

 

There is a very simple solution to this.

Solution:

You can solve your problem by creating this file in the pg_wal folder.

touch 00000002.history

pgbasebackup_error2

pgbasebackup_error3

Click for detailed information about PostgreSQL Troubleshooting Service

Share

Leave a Reply

Your email address will not be published. Required fields are marked *