Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HACS Restore Failed #4324

Closed
8 tasks done
Mattat01 opened this issue Jan 6, 2025 · 3 comments
Closed
8 tasks done

HACS Restore Failed #4324

Mattat01 opened this issue Jan 6, 2025 · 3 comments
Labels
issue:backend For issues with the backend/integration

Comments

@Mattat01
Copy link

Mattat01 commented Jan 6, 2025

System Health details

System Information

version core-2025.1.0
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.13.1
os_name Linux
os_version 6.6.62-haos-raspi
arch aarch64
timezone Australia/Adelaide
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 4907
Installed Version 2.0.1
Stage null
Available Repositories 1558
Downloaded Repositories 8
Disabled restore
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 14.1
update_channel stable
supervisor_version supervisor-2024.12.3
agent_version 1.6.0
docker_version 27.2.0
disk_total 234.3 GB
disk_used 8.2 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board rpi5-64
supervisor_api ok
version_api ok
installed_addons File editor (5.8.0), Advanced SSH & Web Terminal (20.0.0), Mosquitto broker (6.4.1), Zigbee2MQTT (1.41.0-1), Home Assistant Google Drive Backup (0.112.1), Duck DNS (1.18.0), NGINX Home Assistant SSL proxy (3.11.1)
Dashboards
dashboards 4
resources 10
views 4
mode storage
Recorder
oldest_recorder_run December 13, 2024 at 3:59 AM
current_recorder_run January 6, 2025 at 11:19 AM
estimated_db_size 210.00 MiB
database_engine sqlite
database_version 3.47.1

Checklist

Describe the issue

Updated HA and HACS and restarted. The following error baffles me, as I don't have the repo music-assistant/hass-music-assistant installed, as far as I know.

2025-01-06 11:19:40.901 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-06 11:19:40.905 ERROR (MainThread) [custom_components.hacs] HACS is disabled - restore

Reproduction steps

  1. Updated HA
  2. Updated HACS
  3. Rebooted
    I haven't changed anything in HACS or installed any new repos recently

Debug logs

2025-01-06 11:31:18.265 INFO (MainThread) [custom_components.hacs] 
-------------------------------------------------------------------
HACS (Home Assistant Community Store)
Version: 2.0.1
This is a custom integration
If you have any issues with this you need to open an issue here:
https://github.com/hacs/integration/issues
-------------------------------------------------------------------
2025-01-06 11:31:18.299 INFO (MainThread) [custom_components.hacs] <HacsData restore> Restore started
2025-01-06 11:31:18.346 CRITICAL (MainThread) [custom_components.hacs] <HacsData restore> [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-06 11:31:18.350 ERROR (MainThread) [custom_components.hacs] HACS is disabled - restore
2025-01-06 11:31:18.351 INFO (MainThread) [custom_components.hacs] Could not setup HACS, trying again in 15 min

Diagnostics dump

I don't have the 'download diagnostics' option, possibly because HACS did not restart.

@Mattat01 Mattat01 added the issue:backend For issues with the backend/integration label Jan 6, 2025
@hacs-bot
Copy link

hacs-bot bot commented Jan 6, 2025

Make sure you have read the issue guidelines and that you filled out the entire template.

If you have an issue identical to this, do not add comments like "same here", "i have this too", instead add a 👍 reaction to the issue description. Thanks! 👍

@Mattat01
Copy link
Author

Mattat01 commented Jan 6, 2025

Sorry, found the workaround in a closed issue, which fixed it. Restarted, re-updated HACS (maybe the update failed before), and all good now.

@Mattat01 Mattat01 closed this as completed Jan 6, 2025
@allenporter
Copy link

For future readers, specific solution is the last comment here: #4314 (comment) on how to reinstall HACS and/or restore from a backup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue:backend For issues with the backend/integration
Projects
None yet
Development

No branches or pull requests

2 participants