Exception (java.lang.RuntimeException) encountered during startup: Unable to gossip with any seeds

Let us look what causes this error and how to resolve it

This is how the error looks like.

INFO  13:42:43 Cassandra version: 3.7
INFO  13:42:43 Thrift API version: 20.1.0
INFO  13:42:43 CQL supported versions: 3.4.2 (default: 3.4.2)
INFO  13:42:43 Initializing index summary manager with a memory pool size of 50 MB and a resize interval of 60 minutes
INFO  13:42:43 Starting Messaging Service on /127.0.0.1:7000 (lo)
Exception (java.lang.RuntimeException) encountered during startup: Unable to gossip with any seeds
java.lang.RuntimeException: Unable to gossip with any seeds
        at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1386)
        at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:561)
        at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:855)
        at org.apache.cassandra.service.StorageService.initServer(StorageService.java:725)
        at org.apache.cassandra.service.StorageService.initServer(StorageService.java:625)
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:370)
        at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:585)
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:714)
ERROR 13:43:15 Exception encountered during startup
java.lang.RuntimeException: Unable to gossip with any seeds
        at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1386) ~[apache-cassandra-3.7.jar:3.7]
        at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:561) ~[apache-cassandra-3.7.jar:3.7]
        at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:855) ~[apache-cassandra-3.7.jar:3.7]
        at org.apache.cassandra.service.StorageService.initServer(StorageService.java:725) ~[apache-cassandra-3.7.jar:3.7]
        at org.apache.cassandra.service.StorageService.initServer(StorageService.java:625) ~[apache-cassandra-3.7.jar:3.7]
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:370) [apache-cassandra-3.7.jar:3.7]
        at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:585) [apache-cassandra-3.7.jar:3.7]
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:714) [apache-cassandra-3.7.jar:3.7]
[cassandra@orcl2 bin]$

This is caused when seed: parameter and listen_host are different in cassandra.yaml configuration file under conf directory

Comments