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

SNMP device tracker broken in 2024.3.1 #113457

Closed
lextm opened this issue Mar 14, 2024 · 6 comments · Fixed by #113463
Closed

SNMP device tracker broken in 2024.3.1 #113457

lextm opened this issue Mar 14, 2024 · 6 comments · Fixed by #113463

Comments

@lextm
Copy link
Contributor

lextm commented Mar 14, 2024

The problem

Due to an upstream package bug (pysnmp-lextudio 6.0.9), if device tracker uses SNMP v2c to query the devices, an endless loop occurs.

What version of Home Assistant Core has the issue?

2024.3.1

What was the last working version of Home Assistant Core?

2024.2.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

We aim to ship pysnmp-lextudio 6.0.11 as early as possible with the fix.

Related to #110100 and others.

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@lextm
Copy link
Contributor Author

lextm commented Mar 14, 2024

pysnmp-lextudio 6.0.11 was just shipped. Will send a pull request to update it in this repo.

@erikmouw
Copy link

Still does not work with the device_tracker component:

2024-03-14 23:29:48.700 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:13

Increasing the scan interval to 29 seconds does not fix the timeout.

Reverting back to 5.0.34 and everything works flawless again.

@mmiller7
Copy link

Still does not work with the device_tracker component:

2024-03-14 23:29:48.700 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:13

Increasing the scan interval to 29 seconds does not fix the timeout.

Reverting back to 5.0.34 and everything works flawless again.

Same experience for my install, had to roll back to the last Feb update to have my working SNMP device trackers again.

@morph027
Copy link

Jip, can confirm that 6.0.11 still does not work for me while 5.0.34 does.

@lextm
Copy link
Contributor Author

lextm commented Mar 16, 2024

pysnmp-lextudio 6.0.11 does fix the SNMP v2c WALK bug as the description shows.

We are able to detect another issue, that device_tracker is able to send the first round of SNMP packets out, but hangs after. The cause might be related to the fact that now pysnmp-lextudio is fully on asyncio, but not sure what mechanism device_tracker uses for scheduling.

Once our investigation reaches something, we will create a new issue to track the progress.

@lextm
Copy link
Contributor Author

lextm commented Mar 16, 2024

Created #113605 to track the remaining issue.

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

Successfully merging a pull request may close this issue.

4 participants