Fresh install can't login (Something went wrong loading loading onboarding)

I am attempting to set up HA via docker and when I try to login, I get the following error:

Something went wrong loading loading onboarding, try refreshing

This is my docker-compose:

  homeassistant:
    container_name: homeassistant
    restart: unless-stopped
    image: homeassistant/home-assistant
    devices:
      - /dev/ttyUSB0:/dev/ttyUSB0
      - /dev/ttyUSB1:/dev/ttyUSB1
      - /dev/ttyACM0:/dev/ttyACM0
    volumes:
      - ${USERDIR}/docker/homeassistant:/config
      - /etc/localtime:/etc/localtime:ro
      - ${USERDIR}/docker/shared:/shared
      - /dev/serial/by-id/:/dev/serial/by-id/
    network_mode: host
    privileged: true
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}

Here is my log:

2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setting up config,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setting up webhook,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setup of domain webhook took 0.0 seconds.,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setting up script,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds.,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setting up history,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.,
2019-08-12 20:41:09 INFO (SyncWorker_1) [homeassistant.loader] Loaded google_translate from homeassistant.components.google_translate,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setup of domain person took 0.4 seconds.,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setting up tts,
2019-08-12 20:41:09 INFO (SyncWorker_28) [homeassistant.components.tts] Create cache dir /config/tts.,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setting up onboarding,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.1 seconds.,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setting up automation,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.0 seconds.,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setting up cloud,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setting up mobile_app,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setting up zeroconf,
2019-08-12 20:41:09 INFO (MainThread) [homeassistant.setup] Setup of domain mobile_app took 0.0 seconds.,
2019-08-12 20:41:10 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.3 seconds.,
2019-08-12 20:41:10 INFO (SyncWorker_6) [homeassistant.loader] Loaded notify from homeassistant.components.notify,
2019-08-12 20:41:10 INFO (MainThread) [homeassistant.setup] Setup of domain onboarding took 0.3 seconds.,
2019-08-12 20:41:10 INFO (MainThread) [homeassistant.setup] Setting up notify,
2019-08-12 20:41:10 INFO (MainThread) [homeassistant.setup] Setup of domain notify took 0.0 seconds.,
2019-08-12 20:41:10 INFO (MainThread) [homeassistant.setup] Setting up frontend,
2019-08-12 20:41:10 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds.,
2019-08-12 20:41:10 INFO (MainThread) [homeassistant.components.notify] Setting up notify.mobile_app,
2019-08-12 20:41:10 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.2 seconds.,
2019-08-12 20:41:10 INFO (MainThread) [homeassistant.setup] Setting up map,
2019-08-12 20:41:10 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.0 seconds.,
2019-08-12 20:41:10 INFO (MainThread) [homeassistant.setup] Setting up logbook,
2019-08-12 20:41:10 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.,
2019-08-12 20:41:10 INFO (MainThread) [homeassistant.setup] Setup of domain zeroconf took 0.8 seconds.,
2019-08-12 20:41:10 INFO (MainThread) [homeassistant.setup] Setting up default_config,
2019-08-12 20:41:10 INFO (SyncWorker_0) [homeassistant.loader] Loaded stream from homeassistant.components.stream,
2019-08-12 20:41:11 INFO (MainThread) [homeassistant.setup] Setting up stream,
2019-08-12 20:41:11 INFO (MainThread) [homeassistant.setup] Setup of domain stream took 0.0 seconds.,
2019-08-12 20:41:11 INFO (MainThread) [homeassistant.setup] Setup of domain default_config took 0.0 seconds.,
2019-08-12 20:41:11 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 2.80s,
2019-08-12 20:41:11 INFO (MainThread) [homeassistant.core] Starting Home Assistant,
2019-08-12 20:41:11 INFO (MainThread) [homeassistant.core] Timer:starting,
2019-08-12 20:41:43 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new person.person entity: person.marc,
2019-08-12 20:41:43 INFO (SyncWorker_10) [homeassistant.loader] Loaded twentemilieu from homeassistant.components.twentemilieu,
2019-08-12 20:41:43 INFO (SyncWorker_1) [homeassistant.loader] Loaded mqtt from homeassistant.components.mqtt,
2019-08-12 20:41:43 INFO (SyncWorker_29) [homeassistant.loader] Loaded tplink from homeassistant.components.tplink,
2019-08-12 20:41:43 INFO (SyncWorker_44) [homeassistant.loader] Loaded plaato from homeassistant.components.plaato,
2019-08-12 20:41:43 INFO (SyncWorker_19) [homeassistant.loader] Loaded wemo from homeassistant.components.wemo,
2019-08-12 20:41:43 INFO (SyncWorker_45) [homeassistant.loader] Loaded simplisafe from homeassistant.components.simplisafe,
2019-08-12 20:41:43 INFO (SyncWorker_46) [homeassistant.loader] Loaded gpslogger from homeassistant.components.gpslogger,
2019-08-12 20:41:43 INFO (SyncWorker_3) [homeassistant.loader] Loaded tradfri from homeassistant.components.tradfri,
2019-08-12 20:41:43 INFO (SyncWorker_12) [homeassistant.loader] Loaded dialogflow from homeassistant.components.dialogflow,
2019-08-12 20:41:43 INFO (SyncWorker_48) [homeassistant.loader] Loaded hangouts from homeassistant.components.hangouts,
2019-08-12 20:41:43 INFO (SyncWorker_49) [homeassistant.loader] Loaded logi_circle from homeassistant.components.logi_circle,
2019-08-12 20:41:43 INFO (SyncWorker_14) [homeassistant.loader] Loaded axis from homeassistant.components.axis,
2019-08-12 20:41:43 INFO (SyncWorker_9) [homeassistant.loader] Loaded owntracks from homeassistant.components.owntracks,
2019-08-12 20:41:43 INFO (SyncWorker_51) [homeassistant.loader] Loaded locative from homeassistant.components.locative,
2019-08-12 20:41:43 INFO (SyncWorker_34) [homeassistant.loader] Loaded life360 from homeassistant.components.life360,
2019-08-12 20:41:43 INFO (SyncWorker_35) [homeassistant.loader] Loaded adguard from homeassistant.components.adguard,
2019-08-12 20:41:43 INFO (SyncWorker_0) [homeassistant.loader] Loaded cast from homeassistant.components.cast,
2019-08-12 20:41:43 INFO (SyncWorker_2) [homeassistant.loader] Loaded ps4 from homeassistant.components.ps4,
2019-08-12 20:41:43 INFO (SyncWorker_15) [homeassistant.loader] Loaded toon from homeassistant.components.toon,
2019-08-12 20:41:43 INFO (SyncWorker_55) [homeassistant.loader] Loaded somfy from homeassistant.components.somfy,
2019-08-12 20:41:43 INFO (SyncWorker_56) [homeassistant.loader] Loaded zwave from homeassistant.components.zwave,
2019-08-12 20:41:43 INFO (SyncWorker_23) [homeassistant.loader] Loaded hue from homeassistant.components.hue,
2019-08-12 20:41:43 INFO (SyncWorker_24) [homeassistant.loader] Loaded velbus from homeassistant.components.velbus,
2019-08-12 20:41:43 INFO (SyncWorker_38) [homeassistant.loader] Loaded esphome from homeassistant.components.esphome,
2019-08-12 20:41:43 INFO (SyncWorker_16) [homeassistant.loader] Loaded smhi from homeassistant.components.smhi,
2019-08-12 20:41:43 INFO (SyncWorker_25) [homeassistant.loader] Loaded heos from homeassistant.components.heos,
2019-08-12 20:41:43 INFO (SyncWorker_39) [homeassistant.loader] Loaded homekit_controller from homeassistant.components.homekit_controller,
2019-08-12 20:41:43 INFO (SyncWorker_26) [homeassistant.loader] Loaded upnp from homeassistant.components.upnp,
2019-08-12 20:41:43 INFO (SyncWorker_27) [homeassistant.loader] Loaded met from homeassistant.components.met,
2019-08-12 20:41:43 INFO (SyncWorker_18) [homeassistant.loader] Loaded emulated_roku from homeassistant.components.emulated_roku,
2019-08-12 20:41:43 INFO (SyncWorker_42) [homeassistant.loader] Loaded iqvia from homeassistant.components.iqvia,
2019-08-12 20:41:43 INFO (SyncWorker_43) [homeassistant.loader] Loaded wwlln from homeassistant.components.wwlln,
2019-08-12 20:41:43 INFO (SyncWorker_28) [homeassistant.loader] Loaded lifx from homeassistant.components.lifx,
2019-08-12 20:41:43 INFO (SyncWorker_13) [homeassistant.loader] Loaded sonos from homeassistant.components.sonos,
2019-08-12 20:41:43 INFO (SyncWorker_5) [homeassistant.loader] Loaded notion from homeassistant.components.notion,
2019-08-12 20:41:43 INFO (SyncWorker_30) [homeassistant.loader] Loaded zha from homeassistant.components.zha,
2019-08-12 20:41:43 INFO (SyncWorker_31) [homeassistant.loader] Loaded twilio from homeassistant.components.twilio,
2019-08-12 20:41:43 INFO (SyncWorker_47) [homeassistant.loader] Loaded zone from homeassistant.components.zone,
2019-08-12 20:41:43 INFO (SyncWorker_20) [homeassistant.loader] Loaded unifi from homeassistant.components.unifi,
2019-08-12 20:41:43 INFO (SyncWorker_21) [homeassistant.loader] Loaded ios from homeassistant.components.ios,
2019-08-12 20:41:43 INFO (SyncWorker_33) [homeassistant.loader] Loaded vesync from homeassistant.components.vesync,
2019-08-12 20:41:43 INFO (SyncWorker_50) [homeassistant.loader] Loaded ifttt from homeassistant.components.ifttt,
2019-08-12 20:41:43 INFO (SyncWorker_6) [homeassistant.loader] Loaded nest from homeassistant.components.nest,
2019-08-12 20:41:43 INFO (SyncWorker_22) [homeassistant.loader] Loaded ambient_station from homeassistant.components.ambient_station,
2019-08-12 20:41:43 INFO (SyncWorker_32) [homeassistant.loader] Loaded daikin from homeassistant.components.daikin,
2019-08-12 20:41:43 INFO (SyncWorker_52) [homeassistant.loader] Loaded luftdaten from homeassistant.components.luftdaten,
2019-08-12 20:41:43 INFO (SyncWorker_4) [homeassistant.loader] Loaded geofency from homeassistant.components.geofency,
2019-08-12 20:41:43 INFO (SyncWorker_53) [homeassistant.loader] Loaded openuv from homeassistant.components.openuv,
2019-08-12 20:41:43 INFO (SyncWorker_36) [homeassistant.loader] Loaded ipma from homeassistant.components.ipma,
2019-08-12 20:41:43 INFO (SyncWorker_54) [homeassistant.loader] Loaded point from homeassistant.components.point,
2019-08-12 20:41:43 INFO (SyncWorker_37) [homeassistant.loader] Loaded rainmachine from homeassistant.components.rainmachine,
2019-08-12 20:41:43 INFO (SyncWorker_11) [homeassistant.loader] Loaded deconz from homeassistant.components.deconz,
2019-08-12 20:41:43 INFO (SyncWorker_57) [homeassistant.loader] Loaded mailgun from homeassistant.components.mailgun,
2019-08-12 20:41:43 INFO (SyncWorker_58) [homeassistant.loader] Loaded tellduslive from homeassistant.components.tellduslive,
2019-08-12 20:41:43 INFO (SyncWorker_59) [homeassistant.loader] Loaded homematicip_cloud from homeassistant.components.homematicip_cloud,
2019-08-12 20:41:43 INFO (SyncWorker_7) [homeassistant.loader] Loaded ambiclimate from homeassistant.components.ambiclimate,
2019-08-12 20:41:43 INFO (SyncWorker_8) [homeassistant.loader] Loaded smartthings from homeassistant.components.smartthings,

I have NGINX Proxy Manager with Let’s encrypt forwarding my url https://homeassistant.example.com to port 8123. I don’t see any errors, so has anyone had this and/or have any suggestions?

Thanks!

1 Like

Hi @mjlabe welcome to the community - it’s good to hear what kind of projects people are working on with HA and how they are trying to make things work.

I got stuck with exactly the same error last night, on a similar docker arrangement, but using the vanilla nginx image, rather than the specialised letsencrypt flavour of nginx. The help I got suggested two things:

  1. Attempt to diagnose the error using the browser’s Developer Tools where the java errors show up in the Console
  2. Ensure that the nginx config for reverse proxy includes all the proxy_set_header directives required.

Something to bear in mind is that, out of the box, homeassistant is set up for http traffic on 8123 not https - so be careful about what you acutally redirect to inside your reverse proxy config, depending on what’s in your HA configuration.yaml. You can see my code as an example at https://github.com/artmg/MuGammaPi/wiki/home-assistant-docker#configuration

I hope this helps

Was in the same situation. Problem was the websocket-Connection. Just define your reverse proxy like this:

        location / {
                proxy_pass	http://your-ha-instance:your-port;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
        }

2 Likes

My working config:

location / {
    proxy_pass http://address:port;
    proxy_set_header Host $host;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header X-Forwarded-Host $server_name;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_read_timeout 90;
}
2 Likes

Worked for me.

I just set it up again in my new house and the issue was that I needed to turn on the “websocket support” toggle in Nginx Proxy Manager. I’m sure I figured that out last time from your replies but forgot to respond. Thanks!

1 Like

This solved the problem for me too after HOURS of messing around with .storage/auth settings etc. I’m using Nginx Proxy Manager. Thanks.

this can also be done via UI

image

1 Like

worked for me

To anyone who encountered this issue on their Synology NAS with reverse proxy setup,all you need to do is to click the WebSocket button on custom header section of your Home Assistant reverse proxy configuration.


  1. Screenshot 2023-09-21 21.22.41|690x330, 50%
  2. Screenshot 2023-09-21 21.23.28|690x282, 50%