Announcement: AppDaemon 2.1.8, 2.1.9

AppDaemon 2.1.9 won’t run on my pi3/HASSbian. I created an empty apps.yaml file and unset disable_apps but no go. I had to break it after a while and got this error:

(homeassistant) homeassistant@hassbian:~/.homeassistant/conf $ appdaemon -c /home/homeassistant/.homeassistant/conf -D DEBUG
^CTask exception was never retrieved
future: <Task finished coro=<appstate_loop() done, defined at /srv/homeassistant/lib/python3.4/site-packages/appdaemon/appdaemon.py:1108> exception=AttributeError(“‘Queue’ object has no attribute ‘task_done’”,)>
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/tasks.py”, line 235, in _step
result = coro.send(value)
File “/srv/homeassistant/lib/python3.4/site-packages/appdaemon/appdaemon.py”, line 1113, in appstate_loop
conf.appq.task_done()
AttributeError: ‘Queue’ object has no attribute ‘task_done’

I’ve also tried installing urrlib3 and chardet manually but no go.

I’ve been using appdaemon and hadashboard for about a month just fine on my old instance. Had to setup from scratch after the SD card went wonky.

whats in your appdaemon.yaml?
and whats in your logfiles?

Log:

2017-10-04 04:24:07.411226 INFO AppDaemon Version 2.1.9 starting
2017-10-04 04:24:07.412198 INFO Configuration read from: /home/homeassistant/.homeassistant/conf/appdaemon.yaml
2017-10-04 04:24:07.512341 INFO Starting Apps
2017-10-04 04:24:07.595268 INFO Got initial state
2017-10-04 04:24:07.596295 INFO App initialization complete
2017-10-04 04:24:07.597010 INFO Starting dashboard
2017-10-04 04:24:07.604928 WARNING ------------------------------------------------------------
2017-10-04 04:24:07.605499 WARNING Unexpected error in dashboard thread
2017-10-04 04:24:07.605872 WARNING ------------------------------------------------------------
2017-10-04 04:24:07.609746 WARNING Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/aiohttp/web_urldispatcher.py”, line 399, in init
directory = directory.resolve()
File “/usr/lib/python3.4/pathlib.py”, line 1031, in resolve
s = self._flavour.resolve(self)
File “/usr/lib/python3.4/pathlib.py”, line 297, in resolve
return _resolve(base, str(path)) or sep
File “/usr/lib/python3.4/pathlib.py”, line 282, in _resolve
target = accessor.readlink(newpath)
File “/usr/lib/python3.4/pathlib.py”, line 374, in readlink
return os.readlink(path)
FileNotFoundError: [Errno 2] No such file or directory: ‘/home/homeassistant/.homeassistant/conf/compiled’

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/appdaemon/rundash.py”, line 318, in run_dash
setup_routes(conf.dashboard_obj)
File “/srv/homeassistant/lib/python3.4/site-packages/appdaemon/rundash.py”, line 288, in setup_routes
app.router.add_static(‘/compiled_javascript’, dashboard.compiled_javascript_dir)
File “/srv/homeassistant/lib/python3.4/site-packages/aiohttp/web_urldispatcher.py”, line 845, in add_static
follow_symlinks=follow_symlinks)
File “/srv/homeassistant/lib/python3.4/site-packages/aiohttp/web_urldispatcher.py”, line 404, in init
“No directory exists at ‘{}’”.format(directory)) from error
ValueError: No directory exists at ‘/home/homeassistant/.homeassistant/conf/compiled/javascript’

2017-10-04 04:24:07.610301 WARNING ------------------------------------------------------------
2017-10-04 04:24:07.610696 INFO API is disabled
2017-10-04 04:24:07.620182 INFO Connected to Home Assistant 0.54.0

Config

AppDaemon:
logfile: /home/homeassistant/.homeassistant/appdaemon.log
errorfile: /home/homeassistant/.homeassistant/appdaemonerrors.log
threads: 10
HASS:
ha_url: http://192.168.1.8:8123
HADashboard:
dash_url: http://192.168.1.8:5050

i dont know why but it seems that lots off people need to create these dirs manually

/home/homeassistant/.homeassistant/conf/compiled/javascript
/home/homeassistant/.homeassistant/conf/compiled/html
/home/homeassistant/.homeassistant/conf/compiled/css

and set writing rights for the user that starts appdaemon.
so in your case homeassistant

1 Like

This worked. AppDaemon is back, baby!

1 Like