Appdaemon fresh config cannot start with log files

Hi, I’ve seen several topics with reference to former config and the /config folder. I’ma a new comer on Appdaemon (and ha) and I would like to enable logs with the recommended way.
My appdaemon.yaml file is located in the folder /root/addon_configs/a0d7b954_appdaemon/ so I’m trying to add error.log and appdaemon .log files.

I've added the log files as below in the appdaemon.yaml file:
    filename: /addon_configs/a0d7b954_appdaemon/logs/appdaemon.log
    filename: /addon_configs/a0d7b954_appdaemon/logs/error.log

I’ve tried several paths:


But Appdaemon fails to start with the error below:
Let me know if you understand what could be my problem.

Thank you for your help.

 Add-on: AppDaemon
 Python Apps and Dashboard using AppDaemon 4.x for Home Assistant
 Add-on version: 0.16.4
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.0  (amd64 / qemux86-64)
 Home Assistant Core: 2024.2.5
 Home Assistant Supervisor: 2024.02.1
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-appdaemon: starting
s6-rc: info: service init-appdaemon successfully started
s6-rc: info: service appdaemon: starting
s6-rc: info: service appdaemon successfully started
s6-rc: info: service legacy-services: starting
[22:36:09] INFO: Starting AppDaemon...
s6-rc: info: service legacy-services successfully started
Traceback (most recent call last):
  File "/usr/bin/appdaemon", line 8, in <module>
  File "/usr/lib/python3.11/site-packages/appdaemon/", line 417, in main
  File "/usr/lib/python3.11/site-packages/appdaemon/", line 358, in main
    self.logging = logging.Logging(logs, args.debug)
  File "/usr/lib/python3.11/site-packages/appdaemon/", line 290, in __init__
    handler = RotatingFileHandler(
  File "/usr/lib/python3.11/logging/", line 155, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding=encoding,
  File "/usr/lib/python3.11/logging/", line 58, in __init__
    logging.FileHandler.__init__(self, filename, mode=mode,
  File "/usr/lib/python3.11/logging/", line 1181, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.11/logging/", line 1213, in _open
    return open_func(self.baseFilename, self.mode,
FileNotFoundError: [Errno 2] No such file or directory: '/logs/appdaemon.log'
[22:36:15] INFO: Service AppDaemon exited with code 1 (by signal 0)

@ftass changing from /addon_config/… to /homeassistant/… did the trick! I forgot to put “log:” above “main_log”.
Finally it works as expected!

I struggle with the same thing. I’ve changed the path to the same working one as for secrets. I don’t get an error but there is no log either. Maybe someone has an idea?

in my appdaemon.yaml

  filename: /homeassistant/appdaemon/apps/appdaemon.log
  filename: /homeassistant/appdaemon/apps/error_log.log

changing path to /config/ gives nothing…