I have a RPi 2, running OSMC.
I tried setting up the agent, but I keep getting the error “Error claiming the device. Could not claim the device to your account” after I successfully login and provide the name.
Running “particle-agent logs” shows the following error:
Starting agent No firmware to run. Signaling firmware to shut down cleanly Quitting agent gracefully Starting agent /usr/lib/ruby/vendor_ruby/particle_agent/firmware_runner.rb:70:in `spawn': No such file or directory - /var/lib/particle/devices/DEVICE_ID/firmware.bin (Errno::ENOENT) from /usr/lib/ruby/vendor_ruby/particle_agent/firmware_runner.rb:70:in `run_firmware' from /usr/lib/ruby/vendor_ruby/particle_agent/firmware_runner.rb:25:in `run!' from /usr/lib/ruby/vendor_ruby/particle_agent/agent.rb:37:in `block (2 levels) in start_firmware_runners'
The folder “/var/lib/particle/devices/DEVICE_ID” exists, but it’s owned by root and only readable/writable/execute by it (chmoded 700).
This folder has the file “firmware.bin” and it’s a non-empty file.
Same thing for device_id.txt, device_key.der, device_key.pub.pem, and server_key.der.
There are also two empty files - stdin and stdout.
Rebooting didn’t help, running again the initial curl line that installs the agent didn’t work, calling “particle-agent setup” didn’t work.
Any idea what’s going on and how can I successfully set it up ?