“Validation is enabled; SSL transport factory requires a valid certfile to be specified” error when logging in to Cassandra
book
Article ID: 329001
calendar_today
Updated On:
Products
VMware Aria Suite
Issue/Introduction
Symptoms:
Logging into Cassandra fails.
You see the error similar to:
Validation is enabled; SSL transport factory requires a valid certfile to be specified. Please provide path to the certfile in [ssl] section as 'certfile' option in /usr/lib/vmware-vcops/user/conf/cassandra/cqlshrc (or use [certfiles] section) or set SSL_CERTFILE environment variable.
The $VCOPS_BASE/user/conf/cassandra/cqlshrc file has missing or no configuration.
The /storage/vcops/log/cassandra/check.admin.log file contains errors similar to:
localhost:/storage/vcops/log/cassandra # $ALIVE_BASE/cassandra/apache-cassandra-2.1.8/bin/cqlsh --ssl --cqlshrc $ALIVE_BASE/user/conf/cassandra/cqlshrc Validation is enabled; SSL transport factory requires a valid certfile to be specified. Please provide path to the certfile in [ssl] section as 'certfile' option in /usr/lib/vmware-vcops/user/conf/cassandra/cqlshrc (or use [certfiles] section) or set SSL_CERTFILE environment variable. 2017-05-31 10:58:42,270 INFO vmware.vcops.cassandra.check#_are_enough_nodes_up:214 - Total nodes up=1, total nodes required=1 2017-05-31 10:58:42,272 ERROR vmware.vcops.cassandra.check#<module>:558 - Find more details in: /usr/lib/vmware-vcops/user/log/cassandra/check.admin.log 2017-05-31 11:05:32,262 INFO vmware.vcops.cassandra.check#wait_for_cassandra:437 - No retry timeout set; will retry checking Cassandra status until the minimum required number of nodes are up
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.