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

Glances stopped working after update to 2022.4 #70373

Closed
SvbZ3r0 opened this issue Apr 21, 2022 · 12 comments · Fixed by #77540
Closed

Glances stopped working after update to 2022.4 #70373

SvbZ3r0 opened this issue Apr 21, 2022 · 12 comments · Fixed by #77540

Comments

@SvbZ3r0
Copy link

SvbZ3r0 commented Apr 21, 2022

The problem

The Glances integration stopped working after updating HA Core. Glances is accessible through the webpage and through the api. Glances is being run dockerized on unRaid.

I have tried removing the integration and readding it. The integration is added successfully, but loads no entities.

Others with the same issue at the HA forum: https://community.home-assistant.io/t/home-assistant-community-add-on-glances/97102/96

What version of Home Assistant Core has the issue?

core-2022.4.6

What was the last working version of Home Assistant Core?

core-2022.4.0

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Glances

Link to integration documentation on our website

https://www.home-assistant.io/integrations/glances/

Diagnostics information

N/A

Example YAML snippet

No response

Anything in the logs that might be useful for us?

File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/glances/sensor.py", line 50, in async_setup_entry
    elif client.api.data[description.type]:
KeyError: 'docker'

Additional information

No response

@probot-home-assistant
Copy link

glances documentation
glances source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @engrbm87, mind taking a look at this issue as it has been labeled with an integration (glances) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@DrBlokmeister
Copy link

Same issue and error here. However, I'm on 2022.3.5.

To show I have the same error:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/glances/sensor.py", line 50, in async_setup_entry
    elif client.api.data[description.type]:
KeyError: 'docker'

@SvbZ3r0
Copy link
Author

SvbZ3r0 commented Apr 22, 2022

Huh.. That's weird. I had it working perfectly from quite a while back (at least 8-9 months) till 2022.4.0. I upgraded from 2022.4.0. to 2022.4.6, and it stopped working.

Did you update your Glances docker recently? I don't recall if I did, but maybe the issue is on the Glances end?

@DrBlokmeister
Copy link

DrBlokmeister commented Apr 22, 2022 via email

@Nuuki9
Copy link

Nuuki9 commented Apr 22, 2022

Huh.. That's weird. I had it working perfectly from quite a while back (at least 8-9 months) till 2022.4.0. I upgraded from 2022.4.0. to 2022.4.6, and it stopped working.

Did you update your Glances docker recently? I don't recall if I did, but maybe the issue is on the Glances end?

I had the same issue. I just reverted Glances to 3.2.4.2 and its started working again in Home Assistant. Not sure that confirms its definitely an issue there, but at least it gets you back up and running until a proper fix is found.

@DrBlokmeister
Copy link

DrBlokmeister commented Apr 22, 2022 via email

@SvbZ3r0
Copy link
Author

SvbZ3r0 commented Apr 23, 2022

I too can confirm. Rolled back Glances to v3.2.4.2, and it has started working again.

@TehRobot
Copy link

Can also confirm.

For those on UnRaid just change repository to
nicolargo/glances:3.2.4.2

@ranrinc
Copy link

ranrinc commented May 20, 2022

Anyone who get problem with the latest glances can used this as a solutions https://community.home-assistant.io/t/solution-latest-glances-fail-to-load-on-home-assistant/419251/7

@github-actions
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Aug 18, 2022
@engrbm87
Copy link
Contributor

I am currently running the latest version of glances 3.2.6.4 and I can confirm that docker key is available in the returned data. Can you check and confirm if the latest version of glances is working for you and thus we can close this ticket.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants