Hello everyone!
I’m currently evaluating k10 and having trouble with the generic backup on Longhorn volumes.
Pre-flight check returns no errors and I have the same setup in a test cluster which works fine, I’m not sure what the difference is.
The Deployment has the the kanister sidecar Pod and the necessary labels and the annotation “
k10.kasten.io/forcegenericbackuptrue:true” ist set.
Error Message:
1'{"message":"Failed to backup data","function":"kasten.io/k10/kio/kanister/function.(*backupDataFunc).Exec","linenumber":108,"file":"kasten.io/k10/kio/kanister/function/backup_data.go:108","cause":{"message":"[\"{\\\"message\\\":\\\"Failed to create the backup repository\\\",\\\"function\\\":\\\"kasten.io/k10/kio/kopia.CreateKopiaRepository\\\",\\\"linenumber\\\":470,\\\"file\\\":\\\"kasten.io/k10/kio/kopia/repository.go:470\\\",\\\"cause\\\":{\\\"message\\\":\\\"Failed to exec command in pod: command terminated with exit code 1\\\"}}\",\"{\\\"message\\\":\\\"Failed to connect to the backup repository\\\",\\\"function\\\":\\\"kasten.io/k10/kio/kopia.ConnectToKopiaRepository\\\",\\\"linenumber\\\":558,\\\"file\\\":\\\"kasten.io/k10/kio/kopia/repository.go:558\\\",\\\"cause\\\":{\\\"message\\\":\\\"repository not found\\\",\\\"cause\\\":{\\\"message\\\":\\\"Failed to exec command in pod: command terminated with exit code 1\\\"}}}\"]"}}'The location profile returns a valid status and the user has read/write permissions on the bucket. The k10 DR Policy backups up to the same location and does not run into any errors, so I’m unsure why this backup policy wouldn’t be able to connect.
The location profile in Advanced Settings is set.

