globalsign / mgo

The MongoDB driver for Go
Other
1.97k stars 230 forks source link

SCRAM-SHA-1 authentication failed, storedKey mismatch #252

Open lukatendai opened 6 years ago

lukatendai commented 6 years ago

After compiling to 32bit x86 version with go 1.11 I cannot connect to the database; the error in mongo log is "SCRAM-SHA-1 authentication failed, storedKey mismatch" Anybody else has similar problem.

It works OK with go 1.10.4

eminano commented 6 years ago

Hi @lukatendai,

Which mongo version are you using?

Thanks, Esther

lukatendai commented 6 years ago

MongoDB server version: 3.6.2

eminano commented 6 years ago

@lukatendai, could you please provide a step to step reproduction of the issue (from blank cluster to error message, including connection command)?

Will try to reproduce on our side as soon as we have enough info.

Thanks, Esther

lukatendai commented 6 years ago

I will try too... the whole environment was setup long time ago and it was working fine with original mgo driver and with your driver till I updated go to version 1.11.

When I find time I will try to create brand new setup with sample code and see if I am getting the same issue. But I believe the problem is when I use your driver in a program that is compiled to 32 bit x86 Linux

domodwyer commented 6 years ago

Hi @lukatendai

Just to help diagnosing - does the above mean you've tried with a 64bit-compiled client application and it works as expected in the same MongoDB environment? If so sounds like a possible casting issue and should be easier to track down.

Dom

lukatendai commented 6 years ago

does the above mean you've tried with a 64bit-compiled client application and it works as expected in the same MongoDB environment?

Correct... 64bit version connects to the database without issue