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

Still not able to connect to MongoHQ hosted databases after 2.3.0 #100

Closed
ygbr opened this Issue Apr 4, 2013 · 17 comments

Comments

Projects
None yet
5 participants
@ygbr

ygbr commented Apr 4, 2013

Hi,

I have a MongoHQ hosted database (MongoDB 2.4.1) (large) and I still can't connect using the standard dsn:

user:pass@server:port/database

I always get the following error:

Connections error: unauthorized

I have also tried adding the mongodb:// prefix to the URI but it changes nothing.

I have bson_ext installed and I'm running the latest 2.3.0 on Mac OS X 10.8.3

@bobthecow

This comment has been minimized.

Show comment
Hide comment
@bobthecow

bobthecow Apr 4, 2013

Owner

Do you have special characters in any of the DSN chunks that need to be URI escaped?

Owner

bobthecow commented Apr 4, 2013

Do you have special characters in any of the DSN chunks that need to be URI escaped?

@ygbr

This comment has been minimized.

Show comment
Hide comment
@ygbr

ygbr Apr 4, 2013

not really... my username an password are all alphanumeric standard chars...

ygbr commented Apr 4, 2013

not really... my username an password are all alphanumeric standard chars...

@elia

This comment has been minimized.

Show comment
Hide comment
@elia

elia Apr 12, 2013

I seem to have the same problem with mongolab.com, like if tries to get admin access

elia commented Apr 12, 2013

I seem to have the same problem with mongolab.com, like if tries to get admin access

@bobthecow

This comment has been minimized.

Show comment
Hide comment
@bobthecow

bobthecow Apr 14, 2013

Owner

Is it possible you're running into the same issue as Meteor hosted mongo instances have?

See #102

Owner

bobthecow commented Apr 14, 2013

Is it possible you're running into the same issue as Meteor hosted mongo instances have?

See #102

@elia

This comment has been minimized.

Show comment
Hide comment
@elia

elia Apr 15, 2013

@bobthecow don't think so, the password is static

elia commented Apr 15, 2013

@bobthecow don't think so, the password is static

@jcurtis

This comment has been minimized.

Show comment
Hide comment
@jcurtis

jcurtis Apr 17, 2013

Same issue here (MongoLab), was just working fine in 2.3.0 mere minutes ago.

jcurtis commented Apr 17, 2013

Same issue here (MongoLab), was just working fine in 2.3.0 mere minutes ago.

@bobthecow

This comment has been minimized.

Show comment
Hide comment
@bobthecow

bobthecow Apr 17, 2013

Owner

@jcurtis So v2.3.0 was working with MongoLab, and now it's not? Or now v2.3.1 isn't?

Owner

bobthecow commented Apr 17, 2013

@jcurtis So v2.3.0 was working with MongoLab, and now it's not? Or now v2.3.1 isn't?

@jcurtis

This comment has been minimized.

Show comment
Hide comment
@jcurtis

jcurtis Apr 17, 2013

Yes v2.3.0 was working with MongoLab, then I did a gem update to bring Genghis up to v2.3.1 plus dependency updates. After that there were authentication errors when trying to connect to the database.

Bonus: I downgraded Geng to v2.3.0 and there are still authentication errors leading me to believe it's a problem with one of the dependencies I updated.

jcurtis commented Apr 17, 2013

Yes v2.3.0 was working with MongoLab, then I did a gem update to bring Genghis up to v2.3.1 plus dependency updates. After that there were authentication errors when trying to connect to the database.

Bonus: I downgraded Geng to v2.3.0 and there are still authentication errors leading me to believe it's a problem with one of the dependencies I updated.

@bobthecow

This comment has been minimized.

Show comment
Hide comment
@bobthecow

bobthecow Apr 17, 2013

Owner

@jcurtis That's great to know. Do you happen to still have that terminal window open so you can see what updated? Do you mind checking what versions of bson, bson_ext, mongo and sinatra gems you were last using?

gem list | grep 'bson\|mongo\|sinatra'
Owner

bobthecow commented Apr 17, 2013

@jcurtis That's great to know. Do you happen to still have that terminal window open so you can see what updated? Do you mind checking what versions of bson, bson_ext, mongo and sinatra gems you were last using?

gem list | grep 'bson\|mongo\|sinatra'
@jcurtis

This comment has been minimized.

Show comment
Hide comment
@jcurtis

jcurtis Apr 17, 2013

bson (1.8.5, 1.8.4, 1.8.2, 1.7.1)
bson_ext (1.8.5, 1.8.2)
mongo (1.8.5, 1.8.2, 1.7.1)
sinatra (1.4.2, 1.3.4)
sinatra-contrib (1.4.0, 1.3.2)
sinatra-mustache (0.1.0, 0.0.6)

Looks like they we're all updated when I did the upgrade.

jcurtis commented Apr 17, 2013

