Hadashboard stopped to work

Hello,
I am using HADashboard using AppDaemon 3.x for Home Assistant on Home Assistant 0.75.2 and HassOS 1.9
I´ve edited dashboard ( not a big change, just size of widgets) and since that cannot open it at all.
Neither AppDaemon restart nor HomeAssistant reboot did not help.
Not even AppDaemon reinstall did not help.
Restore last working state from snapshot does not worl as well.

There are strange lines in the AppDaemon log:

  File "<frozen importlib._bootstrap_external>", line 487, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
Traceback (most recent call last):
  File "/usr/bin/appdaemon", line 7, in <module>
from appdaemon.admain import main
  File "/usr/lib/python3.6/site-packages/appdaemon/admain.py", line 2, in <module>
from pkg_resources import parse_version
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 73, in <module>
__import__('pkg_resources.extern.packaging.specifiers')
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 779, in get_code
  File "<frozen importlib._bootstrap_external>", line 487, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
Traceback (most recent call last):
  File "/usr/bin/appdaemon", line 7, in <module>
from appdaemon.admain import main
  File "/usr/lib/python3.6/site-packages/appdaemon/admain.py", line 2, in <module>
from pkg_resources import parse_version
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 73, in <module>
__import__('pkg_resources.extern.packaging.specifiers')
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 779, in get_code
  File "<frozen importlib._bootstrap_external>", line 487, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
Traceback (most recent call last):
  File "/usr/bin/appdaemon", line 7, in <module>
from appdaemon.admain import main
  File "/usr/lib/python3.6/site-packages/appdaemon/admain.py", line 2, in <module>
from pkg_resources import parse_version
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 73, in <module>
__import__('pkg_resources.extern.packaging.specifiers')
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 779, in get_code
  File "<frozen importlib._bootstrap_external>", line 487, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
Traceback (most recent call last):
  File "/usr/bin/appdaemon", line 7, in <module>
from appdaemon.admain import main
  File "/usr/lib/python3.6/site-packages/appdaemon/admain.py", line 2, in <module>
from pkg_resources import parse_version
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 73, in <module>
__import__('pkg_resources.extern.packaging.specifiers')
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 779, in get_code
  File "<frozen importlib._bootstrap_external>", line 487, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
Traceback (most recent call last):
  File "/usr/bin/appdaemon", line 7, in <module>
from appdaemon.admain import main
  File "/usr/lib/python3.6/site-packages/appdaemon/admain.py", line 2, in <module>
from pkg_resources import parse_version
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 73, in <module>
__import__('pkg_resources.extern.packaging.specifiers')
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 779, in get_code
  File "<frozen importlib._bootstrap_external>", line 487, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
Traceback (most recent call last):
  File "/usr/bin/appdaemon", line 7, in <module>
from appdaemon.admain import main
  File "/usr/lib/python3.6/site-packages/appdaemon/admain.py", line 2, in <module>
from pkg_resources import parse_version
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 73, in <module>
__import__('pkg_resources.extern.packaging.specifiers')
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 779, in get_code
  File "<frozen importlib._bootstrap_external>", line 487, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
Traceback (most recent call last):
  File "/usr/bin/appdaemon", line 7, in <module>
from appdaemon.admain import main
  File "/usr/lib/python3.6/site-packages/appdaemon/admain.py", line 2, in <module>
from pkg_resources import parse_version
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 73, in <module>
__import__('pkg_resources.extern.packaging.specifiers')
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 779, in get_code
  File "<frozen importlib._bootstrap_external>", line 487, in _compile_bytecode
ValueError: bad marshal data (unknown type code)

I did not change anything else.
Is there any way how to make it working again?

did you change to the new user password system in HA?
or updated HA recently.
the error is unknown to me.

please show you log from the moment that you restarted AD, so i can see if AD is started correctly.
if AD is up and running correct then you could try to change the dashboard back. and you can also try a test dashboard with just the clock to see if all is right and when so the please share your dashboard so we can see what is wrong with it.

I did not neither change password system nor updated HA recently.

Full log after AD restart:

[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] 00-banner.sh: executing... 
-----------------------------------------------------------
 Hass.io Add-on: AppDaemon v1.3.0
 Python Apps and HADashboard using AppDaemon 3.x for Home Assistant
 From: Community Hass.io Add-ons
 By: Franck Nijhof <[email protected]>
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 02-updates.sh: executing... 
INFO: You are running the latest version of this add-on
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] 20-init-configuration.sh: executing... 
[cont-init.d] 20-init-configuration.sh: exited 0.
[cont-init.d] 21-compiled-dir.sh: executing... 
[cont-init.d] 21-compiled-dir.sh: exited 0.
[cont-init.d] 30-auto-password.sh: executing... 
[cont-init.d] 30-auto-password.sh: exited 0.
[cont-init.d] 31-ha-url.sh: executing... 
[cont-init.d] 31-ha-url.sh: exited 0.
[cont-init.d] 50-compiled-symlink.sh: executing... 
[cont-init.d] 50-compiled-symlink.sh: exited 0.
[cont-init.d] 80-system-packages.sh: executing... 
[cont-init.d] 80-system-packages.sh: exited 0.
[cont-init.d] 81-python-packages.sh: executing... 
[cont-init.d] 81-python-packages.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Traceback (most recent call last):
  File "/usr/bin/appdaemon", line 7, in <module>
    from appdaemon.admain import main
  File "/usr/lib/python3.6/site-packages/appdaemon/admain.py", line 2, in <module>
    from pkg_resources import parse_version
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 73, in <module>
    __import__('pkg_resources.extern.packaging.specifiers')
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 779, in get_code
  File "<frozen importlib._bootstrap_external>", line 487, in _compile_bytecode
ValueError: bad marshal data (unknown type code)

If I try to open HADashboard, either directly through IP or from AD (Open Web UI) the only info I see is:

This site can’t be reached
192.168.1.107 refused to connect.

Try:
Checking the connection
Checking the proxy and the firewall
Check your internet connection.

(The same result with Chrome, Opera, IE)

AD did never start.

so it has nothing to do with the change in your dashboard.
this is an hassio/addon problem.
i know there are parts from hassio that automaticly update, so it is possible that you had an update without you noticing it.

i am sorry but i cant help you with this.
try asking about it in the hassio section.

I solved it by full reinstall of HassOS, HassIO and restore all except HassIO from snapshot.

1 Like