Skip to content

Instantly share code, notes, and snippets.

@melissamarima
Created September 25, 2015 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melissamarima/8122587f40fddcf70f67 to your computer and use it in GitHub Desktop.
Save melissamarima/8122587f40fddcf70f67 to your computer and use it in GitHub Desktop.
melissa@simba:~/meeth-app$ mongo
MongoDB shell version: 2.6.11
connecting to: test
> ^C
bye
melissa@simba:~/meeth-app$ npm start
> meeth-app@0.0.0 start /home/melissa/meeth-app
> node ./bin/www
/home/melissa/meeth-app/node_modules/mongoose/node_modules/mongodb/lib/server.js:228
process.nextTick(function() { throw err; })
^
Error: connect ECONNREFUSED
at exports._errnoException (util.js:746:11)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1010:19)
npm ERR! Linux 2.6.35.4-rscloud
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! meeth-app@0.0.0 start: `node ./bin/www`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the meeth-app@0.0.0 start script 'node ./bin/www'.
npm ERR! This is most likely a problem with the meeth-app package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./bin/www
npm ERR! You can get their info via:
npm ERR! npm owner ls meeth-app
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/melissa/meeth-app/npm-debug.log
@melissamarima
Copy link
Author

I incorrectly put my machine's IP instead of localhost in the app.js line. So I changed it back to mongoose.connect('mongodb://localhost/meeth'); and the problem is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment