[SOLVED] Ah snap, something went wrong!

Hello guys,
I’m trying to install a HAOS using KVM (haos_ova-12.4.qcow2).
I boot the VM without problems.

Preparing Home Assistant
This may take up to 20 minutes

I wait 10 minutes.
This is the log

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
INFO: Using udev information from host
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)
INFO: Starting local supervisor watchdog...
s6-rc: info: service legacy-services successfully started
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp2_3_uri.py:51: SyntaxWarning: invalid escape sequence '\w'
_UNRESERVED = "[\w\-\.]"
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp2_3.py:265: SyntaxWarning: invalid escape sequence '\{'
part_pattern = "^(\{0}|\{1})$".format(self.WILDCARD_ONE,
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp_simple.py:48: SyntaxWarning: invalid escape sequence '\w'
_ALPHANUM_PATTERN = "\w"
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp_simple.py:51: SyntaxWarning: invalid escape sequence '\d'
_LANGTAG_PATTERN = "^([a-z]{2,3}(-([a-z]{2}|[\d]{3}))?)$"
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp2_3_wfn.py:49: SyntaxWarning: invalid escape sequence '\!'
_PUNC_NO_DASH = "\!|\"|\;|\#|\$|\%|\&|\'|\(|\)|\+|\,|\.|\/|\:|\<|\=|\>|\@|\[|\]|\^|\`|\{|\||\}|\~"
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp2_3_wfn.py:77: SyntaxWarning: invalid escape sequence '\{'
_spec1 = "\{0}".format(WILDCARD_ONE)
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp2_3_wfn.py:78: SyntaxWarning: invalid escape sequence '\{'
_spec2 = "\{0}".format(WILDCARD_MULTI)
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp2_3_wfn.py:86: SyntaxWarning: invalid escape sequence '\w'
_body1 = "\w|{0}".format(_quoted1)
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp2_3_wfn.py:87: SyntaxWarning: invalid escape sequence '\w'
_body2 = "\w|{0}".format(_quoted2)
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp2_3_fs.py:50: SyntaxWarning: invalid escape sequence '\w'
_UNRESERVED = "\w|\.|\-"
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp2_3_fs.py:51: SyntaxWarning: invalid escape sequence '\!'
_PUNC = "\!|\"|\;|\#|\$|\%|\&|\'|\(|\)|\+|\,|\/|\:|\<|\=|\>|\@|\[|\]|\^|\`|\{|\||\}|\~|\-"
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp2_3_fs.py:77: SyntaxWarning: invalid escape sequence '\{'
_logical = "(\{0}|{1})".format(VALUE_ANY, VALUE_NA)
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp2_3_fs.py:78: SyntaxWarning: invalid escape sequence '\{'
_quest = "\{0}".format(WILDCARD_ONE)
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp2_3_fs.py:79: SyntaxWarning: invalid escape sequence '\{'
_asterisk = "\{0}".format(WILDCARD_MULTI)
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp_anyvalue.py:35: SyntaxWarning: invalid escape sequence '\*'
"""
[__main__] Initializing Supervisor setup
[supervisor.bootstrap] Setting up coresys for machine: qemux86-64
[supervisor.docker.supervisor] Attaching to Supervisor ghcr.io/home-assistant/amd64-hassio-supervisor with version 2024.08.0
[supervisor.docker.supervisor] Connecting Supervisor to hassio-network
[supervisor.docker.manager] Cleanup images: ['ghcr.io/home-assistant/amd64-hassio-supervisor:2024.06.0']
[supervisor.resolution.evaluate] Starting system evaluation with state initialize
[supervisor.resolution.evaluate] System evaluation complete
[__main__] Setting up Supervisor
[supervisor.api] Starting API on 172.30.32.2
[supervisor.hardware.monitor] Started Supervisor hardware monitor
[supervisor.dbus.manager] Connected to system D-Bus.
[supervisor.dbus.agent] Load dbus interface io.hass.os
[supervisor.dbus.hostname] Load dbus interface org.freedesktop.hostname1
[supervisor.dbus.logind] Load dbus interface org.freedesktop.login1
[supervisor.dbus.network] Load dbus interface org.freedesktop.NetworkManager
[supervisor.dbus.rauc] Load dbus interface de.pengutronix.rauc
[supervisor.dbus.resolved] Load dbus interface org.freedesktop.resolve1
[supervisor.dbus.systemd] Load dbus interface org.freedesktop.systemd1
[supervisor.dbus.timedate] Load dbus interface org.freedesktop.timedate1
[supervisor.host.services] Updating service information
[supervisor.host.sound] Updating PulseAudio information
[supervisor.host.network] Updating local network information
[supervisor.host.apparmor] Loading AppArmor Profiles: {'hassio-supervisor'}
[supervisor.docker.monitor] Started docker events monitor
[supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
[supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-cli with version 2024.05.0
[supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-dns with version 2024.04.0
[supervisor.plugins.dns] Updated /etc/resolv.conf
[supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-audio with version 2023.12.0
[supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-observer with version 2023.06.0
[supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-multicast with version 2024.03.0
[supervisor.plugins.manager] cli does not have the latest version 2024.07.0, updating
[supervisor.docker.interface] Updating image ghcr.io/home-assistant/amd64-hassio-cli:2024.05.0 to ghcr.io/home-assistant/amd64-hassio-cli:2024.07.0
[supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/amd64-hassio-cli with tag 2024.07.0.
[supervisor.docker.manager] Stopping hassio_cli application
[supervisor.docker.manager] Cleaning hassio_cli application
[supervisor.docker.manager] Cleanup images: ['ghcr.io/home-assistant/amd64-hassio-cli:2024.05.0']
[supervisor.plugins.cli] Starting CLI plugin
[supervisor.docker.cli] Starting CLI ghcr.io/home-assistant/amd64-hassio-cli with version 2024.07.0 - 172.30.32.5
[supervisor.homeassistant.secrets] Loaded 0 Home Assistant secrets
[supervisor.docker.interface] Attaching to ghcr.io/home-assistant/qemux86-64-homeassistant with version landingpage
[supervisor.homeassistant.core] Starting HomeAssistant landingpage
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp1_1.py:57: SyntaxWarning: invalid escape sequence '\w'
_STRING = "\w\.\-,\(\)@\#"
/usr/local/lib/python3.12/site-packages/cpe/comp/cpecomp2_2.py:52: SyntaxWarning: invalid escape sequence '\d'
_VALUE_PATTERN = "^([\d\w\._\-~%]+)$"
/usr/local/lib/python3.12/site-packages/cpe/cpe2_3_fs.py:97: SyntaxWarning: invalid escape sequence '\:'
_parts_pattern = "^cpe:2.3:{0}\:{1}\:{2}\:{3}\:{4}\:{5}\:{6}\:{7}\:{8}\:{9}\:{10}$".format(
[supervisor.os.manager] Detect Home Assistant Operating System 12.4 / BootSlot A
[supervisor.store.git] Cloning add-on https://github.com/music-assistant/home-assistant-addon repository
[supervisor.store.git] Loading add-on /data/addons/core repository
[supervisor.store.git] Loading add-on /data/addons/git/a0d7b954 repository
[supervisor.store.git] Loading add-on /data/addons/git/5c53de3b repository
[supervisor.store] Loading add-ons from store: 80 all - 80 new - 0 remove
[supervisor.addons.manager] Found 0 installed add-ons
[supervisor.backups.manager] Found 0 backup files
[supervisor.discovery] Loaded 0 messages
[supervisor.ingress] Loaded 0 ingress sessions
[supervisor.resolution.check] Starting system checks with state setup
[supervisor.resolution.checks.base] Run check for multiple_data_disks/system
[supervisor.resolution.checks.base] Run check for detached_addon_removed/addon
[supervisor.resolution.checks.base] Run check for detached_addon_missing/addon
[supervisor.resolution.checks.base] Run check for disabled_data_disk/system
[supervisor.resolution.check] System checks complete
[supervisor.resolution.evaluate] Starting system evaluation with state setup
[supervisor.resolution.evaluate] System evaluation complete
[supervisor.jobs] 'ResolutionFixup.run_autofix' blocked from execution, system is not running - setup
[supervisor.resolution.evaluate] Starting system evaluation with state setup
[supervisor.resolution.evaluate] System evaluation complete
[__main__] Running Supervisor
[supervisor.os.manager] Rauc: A - marked slot kernel.0 as good
[supervisor.addons.manager] Phase 'initialize' starting 0 add-ons
[supervisor.addons.manager] Phase 'system' starting 0 add-ons
[supervisor.addons.manager] Phase 'services' starting 0 add-ons
[supervisor.core] Skipping start of Home Assistant
[supervisor.addons.manager] Phase 'application' starting 0 add-ons
[supervisor.misc.tasks] All core tasks are scheduled
[supervisor.core] Supervisor is up and running
[supervisor.homeassistant.core] Home Assistant setup
[supervisor.docker.interface] Updating image ghcr.io/home-assistant/qemux86-64-homeassistant:landingpage to ghcr.io/home-assistant/qemux86-64-homeassistant:2024.8.1
[supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/qemux86-64-homeassistant with tag 2024.8.1.
[supervisor.host.info] Updating local host information
[supervisor.resolution.check] Starting system checks with state running
[supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
[supervisor.resolution.checks.base] Run check for docker_config/system
[supervisor.resolution.checks.base] Run check for trust/supervisor
[supervisor.resolution.checks.base] Run check for multiple_data_disks/system
[supervisor.resolution.checks.base] Run check for security/core
[supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
[supervisor.resolution.checks.base] Run check for free_space/system
[supervisor.resolution.checks.base] Run check for no_current_backup/system
[supervisor.resolution.module] Create new suggestion create_full_backup - system / None
[supervisor.resolution.module] Create new issue no_current_backup - system / None
[supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
[supervisor.host.services] Updating service information
[supervisor.host.network] Updating local network information
[supervisor.resolution.checks.base] Run check for pwned/addon
[supervisor.resolution.checks.base] Run check for disabled_data_disk/system
[supervisor.resolution.check] System checks complete
[supervisor.resolution.evaluate] Starting system evaluation with state running
[supervisor.host.sound] Updating PulseAudio information
[supervisor.host.manager] Host information reload completed
[supervisor.resolution.evaluate] System evaluation complete
[supervisor.resolution.fixup] Starting system autofix at state running
[supervisor.resolution.fixup] System autofix complete

When done, HA ask to create new user.
I put login, password, pwd confirmation and HA return “Ah snap, something went wrong!”

No message on VNC console.
If I connect to http://192.168.66.111:4357/ (Home Assistant observer) I see

Supervisor: Connected
Supported: Supported
Healthy: Healthy

I don’ìt know how debug without access to OS.
If I reboot the VM, HA say “Something went wrong loading onboarding, try refreshing”

Any idea?

The problem is the proxy_pass configuration.
This is my Nginx configuration

server {
  listen 80;
  server_name haos.domain.test;
  location / {
    proxy_pass http://192.168.166.111:8123;
  }
}

If I use the URL http://192.168.166.111:8123 HA work like a charm otherwise chrome console show the message

WebSocket connection to 'ws://haos.domain.test/api/websocket' failed: 

There is a solution to fix this?

Enable websockets in nginx

I’ve modified my vhost conf to

map $http_upgrade $connection_upgrade {
  default upgrade;
  ''      close;
}

server {
  listen 80;
  server_name haos.domain.test;
  location / {
    proxy_pass http://192.168.166.111:8123;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
  }
}

Tnx francisp