using the -d switch causes appdaemon to hangup on startup.
I am using the following command in an init.d script appdaemon -c /root/.homeassistant/appdaemon/conf/ -p /var/run/app-da.pid -d
The error log shows the conf sections are empty however if I drop the -d it starts up correctly.
This is the debug log with -d
2018-03-15 23:02:13.048481 INFO AppDaemon Version 3.0.0b5 starting
2018-03-15 23:02:13.048629 INFO Configuration read from: /root/.homeassistant/appdaemon/conf/appdaemon.yaml
2018-03-15 23:02:13.048692 DEBUG AppDaemon Section: None
2018-03-15 23:02:13.048750 DEBUG HADashboard Section: None
running as root isnt advisable.
i had some processes that i would like to run as root(sudo) so i tried running AD as root, only to find out that there other libs and processes that wont work with root.
VLC is 1 example that cant be run with root.
i cant say (with the very little information that you give) that the root user is the problem, but i would suggest to run as another user.
I would be happy to provide more information. I came from an Appdaemon 2 install and made the changes to my configs for 3. As of right now app daemon will not start as a daemon.
Hi ReneTode, possibly a stupid question; I have some addons showing me “Warning: Mosquitto should not be run as root/administrator.” How can I change this to run as a regular user and not ROOT?
Thanks
Did you ever get this fixed rabittn? I seem to have the same problem - runs fine in foreground but doesn’t start properly if i place it with the background.
This is with appdaemon running as a non root user - where all the files it reads are owned by that user.
This also doesn’t work. I added the -p just in case it needed a pid file in daemon mode. I then added the -D DEBUG to try and see what stage it got to before hanging.
Raspberry pi running ubuntu 16.04.5 LTS. I’m using the version of python3 that comes with the distro - and creating a virtualenv environment as described on the appdaemon documentation page.
I think this is a red herring though, I don’t see that this should make a difference to something that’s interpreted and where the lowest level interface are its network connections - and besides it’s clear that at least one other person has the same issue.