Traces for all automations suddenly gone

This may be related to this issue, but the solution posted there didn’t work for me and it’s almost two years old.

I just woke up on New Years Day, hoping to get started debugging some automations that haven’t worked quite right for a while, only to find that the traces for all of my automations are all gone (click any automation, click “trace”, and it just shows “no traces found”, despite the automation definitely running (I can see my lights turning on/off, for example), and the “last triggered” column in the automations list is populated and shows them running recently).

I checked my automation IDs (in automations.yaml); the IDs for all my automations are a bunch of numbers - no special characters or spaces (or even letters). For instance, “1723325825277”. So that’s not the solution.

I tried restarting Home Assistant and also rebooted entirely, but neither option helped.

I’m running Home Assistant v2023.12.4 on a Home Assistant Yellow (HAOS).

I took a full backup today and then I tried reverting to a backup from a week ago. Back then, the traces were all present, so it is something that has happened in the last week. I would run from the backup a week ago, but a) I have developed a lot of automations since then and it would be a pain to redo them, and b) I’m not sure if I won’t just come up against the same problem in the future. (I have since reverted to the full backup I took today). The main difference I noted between the two backups (other than all my automations) was the upgrade to HA v2023.12.4 from v2023.12.3. I don’t know if that’s relevant or not.

Does anyone know what I could try to troubleshoot this issue please?

Thank you.

P.S.: I’m fairly new (four months) and don’t really know what I’m doing with the logs. I went to Settings > System > Logs and clicked “Download full logs”, but the resulting file only seems to show errors from the last hour.

P.S. #2:
Related posts:

P.S. #3: my automations.yaml is available here.

Confusingly, the issue resolved itself overnight.
I still don’t have access to earlier traces, but traces did start being produced last night and are now available going forward.

I don’t know what caused this issue, or why it fixed itself, which is a bit of a worry…

1 Like

I was confused today too. Maybe this one could help some newbies too:
If you create a new automation and it never run before it won’t show traces.

I run into that because I created a switch triggered by sun. (up/down)
So this automation won’t be triggered during the day.

Not sure what alternative behaviour you’d expect… :face_with_raised_eyebrow:

To misquote Charles Babbage: I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a statement.

2 Likes