New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A missing wal in S3 storage after wal-push connection timeout #1578
Comments
Hi!
|
Hi, thanks for quick reply.
Seems, no errors?
That was an accidental timeout error. There are lots of WALs before and after missing one, that ran successfully. I'm not sure how to reproduce a connection timeout situation. I've tried sending another existing WAL to non-existing host, and tried to send not-existing WAL. In both cases I got exit code 1, so it seems to be correct. I'm not sure how to reproduce the very same timeout error in order to check the exact situation.
The problem here is not with restore. File has not been uploaded to S3 by
The database is highly loaded. I've also checked, that there is no such file on master server in both |
Got a very similar error while doing a backup with
|
Database name
PostgreSQL 9.6.24
wal-g version v2.0.1 b7d53dd 2022.08.25_09:34:18 PostgreSQLd
Issue description
wal-push has not saved WAL file to S3 after Connection timeout error
Describe your problem
I use wal-push in order to upload wals to Amazon S3 storage. Yesterday I've ran a full backup using wal-backup command. Backup was successfull. After that I've tried to restored it to replica and ran Postgres. What I got was:
I've started digging, and found out that this file is really absent in Amazon, and found a log:
No other logs about missing wal were found.
I don't understand, why postgres haven't repeat uploading? archive_command returned zero exit code? But how it happend? If I run the command manually with not existing file it gives me
1
exit code, not0
. I'm not sure how can I reproduce timeout situation.Configuration
postgresql.conf
:walg-push.sh
file:env file:
The text was updated successfully, but these errors were encountered: