0raid
(George)
June 21, 2016, 9:14pm
38
aimc:
sudo gem install thin
root@rackpanel:/tmp/hadashboard# sudo gem install thin
Building native extensions. This could take a while…
Successfully installed thin-1.7.0
Parsing documentation for thin-1.7.0
Done installing documentation for thin after 27 seconds
1 gem installed
yes everything goes well ,but the same error again when i am running dashing start
aimc
(Andrew Cockburn)
June 21, 2016, 9:24pm
39
What does “type thin” return?
0raid
(George)
June 21, 2016, 9:25pm
40
aimc:
type thin
root@rackpanel:/tmp/hadashboard# type thin
thin is /usr/local/bin/thin
aimc
(Andrew Cockburn)
June 21, 2016, 9:30pm
41
All the same as my system - are you running raspian?
Also I see you are running as root - that’s unusual but shouldn’t be an issue.
Any errors when you did the dashing install? AFAIK, thin should have been installed then.
aimc
(Andrew Cockburn)
June 21, 2016, 9:31pm
42
Nvm that last part, I see you pasted the output.
Can you give me the entire output of the dashing start?
0raid
(George)
June 21, 2016, 9:36pm
43
yes i am running raspbian.
here is the complete error:
root@rackpanel:/tmp/hadashboard# dashing start
bundler: failed to load command: thin (/usr/local/bin/thin)
ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
/var/lib/gems/2.1.0/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in autodetect' /var/lib/gems/2.1.0/gems/execjs-2.0.2/lib/execjs.rb:5:in
module:ExecJS ’
/var/lib/gems/2.1.0/gems/execjs-2.0.2/lib/execjs.rb:4:in <top (required)>' /var/lib/gems/2.1.0/gems/backports-3.6.8/lib/backports/std_lib.rb:9:in
require’
/var/lib/gems/2.1.0/gems/backports-3.6.8/lib/backports/std_lib.rb:9:in require_with_backports' /var/lib/gems/2.1.0/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in
<top (required)>’
/var/lib/gems/2.1.0/gems/backports-3.6.8/lib/backports/std_lib.rb:9:in require' /var/lib/gems/2.1.0/gems/backports-3.6.8/lib/backports/std_lib.rb:9:in
require_with_backports’
/var/lib/gems/2.1.0/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in <top (required)>' /var/lib/gems/2.1.0/gems/backports-3.6.8/lib/backports/std_lib.rb:9:in
require’
/var/lib/gems/2.1.0/gems/backports-3.6.8/lib/backports/std_lib.rb:9:in require_with_backports' /var/lib/gems/2.1.0/gems/dashing-1.3.6/lib/dashing/app.rb:5:in
<top (required)>’
/var/lib/gems/2.1.0/gems/dashing-1.3.6/lib/dashing.rb:3:in require' /var/lib/gems/2.1.0/gems/dashing-1.3.6/lib/dashing.rb:3:in
<top (required)>’
config.ru:1 :in require' config.ru:1:in
block in ’
/var/lib/gems/2.1.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in instance_eval' /var/lib/gems/2.1.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in
initialize’
config.ru:1 :in new' config.ru:1:in
’
/var/lib/gems/2.1.0/gems/thin-1.6.4/lib/rack/adapter/loader.rb:33:in eval' /var/lib/gems/2.1.0/gems/thin-1.6.4/lib/rack/adapter/loader.rb:33:in
load’
/var/lib/gems/2.1.0/gems/thin-1.6.4/lib/thin/controllers/controller.rb:182:in load_rackup_config' /var/lib/gems/2.1.0/gems/thin-1.6.4/lib/thin/controllers/controller.rb:72:in
start’
/var/lib/gems/2.1.0/gems/thin-1.6.4/lib/thin/runner.rb:200:in run_command' /var/lib/gems/2.1.0/gems/thin-1.6.4/lib/thin/runner.rb:156:in
run!’
/var/lib/gems/2.1.0/gems/thin-1.6.4/bin/thin:6:in <top (required)>' /usr/local/bin/thin:23:in
load’
/usr/local/bin/thin:23:in `<top (required)>’
aimc
(Andrew Cockburn)
June 21, 2016, 9:44pm
44
Try installing node:
$ sudo apt-get install node
0raid
(George)
June 21, 2016, 9:59pm
45
yes! after this now is running! but i dont see anything in the dashboard / ip:3030 , only grey background , this is normal?
aimc
(Andrew Cockburn)
June 21, 2016, 10:02pm
46
Yo might need to give it some time - it takes a while to load the first time.
0raid
(George)
June 21, 2016, 10:08pm
47
Thin web server (v1.6.4 codename Gob Bluth)
Maximum connections set to 1024
Listening on 0.0.0.0:3030, CTRL+C to stop
scheduler caught exception:
can’t convert nil into Float
/home/pi/hadashboard/jobs/homeassistant.rb:199:in Float' /home/pi/hadashboard/jobs/homeassistant.rb:199:in
block in <top (required)>’
/var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:230:in call' /var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:230:in
trigger_block’
/var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:204:in block in trigger' /var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/scheduler.rb:430:in
call’
/var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/scheduler.rb:430:in `block in trigger_job’
192.168.5.102 - - [21/Jun/2016 22:05:23] “GET /main HTTP/1.1” 200 41981 0.4718
and still nothing , only grey background…
aimc
(Andrew Cockburn)
June 21, 2016, 10:17pm
48
Ok, the error is kind of a red herring, it just means you don’t have the weather piece set up correctly (you need forecast.io ). The blank screen is most likely caused by an error in your dashboard file. Start with the default supplied dash and see if you get the dashboard, then make simple changes until you get more confident.
0raid
(George)
June 21, 2016, 10:18pm
49
can you let me know how to start it with the default dashboard?
aimc
(Andrew Cockburn)
June 21, 2016, 10:20pm
50
Did you make any changes to main.erb in the dashboards directory?
0raid
(George)
June 21, 2016, 10:22pm
51
no - i dont change anything
aimc
(Andrew Cockburn)
June 21, 2016, 10:28pm
52
What URL are you using for the dashboard?
0raid
(George)
June 21, 2016, 10:30pm
53
192.168.5.61:3030
is loading , and i see only the dark/grey background , no icons or something…
aimc
(Andrew Cockburn)
June 21, 2016, 10:34pm
54
Any more errors from dashing?
aimc
(Andrew Cockburn)
June 21, 2016, 10:52pm
56
What browser are you using?
atomicpapa
(Glenn Morrison)
June 21, 2016, 11:22pm
57
I just updated to the newest verion with
git fetch origin
yet I am still getting the SSL error
glenn@zeus:~/hadashboard$ dashing start
Thin web server (v1.6.4 codename Gob Bluth)
Maximum connections set to 1024
Listening on 0.0.0.0:3030, CTRL+C to stop
================================================================================
scheduler caught exception:
SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol
/usr/lib/ruby/2.1.0/net/http.rb:920:in `connect'
/usr/lib/ruby/2.1.0/net/http.rb:920:in `block in connect'
/usr/lib/ruby/2.1.0/timeout.rb:76:in `timeout'
/usr/lib/ruby/2.1.0/net/http.rb:920:in `connect'
/usr/lib/ruby/2.1.0/net/http.rb:863:in `do_start'
/usr/lib/ruby/2.1.0/net/http.rb:852:in `start'
/usr/lib/ruby/2.1.0/net/http.rb:1369:in `request'
/home/glenn/hadashboard/jobs/homeassistant.rb:20:in `ha_api'
/home/glenn/hadashboard/jobs/homeassistant.rb:173:in `block in <top (required)>'
/var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:230:in `call'
/var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:230:in `trigger_block'
/var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:204:in `block in trigger'
/var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/scheduler.rb:430:in `call'
/var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/scheduler.rb:430:in `block in trigger_job'