While creating a backup for my EFS volume i received this error:
- Kopia API ServerInfo must not be nil
- resource name may not be empty
I followed the instructions fromAmazon Elastic File System (EFS) Integration.
What could be the error?
While creating a backup for my EFS volume i received this error:
I followed the instructions fromAmazon Elastic File System (EFS) Integration.
What could be the error?
You might want to edit your OP and put what version you are using to get better assistance.
K10 version 6.0.1
Hello
Thank you for using K10 community!
Could you please paste here the entire error message from the logs, it will give a better idea which resource is missing value could be storageclass of a valume or something else, you get error from run actions on K10 dashboard or try to grep it from executor-svc logs.
Sure,
I have enabled: Snapshot Exports.
Choose Exporter Storage Class Name.
And here the logs, some sensitive data i have remove… :
{"kind":"BackupAction","apiVersion":"actions.kio.kasten.io/v1alpha1","metadata":{"name":"scheduled-kg5m8","namespace":"polkadot","uid":"2ff01166-174a-11ee-acb2-3eb2e2ea93b1","resourceVersion":"1476","creationTimestamp":"2023-06-30T13:29:49Z","labels":{"k10.kasten.io/appName":"polkadot","k10.kasten.io/appNamespace":"polkadot","k10.kasten.io/isRunNow":"true","k10.kasten.io/policyName":"polkadot-backup","k10.kasten.io/policyNamespace":"kasten-io","k10.kasten.io/runActionName":"policy-run-4xv8s"}},"status":{"state":"Failed","startTime":"2023-06-30T13:29:49Z","endTime":"2023-06-30T13:32:05Z","restorePoint":{"name":""},"result":{"name":""},"error":{"cause":"{\"cause\":{\"cause\":{\"cause\":{\"file\":\"kasten.io/k10/kio/kopiaapiserver/api_server.go:414\",\"function\":\"kasten.io/k10/kio/kopiaapiserver.ValidateAPIServer\",\"linenumber\":414,\"message\":\"Kopia API ServerInfo must not be nil\"},\"fields\":e{\"name\":\"volumeName\",\"value\":\"coind-polkadot\"},{\"name\":\"volumeNamespace\",\"value\":\"polkadot\"}],\"file\":\"kasten.io/k10/kio/exec/phases/backup/snapshot_data_phase.go:843\",\"function\":\"kasten.io/k10/kio/exec/phases/backup.basicVolumeSnapshot.func1.1\",\"linenumber\":843,\"message\":\"Error snapshotting volume\"},\"fields\":e{\"name\":\"appName\",\"value\":\"coind-polkadot\"},{\"name\":\"appType\",\"value\":\"statefulset\"},{\"name\":\"namespace\",\"value\":\"polkadot\"}],\"file\":\"kasten.io/k10/kio/exec/phases/backup/snapshot_data_phase.go:854\",\"function\":\"kasten.io/k10/kio/exec/phases/backup.basicVolumeSnapshot\",\"linenumber\":854,\"message\":\"Failed to snapshot volumes\"},\"file\":\"kasten.io/k10/kio/exec/phases/backup/snapshot_data_phase.go:384\",\"function\":\"kasten.io/k10/kio/exec/phases/backup.processVolumeArtifacts\",\"linenumber\":384,\"message\":\"Failed snapshots for workload\"}","message":"Job failed to be executed"},"exceptions":t{"cause":"{\"cause\":{\"cause\":{\"cause\":{\"cause\":{\"cause\":{\"message\":\"resource name may not be empty\"},\"fields\":e{\"name\":\"scName\",\"value\":\"\"}],\"file\":\"kasten.io/k10/kio/exec/phases/phase/snapshot.go:794\",\"function\":\"kasten.io/k10/kio/exec/phases/phase.ForceGVSOnStorageClass\",\"linenumber\":794,\"message\":\"Could not get storageclass\"},\"fields\":e{\"name\":\"pvcName\",\"value\":\"cloned-coindata-coind-polkadot-0-p5slfvc\"},{\"name\":\"namespace\",\"value\":\"polkadot\"}],\"file\":\"kasten.io/k10/kio/snapshotinspector/cleanerops/cleaner_ops.go:134\",\"function\":\"kasten.io/k10/kio/snapshotinspector/cleanerops.(*ProviderFetch).FetchVolumeInfos\",\"linenumber\":134,\"message\":\"Could not check if pvc is gvs\"},\"file\":\"kasten.io/k10/kio/snapshotinspector/snapshotcleaner.go:135\",\"function\":\"kasten.io/k10/kio/snapshotinspector.(*CleanSnapshotOps).FetchProviders\",\"linenumber\":135,\"message\":\"Failed to fetch namespace PVCs\"},\"file\":\"kasten.io/k10/kio/exec/phases/backup/snapshot_cleanup_phase.go:100\",\"function\":\"kasten.io/k10/kio/exec/phases/backup.(*SnapshotCleanupPhase).RunHelper\",\"linenumber\":100,\"message\":\"Failed to fetch providers\"},\"fields\":e],\"message\":\"Failed to cleanup snapshots\"}","message":"Failure in snapshot cleanup phase. Snapshots may be orphaned."}],"actionDetails":{"artifacts":f{"meta":{},"source":{"kind":"namespace","name":"polkadot","namespace":"polkadot"}},{"meta":{},"source":{"kind":"namespace","name":"polkadot","namespace":"polkadot"}},{"meta":{"spec":{"version":"v1","resource":"namespaces","type":"namespace","name":"polkadot","config":"{\"metadata\":{\"name\":\"polkadot\",\"uid\":\"a1cade90-1a63-42c2-a78c-6cf792b61e45\",\"resourceVersion\":\"9941963\",\"creationTimestamp\":\"2023-06-14T22:10:00Z\",\"labels\":{\"k10.kasten.io/actionType\":\"snapshot\",\"k10.kasten.io/appName\
Not sure if some wrong/missing setting.
Hello
Would you please be able to paste here the PVC yaml file, please remove any sensitive info.
FRubens
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
pv.kubernetes.io/bind-completed: "yes"
pv.kubernetes.io/bound-by-controller: "yes"
volume.beta.kubernetes.io/storage-provisioner: efs.csi.aws.com
volume.kubernetes.io/selected-node: ip-xxx
volume.kubernetes.io/storage-provisioner: efs.csi.aws.com
finalizers:
- kubernetes.io/pvc-protection
labels:
app: coind-polkadot
name: coindata-coind-polkadot-0
namespace: polkadot
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 500Gi
storageClassName: efs-sc
volumeMode: Filesystem
volumeName: pvc-xxx
status:
accessModes:
- ReadWriteMany
capacity:
storage: 500Gi
phase: Bound
Thanks!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.