UserNotFound:找不到用户admin @ automation [英] UserNotFound: Could not find user admin@automation

查看:645
本文介绍了UserNotFound:找不到用户admin @ automation的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试按以下方式启动Mongodb实例,并遇到如下错误,该如何调试?请提供有关如何纠正此错误的指导

I am trying to launch a Mongodb instance as follows and running into error as below, how do I debug this?please provide guidance on how to fix this error

mongo automation --host machine40.scv.company.com -u admin -p passd

2018-05-15T21:11:30.346-0700 I ACCESS   [conn3] SCRAM-SHA-1 authentication failed for admin on automation from client 17.xxx.xxx.x:54756 ; UserNotFound: Could not find user admin@automation

推荐答案

请参考以下步骤.

1)以超级管理员用户身份登录mongo控制台.

1) log into mongo console as super admin user.

mongo admin --host machine40.scv.company.com -u admin -p passd

2)然后检查是否有任何可以验证访问自动化"数据库的用户呼叫admin. 输出示例如下

2) Then check, is there any user call admin who can authenticate to access "automation" DB. Sample output given below

{
    "_id" : "XXXXXX",
    "user" : "admin",
    "db" : "automation",
    "roles" : [
        {
            "role" : "root",
            "db" : "automation"
        }
    ]
}

这篇关于UserNotFound:找不到用户admin @ automation的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