Closed artohi closed 2 years ago
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 :+1: reaction to the issue description. Thanks! :+1:
If this is not HACS / backend issue, could you tell me where I should report this?
I just noticed that Alarmo named integration has new update (this was shown in HA settings page). I tried to update it but it also failed (log below)
`2022-05-05 21:57:01 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/aiogithubapi/client.py", line 103, in async_call_api result = await self._session.request(**request_arguments) File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 535, in _request conn = await self._connector.connect( File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 542, in connect proto = await self._create_connection(req, traces, timeout) File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 907, in _createconnection , proto = await self._create_direct_connection(req, traces, timeout) File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1154, in _create_direct_connection hosts = await asyncio.shield(host_resolved) asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/system_health/init.py", line 103, in handle_info
await asyncio.gather(
File "/usr/src/homeassistant/homeassistant/components/system_health/init.py", line 68, in get_integration_info
data = await registration.info_callback(hass)
File "/config/custom_components/hacs/system_health.py", line 22, in system_health_info
response = await hacs.githubapi.rate_limit()
File "/usr/local/lib/python3.9/site-packages/aiogithubapi/github.py", line 210, in rate_limit
response = await self._client.async_call_api(endpoint="/rate_limit", *kwargs)
File "/usr/local/lib/python3.9/site-packages/aiogithubapi/client.py", line 105, in async_call_api
raise GitHubConnectionException(
aiogithubapi.exceptions.GitHubConnectionException: Request exception for 'https://api.github.com/rate_limit' with -
2022-05-05 21:58:22 DEBUG (MainThread) [custom_components.hacs] <Integration nielsfaber/alarmo> Getting repository information
2022-05-05 21:58:23 DEBUG (MainThread) [custom_components.hacs] <Integration nielsfaber/alarmo> Running checks against v1.9.0
2022-05-05 21:58:23 DEBUG (MainThread) [custom_components.hacs] expected token 'end of print statement', got 'open_sensors'
2022-05-05 21:58:24 INFO (MainThread) [custom_components.hacs] <Integration nielsfaber/alarmo> Running pre installation steps
2022-05-05 21:58:24 INFO (MainThread) [custom_components.hacs] <Integration nielsfaber/alarmo> Pre installation steps completed
2022-05-05 21:58:24 INFO (MainThread) [custom_components.hacs] <Integration nielsfaber/alarmo> Running installation steps
2022-05-05 21:58:24 DEBUG (MainThread) [custom_components.hacs] <Integration nielsfaber/alarmo> Getting repository information
2022-05-05 21:58:24 DEBUG (MainThread) [custom_components.hacs] <Integration nielsfaber/alarmo> Running checks against v1.9.0
2022-05-05 21:58:25 DEBUG (MainThread) [custom_components.hacs] expected token 'end of print statement', got 'open_sensors'
2022-05-05 21:58:26 DEBUG (SyncWorker_7) [custom_components.hacs] Backup for /config/custom_components/alarmo, created in /tmp/hacs_backup/alarmo
2022-05-05 21:58:26 DEBUG (MainThread) [custom_components.hacs] <Integration nielsfaber/alarmo> Local path is set to /config/custom_components/alarmo
2022-05-05 21:58:26 DEBUG (MainThread) [custom_components.hacs] <Integration nielsfaber/alarmo> Remote path is set to custom_components/alarmo
2022-05-05 21:58:26 DEBUG (MainThread) [custom_components.hacs] <Integration nielsfaber/alarmo> ref: v1.9.0 --- tag: v1.9.0
2022-05-05 21:58:26 DEBUG (MainThread) [custom_components.hacs]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/hacs/base.py", line 605, in async_download_file
request = await self.session.get(
File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 535, in _request
conn = await self._connector.connect(
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 542, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 907, in _createconnection
, proto = await self._create_direct_connection(req, traces, timeout)
File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1166, in _create_direct_connection
raise ClientConnectorError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host github.com:443 ssl:default [Try again]
2022-05-05 21:58:31 DEBUG (MainThread) [custom_components.hacs]
I am also unable to update I see this loop errror: This error originated from a custom integration.
Logger: custom_components.hacs Source: custom_components/hacs/helpers/methods/installation.py:92 Integration: HACS (documentation, issues) First occurred: May 4, 2022, 6:14:16 PM (7 occurrences) Last logged: 10:15:25 PM
Download was not completed [timeout() got an unexpected keyword argument 'loop'] Download was not completed
The front end seems to complete and says one integration needs restarting The update never disappears, same issues with other components through hacs
I removed hacs integration and readded it and reauthed the application. and the error persisted.
@artohi Your issues are network related, socket.gaierror: [Errno -3]
usually means DNS issues.
@nlighteneddesign Unrelated and you know it. downgrade HA or run download script of HACS.
Closing as the issue described is not something that can be fixed in HACS, and this has become an issue for unrelated problems.
I just want to mention that I added to this discussion because the title Can not download anything from HACS - all downloads fail (HA 2022.5)
directly relates to the issue that I am experiencing.
I am unable to download HACS updates or update the plugins managed by it. I added the information from the logs that I see when attempting to download.
I'd be happy to open another ticket if you think my issue is unrelated to the current issue. I will also look into the download script you mentioned.
To pull from another community I contribute to I think this principle applies:
This discussion appears to discourage contribution from some participants by assuming a level of education or exposure to information. This can discourage folks that are new to a conversation from asking for help or getting involved. Consider providing the new contributor with links to help them learn the topic or concept.
For more information, please refer to Drupal’s Values and Principles #3 (https://www.drupal.org/about/values-and-principles#foster-a-learning-environment) of fostering a learning environment: long-term contributors should be role models by admitting their own shortcomings and mistakes, being vulnerable, and by giving others the same respect that was once given to them. To keep learning read this article (https://jvns.ca/blog/2017/04/27/no-feigning-surprise) about not feigning surprise.
Principle #9 (https://www.drupal.org/about/values-and-principles#be-constructively-honest-and-relentlessly-optimistic) can also be useful here: be constructively honest, and relentlessly optimistic. You can be optimistic and supportive by giving suggestions for how to improve their contributions. By being helpful, you encourage people to accept feedback and act on it.
This comment is provided as a service (currently being tested) of the Drupal Community Health Team as part of a project to encourage all participants to engage in positive discourse. For more information, please visit https://www.drupal.org/project/drupal_cwg/issues/3129687
The download script reinstalled hacs from scratch and resolved the issue. Thanks for pointing that out!
System Health details
System Health
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4362 Installed Version | 1.24.5 Stage | running Available Repositories | 1091 Downloaded Repositories | 43Home Assistant Cloud
logged_in | true -- | -- subscription_expiration | 11 May 2022, 03:00 relayer_connected | true remote_enabled | true remote_connected | true alexa_enabled | false google_enabled | true remote_server | eu-west-2-2.ui.nabu.casa can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Home Assistant OS 7.6 -- | -- update_channel | stable supervisor_version | supervisor-2022.05.0 docker_version | 20.10.9 disk_total | 159.3 GB disk_used | 16.2 GB healthy | true supported | true board | ova supervisor_api | ok version_api | ok installed_addons | File editor (5.3.3), Samba share (9.6.1), SSH & Web Terminal (10.1.3), MariaDB (2.4.0), Home Assistant Google Drive Backup (0.107.1), Studio Code Server (5.0.2), Node-RED (11.1.2), Mosquitto broker (6.1.1), Zigbee2mqtt (1.25.1-1), InfluxDB (4.4.1), Grafana (7.5.2), AppDaemon (0.8.2), AirCast (3.3.0)Dashboards
dashboards | 5 -- | -- resources | 31 views | 27 mode | storageSpotify
api_endpoint_reachable | ok -- | --Checklist
Describe the issue
I can't install anything new from HACS because downloading fails every time.
This issue came after HA2022.5 update. Before that everything has worked fine for months. All previously installed (before HA2022.5) integrations, fronted components and AppDaemon apps are working just fine.
( I had to shorten the debug logs because it was too long (max is 65536 character and my log from startup to error was over 300 000 characters)
Reproduction steps
Debug logs
Diagnostics dump
config_entry-hacs-d352fbf47b53fe9fd92db36013e22bfe.json.txt