DataStax Academy FAQ

DataStax Academy migrated to a new learning management system (LMS) in July 2020. We are also moving to a new Cassandra Certification process so there are changes to exam bookings, voucher system and issuing of certificates.

Check out the Academy FAQ pages for answers to your questions:


question

jo.pavankumar_110800 avatar image
jo.pavankumar_110800 asked ·

Unable to create ring in DS201 Exercise 7 on local Mac

INFO [DSE main thread] 2020-10-27 12:06:09,713 RemoteMessageServer.java:76 - Starting internode-messaging internal message server on [/127.0.0.2]:8609
Exception (java.net.BindException) encountered during startup: Can't assign requested address
java.net.BindException: Can't assign requested address
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:433)
    at sun.nio.ch.Net.bind(Net.java:425)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
    at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:128)
    at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:575)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1358)
    at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501)
    at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486)
    at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:1019)
    at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:271)
    at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:366)
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:465)
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.lang.Thread.run(Thread.java:748)
ERROR [DSE main thread] 2020-10-27 12:06:09,780 CassandraDaemon.java:901 - Exception encountered during startup
java.net.BindException: Can't assign requested address
ds201
1 comment
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

this is happening when starting node 2

0 Likes 0 · ·

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

This issue has been reported previously in #6307. I'll repost some of the details here.

I've tried this on various machines with no success on replicating it:

  • Macbook Pro 16" running macOS Catalina
  • Macbook 12" running macOS High Sierra
  • Surface Pro 7 running Windows 10
  • Surface Laptop 3 running Windows 10

In multiple tests that I ran with VirtualBox using the Academy VM image for DS201 and following the instructions in exercise 7, I was able to successfully get both node1 and node2 running. In all instances, I can see that the internode port 8609 is bound to 127.0.0.2:

$ sudo lsof -nPi -sTCP:LISTEN
COMMAND  PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
sshd     789   root    3u  IPv4  14038      0t0  TCP *:22 (LISTEN)
sshd     789   root    4u  IPv6  14051      0t0  TCP *:22 (LISTEN)
java    2177 ubuntu  489u  IPv4  19693      0t0  TCP 127.0.0.1:8609 (LISTEN)
java    2177 ubuntu  491u  IPv4  19698      0t0  TCP 127.0.0.1:42913 (LISTEN)
java    2177 ubuntu  492u  IPv4  19699      0t0  TCP *:7199 (LISTEN)
java    2177 ubuntu  496u  IPv4  20981      0t0  TCP 127.0.0.1:9041 (LISTEN)
java    2177 ubuntu  500u  IPv4  20202      0t0  TCP 127.0.0.1:7000 (LISTEN)
java    2816 ubuntu  489u  IPv4  25732      0t0  TCP 127.0.0.2:8609 (LISTEN)
java    2816 ubuntu  491u  IPv4  25744      0t0  TCP 127.0.0.1:39882 (LISTEN)
java    2816 ubuntu  492u  IPv4  25747      0t0  TCP *:7299 (LISTEN)
java    2816 ubuntu  496u  IPv4  27026      0t0  TCP 127.0.0.1:9042 (LISTEN)
java    2816 ubuntu  500u  IPv4  26326      0t0  TCP 127.0.0.2:7000 (LISTEN)

Specifically:

java    2816 ubuntu  489u  IPv4  25732      0t0  TCP 127.0.0.2:8609 (LISTEN)

The only other time I've seen this happen is when VirtualBox itself (not DSE) is not configured correctly and is suffering from a networking issue.

Make sure you don't have VPN enabled or special networking configured on your machine that could be conflicting with the VM.

The only other suggestion I have is that you reboot your Mac and delete the VM in VirtualBox and start again. Cheers!

2 comments Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Hi i am running DSE directly on Macbook not with VM .

0 Likes 0 · ·
Erick Ramirez avatar image Erick Ramirez ♦♦ jo.pavankumar_110800 ·

Right, but the analysis is still the same -- the process can't bind to 127.0.0.2. It's a networking issue, not DSE.

You need to configure DSE with an IP that is accessible on your mac.Cheers!

0 Likes 0 · ·