database error
-
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
-
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 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/