Skip to content
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

Crash when using Authentication on Mongo 3 #200

Closed
dustinblackman opened this issue Feb 21, 2015 · 20 comments
Closed

Crash when using Authentication on Mongo 3 #200

dustinblackman opened this issue Feb 21, 2015 · 20 comments

Comments

@dustinblackman
Copy link

When attempting to connect to a Mongo 3 RC9 instance with Auth enabled, MongoHub 3.1 beta 3 will crash.

@jeromelebel
Copy link
Owner

Could you give the full crash report?
Thanks

@dustinblackman
Copy link
Author

Never debugged Mac applications before, hopefully this is what you're wanting!

https://gist.github.com/dustinblackman/034663e58ded449b3c58

@jeromelebel
Copy link
Owner

Perfect!

jeromelebel pushed a commit that referenced this issue Feb 23, 2015
@dustinblackman
Copy link
Author

Appreciate the super fast commit, thanks! :D
Though, I just killed my local repo, repulled, and built, and still get a crash on auth. :(
https://gist.github.com/dustinblackman/dad49772572af1b65313

@jeromelebel
Copy link
Owner

Try again to get the latest version. It might be better now.

@dustinblackman
Copy link
Author

No crash anymore! Though another error instead. It could be my Mongo instance, but I have other drivers (Python and Node) connecting just fine.

image

@lelandcope
Copy link

Im actually still getting the crash on release 3.1b3. Its the same exact error as the gist above.

@dustinblackman dustinblackman changed the title Crash when using Authentication on Mongo3.0.0RC9 Crash when using Authentication on Mongo 3 Mar 5, 2015
@dustinblackman
Copy link
Author

If you build from the last commit, the crash error goes away but you get the SCRAM failure like in the screenshot above.

@PierreBrisorgueil
Copy link

Same issue with Mongo 3

jeromelebel pushed a commit to jeromelebel/mongo-c-driver that referenced this issue Mar 6, 2015
jeromelebel pushed a commit to jeromelebel/MongoObjCDriver that referenced this issue Mar 6, 2015
@jeromelebel
Copy link
Owner

Should be fixed in 3.1b4

@PierreBrisorgueil
Copy link

Thx you for this reactivity,
I have downloaded last version, 3.1b4, There is no crash now :).

But always an error,

  • After ssh conexion on my server (mongo3) : mongo --port 27017 -u user -p pwd --authenticationDatabase test
    No problem,
  • Same configuration on mongohub :
    capture d ecran 2015-03-06 a 15 27 34

I did not find how to display the text, sorry, i can't increase the column.

PS : no problem on other servers with mongo2

@jeromelebel
Copy link
Owner

can you explain me how you added the password to mongodb?

@jeromelebel
Copy link
Owner

Did you put "test" in the connection panel?

@dustinblackman
Copy link
Author

I get the same error, and this is likely an issue with the driver. I had the same problem with the Python and PHP driver stating that it couldn't auth, until I did an upgrade and then everything was normal.

@lelandcope
Copy link

Im also getting the same error above on the latest version. My user name and passwords were setup using Mongodb MMS system. I hope that helps.

@PierreBrisorgueil
Copy link

Yep, something like this,

use test
db.createUser(
{
user: "user",
pwd: "pwd",
roles: [ { role: "userAdmin", db: "test" } ]
}
)

capture d ecran 2015-03-06 a 20 42 07

i will try quickly with no auth for tcheck.

@jeromelebel
Copy link
Owner

I don't have any issue with that test. Of course it doesn't work if I don't specify the database name, but with, it works.

@dustinblackman
Copy link
Author

Ah, seems I've found the issue. All good on my end. My mistake!

@PierreBrisorgueil
Copy link

Ok, thanks for all 👍 , i will test with a clean install tonight :)

@PierreBrisorgueil
Copy link

Ok it's good with a clean install 👍 Thanks for all :)

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

No branches or pull requests

4 participants