question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HACS not loading completely because of Errors with Loading Repositiories

See original GitHub issue

System Health details

System Health

version core-2021.12.9
installation_type Home Assistant Supervised
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.4.0-92-generic
arch x86_64
timezone Europe/Berlin
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 5000
Installed Version 1.19.2
Stage running
Available Repositories 938
Downloaded Repositories 41
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 Ubuntu 20.04.3 LTS
update_channel stable
supervisor_version supervisor-2021.12.2
docker_version 19.03.8
disk_total 109.0 GB
disk_used 87.3 GB
healthy true
supported failed to load: Unsupported
supervisor_api ok
version_api ok
installed_addons SSH & Web Terminal (10.0.1), Node-RED (10.3.1), AdGuard Home (4.4.2), Mosquitto broker (6.0.1), Glances (0.14.1), MariaDB (2.4.0), WireGuard (0.6.0), Studio Code Server (3.7.0), Portainer (2.0.0), Nginx Proxy Manager (0.11.0), Vaultwarden (Bitwarden) (0.14.1), phpMyAdmin (0.6.0), Home Assistant Google Drive Backup (0.105.2), Rhasspy Assistant (2.5.11), IPerf3 Server (0.1), Firefly III (3609591), snapcast-server (0.25), diyHue (1.5.0), deCONZ (6.11.1), TooGoodToGo Home Assistant MQTT Bridge (1.9.2-2), diyHue Beta (1.5.0), File editor (5.3.3), librespot (v0.3.1.2), Mopidy (6e49c79), Nextcloud for Home Assistant (23.0.0)
Lovelace
dashboards 2
resources 29
views 19
mode storage
Spotify
api_endpoint_reachable ok

Checklist

  • I’m running the newest version of HACS https://github.com/hacs/integration/releases/latest
  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • I have read https://hacs.xyz/docs/issues
  • This issue is related to the backend (integration part) of HACS.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

I get some errors when setting up HACS at Startup. This leads to the Custom Repositories constantly being greyed out.

The error shows up as some of my custom_integrations being archived. In the beginning I had this error also for different customs integrations like the Node-Red Companion. After deleting the hacs.repositories this was fixed and the only remaining one with issues posting is Integration PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor

Reproduction steps

  1. Restart HACS
  2. Getting Errors in the Log
  3. Custom Repositories is greyed out

Debug logs

2022-01-11 09:33:36 DEBUG (MainThread) [custom_components.hacs] <Integration PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor> Getting repository information
2022-01-11 09:33:36 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/hacs/base.py", line 580, in startup_tasks
await self.recurring_tasks_installed()
File "/config/custom_components/hacs/base.py", line 678, in recurring_tasks_installed
await self.handle_critical_repositories()
File "/config/custom_components/hacs/base.py", line 656, in handle_critical_repositories
await critical_queue.execute()
File "/config/custom_components/hacs/utils/queue_manager.py", line 69, in execute
await asyncio.gather(*local_queue)
File "/config/custom_components/hacs/utils/decorator.py", line 22, in wrapper
await function(*args, **kwargs)
File "/config/custom_components/hacs/repositories/integration.py", line 104, in update_repository
if not await self.common_update(ignore_issues, force) and not force:
File "/config/custom_components/hacs/utils/decorator.py", line 22, in wrapper
await function(*args, **kwargs)
File "/config/custom_components/hacs/repositories/base.py", line 516, in common_update
await self.common_update_data(ignore_issues=ignore_issues, force=force)
File "/config/custom_components/hacs/repositories/base.py", line 942, in common_update_data
raise HacsRepositoryArchivedException("Repository is archived.")
custom_components.hacs.exceptions.HacsRepositoryArchivedException: Repository is archived.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dutch-erikcommented, Jan 16, 2022

As mentioned above… after each restart of HA, HACS:

HACS is starting up, during this time some information might be missing or incorrect

2022-01-15 16:30:18 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):

File "/config/custom_components/hacs/base.py", line 562, in startup_tasks
await self.async_load_default_repositories()

File "/config/custom_components/hacs/base.py", line 706, in async_load_default_repositories
for item in await self.async_github_get_hacs_default_file(HacsCategory.REMOVED):

File "/config/custom_components/hacs/base.py", line 441, in async_github_get_hacs_default_file
response = await self.async_github_api_method(

File "/config/custom_components/hacs/base.py", line 478, in async_github_api_method
raise HacsException(_exception)

custom_components.hacs.exceptions.HacsException: Timeout of 20 reached while waiting for https://api.github.com/repos/hacs/default/contents/removed

HACS will not start until I disable and enable the HACS integration. This started after upgrading to 1.19.

1reaction
dutch-erikcommented, Jan 16, 2022

I do have same issue (HACS doesn’t start), restart HA doesn’t help. I noticed that when I disable and enable the integration HACS starts as it should be. But new restart of HA issue occurs again. However not sure if it happens all the time.

I do have a trace, the way as descriped, but I don’t know where to look for or what I should/can post.

Perhaps new issue should be created for last couple of posts above, because it’s than initial post.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HACs.. Some intergrations wont install others wont update!
It does show in the add integration's but i get this error. (example). This integration does not support configuration via the UI.
Read more >
Status: Not Loaded - HACS
Something strange has happened, click on the card for it to get to the repository page and then click the 3 dots in...
Read more >
My TOP 5 HACS components - integrations and front-end ...
Let me show you TOP 5 HACS components - that I like the most.It was very hard to create such a short list...
Read more >
HACS and Mushroom and why am I having trouble? - Reddit
Thanks for this. I went down all these worthless roads because I couldn't find the redownload option. You have to go to HACS/FrontEnd/Mushroom ......
Read more >
Github down? Current service status and errors - Downdetector
Real-time Github status and problems. Is Github down, not working properly or are you getting error messages? Here you see what is going...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found