【问题标题】:command failed: MongoError: CMD_NOT_ALLOWED: profile命令失败:MongoError:CMD_NOT_ALLOWED:配置文件
【发布时间】:2020-02-01 01:01:45
【问题描述】:

我正在使用 Atlas free 集群 mongodb 并尝试启用分析器以进行监控,并且我在集群上拥有 Atlas Admin 访问权限

在设置中,如上图所示启用分析器选项

当我运行命令db.setProfilingLevel(2) 时出现以下错误:

MongoDB Enterprise Cluster0-shard-0:PRIMARY> db.setProfilingLevel(2)
2020-02-01T11:52:51.976+1100 E  QUERY    [js] uncaught exception: Error: command failed: {
    "ok" : 0,
    "errmsg" : "CMD_NOT_ALLOWED: profile",
    "code" : 8000,
    "codeName" : "AtlasError"
} :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
doassert@src/mongo/shell/assert.js:18:14
_assertCommandWorked@src/mongo/shell/assert.js:583:17
assert.commandWorked@src/mongo/shell/assert.js:673:16
DB.prototype.setProfilingLevel@src/mongo/shell/db.js:681:12
@(shell):1:1

【问题讨论】:

    标签: mongodb mongodb-query mongo-shell mongodb-atlas


    【解决方案1】:

    Mongodb Atlas 免费层块分析选项。

    您可以在下面找到 Mongodb Atlas 免费层中不允许的操作

    https://docs.atlas.mongodb.com/reference/unsupported-commands/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-07
      • 2019-02-08
      • 2022-01-04
      • 2020-04-27
      • 2021-07-10
      相关资源
      最近更新 更多