0
私はHerokuで運用されているプロダクションとステージングバージョンで作業しています。私は、この行の書き込みステージング上のmongoシェルにアクセスしたいときは:mongo <host/app> -u <username> -p <password>
を(<で>私の情報でremplaced)私はこのエラーがあります:Mongob、mongoLab、Heroku(ステージング)とレール:認証に失敗しました
2016-12-21T11:34:43.861+0100 E QUERY [thread1] Error: Authentication failed. :
[email protected]/mongo/shell/db.js:1441:20
@(auth):6:1
@(auth):1:2
exception: login failed
それは生産のためではなく、ステージングのために働きます。 そして、私はこのエラーを持っているすべての情報をmongorestoreをしたいとき:
Failed: error connecting to db server: server returned error on SASL authentication step: Authentication failed
誰かが私を助けることができるのか?