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

KeyError [Bug] #38

Open
jonwaland opened this issue Jul 16, 2024 · 28 comments
Open

KeyError [Bug] #38

jonwaland opened this issue Jul 16, 2024 · 28 comments
Labels
bug Something isn't working

Comments

@jonwaland
Copy link

Describe the issue

Getting KeyError: errors in log

How to reproduce the issue

unknown

Expected behavior

no error

Screenshots

Software versions

  • Home Assistant version: HA CORE 2024.7.2
  • Portainer integration version: v 1.0.2
  • Portainer software version: Community Edition 2.19.5

Diagnostics data

none

Traceback/Error logs

2024-07-16 18:01:34.262 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/update_coordinator.py", line 255, in _handle_refresh_interval
    await self._async_refresh(log_failures=True, scheduled=True)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/update_coordinator.py", line 411, in _async_refresh
    self.async_update_listeners()
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/update_coordinator.py", line 165, in async_update_listeners
    update_callback()
  File "/home/homeassistant/.homeassistant/custom_components/portainer/entity.py", line 114, in _handle_coordinator_update
    self._data = self.coordinator.data[self.description.data_path][self._uid]
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'bd807a5a7ce5d0b970d12819dd796593f9d9668a9e9faa3b370cbfa1c58aa372'

Additional context

none

@jonwaland jonwaland added the bug Something isn't working label Jul 16, 2024
@jonwaland jonwaland changed the title [Bug] KeyError [Bug] Jul 16, 2024
Copy link
Owner

tomaae commented Jul 17, 2024

thats a strange one. can you post debugs?

@jonwaland
Copy link
Author

I've restarted HA, and of course, the error has disappeared again. I've had it at occur multiple times (and then stop after a restart) about 3 times now. I'll set up debug and wait...

@jonwaland
Copy link
Author

got a debug - apologies for size
home-assistant_portainer_2024-07-19T02-07-20.232Z.log

@PHeonix25
Copy link

PHeonix25 commented Jul 25, 2024

This is happening for me near-constantly (roughly every 30 seconds: 5700 times in 48 hours).
Happy to generate a debug log if it'll help.

For now, please feel free to add this screenshot to the original issue:
image

Copy link

github-actions bot commented Aug 9, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Aug 9, 2024
@jonwaland
Copy link
Author

bump

@github-actions github-actions bot removed the stale label Aug 10, 2024
@jonwaland
Copy link
Author

OK - this error occurs when a container is removed (docker rm ....). the reported keyerror is the removed container.

Copy link

github-actions bot commented Sep 3, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Sep 3, 2024
@jonwaland
Copy link
Author

bump again

@github-actions github-actions bot removed the stale label Sep 5, 2024
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Sep 19, 2024
@jonwaland
Copy link
Author

bump

Copy link

github-actions bot commented Oct 4, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Oct 4, 2024
@jonwaland
Copy link
Author

bump

@github-actions github-actions bot removed the stale label Oct 5, 2024
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Oct 19, 2024
@jonwaland
Copy link
Author

bumpitybump

@github-actions github-actions bot removed the stale label Oct 20, 2024
Copy link

github-actions bot commented Nov 4, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Nov 4, 2024
@jonwaland
Copy link
Author

bumpitybump

@github-actions github-actions bot removed the stale label Nov 5, 2024
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Nov 19, 2024
@PHeonix25
Copy link

@jonwaland -- I'll take this one:

bump

😁

@github-actions github-actions bot removed the stale label Nov 20, 2024
Copy link

github-actions bot commented Dec 4, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Dec 4, 2024
@imposibrus
Copy link

No stale labels on my watch 😁

@github-actions github-actions bot removed the stale label Dec 5, 2024
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Dec 20, 2024
@jonwaland
Copy link
Author

bumpity bump bump

@github-actions github-actions bot removed the stale label Dec 21, 2024
@PavelD
Copy link
Contributor

PavelD commented Dec 22, 2024

I have the same issue as well.

Copy link

github-actions bot commented Jan 5, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Jan 5, 2025
@jonwaland
Copy link
Author

bump

@github-actions github-actions bot removed the stale label Jan 6, 2025
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Jan 21, 2025
@imposibrus
Copy link

bump

@github-actions github-actions bot removed the stale label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants