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)
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
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:
Restore a backup (AppDaemon + home assistant config as that is where the appdaemon config is stored)
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
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)
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
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!
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)
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:
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: