No idea what this error means - advice would be much appreciated

Hi there.

I am running HA as a Docker Container and it keeps throwing this error up, over and over, from Portainer:

File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/hacs/__init__.py", line 12, in <module>
    from aiogithubapi import AIOGitHubAPIException, GitHub, GitHubAPI
  File "/usr/local/lib/python3.12/site-packages/aiogithubapi/__init__.py", line 20, in <module>
    from .device import GitHubDeviceAPI
  File "/usr/local/lib/python3.12/site-packages/aiogithubapi/device.py", line 14, in <module>
    from .client import GitHubClient
  File "/usr/local/lib/python3.12/site-packages/aiogithubapi/client.py", line 27, in <module>
    from .legacy.client import AIOGitHubAPIClient as LegacyAIOGitHubAPIClient
  File "/usr/local/lib/python3.12/site-packages/aiogithubapi/legacy/client.py", line 15, in <module>
    from ..helpers import async_call_api
  File "/usr/local/lib/python3.12/site-packages/aiogithubapi/helpers.py", line 8, in <module>
    from sigstore.verify import (
  File "/usr/local/lib/python3.12/site-packages/sigstore/verify/__init__.py", line 54, in <module>
    from sigstore.verify.models import (
  File "/usr/local/lib/python3.12/site-packages/sigstore/verify/models.py", line 30, in <module>
    from sigstore._internal.rekor import RekorClient
  File "/usr/local/lib/python3.12/site-packages/sigstore/_internal/rekor/__init__.py", line 19, in <module>
    from .client import RekorClient
  File "/usr/local/lib/python3.12/site-packages/sigstore/_internal/rekor/client.py", line 35, in <module>
    from sigstore._internal.tuf import TrustUpdater
  File "/usr/local/lib/python3.12/site-packages/sigstore/_internal/tuf.py", line 28, in <module>
    from tuf.ngclient import Updater
  File "/usr/local/lib/python3.12/site-packages/tuf/ngclient/__init__.py", line 6, in <module>
    from tuf.api.metadata import TargetFile
Error grabbing logs: invalid character '\x00' looking for beginning of value

I really do not know where to start, figuring out what the issue is and how to fix it.

Any help would be much appreciated.

Hi Alex,

What installation type do you have in the docker?

Iā€™m guessing here, but to me it looks like it is looking for python 3.12 libraries and not finding them.
I am guessing you are running supervised or something and you are on an

condition with your base software.

1 Like

Hi SG.

I am running Portainer on Openmediavault 6 and I have run into something new, today - my Homeassistant Docker is not running at all.

It keeps saying

exec /init: exec format error

exec /init: exec format error

exec /init: exec format error

exec /init: exec format error

exec /init: exec format error

exec /init: exec format error

exec /init: exec format error

exec /init: exec format error

exec /init: exec format error

exec /init: exec format error

exec /init: exec format error

exec /init: exec format error

I am using the following Docker compose file:

services:
  homeassistant:
    container_name: homeassistant
    image: ghcr.io/home-assistant/home-assistant:stable
    volumes:
      - /SSD/appdata/homeassistant:/config
      - /etc/localtime:/etc/localtime:ro

    devices :
      - /dev/ttyUSB0:/dev/ttyUSB0
      - /dev/hci0:/dev/hci0
    restart: unless-stopped
    privileged: true
    network_mode: host

I have no idea how everything has suddenly gone so catastrophically wrong.