Db.json: Authentication failed

Hello,
I have tried a lot and read many issues in this forum, but could not find any solution for me.

  1. I am trying to read my vasprun.xml files and analyze them.
    my db.json file looks so:

{
“host”: “localhost”,
“port”: 27017,
“database”: “vasp”,
“collection”: “tasks”,
“admin_user”: “admin_user”,
“admin_password”: “admin_user”,
“readonly_user”: “readonly_user”,
“readonly_password”: “readonly_user”,
“aliases”: {},
“authsource”:“vasp”
}

I have tried to remove the parameter “authsource” and other variants, but is still giving me this error back: pymongo.errors.OperationFailure: Authentication failed.

  1. If I am using mongo without authentication(means: remove the last lines) it works and creates the db (visible in mongodb)
  2. If I am using not the atomate , but firework it works also, code listing:
    for path in paths:
    tasks.append(VaspToDb(calc_dir=path))

launchpad = LaunchPad()
launchpad.reset(’’, require_password=False)

fw = Firework(tasks)
wf = Workflow([fw], name=“test workflow”)
launchpad.add_wf(wf)
rapidfire(launchpad)

Could you help me? My approaches are unfortunately over.

Thank you in advance.

Best regards,
yayapa

Should I wait for a reply. Or just leave the idea? Please, write shortly if it is not worth of waiting, I will understand. Or just you could recommend me something in the direction: reading vasprun.xml files for future working with data and maybe creating descriptors for machine learning approaches. Maybe just keywords and search direction.

I‘ll be grateful.

Best regards,

hello yayapa,

you can check the post named

Unable to connect to MongoDB via db.json

here is the link
https://matsci.org/t/unable-to-connect-to-mongodb-via-db-json/

this is similar to what you asked