mikekunze / node-ndoutils-web

Basic ndoutils dynamic webApp
MIT License
1 stars 0 forks source link

Tried running this app for a couple of hours #1

Open rohit01 opened 10 years ago

rohit01 commented 10 years ago

On my latest attempt with heroku, I got the following error message in logs:

2014-08-22T06:19:17.742978+00:00 app[web.1]: 2014-08-22T06:19:17.742998+00:00 app[web.1]: > node-ndoutils-web@0.0.1 start /app 2014-08-22T06:19:17.743000+00:00 app[web.1]: > node app.js 2014-08-22T06:19:17.743002+00:00 app[web.1]: 2014-08-22T06:19:17.858255+00:00 app[web.1]: 2014-08-22T06:19:17.860887+00:00 app[web.1]: assets: 2014-08-22T06:19:17.861061+00:00 app[web.1]: ^ 2014-08-22T06:19:17.871764+00:00 app[web.1]: SyntaxError: Unexpected token : 2014-08-22T06:19:17.871771+00:00 app[web.1]: at Module._compile (module.js:439:25) 2014-08-22T06:19:17.871772+00:00 app[web.1]: at Object.Module._extensions..js (module.js:474:10) 2014-08-22T06:19:17.871774+00:00 app[web.1]: at Module.load (module.js:356:32) 2014-08-22T06:19:17.871776+00:00 app[web.1]: at Function.Module._load (module.js:312:12) 2014-08-22T06:19:17.871778+00:00 app[web.1]: at Module.require (module.js:364:17) 2014-08-22T06:19:17.871779+00:00 app[web.1]: at require (module.js:380:17) 2014-08-22T06:19:17.871781+00:00 app[web.1]: at Object. (/app/app.js:8:20) 2014-08-22T06:19:17.871782+00:00 app[web.1]: at Module._compile (module.js:456:26) 2014-08-22T06:19:17.858768+00:00 app[web.1]: /app/settings_default.coffee:2 2014-08-22T06:19:17.889916+00:00 app[web.1]: npm ERR! node-ndoutils-web@0.0.1 start: node app.js 2014-08-22T06:19:17.871784+00:00 app[web.1]: at Object.Module._extensions..js (module.js:474:10) 2014-08-22T06:19:17.871786+00:00 app[web.1]: at Module.load (module.js:356:32) 2014-08-22T06:19:17.871787+00:00 app[web.1]: at Function.Module._load (module.js:312:12) 2014-08-22T06:19:17.871789+00:00 app[web.1]: at Function.Module.runMain (module.js:497:10) 2014-08-22T06:19:17.871790+00:00 app[web.1]: at startup (node.js:119:16) 2014-08-22T06:19:17.871791+00:00 app[web.1]: at node.js:906:3 2014-08-22T06:19:17.871793+00:00 app[web.1]: 2014-08-22T06:19:17.877853+00:00 app[web.1]: 2014-08-22T06:19:17.890186+00:00 app[web.1]: npm ERR! Exit status 8 2014-08-22T06:19:17.890327+00:00 app[web.1]: npm ERR! 2014-08-22T06:19:17.890435+00:00 app[web.1]: npm ERR! Failed at the node-ndoutils-web@0.0.1 start script. 2014-08-22T06:19:17.891046+00:00 app[web.1]: npm ERR! This is most likely a problem with the node-ndoutils-web package, 2014-08-22T06:19:17.891141+00:00 app[web.1]: npm ERR! not with npm itself. 2014-08-22T06:19:17.891233+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system: 2014-08-22T06:19:17.891337+00:00 app[web.1]: npm ERR! node app.js 2014-08-22T06:19:17.891435+00:00 app[web.1]: npm ERR! You can get their info via: 2014-08-22T06:19:17.891536+00:00 app[web.1]: npm ERR! npm owner ls node-ndoutils-web 2014-08-22T06:19:17.891629+00:00 app[web.1]: npm ERR! There is likely additional logging output above. 2014-08-22T06:19:17.891931+00:00 app[web.1]: npm ERR! System Linux 3.8.11-ec2 2014-08-22T06:19:17.892117+00:00 app[web.1]: npm ERR! command "/app/vendor/node/bin/node" "/app/vendor/node/bin/npm" "start" 2014-08-22T06:19:17.892262+00:00 app[web.1]: npm ERR! cwd /app 2014-08-22T06:19:17.892391+00:00 app[web.1]: npm ERR! node -v v0.10.31 2014-08-22T06:19:17.892511+00:00 app[web.1]: npm ERR! npm -v 1.4.23 2014-08-22T06:19:17.892742+00:00 app[web.1]: npm ERR! code ELIFECYCLE 2014-08-22T06:19:17.894192+00:00 app[web.1]: npm ERR! 2014-08-22T06:19:17.894288+00:00 app[web.1]: npm ERR! Additional logging details can be found in: 2014-08-22T06:19:17.894390+00:00 app[web.1]: npm ERR! /app/npm-debug.log 2014-08-22T06:19:17.894576+00:00 app[web.1]: npm ERR! not ok code 0 2014-08-22T06:19:16.774198+00:00 heroku[web.1]: Starting process with command npm start 2014-08-22T06:19:18.588562+00:00 heroku[web.1]: State changed from starting to crashed 2014-08-22T06:19:18.574453+00:00 heroku[web.1]: Process exited with status 1

rohit01 commented 10 years ago

Locally, I get the following error:

$ npm test

node-ndoutils-web@0.0.1 test /home/rohit/node-ndoutils-web vows test/* --spec

npm ERR! weird error 1 npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

npm ERR! not ok code 0 $

mikekunze commented 10 years ago

Hello! This project is pretty dated. The package.json needs to be updated to specify depreciated versions of express and other dependencies and this uses nagios3.

I'm now using nagios4 and mklivestatus and haven't bothered updating this project since I dont have my old nagios3 environment.

What I can do is take a look and see if I can get a Vagrantfile going with the original specs and update the code so it works.

Thanks for posting an issue, and for trying the project out. I'll push up some changes when I get a chance!

mikekunze commented 10 years ago

There have also been some changes to coffeescript in 1.7 that breaks old code. When including the coffeescript module, you need to do something like:

Coffee = require('coffee-script');
Coffee.register();
rohit01 commented 10 years ago

@mikekunze Thank you for the details. I am using the latest version of Nagios-4.0.8 with latest ndoutils-2.0 setup. Your project looks pretty handy from the description. Heard about mklivestatus for the first time.. will definitely try it when I get a chance. I came across your project while searching for generating uptime/SLA reports using ndoutils database. Let me know, if you know about any helpful projects.

Keep up the good work :+1:

P.S: I will be travelling for a couple of days. So, please bear with me if I dont reply to your comments during in this weekend.