https://lakefs.io/ logo
Title
s

SG

09/29/2022, 12:16 PM
Hello, when I try to upgrade lakefs via helm command-> helm upgrade -f lakefs-conf.yaml example-lakefs lakefs/lakefs --set kv_upgrade=true .. its giving error.. Error: UPGRADE FAILED: pre-upgrade hooks failed: warning: Hook pre-upgrade lakefs/templates/job.yaml failed: jobs.batch "example-lakefs-migrate" already exists .. Any help?
👀 1
b

Barak Amar

09/29/2022, 12:26 PM
Hi @SG, I will open an issue to fix this one. Wanted to verify first, if you know on which version are you on. And a workaround - can you delete the job from the cluster: example-lakefs-migrate?
s

SG

09/29/2022, 12:27 PM
how to check version? how to delete job?
b

Barak Amar

09/29/2022, 12:32 PM
You can use
helm list
to see what is currently installed.
Assume you have configured to work with the cluster, have kubectl and installed lakefs on default namespace:
kubectl get job
should list the jobs
example-lakefs-migrate should be listed.
Using
kubectl delete job example-lakefs-migrate
should delete it, and we can run helm again.
s

SG

09/29/2022, 12:35 PM
lakefs-0.6.3
b

Barak Amar

09/29/2022, 12:36 PM
Thanks
Can you delete the job and try install using helm again - let me know if it was successful now
s

SG

09/29/2022, 12:40 PM
its working after command - kubectl delete job example-lakefs-migrate
b

Barak Amar

09/29/2022, 12:40 PM
Great
s

SG

09/29/2022, 12:40 PM
Thanks
b
Create an issue if you have anything to update or like to track this one, you are more than welcome.