Title
#help
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?
Barak Amar

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?
Barak Amar

Barak Amar

09/29/2022, 12:32 PM
You can use
helm list
to see what is currently installed.
12:33 PM
Assume you have configured to work with the cluster, have kubectl and installed lakefs on default namespace:
kubectl get job
should list the jobs
12:33 PM
example-lakefs-migrate should be listed.
12:34 PM
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
Barak Amar

Barak Amar

09/29/2022, 12:36 PM
Thanks
12:39 PM
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
Barak Amar

Barak Amar

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

SG

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