Running fake_news_detection_fails repeatedly on RSPi

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

ID          = bd4b3728
Job ID      = fake_news_detection
Job Version = 0
Status      = failed
Description = Failed due to progress deadline

Task Group           Desired  Placed  Healthy  Unhealthy  Progress Deadline
fake_news_detection  1        1       0        1          2021-10-15T11:30:35+02:00
1 Like

The developers don’t post on here often, but they are working hard to fix bugs so maybe the next new version they release will fix your problem

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)

What’s the reason for this and how can I fix it?

@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.

That’s weird - I onboarded the Raspi step by step by the book.

Kabir recently posted on the telegram, apologizing for the lack of answers and said they are working on new updates to release soon.

@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.

Thx. Where/how can I see if my resources are used? I don’t understand the Nomad dashboards yet, kinda confusing.