Hi, trying to connect to the mongo server i get this message
Command 'authenticate' failed: auth fails (response: { "errmsg" : "auth fails", "ok" : 0.0 })
i'm using the variable "MONGOHQ_URL". Thanks
Hi, trying to connect to the mongo server i get this message
Command 'authenticate' failed: auth fails (response: { "errmsg" : "auth fails", "ok" : 0.0 })
i'm using the variable "MONGOHQ_URL". Thanks
Discussions are closed to public comments.
If you need help with AppHarbor please
start a new discussion.
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
#1 Posted by friism Support staff on 08 Jul, 2011 08:26 PM
Are you connecting using the mongo.exe, or is this from within the app? If you're connecting using mongo.exe, you need to pick out username and password from the url and pass that using the
-pand-uargs.friism closed this discussion on 08 Jul, 2011 08:26 PM.
gatossapato re-opened this discussion on 08 Jul, 2011 09:23 PM
#2 Posted by gatossapato on 08 Jul, 2011 09:23 PM
Hi, it's from the app
var connString = ConfigurationManager.AppSettings.Get("MONGOHQ_URL");
var mongoUrl = new MongoUrl(connString);
var server = MongoServer.Create(mongoUrl);
(...)
Thanks
#3 Posted by friism Support staff on 09 Jul, 2011 06:25 AM
There might be a bug in that example, we're working on a full tutorial. Hang on.
#4 Posted by friism Support staff on 10 Jul, 2011 01:50 AM
Right, finally got time to actually try it out, this code is tested:
I've updated the knowledgebase too.
friism closed this discussion on 10 Jul, 2011 01:50 AM.