Hello everybody. I’ve been working on making a distributed database and out of nowhere the configuration stoped working. This had worked the last 2 month now its like something crazy happend.
so I make the first node which will be the seed node for lets say 3 computer for now
docker run --name chat_mac -d -e CASSANDRA_BROADCAST_ADDRESS=192.168.1.70 -p 7000:7000 -p 7199:7199 -p 9042:9042 -e cassandra:4.1.4
Then I make the other node with the assign ip address of the other computer and do the same with the other computer as well, and exposing the gossip seed from the very first node
docker run --name chat_mac -d -e CASSANDRA_BROADCAST_ADDRESS=192.168.1.68 -p 7000:7000 -p 7199:7199 -p 9042:9042 -e CASSANDRA_SEEDS=192.168.1.70 cassandra:4.1.4
and I have been getting this error no matter what I do in terms of configuration, restarting the computer and disabling the firewall and opening ports, like I said this worked fine until the last 3 days I have been struggling please help…
Below is the log from docker, one other thing the seed nodes stays on, the other node containers stop
at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1920)
2024-05-13 18:37:05 at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:773)
2024-05-13 18:37:05 at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:1075)
2024-05-13 18:37:05 at org.apache.cassandra.service.StorageService.initServer(StorageService.java:921)
2024-05-13 18:37:05 at org.apache.cassandra.service.StorageService.initServer(StorageService.java:854)
2024-05-13 18:37:05 at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:421)
2024-05-13 18:37:05 at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:744)
2024-05-13 18:37:05 at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:878)
2024-05-13 18:37:05 ERROR [main] 2024-05-14 01:37:05,172 CassandraDaemon.java:900 - Exception encountered during startup
2024-05-13 18:37:05 java.lang.RuntimeException: Unable to gossip with any peers
2024-05-13 18:37:05 at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1920)
2024-05-13 18:37:05 at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:773)
2024-05-13 18:37:05 at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:1075)
2024-05-13 18:37:05 at org.apache.cassandra.service.StorageService.initServer(StorageService.java:921)
2024-05-13 18:37:05 at org.apache.cassandra.service.StorageService.initServer(StorageService.java:854)
2024-05-13 18:37:05 at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:421)
2024-05-13 18:37:05 at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:744)
2024-05-13 18:37:05 at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:878)
2024-05-13 18:37:05 INFO [StorageServiceShutdownHook] 2024-05-14 01:37:05,236 HintsService.java:235 - Paused hints dispatch
2024-05-13 18:37:05 WARN [StorageServiceShutdownHook] 2024-05-14 01:37:05,251 Gossiper.java:2108 - No local state, state is in silent shutdown, or node hasn’t joined, not announcing shutdown
2024-05-13 18:37:05 INFO [StorageServiceShutdownHook] 2024-05-14 01:37:05,262 MessagingService.java:526 - Waiting for messaging service to quiesce
2024-05-13 18:37:06 INFO [Messaging-EventLoop-3-3] 2024-05-14 01:37:06,234 NoSpamLogger.java:105 - /192.168.1.68:7000->/192.168.1.70:7000-URGENT_MESSAGES-[no-channel] failed to connect
2024-05-13 18:37:06 io.netty.channel.ConnectTimeoutException: connection timed out: /192.168.1.70:7000
2024-05-13 18:37:06 at io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe$2.run(AbstractEpollChannel.java:576)
2024-05-13 18:37:06 at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)
2024-05-13 18:37:06 at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:170)
2024-05-13 18:37:06 at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
2024-05-13 18:37:06 at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
2024-05-13 18:37:06 at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:384)
2024-05-13 18:37:06 at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
2024-05-13 18:37:06 at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
2024-05-13 18:37:06 at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
2024-05-13 18:37:06 at java.base/java.lang.Thread.run(Unknown Source)
2024-05-13 18:37:14 INFO [StorageServiceShutdownHook] 2024-05-14 01:37:14,313 HintsService.java:235 - Paused hints dispatch