operating-system: "Unsupported system - AppArmor issues" when trying to upgrade from HAOS 9.5 to HAOS 10.0

Describe the issue you are experiencing

Upgrading from a virtual HAOS 9.5 instance to HAOS 10.0, aarch64 version, running on VMware ESXi ARM, restarts the system and then gives the following error in the UI: Unsupported system - AppArmor issues

Unbenannt

Following the suggested “Learn more” link takes me to this page: https://www.home-assistant.io/more-info/unsupported/apparmor But I have no idea to which file I have to add the according line to: apparmor=1 security=apparmor

Any hints?

What operating system image do you use?

generic-aarch64 (Generic UEFI capable aarch64 systems)

What version of Home Assistant Operating System is installed?

9.5

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

Upgrade aarch64 version of HAOS 9.5 to HAOS 10.0 on ESXi ARM.

Anything in the Supervisor logs that might be useful for us?

23-04-18 15:28:13 INFO (SyncWorker_4) [supervisor.docker.interface] Attaching to homeassistant/aarch64-addon-configurator with version 5.5.0
23-04-18 15:28:13 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to zigbee2mqtt/zigbee2mqtt-aarch64 with version 1.30.3-1
23-04-18 15:28:13 INFO (SyncWorker_5) [supervisor.docker.interface] Attaching to homeassistant/aarch64-addon-nginx_proxy with version 3.2.0
23-04-18 15:28:13 INFO (SyncWorker_3) [supervisor.docker.interface] Attaching to thomasmauerer/samba-backup-aarch64 with version 5.2.0
23-04-18 15:28:13 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to homeassistant/aarch64-addon-ssh with version 9.6.1
23-04-18 15:28:13 INFO (SyncWorker_6) [supervisor.docker.interface] Attaching to homeassistant/aarch64-addon-samba with version 10.0.0
23-04-18 15:28:13 INFO (SyncWorker_4) [supervisor.docker.interface] Attaching to ghcr.io/esphome/esphome-hassio with version 2023.3.2
23-04-18 15:28:13 INFO (SyncWorker_2) [supervisor.docker.interface] Attaching to homeassistant/aarch64-addon-mosquitto with version 6.2.0
23-04-18 15:28:13 INFO (MainThread) [supervisor.backups.manager] Found 0 backup files
23-04-18 15:28:13 INFO (MainThread) [supervisor.discovery] Loaded 2 messages
23-04-18 15:28:13 INFO (MainThread) [supervisor.ingress] Loaded 14 ingress sessions
23-04-18 15:28:13 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.SETUP
23-04-18 15:28:13 INFO (MainThread) [supervisor.resolution.check] System checks complete
23-04-18 15:28:13 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP
23-04-18 15:28:13 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-04-18 15:28:13 INFO (MainThread) [supervisor.jobs] 'ResolutionFixup.run_autofix' blocked from execution, system is not running - CoreState.SETUP
23-04-18 15:28:13 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP
23-04-18 15:28:13 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-04-18 15:28:13 INFO (MainThread) [__main__] Running Supervisor
23-04-18 15:28:13 WARNING (MainThread) [supervisor.core] System running in a unsupported environment!
23-04-18 15:28:13 INFO (MainThread) [supervisor.os.manager] Rauc: A - marked slot kernel.0 as good
23-04-18 15:28:13 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.INITIALIZE' starting 0 add-ons
23-04-18 15:28:13 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.SYSTEM' starting 1 add-ons
23-04-18 15:28:16 INFO (SyncWorker_6) [supervisor.docker.addon] Starting Docker add-on homeassistant/aarch64-addon-mosquitto with version 6.2.0
23-04-18 15:28:21 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.SERVICES' starting 2 add-ons
23-04-18 15:28:24 INFO (SyncWorker_3) [supervisor.docker.addon] Starting Docker add-on homeassistant/aarch64-addon-ssh with version 9.6.1
23-04-18 15:28:24 INFO (MainThread) [supervisor.services.modules.mqtt] Set core_mosquitto as service provider for mqtt
23-04-18 15:28:25 INFO (SyncWorker_0) [supervisor.docker.addon] Starting Docker add-on homeassistant/aarch64-addon-samba with version 10.0.0
23-04-18 15:28:29 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_samba
23-04-18 15:28:30 INFO (MainThread) [supervisor.core] Start Home Assistant Core
23-04-18 15:28:30 INFO (SyncWorker_0) [supervisor.docker.interface] Starting homeassistant
23-04-18 15:28:31 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
23-04-18 15:28:43 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.STARTUP
23-04-18 15:28:43 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-04-18 15:28:47 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
23-04-18 15:28:47 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-04-18 15:28:47 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/zigbee2mqtt/hassio-zigbee2mqtt repository
23-04-18 15:28:47 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
23-04-18 15:28:47 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
23-04-18 15:28:47 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
23-04-18 15:28:47 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/thomasmauerer/hassio-addons repository
23-04-18 15:28:50 INFO (MainThread) [supervisor.store] Loading add-ons from store: 73 all - 0 new - 0 remove
23-04-18 15:28:50 INFO (MainThread) [supervisor.store] Loading add-ons from store: 73 all - 0 new - 0 remove
23-04-18 15:29:20 INFO (MainThread) [supervisor.auth] Auth request from 'core_mosquitto' for 'mqtt'
23-04-18 15:29:20 INFO (MainThread) [supervisor.auth] Home Assistant not running, checking cache
23-04-18 15:29:35 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
23-04-18 15:29:35 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.APPLICATION' starting 5 add-ons
23-04-18 15:29:36 INFO (SyncWorker_6) [supervisor.docker.addon] Starting Docker add-on homeassistant/aarch64-addon-configurator with version 5.5.0
23-04-18 15:29:37 INFO (SyncWorker_4) [supervisor.docker.addon] Starting Docker add-on ghcr.io/esphome/esphome-hassio with version 2023.3.2
23-04-18 15:29:40 INFO (SyncWorker_1) [supervisor.docker.addon] Starting Docker add-on zigbee2mqtt/zigbee2mqtt-aarch64 with version 1.30.3-1
23-04-18 15:29:44 INFO (SyncWorker_2) [supervisor.docker.addon] Starting Docker add-on thomasmauerer/samba-backup-aarch64 with version 5.2.0
23-04-18 15:29:48 INFO (SyncWorker_4) [supervisor.docker.addon] Starting Docker add-on homeassistant/aarch64-addon-nginx_proxy with version 3.2.0
23-04-18 15:29:52 INFO (MainThread) [supervisor.api.middleware.security] /core/info access from core_nginx_proxy
23-04-18 15:29:53 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled
23-04-18 15:29:53 INFO (MainThread) [supervisor.core] Supervisor is up and running
23-04-18 15:29:53 INFO (MainThread) [supervisor.host.info] Updating local host information
23-04-18 15:29:53 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-04-18 15:29:53 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING
23-04-18 15:29:53 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE
23-04-18 15:29:53 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.IPV4_CONNECTION_PROBLEM/ContextType.SYSTEM
23-04-18 15:29:53 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM
23-04-18 15:29:53 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_FAILED/ContextType.DNS_SERVER
23-04-18 15:29:53 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.NO_CURRENT_BACKUP/ContextType.SYSTEM
23-04-18 15:29:53 INFO (MainThread) [supervisor.resolution.module] Create new suggestion SuggestionType.CREATE_FULL_BACKUP - ContextType.SYSTEM / None
23-04-18 15:29:53 INFO (MainThread) [supervisor.resolution.module] Create new issue IssueType.NO_CURRENT_BACKUP - ContextType.SYSTEM / None
23-04-18 15:29:53 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.MULTIPLE_DATA_DISKS/ContextType.SYSTEM
23-04-18 15:29:53 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR
23-04-18 15:29:53 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON
23-04-18 15:29:54 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_IPV6_ERROR/ContextType.DNS_SERVER
23-04-18 15:29:54 INFO (MainThread) [supervisor.resolution.check] System checks complete
23-04-18 15:29:54 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
23-04-18 15:29:55 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-04-18 15:29:55 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
23-04-18 15:29:55 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
23-04-18 15:29:55 INFO (MainThread) [supervisor.host.services] Updating service information
23-04-18 15:29:56 INFO (MainThread) [supervisor.host.network] Updating local network information
23-04-18 15:29:57 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
23-04-18 15:29:57 INFO (MainThread) [supervisor.host.manager] Host information reload completed
23-04-18 15:30:05 INFO (MainThread) [supervisor.api.middleware.security] /backups access from 15d21743_samba_backup
23-04-18 15:31:29 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-04-18 15:31:29 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
23-04-18 15:31:29 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
23-04-18 15:31:29 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/zigbee2mqtt/hassio-zigbee2mqtt repository
23-04-18 15:31:29 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/thomasmauerer/hassio-addons repository
23-04-18 15:31:29 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
23-04-18 15:31:33 INFO (MainThread) [supervisor.store] Loading add-ons from store: 73 all - 0 new - 0 remove
23-04-18 15:31:33 INFO (MainThread) [supervisor.store] Loading add-ons from store: 73 all - 0 new - 0 remove
23-04-18 15:32:15 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_ssh
23-04-18 15:32:15 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_ssh
23-04-18 15:32:15 INFO (MainThread) [supervisor.api.middleware.security] /host/info access from core_ssh
23-04-18 15:32:15 INFO (MainThread) [supervisor.api.middleware.security] /core/info access from core_ssh
23-04-18 15:36:17 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_ssh
23-04-18 15:36:17 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_ssh
23-04-18 15:36:17 INFO (MainThread) [supervisor.api.middleware.security] /host/info access from core_ssh
23-04-18 15:36:17 INFO (MainThread) [supervisor.api.middleware.security] /core/info access from core_ssh

Anything in the Host logs that might be useful for us?

Nothing special in addition.

System information

System Information

version core-2023.4.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.10
os_name Linux
os_version 5.15.90
arch aarch64
timezone Europe/Zurich
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.32.1
Stage running
Available Repositories 1267
Downloaded Repositories 8
HACS Data ok
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 9.5
update_channel stable
supervisor_version supervisor-2023.04.0
agent_version 1.4.1
docker_version 20.10.22
disk_total 62.3 GB
disk_used 25.2 GB
healthy true
supported failed to load: Unsupported
board generic-aarch64
supervisor_api ok
version_api ok
installed_addons Terminal & SSH (9.6.1), File editor (5.5.0), Samba share (10.0.0), Mosquitto broker (6.2.0), ESPHome (2023.3.2), Zigbee2MQTT (1.30.3-1), Samba Backup (5.2.0), NGINX Home Assistant SSL proxy (3.2.0)
Dashboards
dashboards 3
resources 4
views 9
mode storage
Recorder
oldest_recorder_run 8 April 2023 at 06:50
current_recorder_run 18 April 2023 at 15:28
estimated_db_size 991.38 MiB
database_engine sqlite
database_version 3.38.5

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 19 (5 by maintainers)

Most upvoted comments

Hey I just wanted to add something in case it was useful to anyone who sees this - it has been documented elsewhere on the HA forums and is mentioned in HA install docs, but the issue I had was that I was running with 1 CPU configured on the VM rather than 2. My fault. So this “appArmor” error disappeared once I changed the CPU count. I had unfortunately set the CPU back to 1 after initially installing HA just to see if it still worked, and it had worked with just one. In fact it has even upgraded from a few versions up to 9.5 using just 1 CPU, but it turns out the upgrade from 9.5 to 10 needed 2 CPUs.

The strange thing is that exactly the same issue occured twice between snapshot reverts. On the third try it succeeded without any hickups, I did not even have to try to install twice. As you already mentioned, it’s scary. Nevertheless I will close the issue now as I don’t think we’ll dive into this issue deeper for now.

Thanks so far mate!