DataStax Help Center

Opscenter unable to connect with "Bad credentials" error message

Summary

Opscenter is unable to connect and shows "Bad Credentials" error message even though the cassandra username and password are correct.

Symptoms

The complete error message in opscenterd.log is like below:

INFO: Starting factory <cassandra.io.twistedreactor.TwistedConnectionClientFactory instance at 0x7feb66de5320>
INFO: Stopping factory <cassandra.io.twistedreactor.TwistedConnectionClientFactory instance at 0x7feb66de5320>
[ProvisioningDB] WARN: [control connection] Error connecting to x.x.x.x: Failed to authenticate to x.x.x.x: code=0100 [Bad credentials] message="Username and/or password are incorrect"
[ProvisioningDB] ERROR: Control connection failed to connect, shutting down Cluster: ('Unable to connect to any servers', {'x.x.x.x': AuthenticationFailed(u'Failed to authenticate to x.x.x.x: code=0100 [Bad credentials] message="Username and/or password are incorrect"',)})
[ProvisioningDB] WARN: No cassandra connection available for hostlist ["DB01'] . Retrying.
[ProvisioningDB] WARN: HTTP request https://y.y.y.y:61621/alive? failed: [<twisted.python.failure.Failure <class 'OpenSSL.SSL.Error'>>]
[ProvisioningDB] WARN: HTTP request https://y.y.y.y:61621/alive? failed: [<twisted.python.failure.Failure <class 'OpenSSL.SSL.Error'>>]
[ProvisioningDB] WARN: HTTP request https://y.y.y.y:61621/alive? failed: [<twisted.python.failure.Failure <class 'OpenSSL.SSL.Error'>>]

Cause

This error is generally caused by incorrect cassandra username or password - the credentials needed to the agents to connect to the cassandra nodes.

However, this error message has been also observed on Ubuntu after an upgrade of  openssl 1.0.1f-1ubuntu2.19 which changes minimum DH size from 768 to 1024. Datastax 4.8 is still using DH key size 768bit but that is no more accepted by openssl1.0.1 which requires 1024bit DH key. This issue is only hit when using java 7.

Workaround and solution

Upgrade to java 8.

Reference

internal jira: OPSC-8875

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk