Hi all, I'm having an issue while provisioning OpenConext to a machine. For some reason authentication with the mongodb is failing. I have the following entries in my secrets file:
mongo_passwords:
manage: <manage_password>
mongo_admin_password: <admin_password>
I've tried connecting to the mongodb manually, but I am not able to authenticate either. I'm very confused as to why this is happening. Any suggestions on how to proceed would be greatly appreciated.
This is the stacktrace:
<172.19.53.26> (0, '', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 30868\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
The full traceback is:
Traceback (most recent call last):
File "/tmp/ansible_r1HH0_/ansible_module_mongodb_user.py", line 398, in main
client.admin.authenticate(login_user, login_password, source=login_database)
File "/usr/lib64/python2.7/site-packages/pymongo/database.py", line 1167, in authenticate
connect=True)
File "/usr/lib64/python2.7/site-packages/pymongo/mongo_client.py", line 588, in _cache_credentials
sock_info.authenticate(credentials)
File "/usr/lib64/python2.7/site-packages/pymongo/pool.py", line 620, in authenticate
auth.authenticate(credentials, self)
File "/usr/lib64/python2.7/site-packages/pymongo/auth.py", line 486, in authenticate
auth_func(credentials, sock_info)
File "/usr/lib64/python2.7/site-packages/pymongo/auth.py", line 466, in _authenticate_default
return _authenticate_scram_sha1(credentials, sock_info)
File "/usr/lib64/python2.7/site-packages/pymongo/auth.py", line 237, in _authenticate_scram_sha1
res = sock_info.command(source, cmd)
File "/usr/lib64/python2.7/site-packages/pymongo/pool.py", line 517, in command
collation=collation)
File "/usr/lib64/python2.7/site-packages/pymongo/network.py", line 125, in command
parse_write_concern_error=parse_write_concern_error)
File "/usr/lib64/python2.7/site-packages/pymongo/helpers.py", line 145, in _check_command_response
raise OperationFailure(msg % errmsg, code, response)
OperationFailure: Authentication failed.
fatal: [172.19.53.26]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"database": "manage",
"login_database": "admin",
"login_host": "localhost",
"login_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"login_port": "27017",
"login_user": "admin",
"name": "managerw",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"replica_set": null,
"roles": [
"readWrite"
],
"ssl": false,
"ssl_cert_reqs": "CERT_REQUIRED",
"state": "present",
"update_password": "always"
}
},
"msg": "unable to connect to database: Authentication failed."
}
to retry, use: --limit @/home/jblok/OpenConext-deploy-2/provision-beng-clariah-acc.retry
PLAY RECAP **************************************************************************************************************************
172.19.53.26 : ok=303 changed=1 unreachable=0 failed=1