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 1.3.0b not working with HA 0.113.0

See original GitHub issue

Installation details

Description Value
HACS version 1.3.0b
Home Assistant version 1.113.0
Installation method for HA Docker

Checklist

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

Describe the issue

After upgrading hacs to the 1.3.0b version it no longer works. I had a previous HACS version running and tried to upgrade from hacs itself, but after I did the necessary restart of H.A. HACS no longer appears on UI. I found a log entry with the failed hacs component setup. I also tried to manually remove the hacs folder and did a “clean” install (unziping hacs.zip) with the same result.

Steps to reproduce

  1. unzip the 1.3.0b hacs.zip on custom_components folder of a Home-assistant 0.113.0 docker installation
  2. confirm that there’s no hacs on home-assistant ui.

Debug logs

Logs

2020-07-30 13:37:41 INFO (MainThread) [homeassistant.setup] Setting up hacs
2020-07-30 13:37:42 ERROR (MainThread) [homeassistant.setup] Error during setup of component hacs
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 193, in _async_setup_component
    result = await asyncio.wait_for(task, SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.8/asyncio/tasks.py", line 483, in wait_for
    return fut.result()
  File "/config/custom_components/hacs/__init__.py", line 21, in async_setup
    return await hacs_yaml_setup(hass, config)
  File "/config/custom_components/hacs/operational/setup.py", line 72, in async_setup
    await hass.async_add_executor_job(_common_setup, hass)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/hacs/operational/setup.py", line 41, in _common_setup
    hacs.session = async_create_clientsession(hass)
  File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 68, in async_create_clientsession
    connector = _async_get_connector(hass, verify_ssl)
  File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 182, in _async_get_connector
    connector = aiohttp.TCPConnector(enable_cleanup_closed=True, ssl=ssl_context)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 727, in __init__
    super().__init__(keepalive_timeout=keepalive_timeout,
  File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 229, in __init__
    loop = get_running_loop(loop)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/helpers.py", line 268, in get_running_loop
    loop = asyncio.get_event_loop()
  File "/usr/local/lib/python3.8/asyncio/events.py", line 639, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'SyncWorker_4'.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ludeeuscommented, Jul 30, 2020

Then you do what was asked

0reactions
tanus10commented, Jul 30, 2020

Because of this

WARNING (MainThread) [frontend.js.latest.202007160] Icon mdi:github-circle was renamed to mdi:github, please change your config, it will be removed in version 0.115

We cannot stay with 1.2.2 + Home Assistant 0.114.0.dev20200730 for long. (This warning is mass displayed when you hit the plus sign (+) in HACS. The github shadowy cat(?) icon is the culprit. 30~40 warning messages)

BTW, Maybe due to too many manual HACS install tests, Integration Update (not for HACS itself) does not work with my HACS 1.2.2. I am not sure where I should put ‘/tmp’ folder for update download/save as I use HA Docker container. Is this log shows absolute path? tmp at the root directory?

ERROR (MainThread) [hacs.download.save] Could not write data to /tmp/ - [Errno 21] Is a directory: '/tmp/'

I was updating hacs.repository.integration.custom-components.pyscript, for a test purpose. Maybe this is just a sole problem of pyscript integration side.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HA 0.103.0 update broke HACS (Requirements for hacs not ...
Just updated to the latest build of HA and i now have a couple of integrations that dont work anymore The following components...
Read more >
HACS not working after update HA to 2021.2.0 #1863 - GitHub
A clear and concise description of what the issue is. I updated to 2021.2.0 and HACS was gone. Steps to reproduce. Install HA...
Read more >
Status: Not Loaded - HACS
When you see this message you have one or more resources downloaded with HACS that are not properly loaded in Lovelace. To find...
Read more >
Home Assistant | My Hacs is not working anymore - Facebook
My Hacs is not working anymore. Log Logger: homeassistant.config_entries Source: components/frontend/__init__.py:196 First occurred: 19. oktober 2020...
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