huh! Problem solved after manually creating apps.yaml in config folder. I think main problem is updating to latest version of AppDaemon.
Yes, this was a breaking change in the latest version of AppDaemon:
Hi I have same error my appdaemon loads in pi but in the url its showning 404: Not Found please help My appdaemon shows this errors:
2017-09-14 04:35:45.746120 INFO AppDaemon Version 2.1.9 starting
2017-09-14 04:35:45.747054 INFO Configuration read from: /home/homeassistant/.homeassistant/appdaemon.yaml
2017-09-14 04:35:46.870749 INFO Starting Apps
2017-09-14 04:35:47.332978 INFO Got initial state
2017-09-14 04:35:47.334744 INFO Loading Module: /home/homeassistant/.homeassistant/apps/hello.py
2017-09-14 04:35:47.337512 INFO App initialization complete
2017-09-14 04:35:47.339156 INFO Starting dashboard
2017-09-14 04:35:47.347933 WARNING ------------------------------------------------------------
2017-09-14 04:35:47.348820 WARNING Unexpected error in dashboard thread
2017-09-14 04:35:47.349562 WARNING ------------------------------------------------------------
2017-09-14 04:35:47.354236 WARNING Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-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/compiled/javascript’
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-packages/appdaemon/rundash.py”, line 318, in run_dash
setup_routes(conf.dashboard_obj)
File “/usr/local/lib/python3.4/dist-packages/appdaemon/rundash.py”, line 288, in setup_routes
app.router.add_static(’/compiled_javascript’, dashboard.compiled_javascript_dir)
File “/usr/local/lib/python3.4/dist-packages/aiohttp/web_urldispatcher.py”, line 845, in add_static
follow_symlinks=follow_symlinks)
File “/usr/local/lib/python3.4/dist-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/compiled/javascript’
2017-09-14 04:35:47.361541 WARNING ------------------------------------------------------------
2017-09-14 04:35:47.362642 INFO Starting API
2017-09-14 04:35:48.004389 INFO Connected to Home Assistant 0.53.0
2017-09-14 04:35:49.001872 WARNING Scheduler clock skew detected - delta = 1.0017499923706055 - resetting
this also is probably a fileright problem.
the user that is starting appdaemon needs to have write acces in the configuration directory and all beneath it.
Thanks ReneTode I ran a command sudo chmod 777 in /home/homeassistant/.homeassistant/complied and dashboard directory as I am new to RPi3 I dont know much about how to use linux much if you please explain how can I go further please!
@ReneTode After your reply I even tried sudo chmod 777 on the parent directory /home/homeassistant/.homeassistant/ but still not result
do you still get the same error?
does the compiled dir exist?
is there anything in it?
if so try to delete everything in it and restart.
do you have dashboards in your dashboard dir?
if yes what is in that dashboard?
yes same error and in he compliled dir… there is nothing… also in dashboard dir i made a file name Hello.dash as shown on the HADashboard configuration website and the dir name is “dashboards” not “dashboard”
@ReneTode This same error is coming…
sudo appdaemon -c /home/homeassistant/.homeassistant
2017-09-14 17:49:37.758090 INFO AppDaemon Version 2.1.9 starting
2017-09-14 17:49:37.758848 INFO Configuration read from: /home/homeassistant/.homeassistant/appdaemon.yaml
2017-09-14 17:49:38.351245 INFO Starting Apps
2017-09-14 17:49:38.801728 INFO Got initial state
2017-09-14 17:49:38.803255 INFO Loading Module: /home/homeassistant/.homeassistant/apps/hello.py
2017-09-14 17:49:38.805046 INFO App initialization complete
2017-09-14 17:49:38.806089 INFO Starting dashboard
2017-09-14 17:49:38.814613 WARNING ------------------------------------------------------------
2017-09-14 17:49:38.815279 WARNING Unexpected error in dashboard thread
2017-09-14 17:49:38.815773 WARNING ------------------------------------------------------------
2017-09-14 17:49:38.819990 WARNING Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-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/compiled/javascript’
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-packages/appdaemon/rundash.py”, line 318, in run_dash
setup_routes(conf.dashboard_obj)
File “/usr/local/lib/python3.4/dist-packages/appdaemon/rundash.py”, line 288, in setup_routes
app.router.add_static(’/compiled_javascript’, dashboard.compiled_javascript_dir)
File “/usr/local/lib/python3.4/dist-packages/aiohttp/web_urldispatcher.py”, line 845, in add_static
follow_symlinks=follow_symlinks)
File “/usr/local/lib/python3.4/dist-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/compiled/javascript’
2017-09-14 17:49:38.820532 WARNING ------------------------------------------------------------
2017-09-14 17:49:38.820906 INFO Starting API
2017-09-14 17:49:39.184242 INFO Connected to Home Assistant 0.53.0
2017-09-14 17:49:40.001507 WARNING Scheduler clock skew detected - delta = 1.001384973526001 - resetting
This is my appdaemon.ymal file :
AppDaemon:
logfile: STDOUT
errorfile: STDERR
logsize: 100000
log_generations: 3
threads: 10
#cert_path: <path/to/root/CA/cert>
#cert_verify: True
time_zone: Asia/Kolkata
api_port: 5000
disable_apps: 0
#api_key: !secret api_key
#api_ssl_certificate: <path/to/root/CA/cert>
#api_ssl_key: <path/to/root/CA/key>
HASS:
ha_url: *********************** (For security cleared my web address)
ha_key: !secret HMA_Password
HADashboard:
dash_url: http://192.168.1.245:5000
dash_dir: /home/homeassistant/.homeassistant/dashboards
dash_force_compile: 1
i dont know if it will solve anything but at least you need to have 2 different ports for appdaemon API and dashboard.
you did set both to 5000 now, which will result in conflicts and 1 of the 2 cant work.
i got same error, i use “pi” user to install appdaemon,and dir is “/home/pi/appdaemon/”. i chmod this folder to 777,and still got error “no existed compiled folder”.
Can you post the exact error text please
2017-09-16 23:34:47.346767 INFO AppDaemon Version 2.1.10 starting
2017-09-16 23:34:47.347377 INFO Configuration read from: /home/pi/appdaemon/conf/appdaemon.yaml
2017-09-16 23:34:47.471432 INFO Starting Apps
2017-09-16 23:34:47.556736 INFO Got initial state
2017-09-16 23:34:47.557979 INFO Loading Module: /home/pi/appdaemon/conf/apps/hello.py
2017-09-16 23:34:47.560814 INFO Loading Object hello_world using class HelloWorld from module hello
2017-09-16 23:34:47.712687 INFO hello_world: Hello from AppDaemon
2017-09-16 23:34:47.715594 INFO hello_world: You are now ready to run Apps!
2017-09-16 23:34:47.716055 INFO App initialization complete
2017-09-16 23:34:47.716704 INFO Starting dashboard
2017-09-16 23:34:47.723908 WARNING ------------------------------------------------------------
2017-09-16 23:34:47.724533 WARNING Unexpected error in dashboard thread
2017-09-16 23:34:47.724885 WARNING ------------------------------------------------------------
2017-09-16 23:34:47.736202 WARNING Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-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/pi/appdaemon/conf/compiled’
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-packages/appdaemon/rundash.py”, line 318, in run_dash
setup_routes(conf.dashboard_obj)
File “/usr/local/lib/python3.4/dist-packages/appdaemon/rundash.py”, line 288, in setup_routes
app.router.add_static(’/compiled_javascript’, dashboard.compiled_javascript_dir)
File “/usr/local/lib/python3.4/dist-packages/aiohttp/web_urldispatcher.py”, line 845, in add_static
follow_symlinks=follow_symlinks)
File “/usr/local/lib/python3.4/dist-packages/aiohttp/web_urldispatcher.py”, line 404, in init
“No directory exists at ‘{}’”.format(directory)) from error
ValueError: No directory exists at ‘/home/pi/appdaemon/conf/compiled/javascript’
2017-09-16 23:34:47.736771 WARNING ------------------------------------------------------------
2017-09-16 23:34:47.737144 INFO API is disabled
2017-09-16 23:34:47.747914 INFO Connected to Home Assistant 0.52.1
how did you install this appdaemon version?
I solved the problem. I used PI users to install appdaemon before, and always got the error. So I just used PI users to go to the /home/homeassistant directory, install appdaemon, and manually create compiled, JavaScript, CSS, three directories, and modify their permissions at the same time. Succeed!
But I think it’s still a problem, and many users who install Hassbian with raspberry and install appdaemon may have this problem, and still have to think about how to solve the problem.
Interesting - 2.1.10 is currently a dev version …
Hi Guys
I’m pretty sure I am having the same problem as whuiscool but I don’t understand his solution…
I followed the instructions from the appdaemon site and end up with this:
pi@hassbian:~ $ sudo systemctl status [email protected]
● [email protected] - AppDaemon
Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
Active: active (running) since Tue 2017-10-03 12:40:35 AEDT; 47min ago
Main PID: 10928 (appdaemon)
CGroup: /system.slice/system-appdaemon.slice/[email protected]
└─10928 /usr/bin/python3 /usr/local/bin/appdaemon -c /home/homeassistant/.homeassistant/confOct 03 12:40:35 hassbian systemd[1]: Started AppDaemon.
Oct 03 12:41:22 hassbian appdaemon[10928]: 2017-10-03 12:41:22.038329 INFO AppDaemon Version 2.1.9 starting
Oct 03 12:41:22 hassbian appdaemon[10928]: 2017-10-03 12:41:22.038886 INFO Configuration read from: /home/homeassistant/.homeassistant/conf/appdaemon.yaml
Oct 03 12:41:26 hassbian appdaemon[10928]: 2017-10-03 01:41:26.223608 INFO Starting Apps
Oct 03 12:41:26 hassbian appdaemon[10928]: 2017-10-03 01:41:26.798824 INFO Got initial state
Oct 03 12:41:26 hassbian appdaemon[10928]: 2017-10-03 01:41:26.800185 INFO Loading Module: /home/homeassistant/.homeassistant/conf/apps/hello.py
Oct 03 12:41:27 hassbian appdaemon[10928]: 2017-10-03 01:41:27.784330 INFO Loading Object hello_world using class HelloWorld from module hello
Oct 03 12:41:28 hassbian appdaemon[10928]: 2017-10-03 01:41:28.247285 INFO hello_world: Hello from AppDaemon
Oct 03 12:41:28 hassbian appdaemon[10928]: 2017-10-03 01:41:28.250591 INFO hello_world: You are now ready to run Apps!
Oct 03 12:41:28 hassbian appdaemon[10928]: 2017-10-03 01:41:28.251031 INFO App initialization complete
Oct 03 12:41:28 hassbian appdaemon[10928]: 2017-10-03 01:41:28.251722 INFO Starting dashboard
Oct 03 12:41:28 hassbian appdaemon[10928]: 2017-10-03 01:41:28.266980 WARNING ------------------------------------------------------------
Oct 03 12:41:28 hassbian appdaemon[10928]: 2017-10-03 01:41:28.267451 WARNING Unexpected error in dashboard thread
Oct 03 12:41:28 hassbian appdaemon[10928]: 2017-10-03 01:41:28.267761 WARNING ------------------------------------------------------------
Oct 03 12:41:28 hassbian appdaemon[10928]: 2017-10-03 01:41:28.279304 WARNING Traceback (most recent call last):
Oct 03 12:41:28 hassbian appdaemon[10928]: File “/usr/local/lib/python3.4/dist-packages/aiohttp/web_urldispatcher.py”, line 399, in init
Oct 03 12:41:28 hassbian appdaemon[10928]: directory = directory.resolve()
Oct 03 12:41:28 hassbian appdaemon[10928]: File “/usr/lib/python3.4/pathlib.py”, line 1031, in resolve
Oct 03 12:41:28 hassbian appdaemon[10928]: s = self._flavour.resolve(self)
Oct 03 12:41:28 hassbian appdaemon[10928]: File “/usr/lib/python3.4/pathlib.py”, line 297, in resolve
Oct 03 12:41:28 hassbian appdaemon[10928]: return _resolve(base, str(path)) or sep
Oct 03 12:41:28 hassbian appdaemon[10928]: File “/usr/lib/python3.4/pathlib.py”, line 282, in _resolve
Oct 03 12:41:28 hassbian appdaemon[10928]: target = accessor.readlink(newpath)
Oct 03 12:41:28 hassbian appdaemon[10928]: File “/usr/lib/python3.4/pathlib.py”, line 374, in readlink
Oct 03 12:41:28 hassbian appdaemon[10928]: return os.readlink(path)
Oct 03 12:41:28 hassbian appdaemon[10928]: FileNotFoundError: [Errno 2] No such file or directory: ‘/home/homeassistant/.homeassistant/conf/compiled’
Oct 03 12:41:28 hassbian appdaemon[10928]: The above exception was the direct cause of the following exception:
Oct 03 12:41:28 hassbian appdaemon[10928]: Traceback (most recent call last):
Oct 03 12:41:28 hassbian appdaemon[10928]: File “/usr/local/lib/python3.4/dist-packages/appdaemon/rundash.py”, line 318, in run_dash
Oct 03 12:41:28 hassbian appdaemon[10928]: setup_routes(conf.dashboard_obj)
Oct 03 12:41:28 hassbian appdaemon[10928]: File “/usr/local/lib/python3.4/dist-packages/appdaemon/rundash.py”, line 288, in setup_routes
Oct 03 12:41:28 hassbian appdaemon[10928]: app.router.add_static(‘/compiled_javascript’, dashboard.compiled_javascript_dir)
Oct 03 12:41:28 hassbian appdaemon[10928]: File “/usr/local/lib/python3.4/dist-packages/aiohttp/web_urldispatcher.py”, line 845, in add_static
Oct 03 12:41:28 hassbian appdaemon[10928]: follow_symlinks=follow_symlinks)
Oct 03 12:41:28 hassbian appdaemon[10928]: File “/usr/local/lib/python3.4/dist-packages/aiohttp/web_urldispatcher.py”, line 404, in init
Oct 03 12:41:28 hassbian appdaemon[10928]: “No directory exists at ‘{}’”.format(directory)) from error
Oct 03 12:41:28 hassbian appdaemon[10928]: ValueError: No directory exists at ‘/home/homeassistant/.homeassistant/conf/compiled/javascript’
Oct 03 12:41:28 hassbian appdaemon[10928]: 2017-10-03 01:41:28.279829 WARNING ------------------------------------------------------------
Oct 03 12:41:28 hassbian appdaemon[10928]: 2017-10-03 01:41:28.280262 INFO Starting API
Oct 03 12:41:28 hassbian appdaemon[10928]: 2017-10-03 01:41:28.581101 INFO Connected to Home Assistant 0.53.0
I am pretty sure the problem is related to the
FileNotFoundError: [Errno 2] No such file or directory: ‘/home/homeassistant/.homeassistant/conf/compiled’
But i don’t know enough about linux to solve permissions issues.
Can someone please help with this?
i dont know enough about commandlines to set file permissions.
but i solve that by using winscp.
if you have winscp running you can go to any directory, just like explorer and you can see which filerights that files or dirs have.
then its just a rightclick to go to setting the filerights.
ReneTode
When I try using winscp it says “permission denied”
All the folders and files in the \home\homeassistant.homeassistant\conf directory are owned by homeassistant user, which I think is correct…