hacs / integration

HACS gives you a powerful UI to handle downloads of all your custom needs.
https://hacs.xyz
MIT License
5.42k stars 1.29k forks source link

"Custom repositories" disabled #2447

Closed brianhanifin closed 2 years ago

brianhanifin commented 2 years ago

System Health details

System Health

version core-2021.12.9
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.88
arch x86_64
timezone America/Los_Angeles
Home Assistant Community Store GitHub API | ok -- | -- Github API Calls Remaining | 3945 Installed Version | 1.19.3 Stage | running Available Repositories | 1008 Downloaded Repositories | 56
AccuWeather can_reach_server | ok -- | -- remaining_requests | 37
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | January 16, 2022, 4:00 PM relayer_connected | true remote_enabled | true remote_connected | true alexa_enabled | false google_enabled | true remote_server | us-west-2-1.ui.nabu.casa can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 7.1 -- | -- update_channel | beta supervisor_version | supervisor-2021.12.2 docker_version | 20.10.9 disk_total | 30.8 GB disk_used | 8.4 GB healthy | true supported | true board | ova supervisor_api | ok version_api | ok installed_addons | Portainer (2.0.0), Samba share (9.5.1), HA Scheduler (0.17), ESPHome (2021.12.3), Home Assistant Google Drive Backup (0.105.2), File editor (5.3.3), SDR to Home Assistant (0.1.6b), Terminal & SSH (9.3.0)
Lovelace dashboards | 7 -- | -- resources | 31 views | 52 mode | storage

Checklist

Describe the issue

Reproduction steps

  1. Open HACS
  2. Click on either Integrations or Frontend.
  3. Click the three dots menu.
  4. "Custom repositories" is disabled.

Debug logs

2022-01-16 07:42:58 ERROR (MainThread) [custom_components.hacs] <Integration stokkie90/UI> GitHub returned 404 for https://api.github.com/repos/stokkie90/UI/git/trees/0.1.0-beta
2022-01-16 07:42:58 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 28, 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 28, 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 991, in common_update_data
    raise HacsException(exception) from None
custom_components.hacs.exceptions.HacsException: GitHub returned 404 for https://api.github.com/repos/stokkie90/UI/git/trees/0.1.0-beta
hacs-bot[bot] commented 2 years ago

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

brianhanifin commented 2 years ago

I looks like the offending item is a theme I added to the custom repositories list.

https://github.com/stokkie90/UI

ludeeus commented 2 years ago

Duplicate of https://github.com/hacs/integration/issues/2440

brianhanifin commented 2 years ago

I should have added to Reproduction steps:

  1. Downgrade HACS to 1.18.0.
  2. Restart Home Assistant.

Custom repositories is still disabled after this.

I have also tried to manually remove that entry from /config/.storage/hacs.repositories but it returns after restart. What else can I do to troubleshoot?


        "446496468": {
            "authors": [
                "@stokkie90"
            ],
            "category": "integration",
            "description": "UI-Lovelace-Minimalist is a \"theme\" for HomeAssistant",
            "domain": "ui_lovelace_minimalist",
            "downloads": 0,
            "etag_repository": "W/\"ca0a501db49245893828459d62587bcf1eae63fb3efbb48d360bf7c2484129b3\"",
            "full_name": "stokkie90/UI",
            "first_install": false,
            "installed_commit": "01f29c2",
            "installed": true,
            "last_commit": "3b28575",
            "last_release_tag": "0.1.0-beta",
            "last_updated": "2022-01-12T14:13:16Z",
            "name": "ui_lovelace_minimalist",
            "new": false,
            "repository_manifest": {
                "name": "UI Lovelace Minimalist",
                "render_readme": false,
                "homeassistant": "2021.5.0"
            },
            "selected_tag": null,
            "show_beta": false,
            "stars": 0,
            "topics": [],
            "version_installed": "0.1.0-beta",
            "last_fetched": 1642096732.926289
        },
brianhanifin commented 2 years ago

The solution on #2440 appears to be "downgrade to 1.19.2" then restarting Home Assistant. However this does not fix the problem for me.

How can I troubleshoot this further?

ludeeus commented 2 years ago

The solution on 2440 was a code change that will be included in the next release.

brianhanifin commented 2 years ago

OK, that's great!