Skip to content

[BUG] Not seeing disk space usage with docker #747

@FaizVisram

Description

@FaizVisram

Go Hass Agent Version
v14.6.0

Describe the bug
There are sensors for the only disk drive in my machine but it's only reporting read/read rates/write/write rates but not disk space free/used/total.

To Reproduce
Steps to reproduce the behavior:

  1. Do first time registration
  2. Start container with this docker-compose.yml
services:
    go-hass-agent:
        container_name: go-hass-agent
        network_mode: host
        privileged: true
        volumes:
            - /services/go-hass-agent/config:/home/go-hass-agent
            - /proc:/host/proc:ro
            - /sys:/host/sys:ro
            - /run/dbus:/run/dbus:ro
            - /:/host:ro
        environment:
            - PROCFS_ROOT=/host/proc
            - SYSFS_ROOT=/host/sys
        cap_add:
            - SYS_ADMIN
            - SYS_RAWIO
            - MKNOD
        image: ghcr.io/joshuar/go-hass-agent:v14.6.0
  1. Go to Home Assistant device page
  2. See entities

Expected behavior
Sensors for disk space free/used/total.

Screenshots
If applicable, add screenshots to help explain your problem.

Logs

Container Logs:
2:11AM WARN Unable to add desktop portal to context. Some sensors requring it may not be available. error="no portal present"
2:11AM WARN Unable to determine user session path from D-Bus. Some sensors requring it may not be available. error="could not determine session path"
2:11AM WARN Unable to set up pipewire monitor. error="error starting pw-dump: exec: "pw-dump": executable file not found in $PATH"
2:11AM WARN Could not init worker. worker=smart_status error="check capabilities: capability check failed: missing cap_sys_rawio"
2:11AM WARN Could not init worker. worker=running_apps error="get desktop portal: no desktop portal in context"
2:11AM WARN Could not init worker. worker=desktop_settings error="get desktop portal: no desktop portal in context"
2:11AM WARN Could not init worker. worker=mic_in_use error="no pipewire monitor in context"
2:11AM WARN Could not init worker. worker=webcam_in_use error="no pipewire monitor in context"
2:11AM WARN Could not init worker. worker=screen_lock error="get session path: no session path in context"
2:11AM WARN Could not init worker. worker=chrony error="find chrony executable: exec: "chronyc": executable file not found in $PATH"
2:11AM WARN Could not initialize input device monitoring. error="no input devices found"
2:11AM WARN Could not init worker. worker=abrt error="get abrt problems: SystemBus: unable to get data org.freedesktop.problems.GetProblems from org.freedesktop.problems: The name org.freedesktop.problems was not provided by any .service files"

I see no such file ~/.config/go-hass-agent/go-hass-agent.log in the config volume

Desktop (please complete the following information):

  • OS: Linux
  • Distribution: Debian
  • Version: 13

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions