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

adding integration keeps loading forever #1114

Closed
cagnulein opened this issue May 2, 2020 · 24 comments
Closed

adding integration keeps loading forever #1114

cagnulein opened this issue May 2, 2020 · 24 comments

Comments

@cagnulein
Copy link

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)'}}}

@hacs-bot
Copy link

hacs-bot bot commented May 2, 2020

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

@lucasff
Copy link

lucasff commented May 2, 2020

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.

@cagnulein
Copy link
Author

@lucasff which version did you have before?

@cagnulein
Copy link
Author

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

@ludeeus
Copy link
Member

ludeeus commented May 2, 2020

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

@cagnulein
Copy link
Author

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

@ludeeus
Copy link
Member

ludeeus commented May 2, 2020

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

@cagnulein
Copy link
Author

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?

@cagnulein
Copy link
Author

is there any way to debug it deeper?

@cagnulein
Copy link
Author

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

@AreaKode
Copy link

AreaKode commented May 4, 2020

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.

@ajobbins
Copy link

ajobbins commented May 5, 2020

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

@iMicknl
Copy link

iMicknl commented May 5, 2020

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

@Tekno-man
Copy link

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.

@war1000
Copy link

war1000 commented May 12, 2020

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

@Tekno-man
Copy link

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

@oneWaveAdrian
Copy link

oneWaveAdrian commented May 21, 2020

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

@rchl
Copy link

rchl commented May 21, 2020

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.

@ludeeus ludeeus closed this as completed May 22, 2020
@rchl
Copy link

rchl commented May 22, 2020

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.

@rijn
Copy link

rijn commented Sep 14, 2020

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.

@johnf
Copy link

johnf commented Nov 1, 2020

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

@Roemer
Copy link

Roemer commented Apr 5, 2021

I had the same issue. I could solve it by using the internal ip to connect to Home Assistant and install HACS from there instead from the external access.

@horrorhound
Copy link

We sure this isn't the issue after HACS installs?

HACS is disabled (Ratelimited)
GitHub API calls are ratelimited, this will clear in less than 1 hour.

After HACS is installed there's a lot of API calls to GitHub to obtain all the repositories. So I'm thinking our GitHub accounts hits the API call limit and then HACS should start working again after 1 hour?

@vadipp
Copy link

vadipp commented Aug 30, 2021

We sure this isn't the issue after HACS installs?

This happens before we are asked for GitHub credentials, so this shouldn't be related to rate-limiting.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests