Supervisor container stops frequently

Dear Forum,

I am running HA on a Ubuntu Server environment in docker. My supervisor does not run anymore, giving me a big headache…
Situation:

  • Freshly booted host
  • All starts, HA works
  • Supervisior stops
  • recreate the container in portainer

Warnings/Errors that I found:

From the first supervisor container start:

s6-rc: info: service s6rc-oneshot-runner: starting,
s6-rc: info: service s6rc-oneshot-runner successfully started,
s6-rc: info: service fix-attrs: starting,
s6-rc: info: service fix-attrs successfully started,
s6-rc: info: service legacy-cont-init: starting,
cont-init: info: running /etc/cont-init.d/udev.sh,
[06:41:20] INFO: Setup udev backend inside container,
[06:41:20] INFO: Update udev information,
cont-init: info: /etc/cont-init.d/udev.sh exited 0,
s6-rc: info: service legacy-cont-init successfully started,
s6-rc: info: service legacy-services: starting,
services-up: info: copying legacy longrun supervisor (no readiness notification),
services-up: info: copying legacy longrun watchdog (no readiness notification),
s6-rc: info: service legacy-services successfully started,
[06:41:20] INFO: Starting local supervisor watchdog…,
22-07-10 06:41:21 INFO (MainThread) [supervisor.bootstrap] Use the old homeassistant repository for machine extraction,
22-07-10 06:41:21 INFO (MainThread) [main] Initializing Supervisor setup,
22-07-10 06:41:21 INFO (MainThread) [supervisor.bootstrap] Initializing Supervisor Sentry,
22-07-10 08:41:21 WARNING (MainThread) [supervisor.bootstrap] Missing SUPERVISOR_MACHINE environment variable. Fallback to deprecated extraction!,
22-07-10 08:41:21 INFO (MainThread) [supervisor.bootstrap] Seting up coresys for machine: qemux86-64,
22-07-10 08:41:21 INFO (SyncWorker_0) [supervisor.docker.supervisor] Attaching to Supervisor homeassistant/amd64-hassio-supervisor with version 2022.07.dev0901,
22-07-10 08:41:21 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token,
22-07-10 08:41:21 INFO (SyncWorker_1) [supervisor.docker.interface] Cleanup images: [‘homeassistant/amd64-hassio-supervisor:latest’],
22-07-10 08:41:21 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.INITIALIZE,
22-07-10 08:41:21 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete,
22-07-10 08:41:21 INFO (MainThread) [main] Setting up Supervisor,
22-07-10 08:41:21 INFO (MainThread) [supervisor.api] Starting API on 172.30.32.2,
22-07-10 08:41:21 INFO (MainThread) [supervisor.hardware.monitor] Started Supervisor hardware monitor,
22-07-10 08:41:21 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface io.hass.os,
22-07-10 08:41:21 WARNING (MainThread) [supervisor.dbus.manager] Can’t load dbus interface io.hass.os: The name io.hass.os was not provided by any .service files,
22-07-10 08:41:21 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.systemd1,
22-07-10 08:41:21 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.login1,
22-07-10 08:41:21 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.hostname1,
22-07-10 08:41:22 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.timedate1,
22-07-10 08:41:22 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.NetworkManager,
22-07-10 08:41:22 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface de.pengutronix.rauc,
22-07-10 08:41:22 WARNING (MainThread) [supervisor.dbus.manager] Can’t load dbus interface de.pengutronix.rauc: The name de.pengutronix.rauc was not provided by any .service files,
22-07-10 08:41:22 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.resolve1,
22-07-10 08:41:22 INFO (MainThread) [supervisor.host.info] Updating local host information,
22-07-10 08:41:22 INFO (MainThread) [supervisor.host.services] Updating service information,
22-07-10 08:41:22 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information,
22-07-10 08:41:22 INFO (MainThread) [supervisor.host.manager] Host information reload completed,
22-07-10 08:41:22 INFO (MainThread) [supervisor.host.network] Updating local network information,
22-07-10 08:41:22 INFO (MainThread) [supervisor.host.apparmor] Loading AppArmor Profiles: {‘hassio-supervisor’},
22-07-10 08:41:22 WARNING (MainThread) [supervisor.host.apparmor] AppArmor is not enabled on host,
22-07-10 08:41:22 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to Package amd64-hassio-cli · GitHub with version 2022.06.0,
22-07-10 08:41:22 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to Package amd64-hassio-dns · GitHub with version 2022.04.1,
22-07-10 08:41:22 INFO (MainThread) [supervisor.plugins.dns] Updated /etc/resolv.conf,
22-07-10 08:41:22 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to Package amd64-hassio-audio · GitHub with version 2022.05.0,
22-07-10 08:41:22 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to Package amd64-hassio-observer · GitHub with version 2021.10.0,
22-07-10 08:41:22 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to Package amd64-hassio-multicast · GitHub with version 2022.02.0,
22-07-10 08:41:22 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json,
s6-rc: info: service legacy-services: stopping,
[06:41:23] INFO: Supervisor restart after closing,
s6-svwait: fatal: supervisor died,
s6-rc: info: service legacy-services successfully stopped,
s6-rc: info: service legacy-cont-init: stopping,
s6-rc: info: service legacy-cont-init successfully stopped,
s6-rc: info: service fix-attrs: stopping,
s6-rc: info: service fix-attrs successfully stopped,
s6-rc: info: service s6rc-oneshot-runner: stopping,
s6-rc: info: service s6rc-oneshot-runner successfully stopped,

From the second supervisior container start:

s6-rc: info: service fix-attrs: stopping,
s6-rc: info: service fix-attrs successfully stopped,
s6-rc: info: service s6rc-oneshot-runner: stopping,
s6-rc: info: service s6rc-oneshot-runner successfully stopped,
s6-rc: info: service s6rc-oneshot-runner: starting,
s6-rc: info: service s6rc-oneshot-runner successfully started,
s6-rc: info: service fix-attrs: starting,
s6-rc: info: service fix-attrs successfully started,
s6-rc: info: service legacy-cont-init: starting,
cont-init: info: running /etc/cont-init.d/udev.sh,
[06:42:17] INFO: Setup udev backend inside container,
[06:42:17] INFO: Update udev information,
cont-init: info: /etc/cont-init.d/udev.sh exited 0,
s6-rc: info: service legacy-cont-init successfully started,
s6-rc: info: service legacy-services: starting,
services-up: info: copying legacy longrun supervisor (no readiness notification),
services-up: info: copying legacy longrun watchdog (no readiness notification),
[06:42:17] INFO: Starting local supervisor watchdog…,
s6-rc: info: service legacy-services successfully started,
22-07-10 06:42:18 INFO (MainThread) [supervisor.bootstrap] Use the old homeassistant repository for machine extraction,
22-07-10 06:42:18 INFO (MainThread) [main] Initializing Supervisor setup,
22-07-10 06:42:18 INFO (MainThread) [supervisor.bootstrap] Initializing Supervisor Sentry,
22-07-10 08:42:18 WARNING (MainThread) [supervisor.bootstrap] Missing SUPERVISOR_MACHINE environment variable. Fallback to deprecated extraction!,
22-07-10 08:42:18 INFO (MainThread) [supervisor.bootstrap] Seting up coresys for machine: qemux86-64,
22-07-10 08:42:18 INFO (SyncWorker_0) [supervisor.docker.supervisor] Attaching to Supervisor homeassistant/amd64-hassio-supervisor with version 2022.07.dev0901,
22-07-10 08:42:18 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token,
22-07-10 08:42:18 INFO (SyncWorker_1) [supervisor.docker.interface] Cleanup images: [‘homeassistant/amd64-hassio-supervisor:latest’],
22-07-10 08:42:18 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.INITIALIZE,
22-07-10 08:42:18 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete,
22-07-10 08:42:18 INFO (MainThread) [main] Setting up Supervisor,
22-07-10 08:42:18 INFO (MainThread) [supervisor.api] Starting API on 172.30.32.2,
22-07-10 08:42:18 INFO (MainThread) [supervisor.hardware.monitor] Started Supervisor hardware monitor,
22-07-10 08:42:18 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface io.hass.os,
22-07-10 08:42:18 WARNING (MainThread) [supervisor.dbus.manager] Can’t load dbus interface io.hass.os: The name io.hass.os was not provided by any .service files,
22-07-10 08:42:18 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.systemd1,
22-07-10 08:42:18 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.login1,
22-07-10 08:42:18 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.hostname1,
22-07-10 08:42:18 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.timedate1,
22-07-10 08:42:18 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.NetworkManager,
22-07-10 08:42:18 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface de.pengutronix.rauc,
22-07-10 08:42:18 WARNING (MainThread) [supervisor.dbus.manager] Can’t load dbus interface de.pengutronix.rauc: The name de.pengutronix.rauc was not provided by any .service files,
22-07-10 08:42:18 INFO (MainThread) [supervisor.dbus.manager] Load dbus interface org.freedesktop.resolve1,
22-07-10 08:42:18 INFO (MainThread) [supervisor.host.info] Updating local host information,
22-07-10 08:42:18 INFO (MainThread) [supervisor.host.services] Updating service information,
22-07-10 08:42:18 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information,
22-07-10 08:42:18 INFO (MainThread) [supervisor.host.manager] Host information reload completed,
22-07-10 08:42:18 INFO (MainThread) [supervisor.host.network] Updating local network information,
22-07-10 08:42:19 INFO (MainThread) [supervisor.host.apparmor] Loading AppArmor Profiles: {‘hassio-supervisor’},
22-07-10 08:42:19 WARNING (MainThread) [supervisor.host.apparmor] AppArmor is not enabled on host,
22-07-10 08:42:19 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to Package amd64-hassio-cli · GitHub with version 2022.06.0,
22-07-10 08:42:19 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to Package amd64-hassio-dns · GitHub with version 2022.04.1,
22-07-10 08:42:19 INFO (MainThread) [supervisor.plugins.dns] Updated /etc/resolv.conf,
22-07-10 08:42:19 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to Package amd64-hassio-audio · GitHub with version 2022.05.0,
22-07-10 08:42:19 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to Package amd64-hassio-observer · GitHub with version 2021.10.0,
22-07-10 08:42:19 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to Package amd64-hassio-multicast · GitHub with version 2022.02.0,
22-07-10 08:42:19 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json,
22-07-10 08:42:20 INFO (MainThread) [supervisor.homeassistant.secrets] Loaded 2 Home Assistant secrets,
22-07-10 08:42:20 INFO (SyncWorker_3) [supervisor.docker.interface] Attaching to Package qemux86-64-homeassistant · GitHub with version 2022.6.6,
22-07-10 08:42:20 INFO (MainThread) [supervisor.os.manager] No Home Assistant Operating System found,
22-07-10 08:42:20 WARNING (SyncWorker_0) [supervisor.store.data] No repository information exists at /data/addons/git/5c53de3b,
22-07-10 08:42:20 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/a0d7b954 repository,
22-07-10 08:42:20 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/7ad98f9c repository,
22-07-10 08:42:20 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/75f2ff60 repository,
22-07-10 08:42:20 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/5c53de3b repository,
22-07-10 08:42:20 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/core repository,
22-07-10 08:42:20 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/806b11b5 repository,
22-07-10 08:42:20 ERROR (MainThread) [supervisor.store.git] Can’t load /data/addons/git/5c53de3b,
22-07-10 08:42:20 ERROR (MainThread) [supervisor.store] Can’t load data from repository GitHub - esphome/home-assistant-addon: ESPHome Home Assistant Add-on due to ,
22-07-10 08:42:20 INFO (MainThread) [supervisor.resolution.module] Create new issue IssueType.FATAL_ERROR - ContextType.STORE / 5c53de3b,
22-07-10 08:42:20 INFO (MainThread) [supervisor.resolution.module] Create new suggestion SuggestionType.EXECUTE_RESET - ContextType.STORE / 5c53de3b,
22-07-10 08:42:20 WARNING (SyncWorker_2) [supervisor.store.data] No repository information exists at /data/addons/git/5c53de3b,
22-07-10 08:42:20 INFO (MainThread) [supervisor.store] Loading add-ons from store: 81 all - 81 new - 0 remove,
22-07-10 08:42:20 INFO (MainThread) [supervisor.addons] Found 9 installed add-ons,
22-07-10 08:42:20 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to Package influxdb/amd64 · GitHub with version 4.5.0,
22-07-10 08:42:20 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to Package node-red/amd64 · GitHub with version 12.0.2,
22-07-10 08:42:20 INFO (SyncWorker_4) [supervisor.docker.interface] Attaching to Package tasmoadmin/amd64 · GitHub with version 0.19.0,
22-07-10 08:42:20 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to Package esphome-hassio-amd64 · GitHub with version 2021.11.3,
22-07-10 08:42:20 INFO (SyncWorker_3) [supervisor.docker.interface] Attaching to 75f2ff60/amd64-addon-rhasspy with version 2.5.11,
22-07-10 08:42:20 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to Package grafana/amd64 · GitHub with version 7.6.0,
22-07-10 08:42:20 INFO (SyncWorker_2) [supervisor.docker.interface] Attaching to Package vscode/amd64 · GitHub with version 5.1.2,
22-07-10 08:42:20 INFO (MainThread) [supervisor.backups.manager] Found 70 backup files,
22-07-10 08:42:20 INFO (MainThread) [supervisor.discovery] Loaded 0 messages,
22-07-10 08:42:20 INFO (MainThread) [supervisor.ingress] Loaded 5 ingress sessions,
22-07-10 08:42:20 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.SETUP,
22-07-10 08:42:20 INFO (MainThread) [supervisor.resolution.check] System checks complete,
22-07-10 08:42:20 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP,
22-07-10 08:42:20 WARNING (MainThread) [supervisor.resolution.evaluations.base] Detected unsupported OS: Ubuntu 20.04.4 LTS (more-info: Operating System - Home Assistant),
22-07-10 08:42:20 WARNING (MainThread) [supervisor.resolution.evaluations.base] NetworkManager is not correctly configured (more-info: Network Manager - Home Assistant),
22-07-10 08:42:20 WARNING (MainThread) [supervisor.resolution.evaluations.base] OS-Agent is not correctly working (more-info: OS-Agent issues - Home Assistant),
22-07-10 08:42:20 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete,
22-07-10 08:42:20 INFO (MainThread) [supervisor.jobs] ‘ResolutionFixup.run_autofix’ blocked from execution, system is not running - CoreState.SETUP,
22-07-10 08:42:20 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP,
22-07-10 08:42:20 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete,
22-07-10 08:42:20 INFO (MainThread) [main] Running Supervisor,
22-07-10 08:42:20 WARNING (MainThread) [supervisor.core] System running in a unsupported environment!,
22-07-10 08:42:20 INFO (MainThread) [supervisor.jobs] ‘OSManager.mark_healthy’ blocked from execution, no Home Assistant OS available,
22-07-10 08:42:20 INFO (MainThread) [supervisor.supervisor] Fetching AppArmor profile https://version.home-assistant.io/apparmor.txt,
22-07-10 08:42:21 INFO (MainThread) [supervisor.host.apparmor] Adding/updating AppArmor profile: hassio-supervisor,
22-07-10 08:42:21 INFO (MainThread) [supervisor.supervisor] Update Supervisor to version 2022.07.0,
22-07-10 08:42:21 INFO (SyncWorker_5) [supervisor.docker.interface] Downloading docker image Package amd64-hassio-supervisor · GitHub with tag 2022.07.0.,

Afterwards, the container stopps with the Status " Stopped for 2 minutes with exit code 137"

LMGTFY did not work out this time, does anyone have an idea what I could do?

Thanks,
CeeCee

Supervised install is not supported on ubuntu, only on debian 11.

Dear Nick,

yes, I know and I am willing to change that. At the moment, I am in a bit of a pickle, since without the supervisor, it seems I cannot do a backup of my installation to change to a supported installation. So it’s a bit of a vicious circle.

Cheers,
CeeCee

I know apparmor is needed. Has something happened to apparmor on ubuntu?

Cheers!

That did some magic, supervisior keeps running now. Seems there are some more problems, but I’ll investigate them myself first.

Thanks,
CeeCee