Can`t query on Mongo 3.0.7 db

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.0.7
    • Component/s: Querying
    • None
    • Environment:
      Ubuntu 14.0.4
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hi ,

      I have installed a mongo 3.0.7 server on a Ubuntu 14.0.4 image .
      I have added a db called "foo " , than added a user called "poo" with the following roles "dbAdmin". "dbOwner", "readWrite", "userAdmin" (all this are built in roles).
      However even if my user is able to authenticate and query when I try from the mongo shell or another mongo tool like (MongoChef) , when I try to query from my .net Application I get an error saying that my user is not authorized for query ("MongoDB.Driver.MongoQueryException: QueryFailure flag was true (response was { \"$err\" : \"not authorized for query")

      The mongo .net driver version I`m using in my app is 2.1.1 (I have also tried with 2.1.0)
      Is this a compatibility issue between 3.0.7 and the .net mongo driver 2.1.x ?
      The mongo version I installed , is the latest stable version according to the mongo db official documentation
      "(Install the latest stable version of MongoDB.
      Issue the following command:
      sudo apt-get install -y mongodb-org)"

            Assignee:
            Unassigned
            Reporter:
            Vlad Solcan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: