Integration: adding integration keeps loading forever

Created on 2 May 2020  ·  21Comments  ·  Source: hacs/integration

Immagine

Version of HACS

0.24.3

Describe the bug

I'm installing HACS following the wiki, but when i try to add HACS to integration, the loading page stills forever.

Debug log

These are the only lines that matters in the debug log:

2020-05-02 07:48:00 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.139746845239952] Sending {'id': 52, 'type': 'result', 'success': True, 'result': {'resources': {'component.hacs.config.abort.single_instance_allowed': 'Only a single configuration of HACS is allowed.', 'component.hacs.config.error.auth': 'Personal Access Token is not correct.', 'component.hacs.config.step.user.data.appdaemon': 'Enable AppDaemon apps discovery & tracking', 'component.hacs.config.step.user.data.netdaemon': 'Enable NetDaemon apps discovery & tracking', 'component.hacs.config.step.user.data.python_script': 'Enable python_scripts discovery & tracking', 'component.hacs.config.step.user.data.sidepanel_icon': 'Side panel icon', 'component.hacs.config.step.user.data.sidepanel_title': 'Side panel title', 'component.hacs.config.step.user.data.theme': 'Enable Themes discovery & tracking', 'component.hacs.config.step.user.data.token': 'GitHub Personal Access Token', 'component.hacs.config.step.user.description': 'If you need help with the configuration have a look here: https://hacs.xyz/docs/configuration/start/', 'component.hacs.config.step.user.title': 'HACS (Home Assistant Community Store)', 'component.hacs.config.title': 'HACS (Home Assistant Community Store)'}}}

Issue not in HACS

Most helpful comment

I looked into this issue a little bit and found that importlib_metadata.version somehow doesn't work on my ubuntu. Updating the following line

https://github.com/home-assistant/core/blob/dev/homeassistant/util/package.py#L54

return version(req.project_name) in req

to

return pkg_resources.get_distribution(req.project_name).version in req

works for me.

All 21 comments

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

I had the same issue in the past but it somehow worked after some attempts. Now I'm having the same issue and it doesn't work.

@lucasff which version did you have before?

@ludeeus could you please explain the label? Are you aware of this issue?

That happens in HA (before HACS is loaded, there is nothing I can do about that in HACS)

That happens in HA (before HACS is loaded, there is nothing I can do about that in HACS)

ok but how can we solve it? every users will think that it will be a HACS issue

Disable adguard, pihole, use ethernet, disable proxy 🤷‍♂️

Disable adguard, pihole, use ethernet, disable proxy 🤷‍♂️

disabled pihole, i'm over ethernet and i have no proxy. the issue remains. I'm over 4G and it's my only network, maybe something with NAT or similar?

is there any way to debug it deeper?

this morning i've retried changing the language from italian to english: i don't know why but it worked, without disabling pihole or anything else

I'm also having this issue. HassOS 3.13. Installing HACS for the first time. It just sits on "Please wait while the integration is being installed" when I try to add the integration.

I've successfully uninstalled the component and added it back. Same issue. Multiple reboots in between steps.

EDIT: This time it worked after a full reboot. I did that a couple of times before, but I got it installed this time.

I'm also having this issue trying to install HACS for the first time. Sits on "Please wait while the integration is being installed" for about a minute before going back to the integrations screen.

HACS 0.24.3, HA Core 0.109.4 on Docker

I am having the same issues on 2 different installs. No errors in my log and it does only happen for HACS, not for any other custom components using the config_flow.

HACS 0.24.3
Home Assistant 0.109.4
HassOS

I am having the same issue. Fresh install of Hassio on a VM. I previously installed HACS on a previous building using the config.YAML method with no problems. This is my first attempt at installing through integrations page. As described above- Sits on "Please wait while the integration is being installed" for about a minute before going back to the integrations screen. HACS 0.24.3, HA Core 0.109.4.

EDIT - Rebooted VM/host again and now it installed.

I am having this exact same issue. I have rebooted multiple times. Removed the hacs folder and reuploaded, still getting stuck at this screen. Anything else I can try? I am on core. 0.109.2

Have you tried rebooting the the host not just HA, ie turn off the computer?

Ran into the same problem with classic install. Worked fine using the CLI method. (Running on Raspi)

Same here when trying to install.

Trying to install HACS triggers POST /api/config/config_entries/flow to my HA instance but it time-outs with 504 response eventually.

It started working for me.
All I did was restarting machine (raspberry pi) that is running HA and running apt upgrade. Not sure what helped.

I looked into this issue a little bit and found that importlib_metadata.version somehow doesn't work on my ubuntu. Updating the following line

https://github.com/home-assistant/core/blob/dev/homeassistant/util/package.py#L54

return version(req.project_name) in req

to

return pkg_resources.get_distribution(req.project_name).version in req

works for me.

I looked into this issue a little bit and found that importlib_metadata.version somehow doesn't work on my ubuntu.
The same fix works in the docker images

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dkagedal picture dkagedal  ·  5Comments

emics picture emics  ·  8Comments

ludeeus picture ludeeus  ·  4Comments

rpitera picture rpitera  ·  7Comments

tribut picture tribut  ·  3Comments