-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error starting Lets-Chat #722
Comments
What happens if you type in |
I can log in mongo shell while type mongo, but still got the same error when typing npm start. /Users/yuyang/Documents/djan/lets-chat/node_modules/mongodb/lib/mongo_client.js:225 npm ERR! Darwin 14.3.0 npm ERR! Please include the following file with any support request: |
I am new to lets-chat and mongdb, any help would be appreciated, thanks in advance! |
Here is what happens when I type in mongo. $ mongo |
Here is the debug log for lets-chat. 0 info it worked if it ends with ok |
@jringo12 does |
Yes localhost is resolving to 127.0.0.1. I have changed the mongo connection string and that still did not work.
/home/security/lets-chat/node_modules/mongodb/lib/mongo_client.js:225 npm ERR! Linux 4.8.0-27-generic npm ERR! Please include the following file with any support request: |
|
$ mongo --verbose |
@jringo12 dang, that looks just fine. I have no idea what's wrong! Was hoping your issue was like @youyou0988s (localhost wouldn't resolve) Did you install mongo via package manager? |
yeah everything was installed through apt-get |
Enter PEM pass phrase:
/home/security/lets-chat/node_modules/connect-mongo/node_modules/mongodb/lib/mongo_client.js:225
throw err
^
MongoError: failed to connect to server [localhost:27017] on first connect
at null. (/home/security/lets-chat/node_modules/connect-mongo/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:313:35)
at EventEmitter.emit (events.js:95:17)
at null. (/home/security/lets-chat/node_modules/connect-mongo/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:271:12)
at g (events.js:180:16)
at EventEmitter.emit (events.js:98:17)
at Socket. (/home/security/lets-chat/node_modules/connect-mongo/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:175:10)
at Socket.g (events.js:180:16)
at Socket.EventEmitter.emit (events.js:92:17)
at Socket._onTimeout (net.js:327:8)
at Timer.unrefTimeout [as ontimeout] (timers.js:412:13)
npm ERR! weird error 8
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
I made sure MongoDB is running.
mclc:~/lets-chat$ service mongodb status
mongodb start/running, process 13169
Any thoughts?
The text was updated successfully, but these errors were encountered: