Closed osher closed 10 years ago
This one is strange. I couldn't reproduce it on my main OSX machine, and I just tried on an ubuntu machine and couldn't reproduce it on that machine either.
The following 2 stack trace lines seem out of place:
at Backbone.Model (/usr/osher/nm/node_modules/monitor-dashboard/node_modules/monitor/node_modules/backbone/backbone.js:209:21)
at new child (/usr/osher/nm/node_modules/monitor-dashboard/node_modules/monitor/node_modules/backbone/backbone.js:1392:34)
Those line numbers (209 and 1392) aren't valid lines in version 0.6.6 of backbone.js that the package.json relies on.
Would you mind editing that backbone.js file, and telling me what version is reported at the top?
The connection problems you're seeing indicate a newer version of backbone.js, and I haven't gotten around to upgrading monitor-dashboard to be compatible with the newer backbone - which is why the package.json specifically calls out 0.6.6.
hmm
wierd.
probably I did not install both components (monitor, monitor-dashboard) on the same order.
(remember? first time - got the crash, 2nd time - got the wierd behavior)
In the time that crashed I probably installed the dashboard first, and then the monitor -what resulted with
node_modules/monotir-dashoard/node_modules/monitor
- AND - node_modules/monitor
now, that it runs (no strack trace with error, just wierd behavior with the "(connection problems)" stuff) - I tried to cat
the file - and it does not exist.
inside /usr/osher/nm/node_modules/monitor-dashboard/node_modules/
I can find only config
and core-monitor
.
However - if it helps -
/usr/osher/nm/node_modules/monitor/node_modules/backbone/backbone.js
starts with // Backbone.js 0.9.9
...
Yes, backbone.js is supposed to be 0.9.9 (not 0.6.6 like my earlier comment - note to self: no morning comments before coffee).
I noticed the path, and figured the reason for backbone.js being there was due to the install order, but the install order shouldn't have caused the problem.
So - you're not getting stack traces any longer, but you're still having connection problems, and problems persisting new components?
right - like the screenshot http://gyazo.com/74c2f8deed416da34d9fe5b4381b5777 and the log above.
In addition, any dashboard I try to add isn't saved :(
All the installs are local with full OS permissions. could it be that it tries to write somewhere else?
Just published version 0.6.3. It's worth a try creating a new directory, npm installing monitor-dashboard and running monitor-dashboard to see if this resolves the issue. No need to add a second application for this test.
If that doesn't solve the problem, try running monitor-dashboard as super user. If it works, then there's a permission issue with accessing tcp/ip ports in the 42000-42010 range.
Let me know how it goes.
after successful installation
running an index that looks like this:
and running the dashboard - seemingly successfully
I get the following on both the browser and the log:
After removing node_modules and doing all the process again - I got a crippled dashboard:
I tried to create a page '/home'
got this on the log
Perhaps I'm missing something?