Upgrading to 4.0.3 in docker - container keeps restarting

I finally decided to upgrade from version 3 to 4.0.3. I am trying to install it in docker on my Synology NAS, where I have AD 3.0.5 running. My problem is that my container will not start, it keeps restarting and I cannot see anything in the log:

2020-04-11 10:31:51.453402 INFO AppDaemon: AppDaemon Version 4.0.3 starting
2020-04-11 10:31:51.453861 INFO AppDaemon: Python version is 3.8.2
2020-04-11 10:31:51.454320 INFO AppDaemon: Configuration read from: /conf/appdaemon.yaml
2020-04-11 10:31:51.454634 INFO AppDaemon: Added log: AppDaemon
2020-04-11 10:31:51.454970 INFO AppDaemon: Added log: Error
2020-04-11 10:31:51.455320 INFO AppDaemon: Added log: Access
2020-04-11 10:31:51.455626 INFO AppDaemon: Added log: Diag
2020-04-11 10:31:51.455941 ERROR AppDaemon: time_zone not specified in appdaemon.cfg
2020-04-11 10:31:51.456258 ERROR AppDaemon: latitude not specified in appdaemon.cfg
2020-04-11 10:31:51.456537 ERROR AppDaemon: longitude not specified in appdaemon.cfg
2020-04-11 10:31:51.456816 ERROR AppDaemon: elevation not specified in appdaemon.cfg

To be sure I have created i clean folder with no current configurations/apps in. Also I have tried every version from 4.0.0 but with same result. Creating a container with AP 3.0.5 works as it should.

Any suggestions to what I am doing wrong?

You need to add the variables is mentioning in the last error lines to your conf file.

1 Like

Thanks… Why did I not see that before.

It is up an running now

I spent most of the day trying to get AD running in Docker on a Pi. Followed the steps in the docs for Docker on a Pi to the letter. Tried variations, docker-compose, watching YouTube videos and Googling. Could not connect to IP:5050. Didn’t see logs showing up in my persistent folder. Happen to check the logs in Portainer and saw basically the same as posted above. Added lat/long, elvation, and TZ and I connected just fine. My appdaemon.yaml:

> appdaemon:
>   latitude: xx.989189
>   longitude: -xx.007985
>   elevation: 0
>   time_zone: America/New_York
>   plugins:
>     HASS:
>       type: hass
>       ha_url:
>       token: TOKEN_HERE
> http:
>   url:
> admin:
> api:
> hadashboard: