Skip to content

Add setup hint for Atlas users: ssl: true + authsource: admin needed in my_launchpad.yaml #635

Description

@janosh

Would it be possible to add a note to the my_launchpad.yaml section of setup docs notifying users of MongoDB Atlas that passing the connection test

lpad -l config/my_launchpad.yaml reset

requires adding ssl: true and authsource: admin to my_launchpad.yaml

host: mongodb+srv://atomate-cluster.<DB_ID>.mongodb.net
port: 27017
name: atomate-cluster
username: janosh
password: foobar
ssl_ca_file: null
logdir: null
strm_lvl: INFO
user_indices: []
wf_user_indices: []
# new
ssl: true # required
authsource: admin # required

Without ssl: true, I'm getting

pymongo.errors.ServerSelectionTimeoutError: connection closed,connection closed,connection closed, Timeout: 30s, Topology Description: <TopologyDescription id: 607731cd0963ed07169e2ed6, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('atomate-cluster-shard-00-00.q8s9p.mongodb.net', 27017)

and without authsource: admin, the error is

pymongo.errors.OperationFailure: Authentication failed., full error: {'ok': 0, 'errmsg': 'Authentication failed.', 'code': 8000, 'codeName': 'AtlasError'}

Alternatively, perhaps worth considering changing the default ssl to True.

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementreported issues that considered further improvement to atomate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions