-
Notifications
You must be signed in to change notification settings - Fork 10
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
Streams sometimes de-synced from Glimesh.tv and janus-ftl-plugin #112
Comments
I've confirmed it's possible to have this issue occur both:
|
I'm tracing a channel I just watched it happened to. It looks like the Here's the surrounding log, which don't look odd...
|
Last bit of info I noticed on do-nyc3-ingest1 (which the streamer is not connected to).
I wonder if we still have funky http client stuff going on. |
Grabbed a dump of a repro instance on a production server, and found that the metadata thread was hung up on an HTTP request. Partial backtrace here:
This look like a known issue in cpp-httplib, tracked here: yhirose/cpp-httplib#873 My current working theory as to what happens: 1.) Streamer connects to ingest, an HTTP request is made to the Glimesh API and the stream is started successfully. The biggest bummer is that so long as the metadata thread is stuck, this will happen to every stream on that ingest. |
We do seem to still have this bug, or a slight variation, where certain streams stay online instead of going offline even after the video content has stopped. I checked out database and we are still getting a metadata stream from them. |
Confirmed this morning that the exact original bug is still occurring. A user was still transmitting data packers, orchestrator still had knowledge of them, and edges properly distributed the video. The user was appearing as offline on Glimesh.tv, with no metadata being sent to the server. |
Some offline investigations revealed remaining issues may be on the API side. Will keep this issue open to track until we can confirm. |
We're seeing an increasing number of users who are reporting that their Channel is not appearing as "LIVE" on their channel page, and that their channel does not show up in channel list. Whenever the users report it I query the API to see their current status and sure enough their Channel.status = offline and their Channel.Stream (which should be an object) is null instead. This means that Glimesh.tv thinks the stream is offline even though janus is still relaying video.
It's worth noting we have a mechanism on Glimesh.tv where if the channel is offline, and janus-ftl-plugin sends a
logStreamMetadata()
oruploadStreamThumbnail()
it'll send an error back to janus-ftl-plugin ofStream has ended
. The plugin should handle that by disconnecting the users video stream.I don't think it's a safe bet to entirely rule out the Glimesh.tv repo from this bug, but I am currently convinced it lives inside this repo.
The text was updated successfully, but these errors were encountered: