Supervisor connection refused affecting panels and entrypoint.js

Hello,

Woke up to a broken Hassio tab that reads:
“Unable to load the panel source: /api/hassio/app/entrypoint.js.”

Logs repeat the following a couple times this morning around 4AM:

2019-09-14 04:05:18 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /homeassistant/info request Cannot connect to host 172.30.32.2:80 ssl:None [Connect call failed (' 172.30.32.2 ', 80)]

2019-09-14 04:05:18 WARNING (MainThread) [homeassistant.components.hassio] Can't read last version:

I’m able to SSH and login, but any commands to the supervisor, HassOS, or Snapshots give a [172.30.32.2:80](https://172.30.32.2:80/) connection refused

From what issues I’ve seen around the web, the 172 IP is associated with the Supervisor Docker Container. But I can’t restart the Pi without a connection. Wondering how to safely restart or if I have to pull the plug, or how to fix this issue otherwise.

Thanks

I had the same error (entrypoint.js). After I rebooted my host system, hassio is no longer starting. I can see the hassio_supervisor and hassio_dns docker containers cycling over and over without ever starting. Locked out at the moment.

This is what I’ve pulled so far. Still looking into whatever happened.

root@hassio:~# docker logs hassio_supervisor
19-09-14 21:08:56 INFO (MainThread) [__main__] Initialize Hass.io setup
19-09-14 21:08:56 INFO (SyncWorker_0) [hassio.docker.supervisor] Attach to Supervisor homeassistant/amd64-hassio-supervisor with version 187
19-09-14 21:08:56 INFO (SyncWorker_0) [hassio.docker.supervisor] Connect Supervisor to Hass.io Network
19-09-14 21:08:57 INFO (MainThread) [__main__] Setup HassIO
19-09-14 21:08:57 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.systemd1 - /org/freedesktop/systemd1
19-09-14 21:08:57 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.hostname1 - /org/freedesktop/hostname1
19-09-14 21:08:57 WARNING (MainThread) [hassio.dbus.rauc] Host has no rauc support. OTA updates have been disabled.
19-09-14 21:08:57 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.NetworkManager - /org/freedesktop/NetworkManager/DnsManager
19-09-14 21:08:57 INFO (MainThread) [hassio.host.info] Update local host information
19-09-14 21:08:57 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
19-09-14 21:08:57 INFO (MainThread) [hassio.host.services] Update service information
19-09-14 21:08:57 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
19-09-14 21:08:57 INFO (MainThread) [hassio.host.network] Update local network DNS information
19-09-14 21:08:57 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
19-09-14 21:08:57 INFO (MainThread) [hassio.host.apparmor] Load AppArmor Profiles: {'hassio-supervisor'}
19-09-14 21:08:57 INFO (MainThread) [hassio.host.services] Reload local service hassio-apparmor.service
19-09-14 21:08:57 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ReloadOrRestartUnit on /org/freedesktop/systemd1
19-09-14 21:08:57 INFO (SyncWorker_2) [hassio.docker.interface] Attach to homeassistant/amd64-hassio-dns with version 1
19-09-14 21:08:57 INFO (MainThread) [hassio.dns] Update resolv from Supervisor
19-09-14 21:08:57 WARNING (MainThread) [hassio.dns] Can't write local resolv: [Errno 13] Permission denied: '/etc/resolv.conf'
19-09-14 21:08:57 INFO (MainThread) [hassio.misc.forwarder] Start DNS port forwarding to 172.30.32.3
19-09-14 21:08:57 INFO (SyncWorker_4) [hassio.docker.interface] Stop hassio_dns application
19-09-14 21:08:59 INFO (SyncWorker_4) [hassio.docker.interface] Clean hassio_dns application
19-09-14 21:08:59 INFO (MainThread) [hassio.dns] Start CoreDNS plugin
19-09-14 21:09:01 INFO (SyncWorker_0) [hassio.docker.dns] Start DNS homeassistant/amd64-hassio-dns with version 1
19-09-14 21:09:01 INFO (SyncWorker_6) [hassio.docker.interface] Attach to homeassistant/qemux86-64-homeassistant with version 0.98.5
19-09-14 21:09:01 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/git/a0d7b954 repository
19-09-14 21:09:01 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/git/fe41fc28 repository
19-09-14 21:09:01 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/core repository
19-09-14 21:09:01 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/git/806b11b5 repository
19-09-14 21:09:01 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/git/7ad98f9c repository
19-09-14 21:09:01 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/git/cebe7a76 repository
19-09-14 21:09:01 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/git/a722577e repository
19-09-14 21:09:01 INFO (MainThread) [hassio.store] Load add-ons from store: 68 all - 68 new - 0 remove
19-09-14 21:09:01 INFO (MainThread) [hassio.addons] Found 14 installed add-ons
19-09-14 21:09:01 INFO (SyncWorker_8) [hassio.docker.interface] Attach to hassioaddons/node-red-amd64 with version 4.1.1
19-09-14 21:09:01 INFO (SyncWorker_5) [hassio.docker.interface] Attach to hassioaddons/log-viewer-amd64 with version 0.6.3
19-09-14 21:09:01 INFO (SyncWorker_16) [hassio.docker.interface] Attach to hassioaddons/vscode-amd64 with version 0.6.5
19-09-14 21:09:01 INFO (SyncWorker_9) [hassio.docker.interface] Attach to korylprince/hassio-caddy-amd64 with version 1.6
19-09-14 21:09:01 INFO (SyncWorker_0) [hassio.docker.interface] Attach to homeassistant/amd64-addon-check_config with version 3.0
19-09-14 21:09:01 INFO (SyncWorker_17) [hassio.docker.interface] Attach to korylprince/hassio-apcupsd-amd64 with version 1.9
19-09-14 21:09:01 INFO (SyncWorker_17) [hassio.docker.interface] Attach to hassioaddons/glances-amd64 with version 0.5.5
19-09-14 21:09:01 INFO (SyncWorker_2) [hassio.docker.interface] Attach to sabeechen/hassio-google-drive-backup-amd64 with version 0.98.3
19-09-14 21:09:01 INFO (SyncWorker_3) [hassio.docker.interface] Attach to dwelch2101/zigbee2mqtt-amd64 with version 1.6.0
19-09-14 21:09:01 INFO (SyncWorker_17) [hassio.docker.interface] Attach to hassioaddons/wireguard-amd64 with version 0.1.1
19-09-14 21:09:01 INFO (SyncWorker_1) [hassio.docker.interface] Attach to homeassistant/amd64-addon-samba with version 8.1
19-09-14 21:09:01 INFO (SyncWorker_2) [hassio.docker.interface] Attach to homeassistant/amd64-addon-mosquitto with version 5.0
19-09-14 21:09:01 INFO (SyncWorker_13) [hassio.docker.interface] Attach to carldebilly/zigbee2mqttassistant with version 172
19-09-14 21:09:01 INFO (SyncWorker_6) [hassio.docker.interface] Attach to hassioaddons/sonweb-amd64 with version 0.8.2
19-09-14 21:09:01 INFO (MainThread) [hassio.updater] Fetch update data from https://version.home-assistant.io/stable.json
19-09-14 21:09:01 INFO (MainThread) [hassio.snapshots] Found 12 snapshot files
19-09-14 21:09:01 INFO (MainThread) [hassio.discovery] Load 1 messages
19-09-14 21:09:01 INFO (MainThread) [hassio.ingress] Load 0 ingress session
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/src/hassio/hassio/__main__.py", line 47, in <module>
    loop.run_until_complete(coresys.core.setup())
  File "uvloop/loop.pyx", line 1451, in uvloop.loop.Loop.run_until_complete
  File "/usr/src/hassio/hassio/core.py", line 76, in setup
    await self.sys_secrets.load()
  File "/usr/src/hassio/hassio/secrets.py", line 35, in load
    await self._read_secrets()
  File "/usr/src/hassio/hassio/utils/__init__.py", line 55, in wrapper
    return await method(*args, **kwargs)
  File "/usr/src/hassio/hassio/secrets.py", line 57, in _read_secrets
    _LOGGER.debug("Reload Home Assistant secrets: %s", len(self.secrets))
TypeError: object of type 'NoneType' has no len()
19-09-14 21:09:02 ERROR (MainThread) [asyncio] Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7faba8c17950>
19-09-14 21:09:02 ERROR (MainThread) [asyncio] Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7faba74e1b10>
19-09-14 21:09:02 ERROR (MainThread) [asyncio] Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7faba71de4b0>, 1031.534)]']
connector: <aiohttp.connector.TCPConnector object at 0x7faba74e1c90>

Did this just happen to you within the last 24 hours? Trying to look for a pattern.

Also I should mention that my home assistant switches work. It’s my addons like node-red and the Hassio Panel that I can’t access

Definitely recent, but unsure of the precursor. Home Assistant was largely working with the exception of the entrypoint.js error on the Hassio tab. Did notice that some of my node-red based automations have been failing all day; didn’t get to looking at that before rebooting my host OS (Ubuntu 18.04). After that I’m dead in the water.

I’m on a Pi. Just unplugged it, seems completely non-responsive in terms of the OS. Cannot SSH, cannot get back into hassio, the RPi shows up on the network list.

Before I did the unplug, I still had samba access (not sure how) so I copied all files because the snapshot service wasn’t working.

Don’t really understand where this came from.

I suspect this is related to a recent Hassio supervisor update (186/187). The hassio-supervisor service is failing on the line:

File "/usr/src/hassio/hassio/secrets.py", line 57, in _read_secrets
    _LOGGER.debug("Reload Home Assistant secrets: %s", len(self.secrets))

It looks like this was modified in the 186 release, not sure if its relevant tho.

I’ve found that if I manually start the homeassistant container, it will start. Of course, all the addons managed by the supervisor are not running. Still investigating.

I’ve opened an issue on the hassio github; not sure what else to do at this point:
https://github.com/home-assistant/hassio/issues/1292

I have the same problem with the same version.
Reinstalled a Snapshot, did a clean install and put everything manually back but everytime i’ll get the message “ Unable to load the panel source: /api/hassio/app/entrypoint.js” with in a couple of hours.

Anyone having this issue, please see Ludeeus’s post here:
https://github.com/home-assistant/hassio/issues/1292#issuecomment-531550991

Basically, you likely have an empty secrets.yaml file. Placing a dummy entry in there like:
test: test

Should resolve the issue. My supervisor container came up instantly when I did this.

Hi,

I have experienced this error two times in a week and there are only so many results on Google for this issue so I decided to share what I have learned.

I’m in no means an expert on Hassio nor Docker but what I realised was that the Home assistant log contained a couple of the following line:

19-12-19 08:33:39 ERROR (MainThread) [hassio.api.security] Invalid token for access /app/entrypoint.js

Seems to me after performing a docker ps that some containers was just recently created (why I have no idea), and somehow got out of sync. There seems to be some sort of tokens generated by/for the Home Assistant Supervisor and they were faulty.

What I did was:

  1. Made a full backup of the /usr/share/hassio (could possibly be named something else on your system) folder containing the config folder and other inportant stuff.
  2. Stopped the supervisor with systemctl stop hassio-supervisor.service
  3. Stopped all containers in docker with docker stop $(docker ps -a -q)
  4. Removed all containers with docker container rm CONTAINER_ID (repeat for all containers)

At this point I could probably have started the supervisor again, but I rebooted and everything was running again after a couple of minutes.

Btw, I’m on a Intel Nuc with Ubuntu 18.04 LTS and run Hassio in Docker (not the snap version!).

I am facing the exact same issue.
Accessing any Hassio Add-on ingress tab or the Supervisor tab fails with this error:
Unable to load the panel source: /api/hassio/app/entrypoint.js.

Further, on checking the Portainer logs for the Supervisor container, I see this error, for my attempts to access those tabs:
ERROR (MainThread) [supervisor.api.security] Invalid token for access /app/entrypoint.js

I have tried cleaning up Hassio and setting up the containers again as @lellky suggested. With that everything starts working again, but only for a few mins/hours. After that, the same error starts coming up again! It seems like all of this started after the 107 update, but seems like the update probably didn’t have much to do with this issue.

Any assistance would be greatly appreciated!

1 Like

Feel free to join our discussion on the same topic also. link