Where did the AD config go with update to 0.15.0?

Appdaemon does not start anymore after update to 0.15.0, because it can’t read my secrets file anymore:

[13:23:00] INFO: Starting AppDaemon...
ERROR Error loading secrets file: /config/secrets.yaml
Traceback (most recent call last):
  File "/usr/bin/appdaemon", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.11/site-packages/appdaemon/__main__.py", line 417, in main
    admain.main()
  File "/usr/lib/python3.11/site-packages/appdaemon/__main__.py", line 276, in main
    if "appdaemon" not in config:
       ^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable
[13:23:07] INFO: Service AppDaemon exited with code 1 (by signal 0)

Where did the AD config go to? Any hints welcome!

2 Likes

Its moved to its own folder

It keeps changing it back to /config/secrets.yaml - so now my appdeamon doesn’t work. Good job I backed it up!!

If you decide to restore your backup - COPY THE DIRECTORY back over to the config/appdeamon directory. It removes the new one but doesn’t (obviosuly) move it back to where it was.

My appdaemon is starting now, but it messed up the add descriptions!

2023-11-15 13:53:16.550772 INFO AppDaemon: Got initial state from namespace default
2023-11-15 13:53:18.242446 INFO AppDaemon: Scheduler running in realtime
2023-11-15 13:53:18.245986 INFO AppDaemon: Adding /config/apps to module import path
2023-11-15 13:53:18.250230 INFO AppDaemon: Loading App Module: /config/apps/hello.py
2023-11-15 13:53:18.327506 WARNING AppDaemon: No app description found for: /config/apps/AMIS_Reader2.py - ignoring
2023-11-15 13:53:18.328758 WARNING AppDaemon: No app description found for: /config/apps/Dart_Checkout_Calculator.py - ignoring
2023-11-15 13:53:18.329760 INFO AppDaemon: Loading app hello_world using class HelloWorld from module hello
2023-11-15 13:53:18.332456 INFO AppDaemon: Calling initialize() for hello_world
2023-11-15 13:53:18.438992 INFO hello_world: Hello from AppDaemon
2023-11-15 13:53:18.441670 INFO hello_world: You are now ready to run Apps!
2023-11-15 13:53:18.444651 INFO AppDaemon: App initialization complete

!?!

Update to 0.15.2 - it fixes the issues. As per Frencks instructions :

Important, v0.15.0 & v0.15.1 have an issue with failing to detect the migration that already happened.

That is unfortunate, but it did happen and didn’t show up in testing, unfortunately :sob:

If you have upgraded from v0.14 or older to v0.15.0 or v0.15.1 you will encounter a migration problem.

To solve this:

  1. Restore a backup (AppDaemon + home assistant config as that is where the appdaemon config is stored)
  2. Clear out the AppDaemon folder in /addon_configs/, which contains the invalid migration. You can access this folder using the terminal add-on or using the addon_configs share provided by the Samba add-on.

Once you are back up and running on the previous version, upgrade to v0.15.2.

I’ve addressed the issue as quickly as possible, but I cannot revert what has been done.

I’m mostly mad at myself right now, and I’m deeply sorry this happened.

Sorry for the issue this might have caused for you :pray:

…/Frenck

3 Likes

I’ve followed these steps and got AppDaemon working again at 0.14.0, but when I migrate to 15.2, all of my config disappears and I get the “appdaemon not in config:” error again.

I restored the AppDaemon application from the backup and the files under …config/appdamon before retrying the update - is there something else I should have done? (There were no files in /addon_configs)

Exactly the same here. :frowning: I have followed the procedure described by @Neil_Brownlee several times but without success.

You still need to change /config/secrets.yaml to /homeasistant/secrets.yaml in the appdeamon.yaml (now in the new location)

3 Likes

Thanks very much Neil, that’s fixed it. :slight_smile:

1 Like

Yes, that did it! All automations do work again! Thanks a lot, Neil @Neil_Brownlee! :slight_smile:

Nevertheless, there are lots of warnings in the log now. I guess they are also related to that config to homeassistant folder migration?

Warnings from the log (click to expand!)
2023-11-15 15:48:33.612909 WARNING AppDaemon: No app description found for: /config/apps/hello.py - ignoring
2023-11-15 15:48:33.615266 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_version.py - ignoring
2023-11-15 15:48:33.617547 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_helper.py - ignoring
2023-11-15 15:48:33.619190 INFO AppDaemon: Loading App Module: /config/apps/controllerx/controllerx.py
2023-11-15 15:48:34.013623 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_const.py - ignoring
2023-11-15 15:48:34.015910 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/smartkontakten.py - ignoring
2023-11-15 15:48:34.018102 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/legrand.py - ignoring
2023-11-15 15:48:34.020232 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/osram.py - ignoring
2023-11-15 15:48:34.022392 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/shelly.py - ignoring
2023-11-15 15:48:34.024760 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/__init__.py - ignoring
2023-11-15 15:48:34.027158 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/ikea.py - ignoring
2023-11-15 15:48:34.030042 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/sengled.py - ignoring
2023-11-15 15:48:34.032459 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/tasmota.py - ignoring
2023-11-15 15:48:34.034879 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/lutron.py - ignoring
2023-11-15 15:48:34.037150 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/muller_licht.py - ignoring
2023-11-15 15:48:34.039661 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/terncy.py - ignoring
2023-11-15 15:48:34.041851 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/smartthings.py - ignoring
2023-11-15 15:48:34.044090 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/robb.py - ignoring
2023-11-15 15:48:34.046516 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/trust.py - ignoring
2023-11-15 15:48:34.048797 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/rgb_genie.py - ignoring
2023-11-15 15:48:34.050766 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/philips.py - ignoring
2023-11-15 15:48:34.052764 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/sonoff.py - ignoring
2023-11-15 15:48:34.054566 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/prolight.py - ignoring
2023-11-15 15:48:34.056792 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/homematic.py - ignoring
2023-11-15 15:48:34.059553 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/adeo.py - ignoring
2023-11-15 15:48:34.061849 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/tuya.py - ignoring
2023-11-15 15:48:34.064470 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/aqara.py - ignoring
2023-11-15 15:48:34.066895 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/livarno.py - ignoring
2023-11-15 15:48:34.069463 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/aurora.py - ignoring
2023-11-15 15:48:34.072097 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_devices/linkind.py - ignoring
2023-11-15 15:48:34.074781 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/color_helper.py - ignoring
2023-11-15 15:48:34.076998 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/__init__.py - ignoring
2023-11-15 15:48:34.079539 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/release_hold_controller.py - ignoring
2023-11-15 15:48:34.081798 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/type_controller.py - ignoring
2023-11-15 15:48:34.084151 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/controller.py - ignoring
2023-11-15 15:48:34.086519 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/integration/shelly.py - ignoring
2023-11-15 15:48:34.090613 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/integration/mqtt.py - ignoring
2023-11-15 15:48:34.092862 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/integration/__init__.py - ignoring
2023-11-15 15:48:34.095633 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/integration/state.py - ignoring
2023-11-15 15:48:34.098064 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/integration/tasmota.py - ignoring
2023-11-15 15:48:34.100301 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/integration/lutron_caseta.py - ignoring
2023-11-15 15:48:34.102379 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/integration/event.py - ignoring
2023-11-15 15:48:34.104821 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/integration/z2m.py - ignoring
2023-11-15 15:48:34.107477 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/integration/shellyforhass.py - ignoring
2023-11-15 15:48:34.110207 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/integration/zha.py - ignoring
2023-11-15 15:48:34.112901 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/integration/homematic.py - ignoring
2023-11-15 15:48:34.115680 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/integration/deconz.py - ignoring
2023-11-15 15:48:34.117913 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/type/cover_controller.py - ignoring
2023-11-15 15:48:34.120869 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/type/__init__.py - ignoring
2023-11-15 15:48:34.123129 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/type/light_controller.py - ignoring
2023-11-15 15:48:34.125883 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/type/media_player_controller.py - ignoring
2023-11-15 15:48:34.128572 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/type/z2m_light_controller.py - ignoring
2023-11-15 15:48:34.131259 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/type/switch_controller.py - ignoring
2023-11-15 15:48:34.134085 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/action_type/delay_action_type.py - ignoring
2023-11-15 15:48:34.136903 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/action_type/__init__.py - ignoring
2023-11-15 15:48:34.139651 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/action_type/call_service_action_type.py - ignoring
2023-11-15 15:48:34.141747 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/action_type/base.py - ignoring
2023-11-15 15:48:34.143913 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/action_type/predefined_action_type.py - ignoring
2023-11-15 15:48:34.146076 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/action_type/scene_action_type.py - ignoring
2023-11-15 15:48:34.148697 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/stepper/stop_stepper.py - ignoring
2023-11-15 15:48:34.151201 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/stepper/loop_stepper.py - ignoring
2023-11-15 15:48:34.153152 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/stepper/__init__.py - ignoring
2023-11-15 15:48:34.155336 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/stepper/bounce_stepper.py - ignoring
2023-11-15 15:48:34.157596 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/stepper/index_loop_stepper.py - ignoring
2023-11-15 15:48:34.159616 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/feature_support/__init__.py - ignoring
2023-11-15 15:48:34.161933 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/feature_support/cover.py - ignoring
2023-11-15 15:48:34.164127 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/feature_support/media_player.py - ignoring
2023-11-15 15:48:34.166002 WARNING AppDaemon: No app description found for: /config/apps/controllerx/cx_core/feature_support/light.py - ignoring

Right after that, my automations resp. apps are reported to be successfully loaded.

Hey Neil, thanks for your help, that did the trick !

I tried restoring the backup but appdaemon doesn’t get back up then.
I get these errors after restore:

type [16:14:48] FATAL: Seems like the /config/appdaemon folder exists,
[16:14:48] FATAL: however appdaemon.yaml wasn't found.
[16:14:48] FATAL: 
[16:14:48] FATAL: Remove or rename the /config/appdaemon folder
[16:14:48] FATAL: and the add-on will create a new and fresh one
[16:14:48] FATAL: for you.or paste code here

You will find your /config/appdeamon folder is empty. You need go grab it from your backup.

I just opened up my backup with 7zip and found the homeassistant.gz and in there was config and under that appdeamon.

1 Like

Ok, let me give that a try. Thank you!

Why does the update (and this comment) say “it moved to its own folder” WITHOUT SAYING WHAT THAT FOLDER IS?! Where is the folder?!?! I can only find one appdaemon folder on my entire filesystem and it’s in /homeassistant/appdaemon, and it’s completely empty. Thanks devs!

2 Likes

For some reason the pop-up in HA for the v0.15.2 update only displayed the “Bug fixes” part of the release notes but looking at the release page tells you more: Release v0.15.2 · hassio-addons/addon-appdaemon · GitHub

Not sure why you’re shouting at me, but the folder is in the same folder as the new homeassistant folder (old config folder) - addon_configs

1 Like

Not at you at all, sorry if ti came off that way, just shouting into the void in frustration that a dev would move all files, mention in the release notes that they moved them, and not say where (it doesn’t help that it’s out of the /homeassistant space so the File Editor add-on doesn’t see it by default)

1 Like

Yea it was just weird that the update message has the information but the relevant part was not visible in HA (Releases · hassio-addons/addon-appdaemon · GitHub). If it was there from the start, most probably wouldn’t update immediately

It’s an unexpected change but the reasoning does make sense:

I’ll need to rethink how I handle the Git repository now though as I’m using the Git pull add-on which is the only headache for me :confused:

1 Like

Hi all.

Looks like I fall into the same trap with auto update enabled. Currently my versions are:

 Add-on: AppDaemon
 Python Apps and Dashboard using AppDaemon 4.x for Home Assistant
-----------------------------------------------------------
 Add-on version: 0.15.2
 You are running the latest version of this add-on.
 System: Home Assistant OS 7.0  (armv7 / raspberrypi3)
 Home Assistant Core: 2021.12.6
 Home Assistant Supervisor: 2023.11.3
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------

I copied my configuration (which I manually backup, yeahhh) to: addon_configs/a0d7b954_appdaemon now including the following:

The appdaemon.yaml is updated to:


secrets: /homeasistant/secrets.yaml
logs:
main_log:

My secrets.yaml is still in config/.

Can anyone elaborate where the failure is? - Is it because I’m using a very old version of hassio not compatible with latest version of appdaemon?

Thanks in advance. … And yes, bugs happen, no reason for blaming somebody, let’s just fix it. @frenck : Thanks for the great stuff you did so far!