AppDaemon on Synology Docker not starting correctly

Hello,

I’ve successfully installed AppDaemon on my Synology via docker and added the various environmental settings via the GUI and it seems to be running fine but when I attempt to go to http://my.ip:5050 I get the following errors:

Safari can't open the page ### because the server unexpectedly dropped the connection.

This is the output from my logs:

2018-05-20 10:17:01.564606 INFO AppDaemon: Reading config                                                              
2018-05-20 10:17:01.567611 INFO AppDaemon: /conf/apps/apps.yaml added or modified                                      
2018-05-20 10:17:01.567860 INFO AppDaemon: /conf/apps/apps.yaml added or modified                                      
2018-05-20 10:17:01.567982 INFO AppDaemon: App 'hello_world' added                                                     
2018-05-20 10:17:01.568244 INFO AppDaemon: Adding /conf/apps to module import path                                     
2018-05-20 10:17:01.568894 INFO AppDaemon: Loading App Module: /conf/apps/hello.py                                     
2018-05-20 10:17:01.580872 INFO AppDaemon: Initializing app hello_world using class HelloWorld from module hello       
2018-05-20 10:17:01.725840 INFO hello_world: Hello from AppDaemon                                                      
2018-05-20 10:17:01.727712 INFO hello_world: You are now ready to run Apps!                                            
2018-05-20 10:17:01.729056 INFO AppDaemon: App initialization complete  

It doesn’t seem to be starting the service as expected according to the docs, i.e. the not getting the following:

2017-04-01 14:26:48.348260 INFO HADashboard Started
2017-04-01 14:26:48.349135 INFO Listening on ('0.0.0.0', 5050)

Anyone got any idea?

What is your docker command?

Using the docker GUI on my Synology not CL. But followed the installation ok and made sure all the environmental settings are in the right place. Also tried enabling share host network and same issue.

your logs seem correct. so AD is running correct.
try using another browser.

1 Like

I will do when I return home. Shouldn’t I be getting a ‘listening on’ entry in my log?

Ok same issue, connection reset on Chrome and Firefox. A quick scan of services on my Synology and I can see port 5050 is open and accessable so I’m not sure whats going on. :frowning:

Ok I have a more complete log, I missed some entires off my first log, seems the dashboard are disabled??:

2018-05-20 14:25:35.549524 INFO AppDaemon Version 3.0.1 starting
stdout
14:25:35
2018-05-20 14:25:35.549857 INFO Configuration read from: /conf/appdaemon.yaml
stdout
14:25:35
2018-05-20 14:25:35.554047 INFO AppDaemon: Starting Apps
stdout
14:25:35
2018-05-20 14:25:35.559250 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
stdout
14:25:35
2018-05-20 14:25:35.588211 INFO AppDaemon: HASS: HASS Plugin Initializing
stdout
14:25:35
2018-05-20 14:25:35.589229 INFO AppDaemon: HASS: HASS Plugin initialization complete
stdout
14:25:35
2018-05-20 14:25:35.590143 INFO Dashboards are disabled
stdout
14:25:35
2018-05-20 14:25:35.590407 INFO API is disabled
stdout
14:25:35
2018-05-20 14:25:35.600514 INFO AppDaemon: HASS: Connected to Home Assistant 0.69.0
stdout
14:25:35
2018-05-20 14:25:35.665295 INFO AppDaemon: Got initial state from namespace default
stdout
14:25:37
2018-05-20 14:25:37.708219 INFO AppDaemon: Reading config
stdout
14:25:37
2018-05-20 14:25:37.711074 INFO AppDaemon: /conf/apps/apps.yaml added or modified
stdout
14:25:37
2018-05-20 14:25:37.711311 INFO AppDaemon: /conf/apps/apps.yaml added or modified
stdout
14:25:37
2018-05-20 14:25:37.711428 INFO AppDaemon: App 'hello_world' added
stdout
14:25:37
2018-05-20 14:25:37.711655 INFO AppDaemon: Adding /conf/apps to module import path
stdout
14:25:37
2018-05-20 14:25:37.711912 INFO AppDaemon: Adding /conf/apps/@eaDir to module import path
stdout
14:25:37
2018-05-20 14:25:37.712295 INFO AppDaemon: Loading App Module: /conf/apps/hello.py
stdout
14:25:37
2018-05-20 14:25:37.724480 INFO AppDaemon: Initializing app hello_world using class HelloWorld from module hello
stdout
14:25:37
2018-05-20 14:25:37.869642 INFO hello_world: Hello from AppDaemon
stdout
14:25:37
2018-05-20 14:25:37.871694 INFO hello_world: You are now ready to run Apps!
stdout
14:25:37
2018-05-20 14:25:37.872736 INFO AppDaemon: App initialization complete

and here is my appdaemon.yaml which is standard form what I can see:

log:
  logfile: STDOUT
  errorfile: STDERR
appdaemon:
  threads: 10
  plugins:
    HASS:
      type: hass
      ha_url: http://192.168.1.12:8123
      ha_key: ************

You have configured AppDaemon corectly but you haven;t done any of the dashboard configuration steps:

http://appdaemon.readthedocs.io/en/latest/DASHBOARD_INSTALL.html

2 Likes

Wow how did I miss that, I assumed (wrongly) that it was already setup as I already specified the dash_url in the docker command (GUI).

Thanks, now its time to play :slight_smile:

2 Likes