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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    database error

    NodeBB
    mongodb
    3
    4
    285
    Loading More Posts
    • 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.
    • JohnGuan
      JohnGuan last edited by girish

      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 Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        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.

        JohnGuan 1 Reply Last reply Reply Quote 0
        • JohnGuan
          JohnGuan @nebulon last edited by JohnGuan

          @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 Reply Quote 0
          • girish
            girish Staff last edited by

            @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 Reply Quote 0
            • First post
              Last post
            Powered by NodeBB