Open MishraIshita opened 12 months ago
@ishitamishra13111999
This seems a timeout error, could you check if there's anything wrong on your api-server when velero's item collector list resources?
Are you using velero to backup the whole cluster or selected namespaces? Could you try to backup a single namespace ?
Additionally, the velero version you used is a bit old, could you try a more recent release like v1.11, and see if the problem remains?
@reasonerjt we are trying to take whole cluster backup, & backing up a single namespace going fine without an issue. Is there a property from velero which can help these timeouts?
@ishitamishra13111999 @sathishjeganathan First, could you try a newer version of Velero? v1.7.1 was released almost two years ago. v1.11.1 or v1.12.0 should be a better choice.
Second,
error="the server was unable to return a response in the time allotted, but may still be processing the request"
It looks like a K8s API-server side timeout. I'm afraid the Velero side cannot resolve that. Please check with your k8s cluster components' logs, especially the ETCD, to find more hints.
What steps did you take and what happened:
Velero backup is partially failing because of following error:
time="2023-10-16T09:13:36Z" level=error msg="Error listing resources" backup=velero-prod-active/velero-backup-minute-20231016090000 error="the server was unable to return a response in the time allotted, but may still be processing the request" error.file="/go/src/github.com/vmware-tanzu/velero/pkg/backup/item_collector.go:312" error.function="github.com/vmware-tanzu/velero/pkg/backup.(*itemCollector).getResourceItems" group=velero.io/v1 logSource="pkg/backup/item_collector.go:312" namespace= resource=backups
velero-backup-minute-20231016090000 PartiallyFailed 1 0 2023-10-16 09:05:46 +0000 UTC 1h default <none>
What did you expect to happen: The backup should be complete successfully without any issues The following information will help us better understand what's going on:
If you are using velero v1.7.0+:
Please use
velero debug --backup <backupname> --restore <restorename>
to generate the support bundle, and attach to this issue, more options please refer tovelero debug --help
If you are using earlier versions:
Please provide the output of the following commands (Pasting long output into a GitHub gist or other pastebin is fine.)
kubectl logs deployment/velero -n velero
velero backup describe <backupname>
orkubectl get backup/<backupname> -n velero -o yaml
velero backup logs <backupname>
velero restore describe <restorename>
orkubectl get restore/<restorename> -n velero -o yaml
velero restore logs <restorename>
Anything else you would like to add:
Environment:
velero version
): 1.7.1velero client config get features
):kubectl version
): features:/etc/os-release
):Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.