Skip to main content
Question

Unable to Backup stateful application


Hi Team,

We are currently testing backup for a stateful application, and we have deployed WordPress and SQL Server.

For the backup process, we are using a blueprint. We created a blueprint for SQL Server and bound it to the SQL Server namespace.

However, when attempting the backup, we encounter the following error:

Job Execution Failed

Failed to prime the snapshot session
Failed to prepare Kopia backup session
Failed to initialize Kopia API server
Two errors occurred
Error Details:

Failure during the snapshot cleanup phase. Snapshots might be orphaned.
Currently, there is no CSI driver available for Azure Arc AKS, so we are trying to perform the backup using the Kanister blueprint instead.

Please have a look and let us know if there are any suggestions or solutions.

3 comments

Forum|alt.badge.img
  • Comes here often
  • 11 comments
  • February 24, 2025

Hi ​@asharma15
   Thankyou for posting the error. Could you please share the full error message and the blueprint that you are using currently. 


Regards,
Pavithra


  • Author
  • Comes here often
  • 9 comments
  • February 24, 2025

I deployed the MySQL server and blueprint from the Kasten documentation. Here are the links:

MySQL installation:
https://docs.kasten.io/latest/kanister/mysql/install.html#:~:text=Install%20the%20MySQL%20chart%20from%20the%20bitnami%20Helm%20repository%3A
 

MySQL blueprint creation:
https://docs.kasten.io/latest/kanister/mysql/install.html#:~:text=The%20following%20command%20can%20be%20used%20create%20the%20MySQL%20Blueprint%20in%20the%20Veeam%20Kasten%20namespace.

After successfully deploying MySQL, I went ahead and deployed WordPress, which is now working with MySQL.

Before creating WordPress, I tested the MySQL backup, which worked fine. However, after deploying WordPress, I am encountering the following error:

- cause:
    cause:
      cause:
        cause:
          cause:
            cause:
              message: the server could not find the requested resource
            file: github.com/kanisterio/kanister@v0.0.0-20250106180853-0abc731c8242/pkg/kube/snapshot/snapshot_stable.go
            function: github.com/kanisterio/kanister/pkg/kube/snapshot.GetSnapshotClassbyAnnotation
            linenumber: 524
            message: Failed to get VolumeSnapshotClasses in the cluster
          file: kasten.io/k10/kio/exec/phases/backup/snapshot_precheck.go:105
          function: kasten.io/k10/kio/exec/phases/backup.runCSIPrechecks
          linenumber: 105
          message: Failed to get K10 VolumeSnapshotClass
        fields:
          - name: PVC
            value: wordpress-pvc
        file: kasten.io/k10/kio/exec/phases/backup/snapshot_precheck.go:90
        function: kasten.io/k10/kio/exec/phases/backup.isCSIPVC
        linenumber: 90
        message: Failed to run CSI prechecks for PVC
      file: kasten.io/k10/kio/exec/phases/backup/snapshot_precheck.go:55
      function: kasten.io/k10/kio/exec/phases/backup.SnapshotPrecheck
      linenumber: 55
      message: Failed to check for CSI PVC
    file: kasten.io/k10/kio/exec/phases/backup/snapshot_data_phase.go:398
    function: kasten.io/k10/kio/exec/phases/backup.processVolumeArtifacts
    linenumber: 398
    message: Failed snapshot precheck for workload
  message: Job failed to be executed
- cause:
    cause:
      cause:
        cause:
          cause:
            cause:
              message: the server could not find the requested resource
            file: github.com/kanisterio/kanister@v0.0.0-20250106180853-0abc731c8242/pkg/kube/snapshot/snapshot_stable.go
            function: github.com/kanisterio/kanister/pkg/kube/snapshot.GetSnapshotClassbyAnnotation
            linenumber: 524
            message: Failed to get VolumeSnapshotClasses in the cluster
          file: kasten.io/k10/kio/exec/phases/backup/snapshot_precheck.go:105
          function: kasten.io/k10/kio/exec/phases/backup.runCSIPrechecks
          linenumber: 105
          message: Failed to get K10 VolumeSnapshotClass
        fields:
          - name: PVC
            value: wordpress-pvc
        file: kasten.io/k10/kio/exec/phases/backup/snapshot_precheck.go:90
        function: kasten.io/k10/kio/exec/phases/backup.isCSIPVC
        linenumber: 90
        message: Failed to run CSI prechecks for PVC
      file: kasten.io/k10/kio/exec/phases/backup/snapshot_precheck.go:55
      function: kasten.io/k10/kio/exec/phases/backup.SnapshotPrecheck
      linenumber: 55
      message: Failed to check for CSI PVC
    file: kasten.io/k10/kio/exec/phases/backup/snapshot_data_phase.go:398
    function: kasten.io/k10/kio/exec/phases/backup.processVolumeArtifacts
    linenumber: 398
    message: Failed snapshot precheck for workload
  message: Job failed to be executed
- cause:
    cause:
      cause:
        cause:
          cause:
            cause:
              message: the server could not find the requested resource
            file: github.com/kanisterio/kanister@v0.0.0-20250106180853-0abc731c8242/pkg/kube/snapshot/snapshot_stable.go
            function: github.com/kanisterio/kanister/pkg/kube/snapshot.GetSnapshotClassbyAnnotation
            linenumber: 524
            message: Failed to get VolumeSnapshotClasses in the cluster
          file: kasten.io/k10/kio/exec/phases/backup/snapshot_precheck.go:105
          function: kasten.io/k10/kio/exec/phases/backup.runCSIPrechecks
          linenumber: 105
          message: Failed to get K10 VolumeSnapshotClass
        fields:
          - name: PVC
            value: wordpress-pvc
        file: kasten.io/k10/kio/exec/phases/backup/snapshot_precheck.go:90
        function: kasten.io/k10/kio/exec/phases/backup.isCSIPVC
        linenumber: 90
        message: Failed to run CSI prechecks for PVC
      file: kasten.io/k10/kio/exec/phases/backup/snapshot_precheck.go:55
      function: kasten.io/k10/kio/exec/phases/backup.SnapshotPrecheck
      linenumber: 55
      message: Failed to check for CSI PVC
    file: kasten.io/k10/kio/exec/phases/backup/snapshot_data_phase.go:398
    function: kasten.io/k10/kio/exec/phases/backup.processVolumeArtifacts
    linenumber: 398
    message: Failed snapshot precheck for workload
  message: Job failed to be executed


  • Author
  • Comes here often
  • 9 comments
  • February 25, 2025

Hi ​@Pavithra I have shared detials pls take a look.


Comment