AppDaemon - refuse to start

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

Hi @Avi_Cohen ,

If no namespace is specified, then it will use default. The error you are getting is because you have 2 plugins (HA and MQTT) with same namespace.

Recommended solution:
Change the namespace of the MQTT to namespace: mqtt. However, when you go to use that plugin in code, you will need to specify the mqtt namespace. If no namespace is specify in code, it will use the HA plugin.

Regards,
Xavi M.