Unable to obtain session. Cassandra hasn't been started or is unavailable.
Hello! In my Pega 8.3 application, when I start it up, I get the following errors w/ Cassandra.
[service: VBD.Default] [ STANDARD] [ ] [ ] (rvice.operation.StartOperation) ERROR - Cannot start service [VBD.Default]. Will retry in 180 seconds. Remaining attempts: 2
com.pega.dsm.dnode.api.dds.service.SessionNotAvailableException: Unable to obtain session. Cassandra hasn't been started or is unavailable
Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /XXX.XXX.XX.XX:9042 (com.datastax.driver.core.exceptions.TransportException: [/XXX.XXX.XX.XX:9042] Cannot connect))
How can I fix this error and get a clean log file? Via a DSS setting?
***Edited by Moderator Marissa to update platform capability tags****
what is your -DNodeType JVM setting? If you only want this node to be web node, use -DNodeType=WebUser. It is likely that your -DNodeType=Universal, which will try to start all decisioning services. If you indeed want all decisioning services to startup (which should only be used for non-production env), check if any firewall is enabled that prevents port 9042 from communicating.
You are correct that I was using the -DNodeType=Universal. I was able to change that as you suggested and restarted. The Cassandra error went away. I'm working with my networking folks regarding the firewall for port 9042.
Use DNodeType=BackgroundProcessing,Search,Stream,WebUser,DDS. Else, add the the Decision Data Store (DDS).
Shutdown Pega nodes/JVMs gracefully: Web and decision hub nodes Data flow nodes VBD nodes and ADM nodes DDS and Stream nodes Rest of the nodes. Shutdown the Database Server (if needed after machine patch else leave it running) Start the DB machine back up Start the App Server machine(s) back up Bring up Pega nodes Startup Order: Follow the reverse order