Appdaemon isn't running

AppDaemon
Aktuelle Version: 0.17.2

2025-05-28 20:50:08.875422 WARNING AppDaemon: ------------------------------------------------------------
2025-05-28 20:50:08.875480 WARNING AppDaemon: Unexpected error during run()
2025-05-28 20:50:08.876403 WARNING AppDaemon: ------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/appdaemon/__main__.py", line 157, in run
    loop.run_until_complete(asyncio.gather(*pending))
  File "/usr/lib/python3.12/asyncio/base_events.py", line 691, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/appdaemon/utility_loop.py", line 144, in loop
    await self.AD.app_management.check_app_updates(mode=UpdateMode.INIT)
  File "/usr/lib/python3.12/site-packages/appdaemon/app_management.py", line 809, in check_app_updates
    await self._import_modules(update_actions)
  File "/usr/lib/python3.12/site-packages/appdaemon/app_management.py", line 1055, in _import_modules
    load_order = self.dependency_manager.python_sort(modules)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/appdaemon/dependency_manager.py", line 210, in python_sort
    order = [n for n in topo_sort(self.python_deps.dep_graph) if n in modules]
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/appdaemon/dependency.py", line 261, in topo_sort
    raise CircularDependency(f"Visited {visited} already, but {node} depends on {deps}")
appdaemon.dependency.CircularDependency: Visited ['typing', 'paho.mqtt.properties', 'paho.mqtt.packettypes', 'struct', 'socket', 'solmate_appdaemon_0', 'hassapi', 'multiprocessing', 'os', 'solmate_appdmonitor', 'solmate_appdsolmate', 'solmate_utils', 'syslog', 'sys', 'solmate_importmanager', 'subprocess', 'contextlib', 'importlib', 'asyncio', 'datetime', 'queue', 'solmate_main', 'time', 'schedule', 'solmate_connect', 'solmate_websocket', 'json', 'websockets.client', 'base64', 'hashlib', 'signal', 'solmate_env', 'dotenv'] already, but solmate_appdaemon_0 depends on {'hassapi', 'multiprocessing', 'os', 'solmate_appdmonitor', 'solmate_appdsolmate'}
2025-05-28 20:50:08.876524 INFO AppDaemon: Previous message repeated 1 times
2025-05-28 20:50:08.876562 DEBUG AppDaemon: End Loop
2025-05-28 20:50:08.876591 INFO AppDaemon: AppDaemon Exited

Did you add extra dependencies in the config? It looks like it is having problems loading modules that are interdependent. Maybe you added some delendencies that conflict with the ones appdeamon already loaded.

I run the latest appdeamon too without problems.

Not that I know. I’ll control it

No dependencies found.

my appdaemon.yaml

appdaemon:
  time_zone: Europe/Berlin
  latitude: 53.7289
  longitude: 9.9079
  elevation: 23
  production_mode: True
  missing_app_warnings: 0
  plugins:
    HASS:
      type: hass
      ha_url: http://homeassistant.fritz.box:8123
      token: 
http:
  url: http://0.0.0.0:5050
admin:
api:
hadashboard:
  dash_url: "http://127.0.0.0:5050"
  dash_dir: /addon_configs/a0d7b954_appdaemon/dashboards
  dash_force_compile: 1
  dash_compile_on_start: 1
logs:
  solmate_log_0:
    name: Solmate_Log_0
    filename: /config/solmate_0.log
  error_log:
    filename: /config/error.log
  main_log:
    filename: /config/appdaemon.log
  access_log:
    filename: /config/access.log
  diag_log:
    filename: /config/diag.log

I do not use solmate, and solmate is mentioned in the error. I’d check in with the developer for that app, maybe post an issue in their github repo. I do not know if it is possible to downgrade the addon without a backup. Did you backup the addon while updating?

I’m having exactly the same issue - same error message with 17.2.2. The only app I use is controllerx - latest version 4.29.0.

Hi @kgeree ,

Check this issue for the workaround for ControllerX:

Regards,
Xavi M.

1 Like

thank you for the heads up…but I think i can wait for the fixed version… now I rolled back appdaemon to the last working version.

1 Like

Update of solmate solved the Problem: