core icon indicating copy to clipboard operation
core copied to clipboard

When system starts up in recovery mode all integrations are lost for good

Open mattinglis opened this issue 1 year ago • 6 comments

The problem

When the system starts in recovery mode, it looses all configured integrations. Even once the error is resolved, you must re-add all integrations

What version of Home Assistant Core has the issue?

2024.2.4 onwards

What was the last working version of Home Assistant Core?

unknown

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Set something invalid in the configuration.yaml 

I encountered it on trusted_users being invalid. Which interestingly isnt validated in check configuration.

Restart the system, when it starts all integrations are gone.

Correct the error, restart the system, all integrations are still gone and have to be discovered again.

Additional information

No response

mattinglis avatar Mar 09 '24 00:03 mattinglis

Just experienced this myself and stumbled on this recent issue.

prat33knz avatar Mar 11 '24 10:03 prat33knz

Same here, exact the same scenario

on4ami avatar Mar 13 '24 20:03 on4ami

Also had this issue yesterday on 2024.3.1 - ended up restoring from backup

erasmus83 avatar Mar 15 '24 16:03 erasmus83

Do you see anything in the logs? Can you check the config/.storage/ folder on your system. I have the idea one of the files got corrupt and then it defaulted to the old one. It usually renames the old file, so it should be there. Please don't directly post it here, it contains a lot of sensitive information.

joostlek avatar Mar 15 '24 16:03 joostlek

Same thing here - HA absolutely nuked my entire installation after a typo updating trusted network in configuration.yaml. No back. No renamed file. Absolutely gutted - YEARS of configuration lost.

njsaunders avatar Apr 08 '24 16:04 njsaunders

Got the same issue. After typo in trusted_networks HA started into recovery mode. After correcting typo and restart HA, all integrations are gone. Had to restore from backup.

Core 2024.4.3 Supervisor 2024.04.0 Operating System 12.2 Frontend 20240404.2

Checked the mentioned config/.storage/ location and could not identify a renamed file

iT3han avatar Apr 27 '24 11:04 iT3han

Have the same issue. Thanks to the backup I was able to restore

ankurpandeyvns avatar May 01 '24 07:05 ankurpandeyvns

Just to add a "me too" I was bitten by this. I just started with HA a few months ago, and lost my first month of data and my initial setup. I wasn't so lucky/smart with backups, so I had to redo the whole setup. ..

brjhaverkamp avatar May 02 '24 12:05 brjhaverkamp

Same for me. HA started in Recovery Mode after Power loss, seems there was a typo in the configuration.yaml. Also my Backups don´t restore the Integrations...

Edit: Old Core Backup seems to do the job. Strange.

Blackmood667 avatar May 10 '24 08:05 Blackmood667

Same here... and no backup work..

posssson avatar May 16 '24 12:05 posssson

Same happened here. I can´t still believe that I´ve lost my whole configuration. Tons of integrations, devices, and everything just wiped out. It was just a typo on my configuration.yaml. It happened thousands of times before and nothing like that happened. Please, tell me I'll be able to restore my integrations.

marloncarvalho avatar May 17 '24 18:05 marloncarvalho

same, lost everything

titanowly avatar May 19 '24 19:05 titanowly

same here? WTH

deezid avatar Jun 02 '24 00:06 deezid

Typo in trusted_networks in my case wiped 30+ integrations. Unfortunately this directory were not part of a backup :(

Docker image 2024.6.3 so this nasty thing is still here...

rapiertg avatar Jun 16 '24 18:06 rapiertg

Same Here !!!! :-( with (probably) typo problem in trusted networks/users. restart, loose device, integration, history, .... REM for next users : after some try (& proxmox restore ;-) the main problem is not typo/indent : but use of USERNAME in place of USERID (long number) for trusted user. You have to use USERID (long number), NOT the username. it's in the doc. But not the disaster effect if you make error.

teji24 avatar Jun 19 '24 10:06 teji24