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

index out of range after starting a stream #31

Open
gregflynn opened this issue May 4, 2020 · 2 comments
Open

index out of range after starting a stream #31

gregflynn opened this issue May 4, 2020 · 2 comments

Comments

@gregflynn
Copy link

$ python plexcollector.py --singlerun
Loading config: config.ini
INFO: Found 0 Bad Server(s).  Removing Them From List
Configuration Successfully Loaded
Traceback (most recent call last):
  File "plexcollector.py", line 9, in <module>
    collector.run()
  File "/opt/Plex-Data-Collector-For-InfluxDB/plexcollector/PlexInfluxdbCollector.py", line 394, in run
    self.get_active_streams()
  File "/opt/Plex-Data-Collector-For-InfluxDB/plexcollector/PlexInfluxdbCollector.py", line 154, in get_active_streams
    self._process_active_streams(active_streams)
  File "/opt/Plex-Data-Collector-For-InfluxDB/plexcollector/PlexInfluxdbCollector.py", line 190, in _process_active_streams
    session_id = stream.session[0].id
IndexError: list index out of range

Was working fine collecting stats until I started a stream, I'll do some more digging later but wanted to post this now

@gregflynn
Copy link
Author

Have done some more debugging, and it's weird and probably an upstream plex issue, BUT I'm only able to produce this stack trace when one of the active clients is PlexAmp. Both the web app and plex-media-player C++/Qt app work fine and properly report back a session.

@micahfocht
Copy link

I put the whole section that grabs information about which client is active inside a try statement and that works for me since I’m only displaying active users. Maybe a stopgap solution until a proper fix can come from the plex team.

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