#HACS Failed to set up after reboot

1 messages · Page 1 of 1 (latest)

stark haven
#

Sorry if I have managed to post this in the wrong place as I usually do. Using Home Assistant Green and unable to understand computerspeak.

I rebooted HA after updating the Octopus integration yesterday and when everything settled down I noticed that on the Devices page HACS has a red outline and a red ! in a circle and says HACS failed to set up. The HACS tab has disappeared from the left menu. I have tried reloading it but that didn't work and neither did restarting HA. I have looked on the forum, where I found an old thread which says "SSH into /config/custom_components/ and “rm -rf hacs” solved my issues." Is anyone able to translate this into language an idiot can understand, as it is gobbledygook to me.

Many thanks in advance.

topaz trail
#

Update to the latest HACS release

stark haven
#

Thanks - how do I do that?

topaz trail
#

Have you actually used HACS?

stark haven
#

yes, I downloaded it a few weeks ago and used it to do lots of stuff - Octopus, Myenergi.......

#

There is no update in teh updates bit of HA fr HACS

topaz trail
#

I imagine that if you restart HA you'll get a repair issue that will tell you there's a new version and let you install it

stark haven
#

I restarted HA and there isnt anything like that

topaz trail
#

Or you can choose 'update information' from the 3-dot menu

frozen pawn
#

hello sorry to hijack the post not sure if its ok but if not just let me know.

i was just looking at info about how to integrate generic wifi plugs like lasco and other things to home assistant and it brought me to the word HACS.

is it the way to go? if yes ill try to find it thank you

stark haven
#

I can't see update information in the 3 dot menu, just show skipped updates adn join beta

#

should I delete HACS and try and install it again? I can't remember how I installed it teh first time - the whole thing is so difficult it takes me weeks to do the tiniest thing

stark haven
#

So, I have restarted HA 6 times. I have deleted HACS and reinstalled it, and it is still showing as Failed to set up. All I have achieved is that my live Octopus data, which was updating before I started messing with this thing, is now showing as unavailable. I feel lik ethrowing teh whole thing in the dustbin as the hACS integrations form 90% of what I need from HA.

#

Please, please can some nice person help me sort this out.

topaz trail
#

please share what you see in configuration -> System -> Logs

#

and how you installed HACS

stark haven
#

that's the relevant bit of the logs (I think).

topaz trail
#

Yes, just need to update HACS

stark haven
#

I installed HACS using the Get HACS addon

#

I have uninstalled HACS and reinstalled it, and it installed version 2.0.1 - that's the one that won't set up

#

as I understand it, HACS automatically updates on HA Green

topaz trail
#

It does not

#

HACS doesn't auto update anything

#

That's because you need 2.02

stark haven
#

so when I reinstalled HACS why didn't it give me 2.0.2?

#

and how do I get it?

topaz trail
#

I just updated it from HACS

stark haven
#

but I don't have an option to update from HACS

#

There is no HACS in the left panel, there is no option to update in the devices part

topaz trail
#

You do

#

Ok

stark haven
#

where do I find that?

topaz trail
#

Sorry, you won't have it if it doesn't start up

stark haven
#

thats teh problem

#

could it be because I don't have the latest update to HA OS and HA core? I read that novices shouldn't update immediately in case of bugs

#

and I am a pre, pre, pre novice as in I understand nothing

topaz trail
#

Great

stark haven
#

Thank you for trying to help - I do appreciate it

#

that link mentions something about removing the music assistant - from my logs it does seem to be that which is causing teh problem.

topaz trail
#

What version of HA are you running?

stark haven
#

Any idea how to remove it?

topaz trail
#

Instructions are there

stark haven
#

OS is 13.2, core is 2024.11.1

topaz trail
#

But that's not the route you should take

#

Update HA first

#

That's probably the issue

stark haven
#

I was beginning to wonder if that was the case

topaz trail
#

You're two releases behind

stark haven
#

ah

#

ok I will try that now, and hope I don't break anything else!

topaz trail
#

It's probably giving you the HACS version supported by that HA version

stark haven
#

Should I update both OS and core at the same time?

#

if not, which first?

topaz trail
#

Doesn't matter. Core is what matters

stark haven
#

ok

#

ok the core is now updated but HACS still fails to set up

stark haven
#

I'm trying to follow the instructions, but there was a typo and I am now stuck because I tyeped has.repositories instead of hacs and I can't get back to terminal

topaz trail
#

Not sure what to say. Review the addon logs, compare with the link I provided above

stark haven
#

also ctrl W closes the whole HA tab

#

completely stuck

topaz trail
#

Try to add HACS again from configuration -> Integrarions

stark haven
#

ok will do

#

done that, HACS failed to set up

#

Thanks for tyring to help. I will have another go at the instructions in that thread on github in the morning - getting too tired now.

stark haven
#

So this morning I decide to have one more go at rebooting HA before I try tremoving the music thing. I go to System > backups and click on the power button top right corner. Nothing happens. How do I reboot HA now that I have updated the core?

#

Ok, I cleared the cache and reloaded the page and it now reboots, but HACS still isn't working.

#

Beginning to think this is not for me - it is too difficult and too stressful,

barren haven
#

go into Integrations > HACS, click Configure, check the Enable AppDaemon apps discovery & tracking box and click Submit. then click the three dots and select Reload. this should allow HACS to start, at which point you'll then be able to update to 2.0.2. after a reboot, you can go back in and uncheck the Enable AppDaemon apps discovery & tracking box if you want.

stark haven
#

Fantastic, thank you so much. I have done that and HACS has now started.

topaz trail
stark haven
#

Thank you for your help too RobC

barren haven
#

to be honest, i'm not sure what that checkbox actually does, but it did the trick and i was able to subsequently uncheck it with no negative impact

topaz trail
#

Weird. Was marked unrelated, hidden, and the issue was closed. Nobody will ever find that except you 🙂

barren haven
#

well, i'm not actually sure it's resolved the underlying issue, for whatever it's worth... because it looks like HACS still isn't seeing the things i've installed via HACS as installed. it's able to load the integration, and i can access the HACS dashboard, but the only item in the Downloaded list is HACS itself... not the 20+ integrations i've installed via HACS. they're all working, but looks like HACS won't be able to update them in their current state...

stark haven
#

hmm, yes I agree that although the red outline has gone and the HACS dashboard is back there are no downloaded items in the list apart from HACS. I've looked at that thread and to be honest I think it is completely beyond my abilities. I have no idea what Samba Share is or does, or how to substitute a file in the config.storage folder, wherever that might be. I have backups but I haven't a clue how to use them, and I did try a restore of HACS from a backup before without any success.

snow cypress
#

Have you deleted the Music Assistant repository from HACS? I think after it was integrated into Home Assistant they deleted the repository on github. They seem to have restored it on 2 Jan (after seeing the bugs it caused probably) but that does not seem to have fixed the issues with HACS.

#

I also think you have received some bad advice on upgrading. There is some value in waiting for the .1 release each month to avoid teething problems with the .0 releases, but letting your HA version get too far behind means you end up with untested combinations of HA and custom integrations and when you eventually update HA updating from whatever old version you are on to the latest is also likely to be untested, so there are fewer issues overall if you keep things up to date.

stark haven
# snow cypress Have you deleted the Music Assistant repository from HACS? I think after it was ...

Thank you - no, I have not managed to translate the instructions for deleting the music assistant from HACS into language that I can understand. I did have a go at it but the instructions in the post I was looking at had a typo and I ended up stuck in terminal and unable to continue. I am very very novicey at this stuff and extremely frightened of losing the access that I still have to everything that matters in HA. Anything that involves altering the Yaml code is completely new territory to me, which is why I got hA Green.

#

I do have backups of everything before this issue started and I could do a partial restore of HACS back to that point - would that help or might it just make things worse?

snow cypress
#

If you have access to the HACS UI, you should be able to delete it from there. In the HACS main page (with the list of everything you installed from HACS at the top, and more uninstalled things below), select the menu button at top right, and choose Custom Repositories, then you should get a list with deletion icons to the right. Delete Music Assistant from there. The instructions for editing yaml files are for people still stuck with getting HACS running again, but thanks to @barren haven you already got past that.

#

I think since you got HACS to run again, it maybe isn't worth trying those backups. Because the cause of the Music Assistant problem is external and will probably happen with the backups too.

stark haven
#

FYI the list of things I have downloaded from HACS should include Octopus, Alpha ESS, Myenergi and a couple of other things

#

these are all still working at the moment

stark haven
#

the things that I have already downloaded are in the list of things available to download - should I just download them again or is that asking for trouble?

snow cypress
#

Downloading them again should be OK, it will overwrite the existing one (I can't remember if it warns you first). It seems you have lost your HACS config, maybe as a result of the attempts to clean up. Download them all before rebooting so you don't have to reboot over and over.

stark haven
#

thanks - I will try that - will it overwrite/lose all the data though?

snow cypress
#

It will overwrite the source files, but the data should be stored separately in your HA config directory.

stark haven
snow cypress
#

The repository should have instructions for how to add it in HACS. I'm not familiar with that one, but there are many repositories that are not in the default HACS list.

stark haven
#

ok, thanks - I do seem to remember it was a bit strange, but its a couple of months since I did it and I forget easily (getting old).

#

Ok so tried following the instructions: Use HACS, in `HACS > Integrations > Hamburger Menu > Custom Repositories add https://github.com/CharlesGillanders/homeassistant-alphaESS with category set to integration.
in HACS > Integrations > Explore & Add Repositories search for "alphaess".
Restart Home Assistant.

GitHub

Monitor your energy generation, storage, and usage data using the official API from Alpha ESS. - CharlesGillanders/homeassistant-alphaESS

#

I add the link and it comes up with a box saying it exists in the store. Does that mean I don't need to add it again?

#

It is working on HA, I am just concerned that it might not update when it is meant to because it isn't listed in HACS

#

Also, I can't find anything that looks like "Explore and add repositories"

#

weirdly, or maybe because of what I jsut did, it has just appeared in the downloads list in HACS, so I am installing it

snow cypress
#

Explore and add repositories is the old v1 HACS UI. v2 is the hamburger menu -> Custom repositories. Glad you got it working now though.