Skip to content

Commit 31bf1db

Browse files
authored
Merge pull request #49335 from RichardHoch/restic_error_log
OADP-666: Correct a log error in OADP Troubleshooting
2 parents f992603 + 590663a commit 31bf1db

File tree

1 file changed

+33
-6
lines changed

1 file changed

+33
-6
lines changed

modules/oadp-restic-issues.adoc

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You might encounter these issues when you back up applications with Restic.
1111
[id="restic-permission-error-nfs-root-squash-enabled_{context}"]
1212
== Restic permission error for NFS data volumes with root_squash enabled
1313

14-
The `Restic` pod log displays the error message, `controller=pod-volume-backup error="fork/exec/usr/bin/restic: permission denied"`.
14+
The `Restic` pod log displays the error message: `controller=pod-volume-backup error="fork/exec/usr/bin/restic: permission denied"`.
1515

1616
.Cause
1717

@@ -99,13 +99,40 @@ $ oc get all -n <namespace>
9999
[id="restic-backup-cannot-be-recreated-after-s3-bucket-emptied_{context}"]
100100
== Restic Backup CR cannot be recreated after bucket is emptied
101101

102-
If you create a Restic `Backup` CR for a namespace, empty the S3 bucket, and then recreate the `Backup` CR for the same namespace, the recreated `Backup` CR fails.
102+
If you create a Restic `Backup` CR for a namespace, empty the object storage bucket, and then recreate the `Backup` CR for the same namespace, the recreated `Backup` CR fails.
103103

104-
The `velero` pod log displays the error message, `msg="Error checking repository for stale locks"`.
104+
The `velero` pod log displays the following error message: `stderr=Fatal: unable to open config file: Stat: The specified key does not exist.\nIs there a repository at the following location?`.
105105

106106
.Cause
107107

108-
Velero does not create the Restic repository from the `ResticRepository` manifest if the Restic directories are deleted on object storage. See (link:https://github.com/vmware-tanzu/velero/issues/4421[Velero issue 4421]) for details.
108+
Velero does not recreate or update the Restic repository from the `ResticRepository` manifest if the Restic directories are deleted from object storage. See link:https://github.com/vmware-tanzu/velero/issues/4421[Velero issue 4421] for more information.
109109

110-
// For https://issues.redhat.com/browse/OADP-177
111-
// I am linking to GitHub in this isolated instance because it is a link to an issue, not to the repo. The user needs to have this link in order to know whether it has been resolved.
110+
.Solution
111+
112+
* Remove the related Restic repository from the namespace by running the following command:
113+
+
114+
[source,terminal]
115+
----
116+
$ oc delete resticrepository openshift-adp <name_of_the_restic_repository>
117+
----
118+
+
119+
120+
In the following error log, `mysql-persistent` is the problematic Restic repository. The name of the repository appears in italics for clarity.
121+
+
122+
[source,text,options="nowrap",subs="+quotes,verbatim"]
123+
----
124+
time="2021-12-29T18:29:14Z" level=info msg="1 errors
125+
encountered backup up item" backup=velero/backup65
126+
logSource="pkg/backup/backup.go:431" name=mysql-7d99fc949-qbkds
127+
time="2021-12-29T18:29:14Z" level=error msg="Error backing up item"
128+
backup=velero/backup65 error="pod volume backup failed: error running
129+
restic backup, stderr=Fatal: unable to open config file: Stat: The
130+
specified key does not exist.\nIs there a repository at the following
131+
location?\ns3:http://minio-minio.apps.mayap-oadp-
132+
veleo-1234.qe.devcluster.openshift.com/mayapvelerooadp2/velero1/
133+
restic/_mysql-persistent_\n: exit status 1" error.file="/remote-source/
134+
src/github.com/vmware-tanzu/velero/pkg/restic/backupper.go:184"
135+
error.function="github.com/vmware-tanzu/velero/
136+
pkg/restic.(*backupper).BackupPodVolumes"
137+
logSource="pkg/backup/backup.go:435" name=mysql-7d99fc949-qbkds
138+
----

0 commit comments

Comments
 (0)