supervisor: Cannot access supervisor "unable to load panel source: /api/hassio/app/entrypoint.js"

Home Assistant release with the issue: 0.106.5

Operating environment (HassOS/Generic): Raspberry PI, installed with .iso

Supervisor logs:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing... 
[15:22:28] INFO: Update udev informations
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
20-03-08 15:22:56 INFO (MainThread) [__main__] Initialize Supervisor setup
20-03-08 15:22:57 INFO (SyncWorker_0) [supervisor.docker.supervisor] Attach to Supervisor homeassistant/armv7-hassio-supervisor with version 209
20-03-08 15:22:57 INFO (MainThread) [__main__] Setup Supervisor
20-03-08 15:22:58 INFO (MainThread) [supervisor.utils.gdbus] Connect to dbus: org.freedesktop.systemd1 - /org/freedesktop/systemd1
20-03-08 15:22:58 INFO (MainThread) [supervisor.utils.gdbus] Connect to dbus: org.freedesktop.hostname1 - /org/freedesktop/hostname1
20-03-08 15:22:58 INFO (MainThread) [supervisor.utils.gdbus] Connect to dbus: de.pengutronix.rauc - /
20-03-08 15:22:58 INFO (MainThread) [supervisor.utils.gdbus] Connect to dbus: org.freedesktop.NetworkManager - /org/freedesktop/NetworkManager/DnsManager
20-03-08 15:22:58 INFO (MainThread) [supervisor.host.info] Update local host information
20-03-08 15:22:58 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-03-08 15:22:58 INFO (MainThread) [supervisor.host.services] Update service information
20-03-08 15:22:58 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-03-08 15:22:58 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-03-08 15:22:58 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-03-08 15:22:58 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-03-08 15:22:58 INFO (MainThread) [supervisor.host.apparmor] Load AppArmor Profiles: {'hassio-supervisor'}
20-03-08 15:22:58 INFO (MainThread) [supervisor.host.services] Reload local service hassos-apparmor.service
20-03-08 15:22:58 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ReloadOrRestartUnit on /org/freedesktop/systemd1
20-03-08 15:22:58 INFO (SyncWorker_2) [supervisor.docker.interface] Attach to homeassistant/armv7-hassio-dns with version 1
20-03-08 15:22:58 INFO (SyncWorker_4) [supervisor.docker.interface] Attach to homeassistant/armv7-hassio-audio with version 8
20-03-08 15:22:58 INFO (MainThread) [supervisor.dns] Start CoreDNS plugin
20-03-08 15:22:58 INFO (MainThread) [supervisor.misc.forwarder] Start DNS port forwarding to 172.30.32.3
20-03-08 15:22:59 INFO (MainThread) [supervisor.audio] Start Audio plugin
20-03-08 15:22:59 INFO (SyncWorker_5) [supervisor.docker.interface] Clean hassio_dns application
20-03-08 15:22:59 INFO (SyncWorker_4) [supervisor.docker.interface] Clean hassio_audio application
20-03-08 15:23:03 INFO (SyncWorker_5) [supervisor.docker.dns] Start DNS homeassistant/armv7-hassio-dns with version 1 - 172.30.32.3
20-03-08 15:23:04 INFO (SyncWorker_4) [supervisor.docker.audio] Start Audio homeassistant/armv7-hassio-audio with version 8 - 172.30.32.4
20-03-08 15:23:04 INFO (SyncWorker_9) [supervisor.docker.interface] Attach to homeassistant/raspberrypi2-homeassistant with version 0.106.5
20-03-08 15:23:04 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /
20-03-08 15:23:04 INFO (MainThread) [supervisor.hassos] Detect HassOS 3.12 / BootSlot B
20-03-08 15:23:05 INFO (SyncWorker_10) [supervisor.docker.hassos_cli] Found HassOS CLI homeassistant/armv7-hassio-cli with version 21
20-03-08 15:23:07 INFO (MainThread) [supervisor.store.git] Load add-on /data/addons/core repository
20-03-08 15:23:07 INFO (MainThread) [supervisor.store] Load add-ons from store: 20 all - 20 new - 0 remove
20-03-08 15:23:07 INFO (MainThread) [supervisor.addons] Found 3 installed add-ons
20-03-08 15:23:07 INFO (SyncWorker_8) [supervisor.docker.interface] Attach to homeassistant/armv7-addon-configurator with version 4.7
20-03-08 15:23:07 INFO (SyncWorker_3) [supervisor.docker.interface] Attach to homeassistant/armv7-addon-ssh with version 7.1
20-03-08 15:23:07 INFO (SyncWorker_4) [supervisor.docker.interface] Attach to homeassistant/armv7-addon-letsencrypt with version 4.7
20-03-08 15:23:08 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-03-08 15:23:12 INFO (MainThread) [supervisor.snapshots] Found 3 snapshot files
20-03-08 15:23:12 INFO (MainThread) [supervisor.discovery] Load 0 messages
20-03-08 15:23:12 INFO (MainThread) [supervisor.ingress] Load 3 ingress session
20-03-08 15:23:12 INFO (MainThread) [supervisor.secrets] Load Home Assistant secrets: 1
20-03-08 15:23:12 INFO (MainThread) [__main__] Run Supervisor
20-03-08 15:23:12 INFO (MainThread) [supervisor.api] Start API on 172.30.32.2
20-03-08 15:23:12 INFO (MainThread) [supervisor.utils.gdbus] Call de.pengutronix.rauc.Installer.Mark on /
20-03-08 15:23:12 INFO (MainThread) [supervisor.hassos] Rauc: B - marked slot kernel.1 as good
20-03-08 15:23:12 INFO (MainThread) [supervisor.addons] Phase 'initialize' start 0 add-ons
20-03-08 15:23:12 INFO (MainThread) [supervisor.addons] Phase 'system' start 0 add-ons
20-03-08 15:23:12 INFO (MainThread) [supervisor.addons] Phase 'services' start 0 add-ons
20-03-08 15:23:12 INFO (SyncWorker_10) [supervisor.docker.interface] Start homeassistant/raspberrypi2-homeassistant
20-03-08 15:24:19 ERROR (MainThread) [supervisor.api.security] Invalid token for access /homeassistant/options
20-03-08 15:24:19 ERROR (MainThread) [supervisor.api.security] Invalid token for access /supervisor/options
20-03-08 15:24:19 ERROR (MainThread) [supervisor.api.security] Invalid token for access /homeassistant/info
20-03-08 15:24:19 ERROR (MainThread) [supervisor.api.security] Invalid token for access /ingress/panels
20-03-08 15:24:20 ERROR (MainThread) [supervisor.api.security] Invalid token for access /discovery
20-03-08 15:24:24 INFO (MainThread) [supervisor.homeassistant] Detect a running Home Assistant instance
20-03-08 15:24:24 INFO (MainThread) [supervisor.addons] Phase 'application' start 1 add-ons
20-03-08 15:24:24 INFO (SyncWorker_11) [supervisor.docker.interface] Clean addon_core_configurator application
20-03-08 15:24:28 INFO (SyncWorker_11) [supervisor.docker.addon] Start Docker add-on homeassistant/armv7-addon-configurator with version 4.7
20-03-08 15:24:33 ERROR (MainThread) [supervisor.api.security] Invalid token for access /app/entrypoint.js
20-03-08 15:24:33 INFO (MainThread) [supervisor.tasks] All core tasks are scheduled
20-03-08 15:24:33 INFO (MainThread) [supervisor.hwmon] Started Supervisor hardware monitor
20-03-08 15:24:33 INFO (MainThread) [supervisor.core] Supervisor is up and running
20-03-08 15:24:33 INFO (MainThread) [supervisor.host.info] Update local host information
20-03-08 15:24:33 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-03-08 15:24:33 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-03-08 15:24:34 INFO (MainThread) [supervisor.host.services] Update service information
20-03-08 15:24:34 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-03-08 15:24:34 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-03-08 15:24:34 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-03-08 15:24:35 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-03-08 15:36:56 ERROR (MainThread) [supervisor.api.security] Invalid token for access /app/entrypoint.js
20-03-08 16:00:21 ERROR (MainThread) [supervisor.api.security] Invalid token for access /app/entrypoint.js
20-03-08 16:03:50 ERROR (MainThread) [supervisor.api.security] Invalid token for access /app/entrypoint.js

Description of problem: The problem first occurred after updating, I had a quite old version before. From mid-January or something. After updating the supervisor panel was no longer accessible and I got the error “Unable to load panel source: /api/hassio/app/entrypoint.js”. Naturally, I restarted Home Assistant & the PI a few times, and suddenly it started working again. Later I was working on some other things with my configuration which required me to restart Hass, at first it was working well. However, after a few restarts, the issue occurred again.

I am very new to Home Assistant and I just recently figured out how to gain SSH access, so please tell me if there is something I can try.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 88 (7 by maintainers)

Most upvoted comments

Going off @scsmartt and @dereitz 's comments, I also found my issue to be watchtower related. I’ve had it for several months now but wasn’t a problem until the past week. I think watchtower tried to auto update hassio_supervisor at some point in the last few days (my cron is every SAT, midnight) and it broke.

For others who may also have a similar setup of Ubuntu 18.04, docker, portainer, watchtower, and install via supervised-installer, I fixed this issue by:

  1. Remove watchtower from docker-compose.yml. Kill and remove the container in Portainer. Then run docker-compose up -d --remove-orphans to save. Watchtower should now be gone.
  2. Prepare to remove docker containers by stopping/disabling/removing services. This comment explains how to very well.
  3. Kill and remove the following docker containers via Portainer or cli: hassio_supervisor, homeassistant, addon_*. Make sure they didn’t restart automatically (if they did, you need to do step 2 again).
  4. Run supervised-installer as root (sudo su) with (+ any optional flags, see install instructions):
curl -sL https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh | bash -s
  1. Check Portainer to see that your hassio_supervisor container is running again. If homeassistant didn’t start, run ha core start (reference).
  2. Wait for everything to boot up (may take 1-2 min).
  3. Visit your HA page. Now you should have access to the Supervisor tab and can start your other add-ons.

Hopefully this helps! Spent a good amount of time trying to figure this out myself, since I’m relatively new to HA.

I was having the same issue on a standard Ubuntu 19.10 running no other software that should interfere with HA.

What it seems is that the tokens for accessing HA from the supervisor had disappeared, so that when it went through the check in supervisor/api/security.py the self.sys_homeassistant.supervisor_token was none.

https://github.com/home-assistant/supervisor/blob/81e6896391305f0a37d737a194bf112061c600c6/supervisor/api/security.py#L128

Deleting the supervisor image, upgrading to 219, reinstalling didn’t work at all like it had previously.

What did work however, was running

ha core rebuild

Edit: had wrong formatting above.

Which seemed to refresh the tokens, and so that now my system is back up and running, and no longer has the same issues. As soon as it was done, I had access to the Supervisor panel again, as well as access to the other ingress panels that had disappeared. I am not sure why the token disappeared (initially this time on 0.108.0 and 217 after a reboot from an extended power outage) but it is back and working again after a reboot.

I have exactly the same problem. Again standard Rpi3, Hass, etc I have neither the tech skill / time / inclination to be continually problem solving. Like many others I’m using HA as a tool, not a full time occupation. Needs a fix or many like me will be walking

Not sure if you realize that this is a free project that is being worked on by ppl in their spare time. Yes there will be occasional glitches and one is expected to get his hands dirty and tshoot. If you are not willing to do that or don’t have time maybe this is not for you and maybe can find a paid alternative where you can ask for help and will receive it in due time as you will be paying for it.

The below worked for me, I am going to try to update to the latest. Upon re-running the installer, it worked and all my config was there. Going to experiment and continue building comfort in stability. Leaving watchtower off, as I dont need it any longer. 😃

Going off @scsmartt and @dereitz 's comments, I also found my issue to be watchtower related. I’ve had it for several months now but wasn’t a problem until the past week. I think watchtower tried to auto update hassio_supervisor at some point in the last few days (my cron is every SAT, midnight) and it broke.

For others who may also have a similar setup of Ubuntu 18.04, docker, portainer, watchtower, and install via supervised-installer, I fixed this issue by:

  1. Remove watchtower from docker-compose.yml. Kill and remove the container in Portainer. Then run docker-compose up -d --remove-orphans to save. Watchtower should now be gone.
  2. Prepare to remove docker containers by stopping/disabling/removing services. This comment explains how to very well.
  3. Kill and remove the following docker containers via Portainer or cli: hassio_supervisor, homeassistant, addon_*. Make sure they didn’t restart automatically (if they did, you need to do step 2 again).
  4. Run supervised-installer as root (sudo su) with (+ any optional flags, see install instructions):
curl -sL https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh | bash -s
  1. Check Portainer to see that your hassio_supervisor container is running again. If homeassistant didn’t start, run ha core start (reference).
  2. Wait for everything to boot up (may take 1-2 min).
  3. Visit your HA page. Now you should have access to the Supervisor tab and can start your other add-ons.

Hopefully this helps! Spent a good amount of time trying to figure this out myself, since I’m relatively new to HA.

This specific error is always the bane of me. I manage three different HA installations and inevitably over the last 18 months this starts happening every few months on one of them. A painful full reinstall and re-setup is required.

It sure would be nice for some way to “reinstall” or reset the supervisor FROM homeassistant core so this is resolved without having to muck around with manually updating things on the command line, or performing a full reinstall.

My setup is working ok this morning. Turns out I had added labels for watchtower to my containers but had not actually enabled labels in watchtower so I’m guessing it was still updating and breaking some part of HASS. I enabled labels yesterday and this morning everything is good. I’m not sure if it’s coincidence or not.

I did notice quite a few of these in my supervisor logs:

20-04-07 23:33:53 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].

I’m not sure what that IP is. It doesn’t exist in my docker instance as far as I can tell but it’s the same subnet as the supervisor container. They stopped after 11:34pm, right around the time it’s been breaking the past few nights.

I face the same problem. ATM I dont have the time to digg deeper into, but maybe tomorrow I will try to reinstall all docker thing. My Installation ist on homeassistan 107.7

Its anoying!

Since I have installed the update 0.106.4 on HassOS, this error also appears with me.

So I cannot access the supervisor anymore.

“Unable to load the panel source: /api/hassio/app/entrypoint.js.”

What do I do now if I don’t have SSH access?

Node Red is not installed.

Protokolldetails ( ERROR )

Logger: homeassistant.components.hassio.http Integration: Hass.io (documentation, issues) First occured: 6. März 2020, 22:06:36 (18 occurences) Last logged: 19:09:05

Client error on api app/entrypoint.js request Cannot connect to host 172.30.32.2:80 ssl:None [Connect call failed (‘172.30.32.2’, 80)]

https://community.home-assistant.io/t/cant-enter-in-supervisor-unable-to-load-the-panel-source-0-106-4/176988

https://community-home-assistant-assets.s3.dualstack.us-west-2.amazonaws.com/original/3X/e/3/e33406e5c1fa4f783a82e82ac5e03e272d536ed4.jpeg