lorenwest / monitor-dashboard

Dashboards for the Node.js monitor project
https://lorenwest.github.com/monitor-dashboard
MIT License
204 stars 28 forks source link

Trying to start up on ubuntu #1

Closed osher closed 10 years ago

osher commented 10 years ago
osher@ubuntu:/usr/osher/nm$ npm install monitir

worked

osher@ubuntu:/usr/osher/nm$ npm install monitor-dashboard

worked

osher@ubuntu:/usr/osher/nm$ nano index.js

with

var monitor = require('monitor').start();

(note that in your guide you say include instead of require... :P )

and then


osher@ubuntu:/usr/osher/nm$ node index.js &
[1] 12155

so far so good, but:

osher@ubuntu:/usr/osher/nm$ npm start monitor-dashboard

> monitor-dashboard@0.6.0 start /usr/osher/nm/node_modules/monitor-dashboard
> node monitor

             _________                                  __________
___________________  /____      _______ ___________________(_)_  /______________
__  __ \  __ \  __  /_  _ \     __  __ `__ \  __ \_  __ \_  /_  __/  __ \_  ___/
_  / / / /_/ / /_/ / /  __/     _  / / / / / /_/ /  / / /  / / /_ / /_/ /  /
/_/ /_/\____/\__,_/  \___/      /_/ /_/ /_/\____//_/ /_//_/  \__/ \____//_/

Problem loading the "core" module:  Error: ENOENT, no such file or directory '/usr/osher/nm/node_modules/monitor-dashboard/node_modules/core-monitor/lib/probe'
    at Object.fs.readdirSync (fs.js:500:18)
    at /usr/osher/nm/node_modules/monitor-dashboard/node_modules/core-monitor/lib/index.js:12:6
    at Object.<anonymous> (/usr/osher/nm/node_modules/monitor-dashboard/node_modules/core-monitor/lib/index.js:32:2)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at UI.Server.Backbone.Model.extend.loadApp (/usr/osher/nm/node_modules/monitor-dashboard/lib/js/Server.js:570:18)
Now showing at http://localhost:4200/

External connections disabled.
See /usr/osher/nm/node_modules/monitor-dashboard/config/external.js for more information.

I get same error on windows (that also doesn't run the make)

osher commented 10 years ago

Holly shit! the materials about this project in the internet look so mature, I can't believe I'm issue #1...

kosmasgiannis commented 10 years ago

I had exactly the same problem when I tried it later today (version 0.6.0).

Looks very interesting project, I hope it will mature soon.

osher commented 10 years ago

well, perhaps after a bad start it's not supposed to be working - but still, just for having the feedback for case it helps

accessing http://localhost:4200 spits page error: "404 page load error" and the following is observed on the log

2013-11-07T13:28:46.35 [warn] FileSyncProbe.monitorError [{"code":"NOTFOUND","msg":"LiveSync requires the file to exist and be readable"}]
2013-11-07T13:28:46.35 [error] Router.connectInternal [{"error":{"code":"NOTFOUND","msg":"LiveSync requires the file to exist and be readable"},"probeKey":"Sync:className=Page:modelId=/index"}]
2013-11-07T13:28:46.35 [error] Sync.connectInstanceMonitor.monitorConnect [{"code":"NOTFOUND","msg":"LiveSync requires the file to exist and be readable"}]
2013-11-07T13:28:46.35 [error] Monitor.disconnect [{"error":"Monitor must be connected"}]
2013-11-07T13:28:46.35 [error] Sync._sync.onComplete ["Page",{"code":"NOTFOUND","msg":"LiveSync requires the file to exist and be readable"}]
2013-11-07T13:28:46.35 [error] Monitor.connect [{"initParams":{"className":"Page","modelId":"/index"},"error":{"code":"NOTFOUND","msg":"LiveSync requires the file to exist and be readable"}}]
2013-11-07T13:28:46.41 [warn] FileSyncProbe.monitorError [{"code":"NOTFOUND","msg":"LiveSync requires the file to exist and be readable"}]
2013-11-07T13:28:46.41 [error] Router.connectInternal [{"error":{"code":"NOTFOUND","msg":"LiveSync requires the file to exist and be readable"},"probeKey":"Sync:className=Page:modelId=404"}]
2013-11-07T13:28:46.42 [error] Sync.connectInstanceMonitor.monitorConnect [{"code":"NOTFOUND","msg":"LiveSync requires the file to exist and be readable"}]
2013-11-07T13:28:46.42 [error] Monitor.disconnect [{"error":"Monitor must be connected"}]
2013-11-07T13:28:46.42 [error] Sync._sync.onComplete ["Page",{"code":"NOTFOUND","msg":"LiveSync requires the file to exist and be readable"}]
Error loading the 404 page { code: 'NOTFOUND',
  msg: 'LiveSync requires the file to exist and be readable' }
2013-11-07T13:28:46.42 [error] Monitor.connect [{"initParams":{"className":"Page","modelId":"404"},"error":{"code":"NOTFOUND","msg":"LiveSync requires the file to exist and be readable"}}]

Good luck. I started to read the code, and it looks very nice, but i don't just yet have the time to understand enough to give a hand...

lorenwest commented 10 years ago

Thank you for the feedback and bug report. Node monitor just underwent a name change, and monitor-dashboard is a new project. Congratulations for being #1 bug reporter!

I think i know what's going on, and I'll install it on a clean ubuntu later today to verify the fix.

lorenwest commented 10 years ago

Just pushed monitor-dashboard@0.6.1, which should fix these issues. Thanks again for reporting, and I hope you have better luck with this new version.

kosmasgiannis commented 10 years ago

I can confirm that this version solves the issue.