bug report ADMIN CP -> Advance -> Database



  • ADMIN CP -> Advance -> Database
    nodebb version: master ( > 1.4.2 )

    2/1 00:16:06 [9817] - error: /api/admin/advanced/database
     MongoError: not authorized on nodebb to execute command { serverStatus: 1 }
        at Function.MongoError.create (/home/nodeBB/forum/node_modules/mongodb-core/lib/error.js:31:11)
        at /home/nodeBB/forum/node_modules/mongodb-core/lib/connection/pool.js:483:72
        at authenticateStragglers (/home/nodeBB/forum/node_modules/mongodb-core/lib/connection/pool.js:429:16)
        at null.messageHandler (/home/nodeBB/forum/node_modules/mongodb-core/lib/connection/pool.js:463:5)
        at Socket.<anonymous> (/home/nodeBB/forum/node_modules/mongodb-core/lib/connection/connection.js:317:22)
        at emitOne (events.js:77:13)
        at Socket.emit (events.js:169:7)
        at readableAddChunk (_stream_readable.js:153:18)
        at Socket.Readable.push (_stream_readable.js:111:10)
        at TCP.onread (net.js:536:20)
    

    node version

    { nodebb: '1.4.2',
      npm: '4.0.5',
      ares: '1.10.1-DEV',
      http_parser: '2.7.0',
      icu: '56.1',
      modules: '48',
      node: '6.0.0',
      openssl: '1.0.2g',
      uv: '1.9.0',
      v8: '5.0.71.35',
      zlib: '1.2.8'
     }
    


  • I ran into the same issue. See this thread: https://community.nodebb.org/topic/6460/database-status/7

    You need to grant the clusterMonitor role to the nodebb user. Documentation should be updated to reflect that.


  • Admin

    Thanks @dwatley for your insight :smile:


Log in to reply
 

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.