hashicorp/nomad-pack

Error: job already exists and is not managed by nomad pack

ruslan-y opened this issue · 9 comments

Hi!

After updating a nomad-pack to version 0.1.2, sometimes an error occurs:

! Failed Job Conflict Validation
! Error: job with id "test-job" already exists and is not managed by nomad pack
!   Context:
!     Template Name: test/templates/test.nomad.tpl

If you remove a job from the cluster, it will be redeployed correctly, but after some time, this error occurs again.

Hi @ruslan-y! Just for clarity, was the job deployed by Nomad Pack before? Are you updating the job outside of Pack at all? (Ex are you also running Autoscaler or running nomad job scale)?

@tgross Yes, the job was deployed by Nomad Pack before.
And we're not updating the job outside of Pack, just use nomad-pack in our CICD.

Ok, thanks for the clarification. I'll mark this issue for roadmapping.

@tgross I also realized that if you stop the job in the Nomad UI and then run it again, the next attempt to deploy by nomad-pack will occur this error.