bson (1.8.5, 1.8.4, 1.8.2, 1.7.1)
bson_ext (1.8.5, 1.8.2)
mongo (1.8.5, 1.8.2, 1.7.1)
sinatra (1.4.2, 1.3.4)
sinatra-contrib (1.4.0, 1.3.2)
sinatra-mustache (0.1.0, 0.0.6)

Looks like they we're all updated when I did the upgrade.

@bobthecow

This comment has been minimized.

Show comment
Hide comment
@bobthecow

bobthecow Apr 17, 2013

Owner

Thanks. I'll dig into this when I get a minute.

Owner

bobthecow commented Apr 17, 2013

Thanks. I'll dig into this when I get a minute.

@bobthecow

This comment has been minimized.

Show comment
Hide comment
@bobthecow

bobthecow Apr 20, 2013

Owner

This works:

bson (1.8.2)
mongo (1.8.2)
sinatra (1.3.4)
sinatra-contrib (1.3.2)
sinatra-mustache (0.1.0)

This works:

bson (1.8.2)
mongo (1.8.2)
sinatra (1.4.2)
sinatra-contrib (1.4.0)
sinatra-mustache (0.1.0)

... so the latest versions of all dependencies besides bson and mongo work just fine.

This works:

bson (1.8.5)
mongo (1.8.2)

And that's the latest version of every gem except mongo. I.e., it's gotta be the mongo gem.

This works:

mongo (1.8.3)

But this fails!

mongo (1.8.4)

So something changed in v1.8.4 of the mongo gem which is keeping us from connecting to MongoHQ databases.

Thanks for pointing me in this direction, @jcurtis

I'll keep digging :)

Owner

bobthecow commented Apr 20, 2013

This works:

bson (1.8.2)
mongo (1.8.2)
sinatra (1.3.4)
sinatra-contrib (1.3.2)
sinatra-mustache (0.1.0)

This works:

bson (1.8.2)
mongo (1.8.2)
sinatra (1.4.2)
sinatra-contrib (1.4.0)
sinatra-mustache (0.1.0)

... so the latest versions of all dependencies besides bson and mongo work just fine.

This works:

bson (1.8.5)
mongo (1.8.2)

And that's the latest version of every gem except mongo. I.e., it's gotta be the mongo gem.

This works:

mongo (1.8.3)

But this fails!

mongo (1.8.4)

So something changed in v1.8.4 of the mongo gem which is keeping us from connecting to MongoHQ databases.

Thanks for pointing me in this direction, @jcurtis

I'll keep digging :)

@bobthecow

This comment has been minimized.

Show comment
Hide comment
@bobthecow

bobthecow Apr 20, 2013

Owner

The result of the Mongo uri parser changing unexpectedly in 1.8.4. This commit, specifically.

Hooray SemVer!

I'm releasing a workaround in v2.3.4 — out later this afternoon — but the real fix is to expect the mongo gem to make backwards compatiblity breaks in point releases and start requiring an explicit version for Genghis. I hate to do it, but this — and several past issues — really leaves me no choice.

Owner

bobthecow commented Apr 20, 2013

The result of the Mongo uri parser changing unexpectedly in 1.8.4. This commit, specifically.

Hooray SemVer!

I'm releasing a workaround in v2.3.4 — out later this afternoon — but the real fix is to expect the mongo gem to make backwards compatiblity breaks in point releases and start requiring an explicit version for Genghis. I hate to do it, but this — and several past issues — really leaves me no choice.

@bobthecow bobthecow closed this in 9387c71 Apr 20, 2013

@bobthecow

This comment has been minimized.

Show comment
Hide comment
@bobthecow

bobthecow Apr 20, 2013

Owner

v2.3.4 has been released. Please upgrade and check it out!

Owner

bobthecow commented Apr 20, 2013

v2.3.4 has been released. Please upgrade and check it out!

@jcurtis

This comment has been minimized.

Show comment
Hide comment
@jcurtis

jcurtis Apr 20, 2013

image
Glad I could help. Love the app btw.

jcurtis commented Apr 20, 2013

image
Glad I could help. Love the app btw.

@brblck

This comment has been minimized.

Show comment
Hide comment
@brblck

brblck Apr 20, 2013

Sorry for the issues here guys.

This read-only method on MongoClient is actually not documented publicly and was intended primarily for internal use which is why we mistakenly made the change in that version, but the fact that it's not marked private makes that all a moot point. It shouldn't have happend. :-/

brblck commented Apr 20, 2013

Sorry for the issues here guys.

This read-only method on MongoClient is actually not documented publicly and was intended primarily for internal use which is why we mistakenly made the change in that version, but the fact that it's not marked private makes that all a moot point. It shouldn't have happend. :-/

@bobthecow

This comment has been minimized.

Show comment
Hide comment
@bobthecow

bobthecow Apr 21, 2013

Owner

@jcurtis Thank you :)

@brandonblack No worries, this sort of thing happens. Thanks for everything you and the rest of the driver team do.

Owner

bobthecow commented Apr 21, 2013

@jcurtis Thank you :)

@brandonblack No worries, this sort of thing happens. Thanks for everything you and the rest of the driver team do.

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