Restore fails with metadata.deletionGracePeriodSeconds: Invalid value: 0: field is immutable

This document (000020786) is provided subject to the disclaimer at the end of this document.


Rancher backup <  2.1.3


Restore of backup fails with error:

Error restoring namespaced resources [error restoring rancher-k3s-upgrader of type, Resource=apps: restoreResource: err updating resource "rancher-k3s-upgrader" is invalid: metadata.deletionGracePeriodSeconds: Invalid value: 0: field is immutable]


There are two ways to resolve this:

1. Upgrade to Rancher-backup 2.1.3 or higher.

2. Extract the backup archive, search for resources that have a deletingGracePeriod field. Remove these resources manually and package the archive again. You can either remove just the metadata field or remove the entire resource. It’s a resource that’s supposed to be deleted so will have no negative effects. 


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020786
  • Creation Date: 26-Sep-2022
  • Modified Date:30-Mar-2023
    • SUSE Rancher

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center