Sam_Davis
(Sam Davis)
January 30, 2018, 9:06pm
1
After following all the steps in this tutorial up to and including the point of running appdaemon… But upon running it I get this error:
Traceback (most recent call last):
File “/usr/local/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/local/lib/python3.5/dist-packages/appdaemon/admain.py”, line 198, in main
config.read_file(open(config_file_conf))
TypeError: invalid file: None
I am using a Pi B+ with Raspian also running the Home Assistant server and Homebridge.
aimc
(Andrew Cockburn)
January 30, 2018, 9:08pm
2
AppDaemon can’t find your config directory - how are you starting it?
Sam_Davis
(Sam Davis)
January 30, 2018, 9:11pm
3
appdaemon -c /home/homeassistant/.homeassistant/conf (which is my config directory)
aimc
(Andrew Cockburn)
January 30, 2018, 9:14pm
4
OK, more accurately, it is not finding appdaemon.yaml in that directory. What version are you running? I’m guessing 2.1.12 from the backtrace.
aimc
(Andrew Cockburn)
January 30, 2018, 9:18pm
6
OK, pretty much the same, it’s looking for appdaemon.yaml or appdaemon.cfg in that directory and not finding it.
Sam_Davis
(Sam Davis)
January 30, 2018, 9:20pm
7
It is there though… I’ve attached an image of the directory and file in case there’s anything wrong.
aimc
(Andrew Cockburn)
January 30, 2018, 9:28pm
8
Only thing I can think of is a permissions problem.
Sam_Davis
(Sam Davis)
January 30, 2018, 9:37pm
9
I tried running with sudo as well as copying the appdaemon.yaml to appdaemon.cfg and still no luck…
as which user do you run the command?
does that user have full sudo options?
gpbenton
(Graham)
January 31, 2018, 12:10pm
11
I think you need to show the output of
ls -l /home/homeassistant/.homeassistant/conf
You might also mention which user you are trying to run appdaemon as.
Sam_Davis
(Sam Davis)
February 3, 2018, 2:29am
12
Working now for some reason
Weberan89
(Weberan)
February 18, 2018, 10:07pm
13
what did you change? im in the exact same position with the described issue.
Thx.
cdevice
(chris)
March 18, 2018, 12:09am
14
sudo -u homeassistant appdaemon -c/home/homeassistant/.homeassistant/conf/