sensu / uchiwa-chef

Other
33 stars 40 forks source link

Uchiwa does not start #14

Closed bscott closed 10 years ago

bscott commented 10 years ago

I tried starting Uchiwa with the service init script but it fails, running it manually results in the following error:

root@ip-ip-X.X.X.X:/etc/sensu# /opt/uchiwa/embedded/bin/node /opt/uchiwa/usr/src/uchiwa/app.js -c /etc/sensu/uchiwa.json  
{"name":"uchiwa","hostname":"ip-ip-X.X.X.X","pid":18046,"level":30,"msg":"Uchiwa is now listening on 0.0.0.0:8080","time":"2014-09-26T21:21:02.921Z","src":{"file":"/opt/uchiwa/usr/src/uchiwa/app.js","line":88},"v":0}

/opt/uchiwa/usr/src/uchiwa/lib/sensu.js:351
      name: fullClient.name,
                      ^
TypeError: Cannot read property 'name' of null
    at Sensu.eventData (/opt/uchiwa/usr/src/uchiwa/lib/sensu.js:351:23)
    at /opt/uchiwa/usr/src/uchiwa/lib/sensu.js:382:24
    at Array.forEach (native)
    at Function._.each._.forEach (/opt/uchiwa/usr/src/uchiwa/node_modules/underscore/underscore.js:79:11)
    at Sensu.buildEvents (/opt/uchiwa/usr/src/uchiwa/lib/sensu.js:381:5)
    at /opt/uchiwa/usr/src/uchiwa/lib/dc.js:76:18
    at IncomingMessage.<anonymous> (/opt/uchiwa/usr/src/uchiwa/lib/rest.js:37:9)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:919:16
    at process._tickCallback (node.js:419:13)
failshell commented 10 years ago

Your configuration seems wrong, as it can't read the name property. Could you gist it please?

bscott commented 10 years ago

@failshell I'm using the cookbook as default, so it must be leaving that property out.

https://github.com/sensu/uchiwa-chef/blob/master/recipes/default.rb#L26

bscott commented 10 years ago

I reverted to version 0.2.1 and new error occurs

Option log level is not valid. Please refer to the README.

Error: Most middleware (like logger) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.
    at Function.Object.defineProperty.get (/opt/uchiwa/usr/src/uchiwa/node_modules/express/lib/express.js:89:13)
    at Object.<anonymous> (/opt/uchiwa/usr/src/uchiwa/app.js:62:17)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3
failshell commented 10 years ago
failshell commented 10 years ago

Fixed by https://github.com/sensu/uchiwa/issues/133.