Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with IPv6 addresses #106

Open
lapo-luchini opened this issue Nov 30, 2022 · 2 comments
Open

Problems with IPv6 addresses #106

lapo-luchini opened this issue Nov 30, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@lapo-luchini
Copy link

I have some new nodes that are using IPv6 address as primary, and I see this in their logs:

WARN  [cassandra-exporter-harvester-defer-0] 2022-11-30 11:01:36,965 Harvester.java:191 - Failed to register collector for MBean org.apache.cassandra.metrics:type=Connection,scope=2a01.4f8.$xxx.$yyy.0.0.0.1,name=Timeouts.
java.lang.IllegalArgumentException: '2a01.4f8.$xxx.$yyy.0.0.0.1' is not an IP string literal.
@zegelin zegelin added the bug Something isn't working label Dec 9, 2022
@kquinsland
Copy link

Likewise, I can't get IPv6 working at all

# works, IPv4 only, though :(
JVM_OPTS="$JVM_OPTS -javaagent:$CASSANDRA_HOME/lib/cassandra-exporter-agent-0.9.10.jar=--listen=:1234"

# fails
JVM_OPTS="$JVM_OPTS -javaagent:$CASSANDRA_HOME/lib/cassandra-exporter-agent-0.9.10.jar=--listen=0:0:0:0:0:0:0:0:1234"

# fails
JVM_OPTS="$JVM_OPTS -javaagent:$CASSANDRA_HOME/lib/cassandra-exporter-agent-0.9.10.jar=--listen=:::1234"

# fails
JVM_OPTS="$JVM_OPTS -javaagent:$CASSANDRA_HOME/lib/cassandra-exporter-agent-0.9.10.jar=--listen=[::]:1234"

And more annoyingly, when in agent mode, a failure with the exporter results in a silent crash.

Naturally, this also fails:

# fails
JVM_OPTS="$JVM_OPTS -javaagent:$CASSANDRA_HOME/lib/cassandra-exporter-agent-0.9.10.jar=--verbose"

@lapo-luchini
Copy link
Author

Likewise, I can't get IPv6 working at all

Have you commented out this parameter?

/usr/local/etc/cassandra/jvm.options
# Prefer binding to IPv4 network intefaces (when net.ipv6.bindv6only=1). See
# comment out this entry to enable IPv6 support).
#-Djava.net.preferIPv4Stack=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants