Raspberry Pi: `ssl_verify_mode': uninitialized constant

During installation on Raspbian Jessie Lite I got the error

`ssl_verify_mode': uninitialized constant

due to OpenSSL missing. Could be fixed with:

$ sudo apt-get install libssl-dev
$ sudo particle-agent setup

For the record, here’s the original log:

$ bash <( curl -sL https://particle.io/install-pi )
...
Running sudo particle-agent setup

Warning: no such file to load -- net/https. Make sure openssl is installed if you want ssl support
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: ...
Password: 
⠋  Logging in
/usr/lib/ruby/vendor_ruby/faraday/adapter/net_http.rb:116:in `ssl_verify_mode': uninitialized constant Faraday::Adapter::NetHttp::OpenSSL (NameError)
	from /usr/lib/ruby/vendor_ruby/faraday/adapter/net_http.rb:94:in `configure_ssl'
	from /usr/lib/ruby/vendor_ruby/faraday/adapter/net_http.rb:32:in `call'
	from /usr/lib/ruby/vendor_ruby/faraday_middleware/response_middleware.rb:30:in `call'
	from /usr/lib/ruby/vendor_ruby/faraday_middleware/request/encode_json.rb:23:in `call'
	from /usr/lib/ruby/vendor_ruby/faraday/request/multipart.rb:14:in `call'
	from /usr/lib/ruby/vendor_ruby/faraday/response.rb:8:in `call'
	from /usr/lib/ruby/vendor_ruby/faraday/rack_builder.rb:139:in `build_response'
	from /usr/lib/ruby/vendor_ruby/faraday/connection.rb:377:in `run_request'
	from /usr/lib/ruby/vendor_ruby/faraday/connection.rb:177:in `post'
	from /usr/lib/ruby/vendor_ruby/particle/connection.rb:98:in `request'
	from /usr/lib/ruby/vendor_ruby/particle/client/tokens.rb:64:in `create_token'
	from /usr/lib/ruby/vendor_ruby/particle/client/tokens.rb:80:in `login'
	from /usr/lib/ruby/vendor_ruby/particle.rb:28:in `login'
	from /usr/lib/ruby/vendor_ruby/particle_agent/setup.rb:131:in `block in send_credentials'
	from /usr/lib/ruby/vendor_ruby/whirly.rb:170:in `start'
	from /usr/lib/ruby/vendor_ruby/particle_agent/spinner.rb:12:in `show'
	from /usr/lib/ruby/vendor_ruby/particle_agent/setup.rb:130:in `send_credentials'
	from /usr/lib/ruby/vendor_ruby/particle_agent/setup.rb:113:in `perform_login'
	from /usr/lib/ruby/vendor_ruby/particle_agent/setup.rb:51:in `run!'
	from /usr/lib/ruby/vendor_ruby/particle_agent/cli.rb:16:in `setup'
	from /usr/lib/ruby/vendor_ruby/thor/command.rb:27:in `run'
	from /usr/lib/ruby/vendor_ruby/thor/invocation.rb:126:in `invoke_command'
	from /usr/lib/ruby/vendor_ruby/thor.rb:359:in `dispatch'
	from /usr/lib/ruby/vendor_ruby/thor/base.rb:440:in `start'
	from /usr/bin/particle-agent:16:in `<main>'

Thanks. I’ll add that to the install script.

1 Like