Comments (7)
I'll check it.
from mongodb-erlang.
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.
Could you please try mongodb java driver with your configuration?
from mongodb-erlang.
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.
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.
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.
fixed in #82
from mongodb-erlang.
Related Issues (20)
- Can this driver used with ejabberd HOT 9
- value is string HOT 1
- It doesn't seem to support 4.2
- Generic server terminating HOT 4
- Issue connecting to ReplicaSet HOT 2
- Issue connecting to ReplicaSet HOT 7
- Failed to update package rebar_ct from repo hexpm HOT 3
- Are distinct and aggregate command supported? HOT 2
- Maintenance plans? HOT 2
- MongoDB 4.2 cluster "Can't pass authentification" in 2nd erlang node HOT 8
- API Consistency Question HOT 1
- Connection Pool Issue HOT 2
- How to use SSL? HOT 2
- Is collation supported?
- undefined function erlang:get_stacktrace/0 HOT 1
- Exceeded memory limit for $group, but didn't allow external sort. Pass allowDiskUse:true
- Add support for MongoDB 6.X+ HOT 15
- How can I create/drop a collection using the driver HOT 1
- Master-slave switchover error
- Can't canonicalize query :: caused by :: unknown operator: $maxDistance
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongodb-erlang.