Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting started - Introduction Tutorial - ciphertext verification failed #970

Closed
mortega89 opened this issue May 20, 2024 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@mortega89
Copy link

mortega89 commented May 20, 2024

Description

the jobs goes EOF with ciphertext verification failed in logs:

Fatal: Fatal: config cannot be loaded: ciphertext verification failed
Fatal: config or key is damaged: ciphertext verification failed

the status of pods are CrashLoopBackOff, suddenly Fail to Terminating.

descrbe CR backup:
describe backup.txt
job's pod LOG:
logs_jobs.txt

Additional Context

Hi, I started to try k8up but unfortunately I get stopped at the early. I followed instructions to get started with the tutorial. (https://docs.k8up.io/k8up/tutorials/tutorial.html)
I just got blocked after apply the backup.yaml
as far as I understand, here i'm applying a CR object, so "backup-test" get applied, and suddenly two jobs got created.

the job backup-backup-test-prebackup and the backup-backup-test-0 goes EOF with ciphertext verification failed in logs.

Not sure how to proceed or if it's a restic core problem/k8up bug, I just tried to follow the guide using Kind instead of Minikube, with the same results.

I'm on KDE Neon 22

Thanks!

Logs

No response

Expected Behavior

to get the backup executed and the JOBS completed

Steps To Reproduce

kind: Backup
metadata:
  name: backup-test
spec:
  failedJobsHistoryLimit: 2
  successfulJobsHistoryLimit: 2
  backend:
    repoPasswordSecretRef:
      name: backup-repo
      key: password
    s3:
      endpoint: http://minio:9000
      bucket: backups
      accessKeyIDSecretRef:
        name: minio-credentials
        key: username
      secretAccessKeySecretRef:
        name: minio-credentials
        key: password

Version of K8up

v2.10.0

Version of Kubernetes

v 1.29

Distribution of Kubernetes

Minikube / Kind

@mortega89 mortega89 added the bug Something isn't working label May 20, 2024
@Kidswiss
Copy link
Contributor

Hi @mortega89

Thanks for testing out K8up!

That it spawns two jobs is expected. However that one of them corrupts the repository isn't!

There used to be an issue with restic, if two restic init commands were triggered at the same time and the bucket was empty, then it would corrupt the repository. Seems like that still occurs from time to time...

I just saw that the tutorial points to old CRDs as well. In step 6 could you do:

kubectl apply -f https://github.com/k8up-io/k8up/releases/download/v2.10.0/k8up-crd.yaml --server-side

Can you try the following before applying the backup.yaml?


kubectl port-forward svc/minio 9000:9000 &
export RESTIC_REPOSITORY=s3:http://localhost:9000/backups/
export RESTIC_PASSWORD=p@ssw0rd
export AWS_ACCESS_KEY_ID=minio
export AWS_SECRET_ACCESS_KEY=minio123
restic init

If this helps, I'll rename this issue to reflect the race condition.

@mortega89
Copy link
Author

hi @Kidswiss , It's seems that the updated CRDs solve the problem, I tried as you described and it worked!

Message: "backup_backup-test" has 2 succeeded, 0 failed, and 0 started jobs

thanks a lot for your support!

@TheBigLee
Copy link
Contributor

TheBigLee commented May 27, 2024

Fix for the tutorial: #971

@Kidswiss
Copy link
Contributor

As the docs are fixed and the tutorials is working again, I'm closing here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants