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

Error demuxing stream while finding first packet #239

Open
rpform opened this issue Aug 17, 2024 · 7 comments
Open

Error demuxing stream while finding first packet #239

rpform opened this issue Aug 17, 2024 · 7 comments

Comments

@rpform
Copy link

rpform commented Aug 17, 2024

For the past few days I have been running into the follow issue. From time to time I may see my cameras for a few seconds but the majority of the time I see nothing when viewing on a HA dashboard. At the same time another machine that is viewing the cameras from BlueIris's webserver without issue. I am stuck and not sure what else to try to resolve these issues

Logger: homeassistant.components.stream.stream.camera.xxxxxxx_front_door
Source: components/stream/init.py:448
integration: Stream (documentation, issues)
First occurred: 4:24:27 PM (82 occurrences)
Last logged: 5:12:58 PM

Error from stream worker: Error demuxing stream while finding first packet (HTTP_SERVER_ERROR, Server returned 5XX Server Error reply, http://10.0.1.10:81/h264/frontdoor/temp.m3u8?session=070b0e515f4647c716fb3c0504906342)
Error from stream worker: Stream ended; no additional packets
Error from stream worker: Error demuxing stream (EXIT, Immediate exit requested, http://10.0.1.10:81/h264/frontdoor/temp.m3u8?session=2fac6bea6ab20d6f02f2386b0786295a)
Error from stream worker: Error opening stream (HTTP_SERVER_ERROR, Server returned 5XX Server Error reply, http://10.0.1.10:81/h264/frontdoor/temp.m3u8?session=070b0e515f4647c716fb3c0504906342)
Error from stream worker: Error demuxing stream (EXIT, Immediate exit requested, http://10.0.1.10:81/h264/frontdoor/temp.m3u8?session=070b0e515f4647c716fb3c0504906342)

@kramttocs
Copy link
Collaborator

Hey. This doesn't look like an integration issue based on the stack provided. You'll need to pursue the 5xx response as the error is coming from the server. Check the BI logs and monitor those. You may need to reach out to BI support to see if there is more detail to be obtained.
Let me know what you find.

@rpform
Copy link
Author

rpform commented Aug 18, 2024

I am not sure how it is a BlueIris issue since port 81 on that ip is the Ui3 webserver in blueiris and I have a raspberry pi that shows the camera feeds using that same webserver interface and the video feeds are rock solid showing live feeds showinng the same cameras. Also when I look as the connections I see Home Assistant getting feeds being sent to it just like the raspberry Pi no errors are showing in the BlueIrus logs

In addition, I used VLC media player and used that exact same link on my laptop and it is providing a live feed without issue.

Both my main Home Assistant instance and my lab instance are the only things that seem to have trouble

@kramttocs
Copy link
Collaborator

I haven't released a new version in quite awhile so did you just upgrade it? If not, what changed?
You need to find out what the 5xx error is though as that will help give you some direction.

There was an issue with the latest HA OS so you could also try rolling back some of the HA updates to see if that helps.

@rpform
Copy link
Author

rpform commented Aug 18, 2024

I keep everything pretty much up to date and I want to say it may have happened around the time 2024.8.1 got installed. From time to time I had other issues I normally could resolve but didn't get to it work with this issue until 2024.8.2 got installed and it looks like my backup to 8.0.0 is no more.

Some other things I have noticed after doing more digging. right now every so often to the error message I already posted, I would see the actual camera devices disappear and then maybe 30 seconds later they reappear in HA.

From time to time, some camera will show a static image from the camera for a few seconds before that disappears

some of the other errors I am seeing now include:

This error originated from a custom integration.

Logger: custom_components.blueiris.camera
Source: custom_components/blueiris/camera.py:172
integration: Blue Iris NVR (documentation, issues)
First occurred: August 17, 2024 at 6:45:31 PM (2 occurrences)
Last logged: August 17, 2024 at 6:45:39 PM

Error getting new camera image from Cyclops Backyard: Cannot connect to host 10.0.1.10:81 ssl:default [Connect call failed ('10.0.1.10', 81)]

This error message is odd too as my ui3 does not have ssl enabled and is just http which does appear to show correctly on the log below:

This error originated from a custom integration.

Logger: custom_components.blueiris.api.blue_iris_api
Source: custom_components/blueiris/api/blue_iris_api.py:101
integration: Blue Iris NVR (documentation, issues)
First occurred: August 17, 2024 at 6:45:31 PM (4 occurrences)
Last logged: August 17, 2024 at 6:45:31 PM

Failed to connect http://10.0.1.10:81/json, Error: [Errno 104] Connection reset by peer, Line: 84
Failed to connect http://10.0.1.10:81/json, Error: Cannot connect to host 10.0.1.10:81 ssl:False [Connect call failed ('10.0.1.10', 81)], Line: 84

Also this is another log entry I found this morning:

Logger: homeassistant.components.stream.stream.camera.cyclops_driveway
Source: components/stream/init.py:448
integration: Stream (documentation, issues)
First occurred: August 17, 2024 at 4:25:55 PM (2463 occurrences)
Last logged: 11:36:00 AM

Error from stream worker: Error demuxing stream (EXIT, Immediate exit requested, http://10.0.1.10:81/h264/driveway/temp.m3u8?session=52a270b72bd6179d3f5019cc3eae0604)
Error from stream worker: Timestamp discontinuity detected: last dts = 7959690, dts = 10659870
Error from stream worker: Timestamp discontinuity detected: last dts = 13629690, dts = 16329780
Error from stream worker: Timestamp discontinuity detected: last dts = 8540820, dts = 11469690
Error from stream worker: Stream ended; no additional packets

lastly I also am seeing this log entry:

This error originated from a custom integration.

Logger: custom_components.blueiris.camera
Source: custom_components/blueiris/camera.py:169
integration: Blue Iris NVR (documentation, issues)
First occurred: 3:19:17 AM (14 occurrences)
Last logged: 11:32:03 AM

Timeout getting camera image from Cyclops Backyard

I was wondering if there was some communications issues between Home Assistant and BlueIris so I checked by pinging between them both at the default packet size as well as a large packet size. pings where returning is less then a millisecond when I ran the pings from the Home Assistant cli.

If it helps this is what I am running on Home Assistant

Core
2024.8.2
Supervisor
2024.08.0
Operating System
13.0
Frontend
20240809.0

BlueIris is run release 5.9.5.4 x64 dated 8/16/2024

Hopefully some of this info may help point towards something

@shieldsit
Copy link

I had the same issue, it's caused by the latest HAOS update. home-assistant/operating-system#3528

@kramttocs
Copy link
Collaborator

I figured it would end up the same but was hoping rpform would roll his back to confirm.
See also: #238 which was the same cause but manifested a bit differently.
It's what I referenced here: #239 (comment)

@rpform
Copy link
Author

rpform commented Aug 22, 2024

I was able to roll back by test lab as some how I had a backup there and it did work. but what is strange is after that I got a "Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble" everytime I try and click on the configuration for this intergration.

Also last night I installed the newest HAOS 13.1 and cameras are at least partially back.. If I leave them at auto they work and update roughly every 10 seconds, but keep dropping on any camera that I have setup on a dashboard as a live feed.

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

No branches or pull requests

3 participants