Issue when installing Particle Pi on Raspberry Pi 1 Model B

Got an invite through for the beta on Friday so was keen to get it up and running on my Pi. Followed the instructions and as soon as the install script was registering my Pi with Particle it crashed and my SSH session to the Pi dropped (I run the Pi headless). With that, thought it could have been an outdated build of raspbian running on my Pi, so imaged by SD card with the latest and tried again but with the same result. Have copied the output of my SSH session when issuing bash <( curl -sL https://particle.io/install-pi ).

pi@raspberrypi:~ $ bash <( curl -sL https://particle.io/install-pi )
Installing the Particle Agent

Downloading packages

################################################################################                                                            ######################################                                #################################################################     ######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%

Installing packages

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libssl-doc
The following NEW packages will be installed:
  libssl-dev libssl-doc
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,263 kB of archives.
After this operation, 6,480 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libssl-dev armhf 1.0.1t-1+deb8u6 [1,095 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libssl-doc all 1.0.1t-1+deb8u6 [1,168 kB]
Fetched 2,263 kB in 1s (1,507 kB/s)     
Selecting previously unselected package libssl-dev:armhf.
(Reading database ... 31290 files and directories currently installed.)
Preparing to unpack .../libssl-dev_1.0.1t-1+deb8u6_armhf.deb ...
Unpacking libssl-dev:armhf (1.0.1t-1+deb8u6) ...
Selecting previously unselected package libssl-doc.
Preparing to unpack .../libssl-doc_1.0.1t-1+deb8u6_all.deb ...
Unpacking libssl-doc (1.0.1t-1+deb8u6) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libssl-dev:armhf (1.0.1t-1+deb8u6) ...
Setting up libssl-doc (1.0.1t-1+deb8u6) ...
Selecting previously unselected package particle-agent.
(Reading database ... 32738 files and directories currently installed.)
Preparing to unpack .../particle-agent_0.2.3-1_all.deb ...
Unpacking particle-agent (0.2.3-1) ...
Selecting previously unselected package ruby-unicode-display-width.
Preparing to unpack .../ruby-unicode-display-width_1.1.1-1_all.deb ...
Unpacking ruby-unicode-display-width (1.1.1-1) ...
Selecting previously unselected package ruby-whirly.
Preparing to unpack .../ruby-whirly_0.2.3-1_all.deb ...
Unpacking ruby-whirly (0.2.3-1) ...
Selecting previously unselected package ruby-particlerb.
Preparing to unpack .../ruby-particlerb_1.3.1-1_all.deb ...
Unpacking ruby-particlerb (1.3.1-1) ...
dpkg: dependency problems prevent configuration of particle-agent:
 particle-agent depends on ruby | ruby-interpreter; however:
  Package ruby is not installed.
  Package ruby-interpreter is not installed.
 particle-agent depends on bundler; however:
  Package bundler is not installed.
 particle-agent depends on ruby-highline (>= 1.6); however:
  Package ruby-highline is not installed.
 particle-agent depends on ruby-thor (>= 0.19); however:
  Package ruby-thor is not installed.

dpkg: error processing package particle-agent (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ruby-unicode-display-width:
 ruby-unicode-display-width depends on ruby | ruby-interpreter; however:
  Package ruby is not installed.
  Package ruby-interpreter is not installed.

dpkg: error processing package ruby-unicode-display-width (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ruby-whirly:
 ruby-whirly depends on ruby | ruby-interpreter; however:
  Package ruby is not installed.
  Package ruby-interpreter is not installed.
 ruby-whirly depends on ruby-unicode-display-width (>= 1.1); however:
  Package ruby-unicode-display-width is not configured yet.

dpkg: error processing package ruby-whirly (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ruby-particlerb:
 ruby-particlerb depends on ruby | ruby-interpreter; however:
  Package ruby is not installed.
  Package ruby-interpreter is not installed.
 ruby-particlerb depends on ruby-faraday (>= 0.9.0); however:
  Package ruby-faraday is not installed.
 ruby-particlerb depends on ruby-faraday-middleware (>= 0.9.0); however:
  Package ruby-faraday-middleware is not installed.

dpkg: error processing package ruby-particlerb (--install):
 dependency problems - leaving unconfigured
Processing triggers for systemd (215-17+deb8u6) ...
Errors were encountered while processing:
 particle-agent
 ruby-unicode-display-width
 ruby-whirly
 ruby-particlerb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  bundler javascript-common libgmp-dev libgmpxx4ldbl libjs-jquery
  libruby2.1 libyaml-0-2 ruby ruby-dev ruby-faraday
  ruby-faraday-middleware ruby-highline ruby-multipart-post
  ruby-net-http-persistent ruby-thor ruby2.1 ruby2.1-dev
  rubygems-integration
Suggested packages:
  apache2 lighttpd httpd libgmp10-doc libmpfr-dev ri
The following NEW packages will be installed:
  bundler javascript-common libgmp-dev libgmpxx4ldbl libjs-jquery
  libruby2.1 libyaml-0-2 ruby ruby-dev ruby-faraday
  ruby-faraday-middleware ruby-highline ruby-multipart-post
  ruby-net-http-persistent ruby-thor ruby2.1 ruby2.1-dev
  rubygems-integration
0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 5,334 kB of archives.
After this operation, 20.5 MB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main rubygems-integration all 1.8 [4,514 B]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libyaml-0-2 armhf 0.1.6-3 [41.5 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main libruby2.1 armhf 2.1.5-2+deb8u3 [3,021 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby2.1 armhf 2.1.5-2+deb8u3 [276 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby all 1:2.1.5+deb8u2 [9,688 B]
Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby-thor all 0.19.1-1 [46.6 kB]
Get:7 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby-net-http-persistent all 2.9-3 [19.6 kB]
Get:8 http://mirrordirector.raspbian.org/raspbian/ jessie/main bundler all 1.7.4-1 [149 kB]
Get:9 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby-highline all 1.6.21-1 [45.6 kB]
Get:10 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby-multipart-post all 1.2.0-2 [6,714 B]
Get:11 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby-faraday all 0.9.0-2 [32.2 kB]
Get:12 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby-faraday-middleware all 0.9.1-1 [12.2 kB]
Get:13 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgmpxx4ldbl armhf 2:6.0.0+dfsg-6+rpi1 [21.6 kB]
Get:14 http://mirrordirector.raspbian.org/raspbian/ jessie/main javascript-common all 11 [6,120 B]
Get:15 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgmp-dev armhf 2:6.0.0+dfsg-6+rpi1 [552 kB]
Get:16 http://mirrordirector.raspbian.org/raspbian/ jessie/main libjs-jquery all 1.7.2+dfsg-3.2 [97.5 kB]
Get:17 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby2.1-dev armhf 2.1.5-2+deb8u3 [983 kB]
Get:18 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby-dev all 1:2.1.5+deb8u2 [8,364 B]
Fetched 5,334 kB in 4s (1,251 kB/s)
Selecting previously unselected package rubygems-integration.
(Reading database ... 32834 files and directories currently installed.)
Preparing to unpack .../rubygems-integration_1.8_all.deb ...
Unpacking rubygems-integration (1.8) ...
Selecting previously unselected package libyaml-0-2:armhf.
Preparing to unpack .../libyaml-0-2_0.1.6-3_armhf.deb ...
Unpacking libyaml-0-2:armhf (0.1.6-3) ...
Selecting previously unselected package libruby2.1:armhf.
Preparing to unpack .../libruby2.1_2.1.5-2+deb8u3_armhf.deb ...
Unpacking libruby2.1:armhf (2.1.5-2+deb8u3) ...
Selecting previously unselected package ruby2.1.
Preparing to unpack .../ruby2.1_2.1.5-2+deb8u3_armhf.deb ...
Unpacking ruby2.1 (2.1.5-2+deb8u3) ...
Selecting previously unselected package ruby.
Preparing to unpack .../ruby_1%3a2.1.5+deb8u2_all.deb ...
Unpacking ruby (1:2.1.5+deb8u2) ...
Selecting previously unselected package ruby-thor.
Preparing to unpack .../ruby-thor_0.19.1-1_all.deb ...
Unpacking ruby-thor (0.19.1-1) ...
Selecting previously unselected package ruby-net-http-persistent.
Preparing to unpack .../ruby-net-http-persistent_2.9-3_all.deb ...
Unpacking ruby-net-http-persistent (2.9-3) ...
Selecting previously unselected package bundler.
Preparing to unpack .../bundler_1.7.4-1_all.deb ...
Unpacking bundler (1.7.4-1) ...
Selecting previously unselected package ruby-highline.
Preparing to unpack .../ruby-highline_1.6.21-1_all.deb ...
Unpacking ruby-highline (1.6.21-1) ...
Selecting previously unselected package ruby-multipart-post.
Preparing to unpack .../ruby-multipart-post_1.2.0-2_all.deb ...
Unpacking ruby-multipart-post (1.2.0-2) ...
Selecting previously unselected package ruby-faraday.
Preparing to unpack .../ruby-faraday_0.9.0-2_all.deb ...
Unpacking ruby-faraday (0.9.0-2) ...
Selecting previously unselected package ruby-faraday-middleware.
Preparing to unpack .../ruby-faraday-middleware_0.9.1-1_all.deb ...
Unpacking ruby-faraday-middleware (0.9.1-1) ...
Selecting previously unselected package libgmpxx4ldbl:armhf.
Preparing to unpack .../libgmpxx4ldbl_2%3a6.0.0+dfsg-6+rpi1_armhf.deb ...
Unpacking libgmpxx4ldbl:armhf (2:6.0.0+dfsg-6+rpi1) ...
Selecting previously unselected package javascript-common.
Preparing to unpack .../javascript-common_11_all.deb ...
Unpacking javascript-common (11) ...
Selecting previously unselected package libgmp-dev:armhf.
Preparing to unpack .../libgmp-dev_2%3a6.0.0+dfsg-6+rpi1_armhf.deb ...
Unpacking libgmp-dev:armhf (2:6.0.0+dfsg-6+rpi1) ...
Selecting previously unselected package libjs-jquery.
Preparing to unpack .../libjs-jquery_1.7.2+dfsg-3.2_all.deb ...
Unpacking libjs-jquery (1.7.2+dfsg-3.2) ...
Selecting previously unselected package ruby2.1-dev:armhf.
Preparing to unpack .../ruby2.1-dev_2.1.5-2+deb8u3_armhf.deb ...
Unpacking ruby2.1-dev:armhf (2.1.5-2+deb8u3) ...
Selecting previously unselected package ruby-dev.
Preparing to unpack .../ruby-dev_1%3a2.1.5+deb8u2_all.deb ...
Unpacking ruby-dev (1:2.1.5+deb8u2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up rubygems-integration (1.8) ...
Setting up libyaml-0-2:armhf (0.1.6-3) ...
Setting up libruby2.1:armhf (2.1.5-2+deb8u3) ...
Setting up ruby2.1 (2.1.5-2+deb8u3) ...
Setting up ruby (1:2.1.5+deb8u2) ...
Setting up ruby-thor (0.19.1-1) ...
Setting up ruby-net-http-persistent (2.9-3) ...
Setting up bundler (1.7.4-1) ...
Setting up ruby-highline (1.6.21-1) ...
Setting up ruby-multipart-post (1.2.0-2) ...
Setting up ruby-faraday (0.9.0-2) ...
Setting up ruby-faraday-middleware (0.9.1-1) ...
Setting up ruby-particlerb (1.3.1-1) ...
Setting up ruby-unicode-display-width (1.1.1-1) ...
Setting up ruby-whirly (0.2.3-1) ...
Setting up particle-agent (0.2.3-1) ...
Setting up libgmpxx4ldbl:armhf (2:6.0.0+dfsg-6+rpi1) ...
Setting up javascript-common (11) ...
Setting up libgmp-dev:armhf (2:6.0.0+dfsg-6+rpi1) ...
Setting up libjs-jquery (1.7.2+dfsg-3.2) ...
Setting up ruby2.1-dev:armhf (2.1.5-2+deb8u3) ...
Setting up ruby-dev (1:2.1.5+deb8u2) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Processing triggers for systemd (215-17+deb8u6) ...

Running sudo particle-agent setup

Let's connect your Raspberry Pi to the Particle Cloud!

Log in with your Particle account
Don't have an account yet? Create one at https://login.particle.io
Email address: mikexxx@xx.com
Password: 
⠇  Logging in 
How do you want your device to be labeled in the Particle tools?
Name: |pi| 
Generating RSA private key, 1024 bit long modulus
.......................................++++++
..++++++
e is 65537 (0x10001)
writing RSA key
writing RSA key
packet_write_wait: Connection to 192.168.1.212 port 22: Broken pipe

Any help/advice appreciated!

I got an error setting my pi up - different error than you.

All I did was issue a particle-agent setup

Everything worked fine.

If that doesn’t work, try logging out and in again and then issue particle-agent setup again

stan

Out of curiosity (and in relation to another thread) do you know which revision of Pi 1 you have? A quick way to tell is the rev 1 has no mounting holes, whereas the rev 2 has two.

Something is not working properly on the Raspberry Pi 1. Several people have had issues with their Raspberry Pi 1 locking up after setting up the agent. There’s no workaround for this yet.

@pfeerick it’s the revision 2 (2 mounting holes).

@jvanier thanks for confirming, sounds exactly like the same issue I’m experiencing then. Any idea when you think a fix will be available and how would it be announced?

@mikeonmac Thanks for that. So it looks like it might be more than just the rev 1 which is affected then. Damn! Well, I suppose it points more towards a (simple!) software gremlin, so we just need to wait for the particle wizards to do their thing then! :wink: I expect there will be an update in one of these threads, and/or a changelog message about the fix once it’s identified.

1 Like