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

Active sessions not displayed #312

Open
Bastien42 opened this issue Feb 5, 2025 · 18 comments
Open

Active sessions not displayed #312

Bastien42 opened this issue Feb 5, 2025 · 18 comments

Comments

@Bastien42
Copy link

Bastien42 commented Feb 5, 2025

Describe the bug
Active sessions aren't showing up at all.

Environment Details (please complete the following information):

  • OS: Raspi
  • Browser Brave
  • Jellystat Version 1.1.3
  • Jellyfin Version 10.10.5

To Reproduce
Steps to reproduce the behavior:

  1. Go to Jellystat home check active session

Expected behavior
active session to be displayed
Screenshots

Image

Image

Container Logs

_jellystat_logs.txt

_jellystat-db_logs.txt

@CyferShepard
Copy link
Owner

Hey @Bastien42 , do you mind showing me your settings page? this looks like a communication issue between jellystat and jellyfin

@Bastien42
Copy link
Author

Image
Image
Image
Image
Image

@CyferShepard
Copy link
Owner

Hmm, is jellystat hosted within the same network as jellyfin? or on the same machine? because i see your using a ddns address which makes me assume its hosted offsite and jellystat is on another machine on a different network

@Bastien42
Copy link
Author

same network yes same machine no and user activity is logged in correctly just the display of the session isn't

@CyferShepard
Copy link
Owner

CyferShepard commented Feb 5, 2025

if its on the same network, can you try connecting via the static ip and not the ddns address? Its possible that this is a dns loopback issue where your using the public address to connect to jellyfin. but because its a domain without dns loopback, its not resolving the ip correctly in some situations.

@Bastien42
Copy link
Author

no luck just tried that re plugged the api key too in case and didn't solve it

@CyferShepard
Copy link
Owner

once you set the address which also requires the api key to be entered again, you should reboot for the change to take effect

@Bastien42
Copy link
Author

Bastien42 commented Feb 5, 2025

just did that but no luck also one odd thing is that for some reason one of my user activity is displayed when he is active but only this one so it seems to work but not for all I've like 100+ user so there's always activity at any time and when there's strictly no activity a phrase says no activity detected but when there's some activity it removes that info and displays nothing

edit : no active session found is the correct phrase

@CyferShepard
Copy link
Owner

Can you check for any errors in jellyfin around this time? With large amounts of users, weve come across an issue in jellyfin with the session endpoint causing crashes and weird behavior.

@Bastien42
Copy link
Author

Bastien42 commented Feb 5, 2025

maybe you'll know what to look for but i can't see anything

@CyferShepard
Copy link
Owner

Hmmm, im not really seeing anything. Also you may want to delete this log file from the issue. it looks like you didnt do any censoring of the data in the log which is recommended on jellyfins github whenever sharing logs to protect private info.

Also out of curiosity, is there any difference between the username of the users you can see vs the ones you cant? eg like special characters in their usernames or maybe the length

@Bastien42
Copy link
Author

thx for the heads up no because out of the 100+ user only one so far has shown also it used to work like a few month ago for every user seamlessly

@CyferShepard
Copy link
Owner

Il have to do some investigating. Iv deployed an instance on Raspi OS and will check if I can replicate the issue.

@Bastien42
Copy link
Author

ok thx let me know if you need some more info logs or else appreciate the efforts

@CyferShepard
Copy link
Owner

No worries, il only be able to start testing and working on a solution this weekend as im usually busy during the week with work and the most i can do afterwards is simple debugging and troubleshooting

@Bastien42
Copy link
Author

no worries that feature is not detrimental to the use i've of the soft but would still be cool if it worked so it can wait the weekend and more if needed ;)

@CyferShepard
Copy link
Owner

Hey @Bastien42 , can you do me a favor, can you check the developer console in the browser your using, under network tab, filter by WS, and check the messages for the socket.io connection. I want to see specifically what data is show here when you get the blank Active sessions screen instead of the no active sessions found screen.

Image

@Bastien42
Copy link
Author

Bastien42 commented Feb 9, 2025

Image

also i just noticed an odd behaviour related when i tried to play something on my admin account on my local network it did show up in sessions but the moment i turned to my cellular data playing from the same account same movie it bugged and did as usual

edit: also now i can correct my statement form above that for some user it works yes indeed but it's only for LAN user

edit 2 : fyi i also tried in a private tab to disable all extension and script i've and it didn't fix the display of sessions out of lan

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

2 participants