bug report ADMIN CP -> Advance -> Database

Technical Support
  • 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.

  • Thanks @dwatley for your insight 😄


Suggested Topics


  • 0 Votes
    7 Posts
    1304 Views
  • Default Admin Password

    Unsolved Technical Support
    0 Votes
    4 Posts
    5344 Views
  • 0 Votes
    12 Posts
    4967 Views
  • 0 Votes
    1 Posts
    1255 Views
  • 0 Votes
    5 Posts
    1591 Views