Dashboard Refresh issues

When I first started, I would make changes and not see them. But if I added a new file name then it would refresh for awhile. So I add “dash_force_compile: 1” to the config yaml and that fixed it. I did try the url option but it did not seem to work. I was going to mention it but forgot, till now, and it’s back.
Actually, little different, now if the url x.x.x.x:5050 I get a “500 internal server error”. If the url x.x.x.x:5050/MainPanel I see it but changes are not reflected. I have a climate widget and it works.
One other note, In between the last time I messed with dashboard and now, I tried to get my garage door opener to work. I had to do the open zwave (ozw) patch for barriers. Long thread, all mine are at the bottom of it, here is where the meat starts … https://community.home-assistant.io/t/linear-ngdz00-4-garage-door/2136/220?u=penright

some detail info …

pi@hassbian:/home/homeassistant $ sudo systemctl -l status [email protected][email protected] - AppDaemon
   Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
   Active: active (running) since Wed 2017-07-19 14:21:57 UTC; 18s ago
 Main PID: 932 (appdaemon)
   CGroup: /system.slice/system-appdaemon.slice/[email protected]
           └─932 /usr/bin/python3 /usr/local/bin/appdaemon -c /home/homeassistant/.homeassistant/AppDaemon/conf

Jul 19 14:22:08 hassbian appdaemon[932]: context = yield from coro(*args)
Jul 19 14:22:08 hassbian appdaemon[932]: File "/usr/local/lib/python3.4/dist-packages/appdaemon/appdash.py", line 51, in list_dash
Jul 19 14:22:08 hassbian appdaemon[932]: dash_list = list(completed)[0].result()
Jul 19 14:22:08 hassbian appdaemon[932]: File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
Jul 19 14:22:08 hassbian appdaemon[932]: raise self._exception
Jul 19 14:22:08 hassbian appdaemon[932]: File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
Jul 19 14:22:08 hassbian appdaemon[932]: result = self.fn(*self.args, **self.kwargs)
Jul 19 14:22:08 hassbian appdaemon[932]: File "/usr/local/lib/python3.4/dist-packages/appdaemon/dashboard.py", line 670, in list_dashes
Jul 19 14:22:08 hassbian appdaemon[932]: files = os.listdir(conf.dashboard_dir)
Jul 19 14:22:08 hassbian appdaemon[932]: PermissionError: [Errno 13] Permission denied: '/home/homeassistant/.homeassistant/AppDaemon/conf/dashboards'
pi@hassbian:/home/homeassistant $
2017-07-19 14:16:19.822431 INFO Dashboard disconnected
2017-07-19 14:17:24.294010 INFO AppDaemon Version 2.0.4 starting
2017-07-19 14:17:24.296262 INFO Configuration read from: /home/homeassistant/.homeassistant/AppDaemon/conf/appdaemon.yaml
2017-07-19 14:17:24.324317 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2017-07-19 14:17:29.343091 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2017-07-19 14:17:34.355934 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2017-07-19 14:17:47.463331 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2017-07-19 14:17:52.785585 INFO Got initial state
2017-07-19 14:17:52.787134 INFO App initialization complete
2017-07-19 14:17:52.787888 INFO Starting dashboard
2017-07-19 14:17:52.826965 INFO Connected to Home Assistant 0.48.1
2017-07-19 14:22:00.341577 INFO AppDaemon Version 2.0.4 starting
2017-07-19 14:22:00.352692 INFO Configuration read from: /home/homeassistant/.homeassistant/AppDaemon/conf/appdaemon.yaml
2017-07-19 14:22:00.534902 INFO Got initial state
2017-07-19 14:22:00.536296 INFO App initialization complete
2017-07-19 14:22:00.536994 INFO Starting dashboard
2017-07-19 14:22:00.556367 INFO Connected to Home Assistant 0.48.1
2017-07-19 14:25:27.651352 INFO function [compile_dash] finished in 26 ms
2017-07-19 14:25:28.203346 INFO New dashboard connected: Main Panel
2017-07-19 14:25:52.417247 INFO function [compile_dash] finished in 6 ms
2017-07-19 14:25:52.455438 INFO Dashboard disconnected
2017-07-19 14:25:52.896704 INFO New dashboard connected: Main Panel
2017-07-19 14:28:10.245324 INFO function [compile_dash] finished in 13 ms
2017-07-19 14:28:10.293395 INFO Dashboard disconnected
2017-07-19 14:28:10.745846 INFO New dashboard connected: Main Panel
2017-07-19 14:35:54.915865 INFO Dashboard disconnected
2017-07-19 14:36:41.802506 INFO New dashboard connected: Main Panel

seems like that the filerights from your dashboard directory are not correct.

and not seeing changes you made in a dashboards are mostly the result from cashing from your browser.
after making changes, clear your cash

That was my thought, I did a chown homeassistant:homeassistant . *
so I thought I would go back and check

pi@hassbian:/home/homeassistant/.homeassistant/AppDaemon $ ls -l
total 792
-rw-r--r-- 1 homeassistant homeassistant  12951 Jul 14 22:04 AppDaemon.Log
-rw-r--r-- 1 homeassistant homeassistant 781413 Jul 19 14:36 AppDaemons.Log
d-wx--x--x 8 homeassistant homeassistant   4096 Jul 17 22:54 conf
drwxr-xr-x 2 homeassistant homeassistant   4096 Jul 14 21:52 images
pi@hassbian:/home/homeassistant/.homeassistant/AppDaemon $ ls -l conf
ls: cannot open directory conf: Permission denied

Why is conf owner:group homeassistant, but when I take a directory I get permission denied. But I can ls images.

The permissions on conf are wrong.

chmod 755 conf/

should fix it up

There are a few more, but that process did fix it. Updating the ozw must set the directories.
BTW, running chrome holding the ctrl when clicking the reload will flush the cache.

2 Likes