HACS failure - music-assistant/hass-music-assistant

Not sure how long ago this started happening, but HACS isn’t working and shows “Failed to set up”
Looking at the logs I can see some errors with a couple other devices, but this seems to be the only stuff HACS related.

2025-01-07 15:27:25.216 ERROR (MainThread) [custom_components.hacs] HACS is disabled - restore
2025-01-07 15:40:42.899 CRITICAL (MainThread) [custom_components.hacs] [The repo id for music-assistant/hass-music-assistant is already set to 911125621] Restore Failed!
Traceback (most recent call last):
File “/config/custom_components/hacs/utils/data.py”, line 222, in restore
self.async_restore_repository(entry, repo_data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File “/config/custom_components/hacs/utils/data.py”, line 270, in async_restore_repository
self.hacs.repositories.set_repository_id(repository, entry)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File “/config/custom_components/hacs/base.py”, line 290, in set_repository_id
raise ValueError(
…<2 lines>…
)
ValueError: The repo id for music-assistant/hass-music-assistant is already set to 911125621
2025-01-07 15:40:42.902 ERROR (MainThread) [custom_components.hacs] HACS is disabled - restore
2025-01-07 15:42:25.269 CRITICAL (MainThread) [custom_components.hacs] [The repo id for music-assistant/hass-music-assistant is already set to 911125621] Restore Failed!
Traceback (most recent call last):
File “/config/custom_components/hacs/utils/data.py”, line 222, in restore
self.async_restore_repository(entry, repo_data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File “/config/custom_components/hacs/utils/data.py”, line 270, in async_restore_repository
self.hacs.repositories.set_repository_id(repository, entry)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File “/config/custom_components/hacs/base.py”, line 290, in set_repository_id
raise ValueError(
…<2 lines>…
)
ValueError: The repo id for music-assistant/hass-music-assistant is already set to 911125621
2025-01-07 15:42:25.271 ERROR (MainThread) [custom_components.hacs] HACS is disabled - restore

I believe they archived the MA in HACS over the last few days. The GitHub repo is no longer accessible. I don’t believe you can install it via HACS any longer. Even with a custom repository, the information just is no longer there.

They really shouldn’t have moved to core when they did while the voice functionality was not equal to the HACS version. Puts MA in a strange spot just when HA releases voice hardware for what I believe is the most significant use case for voice.

Ah ok, I didn’t realize.
Is there a way for me to fix this?

Check the github repo for hacs. I believe they updated hacs to resolve this. Otherwise there is a issues post on what to remive to get it working again.

1 Like
2 Likes

I have a Yellow and installed an NVMe drive. The instructions say to stop HA, restore the file from backup, then restart.
Is there a way to stop HA but still have SSH access to the Yellow?

As for me, when I encountered such a problem, I removed the corresponding entries, that I have found in config/.storage/hacs.data and config/.storage/hacs.repositories.

(Mainly because I did not have a backup of hass config that could be restored as in solution)

Obviously, they were duplicated, and one of them was extra and should be removed, but, because, I did not use these, I opted to remove both.

Just make sure that you remove the entire JSON object (block that starts with "...": { or { and ends with },, take care to do not remove extra stuff) that you find when looking for music-assistant/hass-music-assistant in these two files, not just a single line.

Such manipulation helped for me to start HACS back.
But if you are not sure about JSON editing skills better make a backup first.

Afterwards, you will be able to update HACS to 2.0.2 using UI, which I suggest to do right away, so that it would not happen again.

3 Likes