-
Notifications
You must be signed in to change notification settings - Fork 433
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
Should detect when archive_command
is not set right..
#50
Comments
Matt, thanks for reporting this! During backup-push, we can check whether we have at least some WALs related to this backup and report a problem. But, when we are doing the backup on replica it is possible to have 0 WALs issued during backup... I need to think a bit about this. |
I totally agree that specifically checking |
There are some options.
I think that we should add checks somewhere here. https://github.com/wal-g/wal-g/blob/master/connect.go#L24 If you have some spare time, I'd be happy if you could hack a pull request. Or I can implement this checks, probably somewhere next week. |
…ly this is printed as warning. Will consider panic in future
We have hints for the user now, but we cannot protect the user from shooting in the foot completely, if they do not read WAL-G output. |
We are doing some development of new puppet code for managing databases, and in my testing I hadn't yet set
archive_command
to anything on our dbmaster. Obviously we need to do that .. but if you miss it, and you try to execute awal-g backup-push
, it just hangs near the end:Digging into the Postgres logs, we saw:
Adding
archive_command = "/bin/true"
and HUPing postgres solved the issue. However, it seems that wal-g should have some way to detect when its in this hung state and get out of it with a useful error.The text was updated successfully, but these errors were encountered: