Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

cant start without mongo auth #233

Open
wojons opened this issue Apr 16, 2014 · 2 comments · May be fixed by #273
Open

cant start without mongo auth #233

wojons opened this issue Apr 16, 2014 · 2 comments · May be fixed by #273

Comments

@wojons
Copy link

wojons commented Apr 16, 2014

I have a db that is localhost single user blah blah blah. and just dont want to have a password. the only way i was able to get it to work was using a connection string leaving username and password blank did not help.

@buzypi
Copy link

buzypi commented Sep 8, 2014

I am not a developer on this project, but I had a similar requirement. Somehow, even enabling auth didn't seem to work for me. So I just disabled auth and changed this line in bootstrap.js: (Line 6):

mongoose.connect(config.mongodb.connectionString || 'mongodb://' + config.mongodb.server + '/' + config.mongodb.database);

I guess we can make it a conditional: if(!config.mongodb.user)...

@Humphreybas
Copy link

When I followed the installation instructions on http://redotheweb.com/uptime/ on my ubuntu 14.04 machine the app failed to start due to mongo auth problem (default uptime config and fresh install of mongodb from ubuntu repos). I guess I could have fixed mongo and the config of uptime but I went with your workaround of just removing the user and password from line 6 of bootstrap.js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants