-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
Hikvision DS-2CD2232-I5 onvif cameras not working in 2023.4.0 #90912
Comments
Hey there @hunterjm, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) onvif documentation |
I have the same issue. Started happening immediately after 2023.4 update. The DS-2CV2Q21FD-IW working, but DS-2CD2720F-I and DS-2CD2720F-IS stopped working. |
Hi, |
Please post the full traces for the other models. It looks like it's the older models that have the issue? |
If you enable debug logs for httpx we might get a better idea why the camera isn't responding |
I recall some of the older hikvisions have broken keep alive. I thought they had fixed that in newer firmwares but it looks like these cameras may be EOL so they aren't going to solve it. I expect the issue is the connection pool and disabling keep alive with max_keepalive_connections 0 will probably fix it. That's not a particularly good solution though since it will tank performance for all cameras which would be a shame to do since we went through so much trouble fix it in 2023.4.x What's more concerning is canceled error is being raised all the way up so it might also be a bug in httpx's handling of the broken keep alive in the hikvision firmware. But without httpx logs I'm just speculating and might be way off here |
I enabling debugging for httpx and interestingly one of the three cameras are now working! So it seems to be a cornercase... First one of the non-working cameras:
...and the working one:
I don't see any difference between the two logs, but my guess it's related to getting the camera stream. |
It looks like agronholm/anyio#374 |
looks like we need to wait for agronholm/anyio#496 |
more discussion on the issue encode/httpx#2381 here encode/httpx#2370 |
Setting But it would be better if it was fixed in |
I found one of those older cameras on eBay. If it makes it here in working I'll see if I can work up another alternative that doesn't come with major performance hit for the compliant cameras in case the anyio issue takes a while to get fixed |
I appreciate the work you put into solving this issue. I have a spare camera, that I can connect directly to the Internet, to allow you to access it. Let me know if that would be useful |
If eBay doesn’t come through that should be a good fallback but since this is a timing issue, I would probably need something local to be able to run code in to talk to the camera as talking to it over the internet will add several hundred milliseconds and might not be a good test case to develop a workaround. |
In the meantime - is setting max_keepalive_connections to 0, something that can be done within Home Assistant, or would that mean editing the actual Python code? |
It's in the code https://www.python-httpx.org/advanced/ See Pool limit configuration |
+1 here. |
My Trendnet TV-IP420P ONVIF Profile S camera stopped working with the upgrade to Home Assistant 2023.4.0. Once I rolled back to Home Assistant 2023.3.6 it worked again. |
Its not particularly helpful if you post a "me too" without a trace as it only makes this issue harder to follow and doesn't get this closer to resolution. In fact it will likely make people unsubscribe and ignore this issue to stop getting notifications which is the opposite of what we want. |
To "bdraco" concerning your comments above. You are correct. I should have provided the configuration and logs. Will upgrade in the morning and do so. Thanks for the advice. |
I picked up one of these for testing but I can't seem to get onvif enabled on it. It looks like the only option is some windows software to configure the camera. Does anyone know of a way to do it without windows? |
Hey @bdraco, I had a similar camera in the past and assuming it has a recent Firmware (you should be able to upgrade using their phone app) it should have a working onvif endpoint, as I recall you also need to disable the "Image Encryption" option for onvif integration to work. EDIT: found this guide that may help They are indeed using the |
Thank you, thats helpful. I'll disable image encryption and give it a shot. I was trying port 8000 but it looks like onvif is no port 8999 based on that link. |
Sadly the test camera I have doesn't listen on port 8999. Only 8000 is open. Disabling image encryption didn't get it working on 2023.3.6 or 2023.4.2 or dev |
It looks like I'm going to need to borrow a windows computer from someone to be able to get onvif turned on to be able to test with this camera. I ordered a few other ones so its likely they will show up before than and hopefully have the same issue. |
sounds good, if it helps I have the HikVision DS-HD1 (doorbell) that supports onvif and has the same issue. |
That helps. It looks like those are in stock in a few places with only a few days shipping lead time so I should be able to pickup one of those edit: estimated delivery Monday, April 24 |
Sadly the ebay sent the wrong camera. I got a non-IP version so I'm back to looking for a DS-2CD2232-I5 |
I found one from a different seller so I should have it here by the 24th as well |
Hi,
|
The problem
I have 3x Hikvision DS-2CD2232-I5 cameras that have been working fine with the onvif integration for a very long time. After upgrading to 2023.4.0 all 3 cameras stopped working. The cameras are reachable over the network (from a browser)
The logfile shows
Could this be related to mvantellingen/python-zeep#1369 ?
What version of Home Assistant Core has the issue?
2023.4.0
What was the last working version of Home Assistant Core?
2023.3.6
What type of installation are you running?
Home Assistant OS
Integration causing the issue
onvif
Link to integration documentation on our website
https://www.home-assistant.io/integrations/onvif/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: