前提・実現したいこと
atomateを用いた計算の自動化に取り組んでおります。
pymongoをupdateしたところ、Authentication failedが表示されるようになりました。
下記のサイトを元にエラー解消を試みましたが、それすら同様のエラーで弾かれている状態です。
https://stackoverflow.com/questions/36200288/mongolab-pymongo-connection-error/36201416
些細な情報でも構わないのでよろしくお願い致します。
発生している問題・エラーメッセージ
Traceback (most recent call last): File "a.py", line 4, in <module> db.authenticate('fw_admin', 'fw_admin@cmslab') File "/home/kamatani/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pymongo/database.py", line 1346, in authenticate connect=True) File "/home/kamatani/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pymongo/mongo_client.py", line 647, in _cache_credentials sock_info.authenticate(credentials) File "/home/kamatani/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pymongo/pool.py", line 693, in authenticate auth.authenticate(credentials, self) File "/home/kamatani/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pymongo/auth.py", line 565, in authenticate auth_func(credentials, sock_info) File "/home/kamatani/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pymongo/auth.py", line 540, in _authenticate_default return _authenticate_scram(credentials, sock_info, 'SCRAM-SHA-1') File "/home/kamatani/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pymongo/auth.py", line 264, in _authenticate_scram res = sock_info.command(source, cmd) File "/home/kamatani/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pymongo/pool.py", line 584, in command user_fields=user_fields) File "/home/kamatani/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pymongo/network.py", line 158, in command parse_write_concern_error=parse_write_concern_error) File "/home/kamatani/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pymongo/helpers.py", line 155, in _check_command_response raise OperationFailure(msg % errmsg, code, response) pymongo.errors.OperationFailure: Authentication failed.
該当のソースコード
import pymongo connection = pymongo.MongoClient('192.168.114.80', 27017) db = connection['admin'] db.authenticate('fw_admin', 'fw_admin@cmslab')
補足情報(FW/ツールのバージョンなど)
atomateのドキュメントのうち、現在取り組んでいるものが次になります。
https://atomate.org/installation.html
https://atomate.org/running_workflows.html#analyzing-a-bandstructure-workflow
pymongoのバージョンは3.8.0になります。
pymongoのドキュメント
http://api.mongodb.com/python/current/examples/authentication.html
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。