Open dch opened 1 year ago
This used to work, IIRC under graylog 4.x and possibly an older JVM. An acceptable workaround for me has been to use socat
# /usr/local/etc/socat-instances.conf
[graylog]
flags="-ly TCP6-LISTEN:1514,reuseaddr,fork,reuseport TCP4:127.0.0.1:1514"
Which forks a process per inbound connection and proxies from IPv6 to IPv4. This may not be suitable for environments with many connections, or short-lived ones.
still broken in 5.1.6
Greetings!
IPv6 input-listener also not working on 5.0.7 (debian) using GELF-TCP, Syslog-TCP and Syslog-UDP.
2023-06-29T11:24:18.331+02:00 INFO [InputStateListener] Input [Syslog TCP/649d4dc20f63f62fd696a775] is now STARTING
2023-06-29T11:24:18.333+02:00 WARN [AbstractTcpTransport] Failed to start channel for input SyslogTCPInput{title=test, type=org.graylog2.inputs.syslog.tcp.SyslogTCPInput, nodeId=c434835d-ffa2-44f3-9fd7-d194e476aae8}
io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address family not supported by protocol
2023-06-29T11:24:18.333+02:00 ERROR [InputLauncher] The [org.graylog2.inputs.syslog.tcp.SyslogTCPInput] input with ID <649d4dc20f63f62fd696a775> misfired. Reason: bind(..) failed: Address family not supported by protocol.
org.graylog2.plugin.inputs.MisfireException: org.graylog2.plugin.inputs.MisfireException: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address family not supported by protocol
at org.graylog2.plugin.inputs.MessageInput.launch(MessageInput.java:161) ~[graylog.jar:?]
at org.graylog2.shared.inputs.InputLauncher$1.run(InputLauncher.java:91) [graylog.jar:?]
at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:180) [graylog.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: org.graylog2.plugin.inputs.MisfireException: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address family not supported by protocol
at org.graylog2.plugin.inputs.transports.AbstractTcpTransport.launch(AbstractTcpTransport.java:224) ~[graylog.jar:?]
at org.graylog2.plugin.inputs.MessageInput.launch(MessageInput.java:158) ~[graylog.jar:?]
... 7 more
Caused by: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address family not supported by protocol
2023-06-29T11:24:18.337+02:00 INFO [InputStateListener] Input [Syslog TCP/649d4dc20f63f62fd696a775] is now FAILED
- Rath
FYI: Working for me with Syslog-TCP in Graylog 5.1.4
:
bind_address: [::1]
netstat -tulpn | grep 514
tcp6 0 0 ::1:514 :::* LISTEN xxxx/java
Interestingly: Another server with the same version still shows the issue..
Works:
# version in WebUI
Graylog 5.1.5+993cd0f on xxx1 (Eclipse Adoptium 17.0.8 on Linux 5.10.0-25-amd64)
uname -a
> Linux xxx1 5.10.0-25-amd64 #1 SMP Debian 5.10.191-1 (2023-08-16) x86_64 GNU/Linux
apt policy graylog-server
> graylog-server:
> Installed: 5.1.5-1
> Candidate: 5.1.5-1
> Version table:
> *** 5.1.5-1 500
> 500 https://packages.graylog2.org/repo/debian stable/5.1 amd64 Packages
apt list --installed | grep jdk
> openjdk-17-jre-headless/oldstable-security,now 17.0.7+7-1~deb11u1 amd64 [installed]
Does not work:
# version in WebUI
Graylog 5.1.5+993cd0f on xxx2 (Debian 17.0.7 on Linux 5.10.0-25-amd64)
uname -a
> Linux xxx2 5.10.0-25-amd64 #1 SMP Debian 5.10.191-1 (2023-08-16) x86_64 GNU/Linux
apt policy graylog-server
> graylog-server:
> Installed: 5.1.5-1
> Candidate: 5.1.5-1
> Version table:
> *** 5.1.5-1 500
> 500 https://packages.graylog2.org/repo/debian stable/5.1 amd64 Packages
apt list --installed | grep jdk
> openjdk-17-jre-headless/oldstable-security,now 17.0.7+7-1~deb11u1 amd64 [installed]
Note also: sysctl -a | grep '^net'
shows the exact same values on both nodes (IPv6 is not disabled and works for other services)
Error:
2023-09-19T15:50:26.034+02:00 ERROR [InputLauncher] The [org.graylog2.inputs.syslog.tcp.SyslogTCPInput] input [Syslog TCP/IN_syslog_TLS_IP6/6509a324bc50f342a21b28bc] misfired. Reason: bind(..) failed: Address family not supported by protocol.
org.graylog2.plugin.inputs.MisfireException: org.graylog2.plugin.inputs.MisfireException: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address family not supported by protocol
at org.graylog2.plugin.inputs.MessageInput.launch(MessageInput.java:167) ~[graylog.jar:?]
at org.graylog2.shared.inputs.InputLauncher$1.run(InputLauncher.java:94) [graylog.jar:?]
at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:180) [graylog.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: org.graylog2.plugin.inputs.MisfireException: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address family not supported by protocol
at org.graylog2.plugin.inputs.transports.AbstractTcpTransport.launch(AbstractTcpTransport.java:225) ~[graylog.jar:?]
at org.graylog2.plugin.inputs.transports.Transport.launch(Transport.java:35) ~[graylog.jar:?]
at org.graylog2.plugin.inputs.MessageInput.launch(MessageInput.java:164) ~[graylog.jar:?]
... 7 more
Caused by: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address family not supported by protocol
2023-09-19T15:50:26.035+02:00 INFO [InputStateListener] Input [Syslog TCP/IN_syslog_TLS_IP6/6509a324bc50f342a21b28bc] is now FAILED
We were able to solve the bind(..) failed: Address family not supported by protocol
error by removing & purging graylog and re-installing it:
apt purge graylog-server
apt purge openjdk-17-jre-headless
# reboot
Now the WebUI also shows the version: Graylog 5.1.5+993cd0f on log (Eclipse Adoptium 17.0.8 on Linux 5.10.0-25-amd64)
Want to have IPv6 input for GELF data.
Expected Behavior
Input starts successfully
Current Behavior
logs:
Possible Solution
Steps to Reproduce (for bugs)
Add an IPv6 address GELF input, and try to start it.
Context
IPv6 address tried as
[::1]
and without::1
,orfca2:927d:4d50:715c:f0b4::5
same result.Your Environment