Need help my Hadashboard stopped working with error -
sudo systemctl status appdaemon.service -l
● appdaemon.service - HA Dashboard
Loaded: loaded (/etc/systemd/system/appdaemon.service; enabled)
Active: failed (Result: exit-code) since Sat 2017-06-03 22:03:57 PDT; 4s ago
Process: 31696 ExecStart=/usr/bin/python3 -m appdaemon.appdaemon -c /home/pi/appdaemon_dashboard/appdaemon/conf -p /home/pi/appd$ (code=exited, status=1/FAILURE)
Main PID: 31696 (code=exited, status=1/FAILURE)
Jun 03 22:03:57 HaHome python3[31696]: File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
Jun 03 22:03:57 HaHome python3[31696]: File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
Jun 03 22:03:57 HaHome python3[31696]: File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
Jun 03 22:03:57 HaHome python3[31696]: File "<frozen importlib._bootstrap>", line 1129, in _exec
Jun 03 22:03:57 HaHome python3[31696]: File "<frozen importlib._bootstrap>", line 1467, in exec_module
Jun 03 22:03:57 HaHome python3[31696]: File "<frozen importlib._bootstrap>", line 1570, in get_code
Jun 03 22:03:57 HaHome python3[31696]: File "<frozen importlib._bootstrap>", line 656, in _compile_bytecode
Jun 03 22:03:57 HaHome python3[31696]: ValueError: bad marshal data (invalid reference)
Jun 03 22:03:57 HaHome systemd[1]: appdaemon.service: main process exited, code=exited, status=1/FAILURE
Jun 03 22:03:57 HaHome systemd[1]: Unit appdaemon.service entered failed state.
after deleating .pyc file using sudo find . -name *.pyc -delete now i am getting error -
● appdaemon.service - HA Dashboard
Loaded: loaded (/etc/systemd/system/appdaemon.service; enabled)
Active: failed (Result: exit-code) since Sat 2017-06-03 22:28:15 PDT; 3min 8s ago
Process: 550 ExecStart=/usr/bin/python3 -m appdaemon.appdaemon -c /home/pi/appdaemon_dashboard/appdaemon/conf -p /home/pi/appd$ (code=exited, status=1/FAILURE)
Main PID: 550 (code=exited, status=1/FAILURE)
Jun 03 22:28:15 HaHome python3[550]: exec(code, run_globals)
Jun 03 22:28:15 HaHome python3[550]: File "/home/pi/appdaemon_dashboard/appdaemon/appdaemon/appdaemon.py", line 27, in <module>
Jun 03 22:28:15 HaHome python3[550]: import appdaemon.appdash as appdash
Jun 03 22:28:15 HaHome python3[550]: File "/home/pi/appdaemon_dashboard/appdaemon/appdaemon/appdash.py", line 2, in <module>
Jun 03 22:28:15 HaHome python3[550]: from aiohttp import web
Jun 03 22:28:15 HaHome python3[550]: File "/usr/local/lib/python3.4/dist-packages/aiohttp/__init__.py", line 6, in <module>
Jun 03 22:28:15 HaHome python3[550]: from .client import * # noqa
Jun 03 22:28:15 HaHome python3[550]: TypeError: source code string cannot contain null bytes
Jun 03 22:28:15 HaHome systemd[1]: appdaemon.service: main process exited, code=exited, status=1/FAILURE
Jun 03 22:28:15 HaHome systemd[1]: Unit appdaemon.service entered failed state.
Can someone help me resolve this error, please? It seems to not want to load the ‘hello’ dashboard. I wanted to fix this before attempting to make a dashboard for my HA setup.
I ask because I ran into this same issue during the testing of the newest release with @aimc and my Hello.dash was kinda screwy, but yours is correct.
I’m going to assume at this point that you are trying to load Hello.dash with the default style, so it rules out any custom CSS being at fault.
Can you take a look in the /appdaemon_dashboard/appdaemon/conf/compiled/html/default directory and tell me if you see the files hello_body.html and hello_head.html? Can you load any of the other dashboards that come as example files?
I’m going to assume at this point that you are trying to load Hello.dash with the default style
Correct.
Can you take a look in the /appdaemon_dashboard/appdaemon/conf/compiled/html/default directory and tell me if you see the files hello_body.html and hello_head.html?
I don’t have a ‘compiled’ directory. This is what’s in my conf dir. Searching for those files turns up nothing, also – I tried that even before my first post about this problem.
pi@hassbian:~/appdaemon_dashboard/appdaemon/conf $ ls -al
total 44
drwxr-xr-x 6 pi pi 4096 Jun 2 17:31 .
drwxr-xr-x 7 pi pi 4096 Jun 1 18:05 ..
-rwxr-xr-x 1 pi pi 339 Jun 3 08:57 appdaemon.cfg
-rwxr-xr-x 1 pi pi 188 Jun 1 18:05 appdaemon.cfg.example
drwxr-xr-x 2 pi pi 4096 Jun 1 18:05 apps
drwxr-xr-x 2 pi pi 4096 Jun 1 18:05 dashboards
drwxr-xr-x 3 pi pi 4096 Jun 1 18:05 example_apps
drwxr-xr-x 4 pi pi 4096 Jun 1 18:05 example_dashboards
-rwxr-xr-x 1 pi pi 6563 Jun 1 18:05 examples.cfg
-rw-r--r-- 1 pi pi 5 Jun 1 18:05 .gitignore
I followed all the steps to build that @quadportnick posted here. I see some people use ‘docker run …’ but I can’t because (I suppose) I did ‘docker start …’ – if that’s even relevant.
Unfortunately, I have no experience with Docker but there are others who follow this thread that do. I am concerned that you don’t have a compiled directory though; I can’t imagine that Docker would be so different that it would put it in another place.
Tried reinstalling hadashboard but still same error -
Traceback (most recent call last):
File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/pi/appdaemon_dashboard/appdaemon/appdaemon/appdaemon.py", line 27, in <module>
import appdaemon.appdash as appdash
File "/home/pi/appdaemon_dashboard/appdaemon/appdaemon/appdash.py", line 2, in <module>
from aiohttp import web
File "/usr/local/lib/python3.4/dist-packages/aiohttp/__init__.py", line 6, in <module>
from .client import * # noqa
TypeError: source code string cannot contain null bytes
Not sure - I’m currently on vacation, I’ll have a look when I get back. There may be a version mismatch with AIOHTTP or you may have some corrupted files.