Giter Site home page Giter Site logo

SCRAM-SHA-1 auth mechanism is only supported in single mongod instance, not yet in replication set instances. about mongodb-erlang HOT 7 CLOSED

comtihon avatar comtihon commented on August 28, 2024
SCRAM-SHA-1 auth mechanism is only supported in single mongod instance, not yet in replication set instances.

from mongodb-erlang.

Comments (7)

comtihon avatar comtihon commented on August 28, 2024

I'll check it.

from mongodb-erlang.

wcreek avatar wcreek commented on August 28, 2024

I'm experiencing the same issue:
** exception error: {bad_query,{'$err',<<"not authorized for query on ppns2.apps">>,
code,13}}
in function mc_connection_man:process_error/2 (src/connection/mc_connection_man.erl, line 57)
in call from mc_action_man:read_one/2 (src/core/mc_action_man.erl, line 22)

from mongodb-erlang.

comtihon avatar comtihon commented on August 28, 2024

Could you please try mongodb java driver with your configuration?

from mongodb-erlang.

wcreek avatar wcreek commented on August 28, 2024

I'm using it with a Ruby driver 2.0.5 and it works fine:
DEBUG -- : MONGODB | COMMAND | namespace=ppns2.$cmd selector={:saslStart=>1, :autoAuthorize=>1, :payload=><BSON::Binary:0x70222595582220 type=generic data=n,,n=wri...>, :mechanism=>"SCRAM-SHA-1"} flags=[] limit=-1 skip=0 project=nil

from mongodb-erlang.

alttagil avatar alttagil commented on August 28, 2024

It seems that I hit all the walls. I try to insert some data to collection to the replica set of mongod 3 and I get

mongo:insert(Conn3, <<"aux">>, bson:document( Data )).
** exception error: {bad_query,{write_failure,13,
<<"not authorized for insert on mi-aux.aux">>}}
in function mc_connection_man:process_error/2 (src/connection/mc_connection_man.erl, line 56)
in call from mongo:insert/3 (src/api/mongo.erl, line 86)
in call from mongo:insert/3 (src/api/mongo.erl, line 83)

from mongodb-erlang.

comtihon avatar comtihon commented on August 28, 2024

For now I advice you to use 2.6 auth in 3 mongo set. I have lack of time, so I can't fix it immediately.

from mongodb-erlang.

comtihon avatar comtihon commented on August 28, 2024

fixed in #82

from mongodb-erlang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.