0

while using it in application it shows operation error.. while readWrite, dbOwner and dbAdmin role was defined for the users it shows

OperationFailure: database error: not authorized for query on database. pymongo version: 2.6.3 django-mongokit : 0.2.6 mongokit - 0.9.1 mongodb version v2.6.7

while i provided read-write and dbowner role for the user that i m using in application

seems a problem with mongokit.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Amit
  • 41
  • 1
  • 6
  • Please give us more information. Show us the code you are using to authenticate. The most common reason for problems like this is that you are not authenticating to the database where the user was defined. – wdberkeley Jan 30 '15 at 19:00
  • I put this in django settings.py like this 'mongodb': { 'ENGINE': 'django_mongokit.mongodb', 'NAME': 'delhivery_db', 'USER': '********', 'PASSWORD': '*******', 'HOST': '10.***.***.***', 'PORT': 27017, }, – Amit Feb 03 '15 at 12:45
  • What database does that user live in? Is it `delivery_db`? Did you misspell `delivery_db` as `delhivery_db`? – wdberkeley Feb 03 '15 at 15:44
  • no, not misspelled. user lives in delhivery_db database. – Amit Feb 05 '15 at 07:21

0 Answers0