fzaninotto / uptime

A remote monitoring application using Node.js, MongoDB, and Twitter Bootstrap.
http://fzaninotto.github.com/uptime/
MIT License
3.62k stars 706 forks source link

Deploy on heroku failed. #310

Closed misteral closed 7 years ago

misteral commented 9 years ago

I used wiki instructions(https://github.com/fzaninotto/uptime/wiki/Deploy-to-Heroku)

but i got the failed build please help me

heroku logs

2015-04-20T06:35:37.854948+00:00 heroku[web.1]: State changed from crashed to starting
2015-04-20T06:35:40.453183+00:00 heroku[web.1]: Starting process with command `npm start`
2015-04-20T06:35:42.274052+00:00 app[web.1]: Detected 512 MB available memory, 512 MB limit per process (WEB_MEMORY)
2015-04-20T06:35:42.274265+00:00 app[web.1]: Recommending WEB_CONCURRENCY=1
2015-04-20T06:35:42.781729+00:00 app[web.1]: > node app.js
2015-04-20T06:35:42.781730+00:00 app[web.1]: 
2015-04-20T06:35:42.781719+00:00 app[web.1]: 
2015-04-20T06:35:42.781727+00:00 app[web.1]: > node-uptime@3.2.0 start /app
2015-04-20T06:35:43.713836+00:00 app[web.1]: npm ERR! Exit status 1
2015-04-20T06:35:43.714366+00:00 app[web.1]: npm ERR! 
2015-04-20T06:35:43.714596+00:00 app[web.1]: npm ERR! Failed at the node-uptime@3.2.0 start script.
2015-04-20T06:35:43.638366+00:00 app[web.1]: loading plugin ./plugins/console on app
2015-04-20T06:35:43.654534+00:00 app[web.1]: loading plugin ./plugins/patternMatcher on monitor
2015-04-20T06:35:43.661973+00:00 app[web.1]: Monitor origin started
2015-04-20T06:35:43.663094+00:00 app[web.1]: [Error: undefined/checks/needingPoll resource not available: connect ECONNREFUSED]
2015-04-20T06:35:43.713492+00:00 app[web.1]: npm ERR! node-uptime@3.2.0 start: `node app.js`
2015-04-20T06:35:43.715678+00:00 app[web.1]: npm ERR! This is most likely a problem with the node-uptime package,
2015-04-20T06:35:43.715968+00:00 app[web.1]: npm ERR! not with npm itself.
2015-04-20T06:35:43.716441+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:
2015-04-20T06:35:43.716671+00:00 app[web.1]: npm ERR!     node app.js
2015-04-20T06:35:43.716967+00:00 app[web.1]: npm ERR! You can get their info via:
2015-04-20T06:35:43.717276+00:00 app[web.1]: npm ERR!     npm owner ls node-uptime
2015-04-20T06:35:43.717497+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
2015-04-20T06:35:43.719463+00:00 app[web.1]: npm ERR! System Linux 3.13.0-40-generic
2015-04-20T06:35:43.719777+00:00 app[web.1]: npm ERR! command "node" "/app/.heroku/node/bin/npm" "start"
2015-04-20T06:35:43.720063+00:00 app[web.1]: npm ERR! cwd /app
2015-04-20T06:35:43.720341+00:00 app[web.1]: npm ERR! node -v v0.10.38
2015-04-20T06:35:43.720630+00:00 app[web.1]: npm ERR! npm -v 1.2.8000
2015-04-20T06:35:43.646867+00:00 app[web.1]: loading plugin ./plugins/httpOptions on app
2015-04-20T06:35:43.661977+00:00 app[web.1]: Express server listening on host localhost, port 19477 in demo mode
2015-04-20T06:35:43.720920+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2015-04-20T06:35:43.723614+00:00 app[web.1]: npm ERR! 
2015-04-20T06:35:43.723835+00:00 app[web.1]: npm ERR! Additional logging details can be found in:
2015-04-20T06:35:43.724052+00:00 app[web.1]: npm ERR!     /app/npm-debug.log
2015-04-20T06:35:43.724419+00:00 app[web.1]: npm ERR! not ok code 0
2015-04-20T06:35:43.641322+00:00 app[web.1]: loading plugin ./plugins/patternMatcher on app
2015-04-20T06:35:43.649372+00:00 app[web.1]: info: socket.io started
2015-04-20T06:35:43.654709+00:00 app[web.1]: loading plugin ./plugins/httpOptions on monitor
2015-04-20T06:35:43.696654+00:00 app[web.1]: { [MongoError: not authorized on admin to execute command { serverStatus: 1 }]
2015-04-20T06:35:43.696661+00:00 app[web.1]:   name: 'MongoError',
2015-04-20T06:35:43.696663+00:00 app[web.1]:   ok: 0,
2015-04-20T06:35:43.696665+00:00 app[web.1]:   errmsg: 'not authorized on admin to execute command { serverStatus: 1 }',
2015-04-20T06:35:43.696666+00:00 app[web.1]:   code: 13 }
2015-04-20T06:35:43.707767+00:00 app[web.1]: 
2015-04-20T06:35:44.548414+00:00 heroku[web.1]: State changed from starting to crashed
2015-04-20T06:35:44.549208+00:00 heroku[web.1]: State changed from crashed to starting
2015-04-20T06:35:44.533322+00:00 heroku[web.1]: Process exited with status 1
2015-04-20T06:35:46.791935+00:00 heroku[web.1]: Starting process with command `npm start`
2015-04-20T06:35:48.420471+00:00 app[web.1]: Detected 512 MB available memory, 512 MB limit per process (WEB_MEMORY)
2015-04-20T06:35:48.420489+00:00 app[web.1]: Recommending WEB_CONCURRENCY=1
2015-04-20T06:35:48.855937+00:00 app[web.1]: > node app.js
2015-04-20T06:35:48.855854+00:00 app[web.1]: 
2015-04-20T06:35:48.855935+00:00 app[web.1]: > node-uptime@3.2.0 start /app
2015-04-20T06:35:48.855939+00:00 app[web.1]: 
2015-04-20T06:35:49.521930+00:00 app[web.1]: loading plugin ./plugins/patternMatcher on app
2015-04-20T06:35:49.528665+00:00 app[web.1]: info: socket.io started
2015-04-20T06:35:49.536809+00:00 app[web.1]: Express server listening on host localhost, port 23603 in demo mode
2015-04-20T06:35:49.578943+00:00 app[web.1]: { [MongoError: not authorized on admin to execute command { serverStatus: 1 }]
2015-04-20T06:35:49.533511+00:00 app[web.1]: loading plugin ./plugins/httpOptions on monitor
2015-04-20T06:35:49.578951+00:00 app[web.1]:   ok: 0,
2015-04-20T06:35:49.578949+00:00 app[web.1]:   name: 'MongoError',
2015-04-20T06:35:49.578953+00:00 app[web.1]:   errmsg: 'not authorized on admin to execute command { serverStatus: 1 }',
2015-04-20T06:35:49.578954+00:00 app[web.1]:   code: 13 }
2015-04-20T06:35:49.594693+00:00 app[web.1]: 
2015-04-20T06:35:49.526308+00:00 app[web.1]: loading plugin ./plugins/httpOptions on app
2015-04-20T06:35:49.600521+00:00 app[web.1]: npm ERR! Failed at the node-uptime@3.2.0 start script.
2015-04-20T06:35:49.600425+00:00 app[web.1]: npm ERR! 
2015-04-20T06:35:49.518454+00:00 app[web.1]: loading plugin ./plugins/console on app
2015-04-20T06:35:49.536156+00:00 app[web.1]: Monitor origin started
2015-04-20T06:35:49.600089+00:00 app[web.1]: npm ERR! node-uptime@3.2.0 start: `node app.js`
2015-04-20T06:35:49.541023+00:00 app[web.1]: [Error: undefined/checks/needingPoll resource not available: connect ECONNREFUSED]
2015-04-20T06:35:49.533329+00:00 app[web.1]: loading plugin ./plugins/patternMatcher on monitor
2015-04-20T06:35:49.600275+00:00 app[web.1]: npm ERR! Exit status 1
2015-04-20T06:35:49.601085+00:00 app[web.1]: npm ERR! This is most likely a problem with the node-uptime package,
2015-04-20T06:35:49.605033+00:00 app[web.1]: npm ERR! 
2015-04-20T06:35:49.605140+00:00 app[web.1]: npm ERR! Additional logging details can be found in:
2015-04-20T06:35:49.601211+00:00 app[web.1]: npm ERR! not with npm itself.
2015-04-20T06:35:49.601348+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:
2015-04-20T06:35:49.601511+00:00 app[web.1]: npm ERR!     node app.js
2015-04-20T06:35:49.601675+00:00 app[web.1]: npm ERR! You can get their info via:
2015-04-20T06:35:49.601833+00:00 app[web.1]: npm ERR!     npm owner ls node-uptime
2015-04-20T06:35:49.605237+00:00 app[web.1]: npm ERR!     /app/npm-debug.log
2015-04-20T06:35:49.603038+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2015-04-20T06:35:49.605435+00:00 app[web.1]: npm ERR! not ok code 0
2015-04-20T06:35:49.601963+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
2015-04-20T06:35:49.602287+00:00 app[web.1]: npm ERR! System Linux 3.13.0-40-generic
2015-04-20T06:35:49.602466+00:00 app[web.1]: npm ERR! command "node" "/app/.heroku/node/bin/npm" "start"
2015-04-20T06:35:49.602598+00:00 app[web.1]: npm ERR! cwd /app
2015-04-20T06:35:49.602750+00:00 app[web.1]: npm ERR! node -v v0.10.38
2015-04-20T06:35:49.602929+00:00 app[web.1]: npm ERR! npm -v 1.2.8000
2015-04-20T06:35:50.612394+00:00 heroku[web.1]: Process exited with status 1
2015-04-20T06:35:50.630865+00:00 heroku[web.1]: State changed from starting to crashed