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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.