Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-722

Intermittent assertion 13 not authorized for query

      Some queries fail with a MongoError: not authorized for query error.
      Looking at the database logs, it seems that on re-connection, queries are sometimes executed before the authentication takes place.

      My logs:

      2016-06-01T14:21:04.428+0000 [initandlisten] connection accepted from 10.3.10.10:49571 #1214467 (33 connections now open)
      2016-06-01T14:21:04.454+0000 [conn1214467] assertion 13 not authorized for query on iwecore1.54f6d527f6b4aa13006b2cfa.iwe-Report ns:iwecore1.54f6d527f6b4aa13006b2cfa.iwe-Report query:{ 
      _id: ObjectId('56a10458586a4e1e00ed2237') }
      2016-06-01T14:21:04.454+0000 [conn1214467]  ntoskip:0 ntoreturn:1
      2016-06-01T14:21:04.454+0000 [conn1214467]  authenticate db: iwecore1 { authenticate: 1, user: "iwecore", nonce: "xxx", key: "xxx" }
      

      I have rolled back to node-mongodb-native 2.1.18 because the problem seems to appear in later versions.

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            jfaissolle Julien Faissolle
            Votes:
            4 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: