-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add troubleshooting guide for
ciphertext verification
failed issue (#…
…187) Signed-off-by: Emruz Hossain <[email protected]>
- Loading branch information
Emruz Hossain
authored
Jan 4, 2022
1 parent
e7e49a0
commit aa2f022
Showing
6 changed files
with
80 additions
and
35 deletions.
There are no files selected for viewing
Binary file added
BIN
+64.2 KB
.../troubleshooting/ciphertext-verification-failed/images/gcs_lifecycle_policy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions
45
docs/guides/latest/troubleshooting/ciphertext-verification-failed/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
title: Ciphertext Verification Failed| Stash | ||
description: Troubleshooting "ciphertext verification failed" issue | ||
menu: | ||
docs_{{ .version }}: | ||
identifier: troubleshooting-ciphertext-verification-failed | ||
name: Ciphertext verification failed | ||
parent: troubleshooting | ||
weight: 40 | ||
product_name: stash | ||
menu_name: docs_{{ .version }} | ||
section_menu_id: guides | ||
--- | ||
|
||
# Troubleshooting "ciphertext verification failed" issue | ||
|
||
Sometimes, the backup starts failing after a few days with an error indicating `ciphertext verification failed`. In this guide, we are going to explain what might cause the issue and how to solve it. | ||
|
||
## Identifying the issue | ||
|
||
The backup should run successfully for a few days. Suddenly, it will start failing. Any subsequent backups will fail too. If you describe the respective `BackupSession` or view the log from the respective backup sidecar/job, you should see the following error: | ||
|
||
```bash | ||
Fatal: ciphertext verification failed | ||
``` | ||
|
||
## Possible reasons | ||
|
||
This can happen if the backed-up data get corrupted for any of these reasons. | ||
|
||
- Someone deleted some files/folders from the backend manually. | ||
- The respective bucket has a policy configured to delete the old data automatically. | ||
|
||
## Solution | ||
|
||
At first, check if the bucket has any policy configured to delete the old data automatically. If this is the case, please remove that policy and depend only on the retention policy provided by Stash Repository to cleanup the old data. | ||
|
||
For example, if you are using a GCS bucket, you can check for such policy in the `LIFECYCLE` tab. | ||
|
||
<figure align="center"> | ||
<img alt="Object deletion policy in GCS" src="images/gcs_lifecycle_policy.png"> | ||
<figcaption align="center">Fig: Object deletion policy in GCS</figcaption> | ||
</figure> | ||
|
||
Unfortunately, there is no known way to fix the corrupted repository. You have to delete all the corrupted data from the backend. Only then, the subsequent backups will succeed again. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters