Skip to content

<database>.sytem.namespaces deprecated in mongo 4.2+ #251

@kwisatz

Description

@kwisatz

The replication lag check for instance tries to run a find query on local.system.namespaces which mongo answers with

  "errmsg" : "not authorized on local to execute command { find: \"system.namespaces\", filter: {}, …

The problem is most likely not authorization though, but deprecation (CMIIW).
See https://docs.mongodb.com/manual/reference/system-collections/#%3Cdatabase%3E.system.namespaces

The find query should be replaced by a call to listCollections which is covered by the clusterMonitor role.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions