The current version of Home Assistant and AppDaemon were installed as Docker containers on Ubuntu.
Home Assistant was installed using:
sudo docker run -d \ --name homeassistant \ --privileged \ --restart=unless-stopped \ -e TZ=Africa/Johannesburg \ -v /home/karibi/home_assistant:/config \ --network=host \ ghcr.io/home-assistant/home-assistant:stable
I can access it on port 8123 and the installation appears to be okay. However, I have not carried out any further configuration.
I installed AppDaemon on the same computer using:
sudo docker run --rm -it -p 5050:5050 \ --name AppDaemon \ -e HA_URL=http://UbuntuSrv:8123 \ -e DASH_URL="http://$HOSTNAME:5050" \ -v /home/karibi/appDaemon:/conf \ acockburn/appdaemon:latest
It is running and can be viewed in Portainer. Long live tokens were not used as I believe they are not required. The log file shows it starting up correctly but immediately disconnects and retries 5 seconds later. This is a completely clean build so there is nothing left over from previous installations. Could anybody point me in the right direction to resolve this issue? Any suggestions would be very much appreciated.
2022-12-11 21:05:23.863733 INFO AppDaemon: AppDaemon Version 4.2.1 starting 2022-12-11 21:05:23.863866 INFO AppDaemon: Python version is 3.9.9 2022-12-11 21:05:23.863947 INFO AppDaemon: Configuration read from: /conf/appdaemon.yaml 2022-12-11 21:05:23.864019 INFO AppDaemon: Added log: AppDaemon 2022-12-11 21:05:23.864097 INFO AppDaemon: Added log: Error 2022-12-11 21:05:23.864168 INFO AppDaemon: Added log: Access 2022-12-11 21:05:23.864237 INFO AppDaemon: Added log: Diag 2022-12-11 21:05:23.876333 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin 2022-12-11 21:05:23.888181 INFO HASS: HASS Plugin Initializing 2022-12-11 21:05:23.888308 INFO HASS: HASS Plugin initialization complete 2022-12-11 21:05:23.888553 INFO AppDaemon: Initializing HTTP 2022-12-11 21:05:23.888737 INFO AppDaemon: Using 'ws' for event stream 2022-12-11 21:05:23.890786 INFO AppDaemon: Starting API 2022-12-11 21:05:23.892590 INFO AppDaemon: Starting Admin Interface 2022-12-11 21:05:23.892777 INFO AppDaemon: Starting Dashboards 2022-12-11 21:05:28.899616 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds 2022-12-11 21:05:28.910420 INFO AppDaemon: App 'hello_world' added 2022-12-11 21:05:28.910648 INFO AppDaemon: Found 1 total apps 2022-12-11 21:05:28.910857 INFO AppDaemon: Starting Apps with 1 workers and 1 pins 2022-12-11 21:05:28.914286 INFO AppDaemon: Running on port 5050 2022-12-11 21:05:38.908036 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds 2022-12-11 21:05:48.916322 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds 2022-12-11 21:05:58.922471 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds