vectordotdev/vector · error
IPv6 multicast is not supported
Error message
IPv6 multicast is not supported
What it means
The socket UDP source binds a listener and, when multicast_groups is configured, joins each group. IPv4 multicast is supported via join_multicast_v4, but an IPv6 listen address (SocketListenAddr::SocketAddr(SocketAddr::V6)) combined with multicast hits an explicit unimplemented!() panic: IPv6 multicast joining is not implemented in this source.
Solutions
- Use an IPv4 listen address (e.g. "0.0.0.0:514") with IPv4 multicast groups instead.
- Remove multicast_groups from the config if plain unicast UDP on IPv6 is all that is needed.
- If IPv6 multicast is required, run a local relay that joins the group and forwards to Vector over unicast.
- Contribute support using UdpSocket::join_multicast_v6 with interface index 0, as noted in the source comment.
Example fix
// before (panics) address = "[::]:514" multicast_groups = ["224.0.0.1"] // after address = "0.0.0.0:514" multicast_groups = ["224.0.0.1"]
Defensive patterns
Strategy: validation
Validate before calling
// Validate the socket UDP source config before deploy
const addr = config.address || "";
if (config.multicast_groups?.length && addr.includes(":") && addr.startsWith("[")) {
throw new Error("IPv6 listen address with multicast_groups is unsupported by the socket UDP source");
} Type guard
function isIpv4ListenAddress(address) {
return !address.trim().startsWith("[");
} Try / catch
// Catch source startup panics at the supervisor level
match vector_run(config) {
Err(e) if e.to_string().contains("IPv6 multicast is not supported") => {
fallback_to_unicast_or_ipv4(config);
}
other => other?,
} Prevention
- Always pair multicast_groups with an IPv4 bind address in socket UDP configs.
- Lint Vector configs in CI for IPv6 + multicast combinations.
- Check the component docs' limitations section before enabling multicast.
- Prefer an explicit unicast relay on IPv6 networks instead of native multicast.
When it happens
Trigger: Configuring a socket UDP source with an IPv6 listen address (e.g. "[::]:514" or "[ff02::1]:514") together with multicast_groups set; the source construction path reaches the SocketAddr::V6 arm and panics before binding.
Common situations: Deploying Vector for IPv6 multicast log collection (e.g. IPv6-only networks or multicast syslog); copying an IPv4 multicast config and swapping the address to IPv6; Kubernetes hosts advertising IPv6 addresses.
Related errors
- Multicast for systemd fd sockets is not supported
- BrokenPipe
- Buffered payload limit of
- Can't set keepalive on connection that has not been…
- Can't set receive buffer size on connection that has not…
AI-assisted analysis of vectordotdev/vector@bdb87aeaa4 (2026-09-16).
Data as JSON: /api/errors/011e0b8be8fa5e34.
Report an issue: GitHub.
Appendix: source
Thrown at src/sources/socket/udp.rs:195
let listenfd = ListenFd::from_env();
let socket = try_bind_udp_socket(config.address, listenfd)
.await
.map_err(|error| {
emit!(SocketBindError {
mode: SocketMode::Udp,
error,
})
})?;
if !config.multicast_groups.is_empty() {
socket.set_multicast_loop_v4(true).unwrap();
let listen_addr = match config.address() {
SocketListenAddr::SocketAddr(SocketAddr::V4(addr)) => addr,
SocketListenAddr::SocketAddr(SocketAddr::V6(_)) => {
// We could support Ipv6 multicast with the
// https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.join_multicast_v6 method
// and specifying the interface index as `0`, in order to bind all interfaces.
unimplemented!("IPv6 multicast is not supported")
}
SocketListenAddr::SystemdFd(_) => {
unimplemented!("Multicast for systemd fd sockets is not supported")
}
};
for group_addr in config.multicast_groups {
let interface = config.multicast_interface.unwrap_or(*listen_addr.ip());
socket
.join_multicast_v4(group_addr, interface)
.map_err(|error| {
emit!(SocketMulticastGroupJoinError {
error,
group_addr,
interface,
})
})?;
info!(message = "Joined multicast group.", group = %group_addr);
}View on GitHub (pinned to bdb87aeaa4)