Jump to content

Active Devices Appear to be Stuck in Dashboard


Recommended Posts

Posted (edited)

For a while now I've been having this issue, it's never really bothered me but I'm curious as to what's going on. This has occurred for months at the very least. My dashboard will show streams that are apparently in progress but they are stuck at a specific time and not moving for days. The user will watch content normally and it will show up as a separate active device with the frozen one still appearing alongside the rest. Below are the two streams that have been stuck like that for the past 3+ days.

 

oGtXoHT.png

 

Attached are the logs for the past two days

Edited by bfir3
  • Agree 1
pir8radio
Posted (edited)

For a while now I've been having this issue, it's never really bothered me but I'm curious as to what's going on. This has occurred for months at the very least. My dashboard will show streams that are apparently in progress but they are stuck at a specific time and not moving for days. The user will watch content normally and it will show up as a separate active device with the frozen one still appearing alongside the rest. Below are the two streams that have been stuck like that for the past 3+ days.

 

 

Attached are the logs for the past two days

 

I'm not saying this is your issue, But I notice if my users pause something on their phone or PC and just leave the app (running the the background), their client keeps an active connection to my server, showing the same thing you see for days, even when they login from a browser or different app (not the same app they paused on) it shows a second card of them on this different device working normally. The paused users reconnect after a server reboot as well...  Here is one that has been on my server for days:

 

59fdef9a2d4f4_Capture.png

 

Here is that same user (i masked his IP)  but notice he had status code 200 returned days ago when he was actually online, but now that he is paused running in the background I get constant 204 "No Content" hits, (which is normal for emby as far as I have seen historically).   This user probably does not even know he left this movie paused and its running in the background, eating some minor bandwidth.  Until he reads this post...   :)   I know it's not an emby (server) issue, because they are actually hitting my server with active connections, see below. 

 

59fdf1b6f3157_lingeringuser.png

Edited by pir8radio
Posted

Okay, this is literally exactly what's happening yes. I see those no-content hits I was actually curious about what they were. Good to know that this is normal...

Posted

I'm wondering if the connection remaining active for so long and hitting the server so frequently could be handled in a more elegant way...

pir8radio
Posted

I'm wondering if the connection remaining active for so long and hitting the server so frequently could be handled in a more elegant way...

 

agreed, my users is still connected..  its been days.    Maybe a force disconnect after so many hours?  I don't know..  

  • 5 years later...
Posted

Hey,

 

I'm sorry to dig up this thread but I have the problem. If some of my users leave their application in the background or even turn off their device without leaving the stream it still appears on the dashboard (The stream of Aldric and Thibault in my case). I can't stop the stream from the dashboard and I have a limit of 1 stream per user which is not respected anymore (2 streams for Thibault for example).

 

Is it possible to kill a stream if it is paused for some time for example to avoid this without using a plugin?

 

image.png.61913b1b0ad2edc75430e3de96c14801.png

Posted

You could just disable and re-enable the user (which will kill all their sessions, forcing them to re-authenticate).

Posted
12 minutes ago, rbjtech said:

You could just disable and re-enable the user (which will kill all their sessions, forcing them to re-authenticate).

But this forces the user to log in again.
If it stays too long I restart emby but it is not practical at all.

  • 3 weeks later...
Posted

Are you still seeing this?

Posted
2 hours ago, Luke said:

Are you still seeing this?

Yes, the problem is still there. For example:

 

image.png.9f1d6593aafa8f389c103d31a8bd7cb2.png

  • 2 weeks later...
Posted (edited)
On 12/5/2022 at 7:12 PM, Luke said:

Are you still seeing this?

image.png.51af3f6e2b6d793819a7b34573a99da0.png

@Luke

Edited by Bagul
Posted

I see this only when my sister is using Emby (iPhone, iPad). I just assume she quits the playback ungracefully and Emby doesn't handle it.

Posted

This happens all the time on most browsers, has nothing to to with background or anything.

Posted
11 minutes ago, kikinjo said:

This happens all the time on most browsers, has nothing to to with background or anything.

Mmm - would disagree.  I don't see any devices stuck on the dashboard - ever.    I have users on Iphones and Xbox's over many years - don't see any issues.

It may well be that they close down emby 'properly' - but if the server has not managed to acknowledge it's keep alive with the device - then it should be removed and the screen refreshed.

Pretty basic stuff .. ?

Posted
5 minutes ago, rbjtech said:

Mmm - would disagree.  I don't see any devices stuck on the dashboard - ever.  

Maybe you don't have so many users with browsers. 80% of my users either on forefox Or Chrome....are mostl stuck in dashboard. And that is ongoing for 2+ years.

Maybe you dont use Cloudflare, also.

Posted
1 minute ago, kikinjo said:

Maybe you don't have so many users with browsers. 80% of my users either on forefox Or Chrome....are mostl stuck in dashboard. And that is ongoing for 2+ years.

Maybe you dont use Cloudflare, also.

I have browser users (firefox/chrome) - but I don't use Cloudflare no.

But the same logic applies - it shouldn't matter on the client and/or transport to make the connection - if the server does not receive a keep-alive - then it removes the connection.

Posted (edited)

I don't use cloudflare and none of my users use a browser.

I thought it was my reverse proxy but I have the same problem locally (so I can solve it without restarting emby.)

 

For me this happens with any application. I have seen it with android, android TV, apple tv (local), xbox, windows, ios etc...

Edited by Bagul
Posted

In Bagul's situation, nothing is "stuck".  His users are just leaving their sessions open.

On 11/18/2022 at 3:32 PM, Bagul said:

If some of my users leave their application in the background or even turn off their device without leaving the stream

 

Posted (edited)
10 minutes ago, ebr said:

In Bagul's situation, nothing is "stuck".  His users are just leaving their sessions open.

 

Indeed an element differs on the first post (probably my English which is not very good) if the user restarts another playback (with the same device), the one which was "blocked" is replaced.

 

sorry for the confusion

 

Or I understood the first post correctly and we do have the same problem. 😂

Edited by Bagul
  • 3 weeks later...
Posted

Are you still having an issue with this?

Posted (edited)
On 12/14/2022 at 4:32 PM, ebr said:

In Bagul's situation, nothing is "stuck".  His users are just leaving their sessions open.

 

Is there a way to possibly have a timeout after a certain time? Maybe show an “are you still watching” pop up and if there’s no response after a certain time then kill the connection

Edited by TroyKing
Posted
6 hours ago, Luke said:

Are you still having an issue with this?

I still have the same problem...

Posted

Yeah, I can see this a lot on my sister's iPad. As far as I can tell she probably quits the playback ungracefully (maybe using home button?!) and due to that I can see the device as active although it isn't anymore.

It stays there like for hours and hours, I usually restart the server the get rid of it when I notice.

  • 1 month later...
timmyjl12
Posted

I too am experiencing this now with my primes. Only on one server though. I rebooted the server and the devices reappear on the dashboard as if they never stopped streaming. 

Happy2Play
Posted
8 minutes ago, timmyjl12 said:

I too am experiencing this now with my primes. Only on one server though. I rebooted the server and the devices reappear on the dashboard as if they never stopped streaming. 

Would need specific examples and server log as active sessions will return on a server start.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...