I backup to the same location from my test cluster and haven’t run into any issues. I also tried backup up to a different location (Wasabi cloud) which results in the same error.
Interestingly before that I got a different error, complaing about a missing Kanister Profile:
1- cause:2 cause:3 cause:4 cause:5 cause:6 cause:7 cause:8 message: profiles.config.kio.kasten.io "kanister-profile" not found9 fields:10 - name: profileName11 value: kanister-profile12 file: kasten.io/k10/kio/api/profiles/clients/client.go:24213 function: kasten.io/k10/kio/api/profiles/clients.Get14 linenumber: 24215 message: Failed to get profile16 fields:17 - name: profile18 value: kanister-profile19 file: kasten.io/k10/kio/api/profiles/clients/client.go:13020 function: kasten.io/k10/kio/api/profiles/clients.fetchDefaultK10KanisterProfile21 linenumber: 13022 message: Could not get default kanister profile23 file: kasten.io/k10/kio/api/profiles/clients/client.go:10024 function: kasten.io/k10/kio/api/profiles/clients.FetchK10KanisterProfileAndKanCR25 linenumber: 10026 message: No Kanister profile found27 file: kasten.io/k10/kio/kanister/kanister_profile.go:20328 function: kasten.io/k10/kio/kanister.GetK10CRAndKanisterProfile29 linenumber: 20330 message: Could not fetch a location profile. Location profile must be specified31 in action or policy parameters32 file: kasten.io/k10/kio/exec/phases/phase/snapshot.go:9633 function: kasten.io/k10/kio/exec/phases/phase.(*SnapshotSession).PrimeSnapshotSession34 linenumber: 9635 message: Failed to prepare kopia backup session.36 file: kasten.io/k10/kio/exec/phases/backup/snapshot_data_phase.go:12937 function: kasten.io/k10/kio/exec/phases/backup.(*SnapshotDataPhase).Run38 linenumber: 12939 message: Failed to prime the snapshot session40 message: Job failed to be executed41- cause:42 cause:43 cause:44 cause:45 cause:46 cause:47 cause:48 message: profiles.config.kio.kasten.io "kanister-profile" not found49 fields:50 - name: profileName51 value: kanister-profile52 file: kasten.io/k10/kio/api/profiles/clients/client.go:24253 function: kasten.io/k10/kio/api/profiles/clients.Get54 linenumber: 24255 message: Failed to get profile56 fields:57 - name: profile58 value: kanister-profile59 file: kasten.io/k10/kio/api/profiles/clients/client.go:13060 function: kasten.io/k10/kio/api/profiles/clients.fetchDefaultK10KanisterProfile61 linenumber: 13062 message: Could not get default kanister profile63 file: kasten.io/k10/kio/api/profiles/clients/client.go:10064 function: kasten.io/k10/kio/api/profiles/clients.FetchK10KanisterProfileAndKanCR65 linenumber: 10066 message: No Kanister profile found67 file: kasten.io/k10/kio/kanister/kanister_profile.go:20368 function: kasten.io/k10/kio/kanister.GetK10CRAndKanisterProfile69 linenumber: 20370 message: Could not fetch a location profile. Location profile must be specified71 in action or policy parameters72 file: kasten.io/k10/kio/exec/phases/phase/snapshot.go:9673 function: kasten.io/k10/kio/exec/phases/phase.(*SnapshotSession).PrimeSnapshotSession74 linenumber: 9675 message: Failed to prepare kopia backup session.76 file: kasten.io/k10/kio/exec/phases/backup/snapshot_data_phase.go:12977 function: kasten.io/k10/kio/exec/phases/backup.(*SnapshotDataPhase).Run78 linenumber: 12979 message: Failed to prime the snapshot session80 message: Job failed to be executed81- cause:82 cause:83 cause:84 cause:85 cause:86 cause:87 cause:88 message: profiles.config.kio.kasten.io "kanister-profile" not found89 fields:90 - name: profileName91 value: kanister-profile92 file: kasten.io/k10/kio/api/profiles/clients/client.go:24293 function: kasten.io/k10/kio/api/profiles/clients.Get94 linenumber: 24295 message: Failed to get profile96 fields:97 - name: profile98 value: kanister-profile99 file: kasten.io/k10/kio/api/profiles/clients/client.go:130100 function: kasten.io/k10/kio/api/profiles/clients.fetchDefaultK10KanisterProfile101 linenumber: 130102 message: Could not get default kanister profile103 file: kasten.io/k10/kio/api/profiles/clients/client.go:100104 function: kasten.io/k10/kio/api/profiles/clients.FetchK10KanisterProfileAndKanCR105 linenumber: 100106 message: No Kanister profile found107 file: kasten.io/k10/kio/kanister/kanister_profile.go:203108 function: kasten.io/k10/kio/kanister.GetK10CRAndKanisterProfile109 linenumber: 203110 message: Could not fetch a location profile. Location profile must be specified111 in action or policy parameters112 file: kasten.io/k10/kio/exec/phases/phase/snapshot.go:96113 function: kasten.io/k10/kio/exec/phases/phase.(*SnapshotSession).PrimeSnapshotSession114 linenumber: 96115 message: Failed to prepare kopia backup session.116 file: kasten.io/k10/kio/exec/phases/backup/snapshot_data_phase.go:129117 function: kasten.io/k10/kio/exec/phases/backup.(*SnapshotDataPhase).Run118 linenumber: 129119 message: Failed to prime the snapshot session120 message: Job failed to be executed121Altough I fixed that by manually setting backupParamters and a profile in the Policy yaml, which was missing despite having set it in the UI. The generic-volume Blueprint also exists.
This is a fresh k10 install. It has never been installed in the cluster before.
Kubernetes 1.22.10 running on RKE 1.3.11
Installed with Helm 3.9.
Does anybody have any ideas what I’m doing wrong?
