Skip to content

WARNING No buffer space available when adding 172.22.0.1 to multicast group, try increasing net.ipv4.igmp_max_memberships to 1024 in sysctl.conf #779

@janusn

Description

@janusn

Version

2025.7.5

What type of installation are you using?

Docker

Browser

Chrome

What happened?

I installed ESPHome with the following docker compose file:

$ cat compose.yaml
---
services:
  esphome:
    image: ghcr.io/esphome/esphome:latest
    container_name: esphome
    hostname: rocker
    user: "3005:3005"
    deploy:
      resources:
        limits:
          memory: 1G
    env_file:
      - ./secrets.env
    environment:
      TZ: Europe/London
    volumes:
      - ./config:/config
      - /etc/localtime:/etc/localtime:ro
    privileged: true
    network_mode: host
    
    restart: unless-stopped

And I have noted that a warning is logged:

2025-08-06 12:39:23,817 WARNING No buffer space available when adding 172.22.0.1 to multicast group, try increasing `net.ipv4.igmp_max_memberships` to `1024` in sysctl.conf
2025-08-06 12:39:23,817 WARNING No buffer space available when adding 172.26.0.1 to multicast group, try increasing `net.ipv4.igmp_max_memberships` to `1024` in sysctl.conf
2025-08-06 12:39:23,817 WARNING No buffer space available when adding 172.25.0.1 to multicast group, try increasing `net.ipv4.igmp_max_memberships` to `1024` in sysctl.conf
2025-08-06 12:39:23,817 WARNING No buffer space available when adding 172.47.0.1 to multicast group, try increasing `net.ipv4.igmp_max_memberships` to `1024` in sysctl.conf
2025-08-06 12:39:24,298 INFO 200 GET /devices (10.27.0.194) 2.51ms
2025-08-06 12:39:30,297 INFO 304 GET /devices (10.27.0.194) 2.03ms
2025-08-06 12:39:31,321 WARNING Cannot use icmplib because privileges are insufficient

How to reproduce

  1. Install ESPHome Device Builder with the docker compose file I listed above.
  2. execute docker logs esphome
  3. find the warning lines.

Expected behavior

I expect no warning nor error shown.

Relevant log output

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions