@jvanier, after doing this three times, I now realize that I am not the problem.
I installed newest version of Raspbian on a Pi2 (with a Redbear IoT Hat) and did a sudo apt-get update/sudo apt-get upgrade
to brings things up to date. I then install the particle-agent as per instructions and run through setup to register the Pi to my account. So far so good. I then run sudo service particle-agent status
and status is reported back as expected. I then run it again, and this is where things go south. Now, the Pi responds to the command in a minute or so! Trying to open another SSH session doesn’t get a login prompt for a minute either.
The status I get is:
pi@raspberrypi:~ $ sudo service particle-agent status
â—Ź particle-agent.service - LSB: Manages Particle firmware
Loaded: loaded (/etc/init.d/particle-agent)
Active: active (running) since Fri 2016-12-02 13:55:13 EST; 9min ago
Process: 4616 ExecStop=/etc/init.d/particle-agent stop (code=exited, status=0/SUCCESS)
Process: 4628 ExecStart=/etc/init.d/particle-agent start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/particle-agent.service
├─4638 /usr/bin/ruby /usr/bin/particle-agent-service --daemon --pi...
└─4647 /var/lib/particle/devices/7ab705654cee244cacfd1db4/firmware...
Dec 02 13:55:13 raspberrypi particle-agent[4628]: Starting Particle Agent: pa...
Dec 02 13:55:13 raspberrypi systemd[1]: Started LSB: Manages Particle firmware.
Hint: Some lines were ellipsized, use -l to show in full.
Running top
is very sluggish, updating every few seconds. The firmware.bin
process only accounts for 5.5% of the CPU time. When I run sudo service particle-agen stop
, it takes a minute to stop and the system still took a long time to respond UNTIL I ran sudo service particle-agent status
and got:
pi@raspberrypi:~ $ sudo service particle-agent status
â—Ź particle-agent.service - LSB: Manages Particle firmware
Loaded: loaded (/etc/init.d/particle-agent)
Active: inactive (dead) since Fri 2016-12-02 14:09:31 EST; 2min 49s ago
Process: 4713 ExecStop=/etc/init.d/particle-agent stop (code=exited, status=0/SUCCESS)
Process: 4628 ExecStart=/etc/init.d/particle-agent start (code=exited, status=0/SUCCESS)
Dec 02 13:55:13 raspberrypi particle-agent[4628]: Starting Particle Agent: pa...
Dec 02 13:55:13 raspberrypi systemd[1]: Started LSB: Manages Particle firmware.
Dec 02 14:09:30 raspberrypi systemd[1]: Stopping LSB: Manages Particle firmw....
Dec 02 14:09:31 raspberrypi particle-agent[4713]: Stopping Particle Agent: pa...
Dec 02 14:09:31 raspberrypi systemd[1]: Stopped LSB: Manages Particle firmware.
Hint: Some lines were ellipsized, use -l to show in full.
Running sudo reboot
seems to just hang. Any thoughts?