appdaemon icon indicating copy to clipboard operation
appdaemon copied to clipboard

AD - stuck in starting dashboard

Open avico78 opened this issue 3 years ago • 1 comments

first thanks much for this great ProJet, I'm use it for few years and it provide great stability .

I upgrade to AppDaemon 4.2.1 from some old 4.x.x version and not starting . it stuck in the Starting Dashboards step and can't find reason , probably my previous configuration break up with 4.2.1 but can't see where:

log:

2022-10-01 00:58:04.341404 INFO AppDaemon: AppDaemon Version 4.2.1 starting
2022-10-01 00:58:04.342151 INFO AppDaemon: Python version is 3.9.9
2022-10-01 00:58:04.345726 INFO AppDaemon: Configuration read from: /conf/appdaemon.yaml
2022-10-01 00:58:04.346662 INFO AppDaemon: Added log: AppDaemon
2022-10-01 00:58:04.357099 INFO AppDaemon: Added log: Error
2022-10-01 00:58:04.360495 INFO AppDaemon: Added log: Access
2022-10-01 00:58:04.362628 INFO AppDaemon: Added log: Diag
2022-10-01 00:58:04.768899 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2022-10-01 00:58:05.248722 INFO HASS: HASS Plugin Initializing
2022-10-01 00:58:05.253969 INFO HASS: HASS Plugin initialization complete
2022-10-01 00:58:05.259378 INFO AppDaemon: Loading Plugin MQTT using class MqttPlugin from module mqttplugin
2022-10-01 00:58:05.410235 INFO MQTT: MQTT Plugin Initializing
2022-10-01 00:58:05.410948 INFO MQTT: Using 'mqtt-client/status' as Will Topic
2022-10-01 00:58:05.420383 INFO MQTT: Using 'mqtt-client/status' as Birth Topic
2022-10-01 00:58:05.422328 INFO MQTT: Using appdaemon_mqtt_client as Client ID
2022-10-01 00:58:05.432091 WARNING AppDaemon: error loading plugin: MQTT - ignoring
2022-10-01 00:58:05.434295 WARNING AppDaemon: ------------------------------------------------------------
2022-10-01 00:58:05.452603 WARNING AppDaemon: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/appdaemon/plugin_management.py", line 112, in __init__
    raise ValueError("Duplicate namespace: {}".format(namespace))
ValueError: Duplicate namespace: default

2022-10-01 00:58:05.455948 WARNING AppDaemon: ------------------------------------------------------------
2022-10-01 00:58:05.504197 INFO AppDaemon: Initializing HTTP
2022-10-01 00:58:05.512047 INFO AppDaemon: Using 'ws' for event stream
2022-10-01 00:58:05.558215 INFO AppDaemon: Starting API
2022-10-01 00:58:05.612894 INFO AppDaemon: Starting Admin Interface
2022-10-01 00:58:05.622563 INFO AppDaemon: Starting Dashboards

compose file:

  appdaemon:
      container_name: appdaemon
      image: acockburn/appdaemon:latest
    ports:
      - 5050:5050
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${PWD}/appdaemon4/config:/conf
    depends_on:
      - homeassistant
    restart: always

conf/appdaemon.yaml:

secrets: /conf/secrets.yaml
logs:
  main_log:
    filename: /conf/logs/appdaemon.log
  error_log:
    filename: /conf/logs/error.log
  access_log:
    filename: /conf/logs/access.log
appdaemon:
  time_zone: !secret timezone
  latitude: !secret latitude
  longitude: !secret longitude
  elevation: !secret elevation
  missing_app_warnings: 1
  production_mode: False
  app_dir: /conf/apps
  plugins:
    HASS:
      type: hass
     # namespace: appdaemon-hass
      #namespace: default
      token: !secret appdaemon_token
      ha_url: !secret ha_internal
    MQTT:
      type: mqtt
      namespace: default
      client_host: !secret mqtt_broker
http:
  url: http://192.168.1.112:5050
api:
hadashboard:
admin:
  title: AppDaemon
  stats_update: realtime

avico78 avatar Sep 30 '22 22:09 avico78

Issue solved - HA was hanging and as it AD depends on HA - it just waited ,all good tnx

avico78 avatar Oct 01 '22 08:10 avico78