Jump to content
Greg.Buerk

Dashing on LabTech (as a Plugin)

Recommended Posts

Ok saving and editing are working fine for me. Just make sure to Save the Dashboard when done.

 

Deleteing is Fixed in next Update, true bug.

 

Positioning of widgets is controlled by Column and Row of the widget, if you have 2 with the same value it will auto fit it somewhere.

 

After making changes you HAVE to tell it to rebuild dashing or it will not change it.

Share this post


Link to post
Share on other sites

Man, I wish I saw this thread before I spent a weekend building out my own linux dashing server to keep track of our labtech associated licenses. I will definitely check this out in the near future. Thanks Greg.

Share this post


Link to post
Share on other sites

Dasher not working here.

 

I just downloaded and installed it. The plugin loads and populates the sql database.

I can see that it all appears to be setup correctly, I can load the different pages (3030 etc), however the pages are just blank.

 

Viewing the page source I can see that it has content etc. I installed Java as it referenced javascript. I tried it directly on the labtech server and also on a workstation with firefox and chrome, but get the same result.

 

Any ideas? Thanks

Share this post


Link to post
Share on other sites

IDK, black screen means the browser does not support it. If you are getting to the port then the server is running.

 

Try removing the entire dashing thing, disable it, uninstall then make sure all the tables are gone. Reinstall, reenable and try again.

Share this post


Link to post
Share on other sites

uninstalled and reinstalled. same problem.

 

Here is the link so you can see.

http://rmm.inspiredtechs.com.au:3030

 

 

one thing i have noticed is that the install instructions say to go in and click install, but after running the installer the server is already up and running.

Cant seem to get the bastard thing to work though! :(

Share this post


Link to post
Share on other sites

Ok I can not get to that link at all.

 

Tell the system to rebuild all files.

 

If you reinstalled and its all Installed then you did not remove the tables, they do not go in by default as installed.

Share this post


Link to post
Share on other sites

Sorry, try that again, I had not opened the external port up.

 

When I first installed it, it came up as installed and running (this server was only built a couple of months ago)

 

I uninstalled, deleted plugin deleted ruby files, deleted tables from the SQL database that were plugin_dashing etc and reinstalled and still the same result

 

any thoughts? Previously did rebuild all files and it made no difference

Share this post


Link to post
Share on other sites

That's crazy. The Page is correct the WebServer is service a Complete Dashboard. I think the problem is in the Server Send Events functionality of HTML 5. Its not pushing any of the data to the browser.

 

Maybe something in the firewall or something like that.

 

Lets check something else, look at the task manager, are there like 12 ruby processes running? Are they changing procces ids as in they are restarting?

 

ALSO Try to stop the DBagent and run the dash manually. Its described in the troubleshooting guide. Cause you could have errors in the Job Files and they could crash. This would be only in the case if you edited any widgets\dashs.

 

Have you tries to see the page locally on the server? Are you using a proxy to get to the server.

Share this post


Link to post
Share on other sites

Disabling firewall makes no change.

 

12 ruby processes running, PIDs are not changing.

 

Running manually, this is the output i get and it loads the same page

C:\Users\IT>set PATH=C:\Ruby193\Bin;%path%

 

C:\Users\IT>CD c:\ruby193\Dash\labtech

 

c:\Ruby193\dash\labtech>dashing start

c:/Ruby193/dash/labtech/jobs/js300s.rb:147: warning: already initialized constan

t Decoder

c:/Ruby193/dash/labtech/jobs/js30s.rb:147: warning: already initialized constant

Decoder

>> Thin web server (v1.5.1 codename Straight Razor)

>> Maximum connections set to 1024

>> Listening on 0.0.0.0:3030, CTRL+C to stop

192.168.0.23 - - [01/Nov/2013 21:54:58] "GET / HTTP/1.1" 302 - 0.0020

192.168.0.23 - - [01/Nov/2013 21:54:58] "GET /labtech HTTP/1.1" 200 4371 0.0239

192.168.0.23 - - [01/Nov/2013 21:55:02] "GET /labtech HTTP/1.1" 200 4371 0.0060

 

The page does not work locally on the server using firefox, nor local LAN or externally. Only gets that same blank page.

 

No proxy server to this one.

 

Any ideas? :)

Share this post


Link to post
Share on other sites

Ok, what your showing is it working correctly. I mean you have jobs giving warnigns so I know they are there and they are loaded, the request from the browser are there so you know the port is open and its listening. I saw the html source on the url here(and the blank page)

 

I am at a total loss. Cause I could maybe think something like this is possible if the html was changed in such a way, but you reinstalled so the default HTML works.

 

When reinstalling you disabled it so it stopped the processes, stopped the dbagent, deleted the plugin table and deleted the ruby193 folder???

Share this post


Link to post
Share on other sites

Yep,

 

Unticked enable, apply. click on uninstall, wait for it to complete

delete ruby folder, go into sqlyog and delete any remaining tables referencing dashing.

go to plugin manager and remove dashing plugin.

restarted control centre and ran your installer, wait 10mins check the tables were created, open the dashboard, config > integration > dashing and its installed and running. But then same result as above :(

 

If it makes any difference the OS is Server 2012.

 

This is crazy!

Share this post


Link to post
Share on other sites

I agree 2012 is likely the issue. We have had the exact same issues as shadoxity on both our production and test servers. Both are 2013 LT on 2012.

Share this post


Link to post
Share on other sites

Ok, then the problem is the Ruby193 install.

What I would do, I go and get the Ruby Install and install it. Make sure it installs on C:\ Drive

 

http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-1.9.3-p448.exe?direct

https://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe

 

Make sure there is a Dash folder in the C:\Ruby193 folder.

 

Then open a Ruby Command Prompt and install all the GEMS

Type GEM INSTALL [GEMNAME]

 

To see the GEMS you already have type GEM list --local.

Then all the GEMS you are missing install them.

 

Here is my list of GEMS.

 

backports (3.3.3)

bigdecimal (1.1.0)

bundle (0.0.1)

bundler (1.3.5)

coffee-script (2.2.0)

coffee-script-source (1.6.3)

daemons (1.1.9)

dashing (1.1.0)

dbd-odbc (0.2.5)

dbi (0.4.5)

deprecated (2.0.1)

eventmachine (1.0.3 x86-mingw32)

execjs (1.4.0)

faraday (0.8.7)

hike (1.2.3)

htmlentities (4.3.1)

i18n (0.6.5)

io-console (0.3)

json (1.5.5)

mini_portile (0.5.1)

minitest (4.7.5, 2.5.1)

multi_json (1.8.0, 1.7.7)

multipart-post (1.2.0)

mysql (2.9.1 x86-mingw32)

nokogiri (1.6.0 x86-mingw32)

rack (1.5.2)

rack-protection (1.5.0)

rack-test (0.6.2)

rake (0.9.2.2)

rdoc (3.9.5)

ruby-odbc (0.99995)

rufus-scheduler (2.0.22)

sass (3.2.9)

sequel (4.0.0)

simple-rss (1.2.3)

simple_oauth (0.2.0)

sinatra (1.4.3)

sinatra-contrib (1.4.0)

sprockets (2.10.0)

thin (1.5.1)

thor (0.18.1)

tilt (1.4.1)

tiny_tds (0.6.1 x86-mingw32)

twitter (4.8.1)

tzinfo (1.0.1, 0.3.37)

xml-simple (1.1.2)

 

 

The Version numbers are not used in the GEM INSTALL command.

 

I HOPE THIS HELPS. THE PLugin is all about building the files int he C:\Ruby193\Dash folder. So it really does not matter how you install the RUBY. Just make sure the Plugin is DISABLED until you have the RUBY setup.

 

ALSO to diag this install, run the Dash from the command line, Start the Plugin and let it make the subfolders in the Dash folder, then use the Troubleshooting Forum Post to run it manually and see the errors it generates, it will always be missing GEMS.

Share this post


Link to post
Share on other sites

Alright,

 

I have unticked "Enable plugin" and applied.

Installed the ruby that you linked and installed it to the folder ruby193 (even though its 187 version).

 

Went through and installed all of those gem files (cause none were in there).

A bunch of them gave errors about build tools? I dont know anything about ruby.

 

Tried starting the plugin and rebuild config and rebuild all files, but it does not seem to recreate the dashboards. :S

 

I think i just about give up haha

Enabled the plugin

Share this post


Link to post
Share on other sites

I am so sorry. I linked to the wrong version of RUBY. I am very sorry. http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-1.9.3-p448.exe?direct

 

The Second Link is the Build tools. And I know there is a couple of DLLS it tells you to get when you install the Gems. I know you can take those files from Ruby Install the Plugin Made.

 

IF we can get this to work on 2012, then we can Zip up the Ruby folder and use it when we install on 2012 so the dashing will work on all the OSs.

Share this post


Link to post
Share on other sites

Greg I also tried your advice on our 2012 test server and while I didnt get any errors, it didnt seem to improve anything. I didnt need to install any GEMs, they were already all there. I wont be giving up if you dont mind to help

Share this post


Link to post
Share on other sites

If you did not need to install gems then you did not delete the folder. Or you did delete the folder but the plugin was running and it made it again.

 

If you install ruby fresh it will not have any gems.

Share this post


Link to post
Share on other sites

Ok I uninstalled the dashing server, disabled and removed the plugin, delete ruby193 folder, reboot.

Ran the full Ruby193 installer you linked, started installing the missing GEMs, was prompted by need for dev kit, installed dev kit, finished installing list you posted of GEMs. These are the gems installed after, note that the ones installed that are not in the list were installed by other GEMs, I did install them manually.

 

actionpool (0.2.3)

atomic (1.1.14)

backports (3.3.5, 3.3.3)

bigdecimal (1.2.1, 1.1.0)

bundle (0.0.1)

bundler (1.3.5)

coffee-script (2.2.0)

coffee-script-source (1.6.3)

daemons (1.1.9)

dashing (1.1.0)

dbd-odbc (0.2.5)

dbi (0.4.5)

deprecated (2.0.1)

eventmachine (1.0.3 x86-mingw32)

execjs (2.0.2, 1.4.0)

faraday (0.8.8, 0.8.7)

hike (1.2.3)

htmlentities (4.3.1)

i18n (0.6.5)

io-console (0.4.2, 0.3)

json (1.8.1, 1.5.5)

mini_portile (0.5.2, 0.5.1)

minitest (5.0.8, 4.7.5, 2.5.1)

multi_json (1.8.2, 1.8.0, 1.7.7)

multipart-post (1.2.0)

mysql (2.9.1 x86-mingw32)

nokogiri (1.6.0 x86-mingw32)

rack (1.5.2)

rack-protection (1.5.1, 1.5.0)

rack-test (0.6.2)

rake (10.1.0, 0.9.2.2)

rdoc (4.0.1, 3.9.5)

ruby-odbc (0.99995)

rufus-scheduler (3.0.2, 2.0.22)

sass (3.2.12, 3.2.9)

sequel (4.4.0, 4.0.0)

simple-rss (1.2.3)

simple_oauth (0.2.0)

sinatra (1.4.4, 1.4.3)

sinatra-contrib (1.4.1, 1.4.0)

splib (1.4.3)

spockets (0.1.1)

sprockets (2.10.0)

thin (1.6.1, 1.5.1)

thor (0.18.1)

thread_safe (0.1.3)

tilt (1.4.1)

tiny_tds (0.6.1 x86-mingw32)

twitter (4.8.1)

tzinfo (1.1.0, 1.0.1, 0.3.37)

xml-simple (1.1.2)

 

Install Dashing

 

This is the return when starting manually

 

C:\Ruby193\dash\labtech>dashing start

C:/Ruby193/lib/ruby/gems/1.9.1/gems/rufus-scheduler-3.0.2/lib/rufus/scheduler.rb

:120:in `start_new': this is rufus-scheduler 3.0, use .new instead of .start_new

(RuntimeError)

from C:/Ruby193/lib/ruby/gems/1.9.1/gems/dashing-1.1.0/lib/dashing.rb:10

:in `'

from config.ru:1:in `require'

from config.ru:1:in `block in '

from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:

55:in `instance_eval'

from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:

55:in `initialize'

from config.ru:1:in `new'

from config.ru:1:in `'

from C:/Ruby193/lib/ruby/gems/1.9.1/gems/thin-1.6.1/lib/rack/adapter/loa

der.rb:33:in `eval'

from C:/Ruby193/lib/ruby/gems/1.9.1/gems/thin-1.6.1/lib/rack/adapter/loa

der.rb:33:in `load'

from C:/Ruby193/lib/ruby/gems/1.9.1/gems/thin-1.6.1/lib/thin/controllers

/controller.rb:182:in `load_rackup_config'

from C:/Ruby193/lib/ruby/gems/1.9.1/gems/thin-1.6.1/lib/thin/controllers

/controller.rb:72:in `start'

from C:/Ruby193/lib/ruby/gems/1.9.1/gems/thin-1.6.1/lib/thin/runner.rb:2

00:in `run_command'

from C:/Ruby193/lib/ruby/gems/1.9.1/gems/thin-1.6.1/lib/thin/runner.rb:1

56:in `run!'

from C:/Ruby193/lib/ruby/gems/1.9.1/gems/thin-1.6.1/bin/thin:6:in `

(required)>'

from C:/Ruby193/bin/thin:23:in `load'

from C:/Ruby193/bin/thin:23:in `'

 

 

Enable through dashboard, added local ip to labtech widget, page does not respond on 3030...

Share this post


Link to post
Share on other sites

Ok you should have No errors when running it, I mean very little output.

 

From the look of it, it looks like you have the new rufus scheduler. Remove it?

 

Here is My list of gems from a working dash, with versions. Make sure you have the same versions and not 2 versions of anything as it will use the newer one.

 

I am sorry I can not be much help on this as I learned ruby just to do this project and fumbled my way through it.

 

 

backports (3.3.3)

bigdecimal (1.1.0)

bundle (0.0.1)

bundler (1.3.5)

coffee-script (2.2.0)

coffee-script-source (1.6.3)

daemons (1.1.9)

dashing (1.1.0)

dbd-odbc (0.2.5)

dbi (0.4.5)

deprecated (2.0.1)

eventmachine (1.0.3 x86-mingw32)

execjs (1.4.0)

faraday (0.8.7)

hike (1.2.3)

htmlentities (4.3.1)

i18n (0.6.5)

io-console (0.3)

json (1.5.5)

mini_portile (0.5.1)

minitest (4.7.5, 2.5.1)

multi_json (1.8.0, 1.7.7)

multipart-post (1.2.0)

mysql (2.9.1 x86-mingw32)

nokogiri (1.6.0 x86-mingw32)

rack (1.5.2)

rack-protection (1.5.0)

rack-test (0.6.2)

rake (0.9.2.2)

rdoc (3.9.5)

ruby-odbc (0.99995)

rufus-scheduler (2.0.22)

sass (3.2.9)

sequel (4.0.0)

simple-rss (1.2.3)

simple_oauth (0.2.0)

sinatra (1.4.3)

sinatra-contrib (1.4.0)

sprockets (2.10.0)

thin (1.5.1)

thor (0.18.1)

tilt (1.4.1)

tiny_tds (0.6.1 x86-mingw32)

twitter (4.8.1)

tzinfo (1.0.1, 0.3.37)

xml-simple (1.1.2)

Share this post


Link to post
Share on other sites

Hi, I have it setup and running but when I add a widget I am unable to remove it afterwards so now I have news (which doesn't show any news) and time (which doesn't show the time)

Any ideas?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...