From eedcbfe1384bc4cd9442801da123c072d3279816 Mon Sep 17 00:00:00 2001 From: Taran Pelkey Date: Fri, 6 Jan 2023 14:11:42 -0500 Subject: [PATCH] Allow mirror to continue syncing after an object fails to sync (#4427) --- cmd/mirror-main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/mirror-main.go b/cmd/mirror-main.go index c2592080..87a8e31b 100644 --- a/cmd/mirror-main.go +++ b/cmd/mirror-main.go @@ -511,6 +511,9 @@ func (mj *mirrorJob) monitorMirrorStatus(cancel context.CancelFunc) (errDuringMi errorIf(sURLs.Error.Trace(sURLs.TargetContent.URL.String()), fmt.Sprintf("Failed to remove `%s`.", sURLs.TargetContent.URL.String())) default: + if strings.Contains(sURLs.Error.ToGoError().Error(), "Overwrite not allowed") { + ignoreErr = true + } if sURLs.ErrorCond == differInUnknown { errorIf(sURLs.Error.Trace(), "Failed to perform mirroring") } else {