Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. NodeBB
  3. database error

database error

Scheduled Pinned Locked Moved NodeBB
mongodb
4 Posts 3 Posters 892 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JohnGuanJ Offline
    JohnGuanJ Offline
    JohnGuan
    wrote on last edited by girish
    #1

    when I was open the /admin/advanced/database, its shown below info:


    NodeBB was unable to query the MongoDB database for relevant statistics. Please ensure that the user in use by NodeBB contains the "clusterMonitor" role for the "admin" database.
    
    not authorized on <databaseName> to execute command { serverStatus: 1, lsid: { id: UUID("<UUID>") }, $clusterTime: { clusterTime: Timestamp(1600924060, 4), signature: { hash: BinData(0, <something>), keyId: <keyId> } }, $db: "<databaseName>" }
    

    <> Some information is hidden

    1 Reply Last reply
    0
    • nebulonN Away
      nebulonN Away
      nebulon
      Staff
      wrote on last edited by
      #2

      This is actually expected. On Cloudron the mongodb is shared across all app instances requiring mongodb and thus the allocated mongodb user for an app runs with limited rights.

      I guess we have to see if enabling https://docs.mongodb.com/manual/reference/built-in-roles/#clusterMonitor is harmful across apps or not.

      JohnGuanJ 1 Reply Last reply
      0
      • nebulonN nebulon

        This is actually expected. On Cloudron the mongodb is shared across all app instances requiring mongodb and thus the allocated mongodb user for an app runs with limited rights.

        I guess we have to see if enabling https://docs.mongodb.com/manual/reference/built-in-roles/#clusterMonitor is harmful across apps or not.

        JohnGuanJ Offline
        JohnGuanJ Offline
        JohnGuan
        wrote on last edited by JohnGuan
        #3

        @nebulon If so, how do you recommend backing up the nodebb's MongoDB and files? and how to import data from old server?

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @JohnGuan If you want to backup NodeBB's mongodb, then go to the app's backup -> create backup. In the backup, there will be a mongodbdump file.

          As for importing, please see https://docs.cloudron.io/guides/import-mongodb/

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search