uptime: MongoDB connection always fail
I am first time user of MongoDB and Node, so i am sorry for maybe asking stupid questions.
- There should be noted somewhere in install that you need MongoDB
- on a fresh vps i installed nodejs v0.10.4 and mongodb (dont know how to see version, from tutorial on net). There is no firewall running i installed uptime as per readme and i always get
[root@m uptime]# node app
loading plugin ./plugins/console on app
loading plugin ./plugins/patternMatcher on app
loading plugin ./plugins/httpOptions on app
info - socket.io started
loading plugin ./plugins/patternMatcher on monitor
loading plugin ./plugins/httpOptions on monitor
Monitor origin started
Express server listening on host localhost, port 8082 in development mode
MongoDB error: auth failed
Make sure a mongoDB server is running and accessible by this application
i get no errors while installing. Than i created mongodb with robomongo gui, added user with read/write and change details in default.yaml config. error is same. Can you please explain install proces to users that are less tehnical about this, because if you do exactly like in video or in readme, you cant run this… Thanks
About this issue
- Original URL
- State: open
- Created 9 years ago
- Comments: 16
I had the same issue. If you don’t have the authentication enabled, the solution is to configure your connection URI string without credentials in the
config/default.yaml
file.With a local database, the
connectionString
parameter should resemble to