docker-homeassistant icon indicating copy to clipboard operation
docker-homeassistant copied to clipboard

[BUG] memory leak issue

Open mrestivill opened this issue 5 months ago • 5 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Current Behavior

Since 2026.3 there is a memory leak, a workarround seams to be python 3.14.6 version. Reference: https://github.com/home-assistant/core/issues/165953

Expected Behavior

No response

Steps To Reproduce

  1. on the environment
  2. run the container with version 2026.3 or greater
  3. wait 1 minute and the container will grow to multiple Gb of ram.

Environment

- OS: Ubuntu server 24.04
- How docker service was installed: distro's packagemanager

CPU architecture

x86-64

Docker creation

using docker-compose:
service:
  homeassistant:
    image: lscr.io/linuxserver/homeassistant:latest
    container_name: homeassistant
    mem_limit: 1g
    environment:
      - PUID=$PUID
      - PGID=$PGID
      - TZ=$TZ
    cap_add:
      - NET_ADMIN
      - NET_RAW
    volumes:
      - ./config/:/config
      - /etc/localtime:/etc/localtime:ro
      - /var/run/udev:/run/udev
      - /run/dbus:/run/dbus:ro
      - /run/audio:/run/audio:ro
      - /etc/machine-id:/etc/machine-id:ro
    ports:
      - 8123:8123 #optional
    privileged: true

Container logs

docker stats | grep home
homeassistant             4.66%     1.283GiB / 6GiB  21.39%

mrestivill avatar Jun 29 '26 09:06 mrestivill

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

github-actions[bot] avatar Jun 29 '26 09:06 github-actions[bot]

https://github.com/linuxserver/docker-homeassistant/blob/main/package_versions.txt#L1700

aptalca avatar Jun 29 '26 11:06 aptalca

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

LinuxServer-CI avatar Jul 30 '26 07:07 LinuxServer-CI

This still happens.

zinkscott avatar Sep 04 '26 16:09 zinkscott

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

LinuxServer-CI avatar Oct 05 '26 12:10 LinuxServer-CI