Message "MongoError: not authorized for query on" is shown in the logs

Solution Verified - Updated -

Issue

  • Message MongoError: not authorised for query on" is shown in the logs

The following is an example of this error in the DataBrowse upgrade.

21-02-2017 1:36:09: Migration of collection XXXXX completed.21-02-2017 1:36:09: Verifying migrated collections.21-02-2017 1:36:09: Migration failed due to error : MongoError: not authorized for query on domain-qwemqwenuy1231mnk-ddd-prod.system.namespaces

The following is an example of this error in the logs of the application when it is using $fh.db method.

{ [MongoError: not authorized for query on domain-qwemqwenuy1231mnk-ddd-prod]
  name: 'MongoError',
  message: 'not authorized for query on domain-qwemqwenuy1231mnk-ddd-prod',
  '$err': 'not authorized for query on domain-qwemqwenuy1231mnk-ddd-prod',
  code: 16550 }

Environment

  • Red Hat Mobile Application Platform ( RHMAP ) - 3.15.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content