Closed far-blue closed 5 years ago
To be clear, older snapshots still restore without any issues.
Thanks for reporting this.
Do newer snapshots restore successfully as well? Is it possible the snapshot process, filesystem, etc. was interrupted or modified in some way for that specific snapshot?
I think this is a duplicate of https://github.com/hashicorp/consul/issues/4452. Please report any further information there, thanks!
Overview of the Issue
We've been testing a consul / vault setup for use in the company and have setup hourly snapshotting for backup. Testing these snapshots, we found that between the 22nd sept 9am and the 22nd sept 10am snapshots across all three nodes in the cluster suddenly started failing to restore.
The particular error is:
Error restoring snapshot: Unexpected response code: 500 (failed to read snapshot file: failed checking integrity of snapshot: hash check failed for "meta.json")
Looking at the source code this suggests that the snap file was correctly inflated and unpacked and the files exist but that the calculated sha256 of the meta.json file doesn't match the hash in the SHA256SUMS file.
However, if we manually unpack the snap and use the sha256sum cli tool the checks pass and a new hash generated using the cli tool matches the content of the SHA256SUMS file.
Reproduction Steps
Just try to restore the snapshot like usual and it will fail (but one from an hour earlier succeeds).
Consul info for both Client and Server
Operating system and Environment details
CentOS Linux release 7.5.1804 (Core)