Hi! I did the setup to run the job on my Rasperry. Everything looks fine, but when running the job ist fails repeatedly. Nomad http://localhost:4646/ui/jobs shows the job as well, but as failed/dead. Any ideas?
pi@raspberrypi:~/nunet-infra $ sudo nomad job run job-definitions/fake_news_detection.hcl
==> 2021-10-15T11:31:40+02:00: Monitoring evaluation “79c8c952”
2021-10-15T11:31:40+02:00: Evaluation triggered by job “fake_news_detection”
==> 2021-10-15T11:31:41+02:00: Monitoring evaluation “79c8c952”
2021-10-15T11:31:41+02:00: Evaluation within deployment: “bd4b3728”
2021-10-15T11:31:41+02:00: Evaluation status changed: “pending” → “complete”
==> 2021-10-15T11:31:41+02:00: Evaluation “79c8c952” finished with status “complete”
==> 2021-10-15T11:31:41+02:00: Monitoring deployment “bd4b3728”
! Deployment “bd4b3728” failed
2021-10-15T11:31:41+02:00
ID = bd4b3728
Job ID = fake_news_detection
Job Version = 0
Status = failed
Description = Failed due to progress deadline
Deployed
Task Group Desired Placed Healthy Unhealthy Progress Deadline
fake_news_detection 1 1 0 1 2021-10-15T11:30:35+02:00
I keep getting this error message when running nomad job run job-definitions/fake_news_detection.hcl : Error submitting job: Unexpected response code: 500 (No cluster leader)
@0xpssah Service deployment on devices is not done manually rather the platform decides which job/service to deploy on each device. The error you are getting is because you are trying to run a job definition file that is not tailored for your device. The only thing required is to simply onboard your device and the platform itself will decide when and which service to deploy on your device.
@0xpssah After you onboarded your device, there is no need to run the fake_news_score.hcl file because that file is not specifically tailored to your device. The platform will run fake_news_score itself when it identifies you have the necessary requirements to run fake_news_score.