My Config folder has disappeared

My Config folder has disappeared. I can’t get to the samba share from my PC, nor see it in file editor. My Automations etc are still there and editable but I can’t edit see the YAML files. I have restarted HASS but it hasn’t come back. My media folder is still accessible.

When I try to access it with file editor I get this branch option, there are no branches and I can’t go back with the back arrow

Help!

Try Terminal & SSH and open WebUI ?

I have restored back a couple of days too , I’m pretty sure it was ok over the weekend

I thinks the Samba things related here:

You can find your automations with:

find / -name configuration.yaml 
find / -name automations.yaml
1 Like

Did you reboot machine you run HA on? Not HA restart, but do a machine power toggle (Pi, VM… whatever you run HA on) . Similar happened to me once or twice in the past, but then i couldn’t even do a HA core restart. But after power toggle all went back to normal.

1 Like

Thank you, they were gone. I restored it. a 2 day old backup didn’t have the folders but a 3 day old did, I’m restoring my history now. fingers crossed :slight_smile:

No, I should have tried that really , I restored. Interestingly days -1 & -2 restore didn’t have the missing data / folders but day -3 did, so I think it was fairly serious fault

Do you run HA on sd card? Dead card…?

I do run in on an SD card. The card seems OK after the restore but I’m going to have a backup on standby now. I had mad added several integrations and removed others in the days before the issue so I’m going to blame that process for now :smiley:

Well, if i were you i’d get ssd as soon as possible, so low capacity are dirt cheap. Then run HA from that, you’ll save yourself a lot of similar problems in the future.

I have found the cause, removing the community add-on “Advanced SSH & Web Terminal” causes it. I did it on both my HomeAssistants yesterday without realising until too late. I will build another HASS tonight purely for testing this before raising a bug report.

removing the community add-on “Advanced SSH & Web Terminal” caused the issue. Restarting Home Assistant doesn’t fix the problem, a restart of the hardware is needed. RPI4s in my case

had the same eery experience yesterday (not sure if it was after updating the ESPhome add-on, or during a restore of a backup)

stunning this can happen.

looking back, (the deletion of the Frontend happened twice) it seems that I could restart the system with the SSH terminal commands, while at the same time a Backup was restored.

Apparently the system does not have guards against those mutually lethal operations