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 not loading completely because of Errors with Loading Repositiories #2440

Closed
6 tasks done
almostserious opened this issue Jan 11, 2022 · 12 comments · Fixed by #2446
Closed
6 tasks done

HACS not loading completely because of Errors with Loading Repositiories #2440

almostserious opened this issue Jan 11, 2022 · 12 comments · Fixed by #2446

Comments

@almostserious
Copy link

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

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.
@almostserious almostserious added the issue:backend For issues with the backend/integration label Jan 11, 2022
@hacs-bot
Copy link

hacs-bot bot commented Jan 11, 2022

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

@ludeeus ludeeus removed the issue:backend For issues with the backend/integration label Jan 11, 2022
@ludeeus
Copy link
Member

ludeeus commented Jan 11, 2022

Randomly deleting files will cause more issues...
Restart Home Assistant from the UI, and this should resolve itself

@almostserious
Copy link
Author

The error is still present after several restarts. I just installed the latest version of HACS 1.19.3 and after restart of HA i still get the same error message. Custom Repositories still greyed out.

@greasypete

This comment has been minimized.

@wasyl00

This comment has been minimized.

@dutch-erik

This comment has been minimized.

@WalterDSU

This comment has been minimized.

@dutch-erik

This comment has been minimized.

@Hypercookie

This comment has been minimized.

@greasypete
Copy link

For me helped a downgrade to 1.19.2; after reboot hacs started and also updated repositories again including custom repositories

Cheers Stefan

@WRLPDZ
Copy link

WRLPDZ commented Jan 15, 2022

Hi,
Same for me but I think that this problem appear since other error with "Aftership"
"Aftership" repo was long time ago removed from my HACS.
From some time I have info that this repo should be removed but it is not present in my system even it's folder do not exist,
but still I have info on main HACS page to remove it and clicking on remove button do nothing that reload of HACS page and again info is present.
Since that time I also see error: Task exception was never retrieved.
I don't know if that is corelated but maybe it's some clue.

@Mike5357
Copy link

Also having a similar issue; "Custom Repositories" is greyed out, and it notifies me that a repository was removed as its no longer working but clicking "Remove" does not remove it from the UI. Instead the log just reports "[custom_components.hacs] Could not use repository with ID 234079212 ('NoneType' object has no attribute 'get_releases')" when clicking it and says "Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/hacs/repositories/base.py", line 889, in async_get_legacy_repository_object
repository = await github.get_repo(self.data.full_name, etag)"

@hacs hacs locked as spam and limited conversation to collaborators Jan 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants