Core: Plexapi floods log with errors

Created on 7 Nov 2017  路  9Comments  路  Source: home-assistant/core

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
0.57.2

Python release (python3 --version):
3.5

Component/platform:
Plex

Description of problem:
Every time I play something in Plex, my log gets a lot of this kind of errors:

nov 07 19:38:03 VM42 hass[20418]: 2017-11-07 19:38:03 WARNING (Thread-2) [plexapi] Reloading Episode '<< name of the episode>>' for attr 'seasons'
nov 07 19:38:25 VM42 hass[20418]: 2017-11-07 19:38:25 WARNING (Thread-6) [plexapi] Reloading Episode '<<name of the episode>>' for attr 'seasons'`
waiting-for-reply

Most helpful comment

This is an upstream bug with python-plexapi. The log is meant to call out potential inefficient use of python-plexapi. If you can do the same operations in Home-Assistant without accessing the seasons attr, you'll save yourself a few api calls.

We should really lower that log message to info rather than warning. I just submitted the following bug on our end, we should have it fixed shortly. - https://github.com/pkkid/python-plexapi/issues/227

All 9 comments

This is an upstream bug with python-plexapi. The log is meant to call out potential inefficient use of python-plexapi. If you can do the same operations in Home-Assistant without accessing the seasons attr, you'll save yourself a few api calls.

We should really lower that log message to info rather than warning. I just submitted the following bug on our end, we should have it fixed shortly. - https://github.com/pkkid/python-plexapi/issues/227

Commenting to remind myself to take this into account during the refactor

Hi I鈥檓 seeing the same error with movies

2017-11-11 00:16:34 WARNING (SyncWorker_1) [plexapi] Reloading Movie 'Leatherface' for attr 'contentRating'
2017-11-11 00:16:45 WARNING (SyncWorker_6) [plexapi] Reloading Movie 'Leatherface' for attr 'contentRating'
2017-11-11 00:16:56 WARNING (SyncWorker_16) [plexapi] Reloading Movie 'Leatherface' for attr 'contentRating'
2017-11-11 00:17:07 WARNING (SyncWorker_10) [plexapi] Reloading Movie 'Leatherface' for attr 'contentRating'
2017-11-11 00:17:18 WARNING (SyncWorker_8) [plexapi] Reloading Movie 'Leatherface' for attr 'contentRating'
2017-11-11 00:17:29 WARNING (SyncWorker_17) [plexapi] Reloading Movie 'Leatherface' for attr 'contentRating'
2017-11-11 00:17:40 WARNING (SyncWorker_2) [plexapi] Reloading Movie 'Leatherface' for attr 'contentRating'
2017-11-11 00:17:51 WARNING (SyncWorker_16) [plexapi] Reloading Movie 'Leatherface' for attr 'contentRating'
2017-11-11 00:18:02 WARNING (SyncWorker_12) [plexapi] Reloading Movie 'Leatherface' for attr 'contentRating'
2017-11-11 00:18:13 WARNING (SyncWorker_17) [plexapi] Reloading Movie 'Leatherface' for attr 'contentRating'
2017-11-11 00:18:24 WARNING (SyncWorker_13) [plexapi] Reloading Movie 'Leatherface' for attr 'contentRating'
2017-11-11 00:18:35 WARNING (SyncWorker_5) [plexapi] Reloading Movie 'Leatherface' for attr 'contentRating'
2017-11-11 00:18:46 WARNING (SyncWorker_0) [plexapi] Reloading Movie 'Leatherface' for attr 'contentRating'
2017-11-11 00:18:57 WARNING (SyncWorker_13) [plexapi] Reloading Movie 'Leatherface' for attr 'contentRating'

Every 10secs

Just found this after searching google. Thought I'd add to it just incase...

Home Assistant
0.57.2

2017-11-10 02:58:29 WARNING (Thread-11) [plexapi] Reloading Episode 'The Geology Methodology' for attr 'seasons'
2017-11-10 02:58:40 WARNING (Thread-15) [plexapi] Reloading Episode 'The Geology Methodology' for attr 'seasons'
2017-11-10 02:58:51 WARNING (Thread-12) [plexapi] Reloading Episode 'The Geology Methodology' for attr 'seasons'
2017-11-10 02:59:02 WARNING (Thread-21) [plexapi] Reloading Episode 'The Geology Methodology' for attr 'seasons'
2017-11-10 02:59:13 WARNING (Thread-12) [plexapi] Reloading Episode 'The Geology Methodology' for attr 'seasons'
2017-11-10 02:59:24 WARNING (Thread-3) [plexapi] Reloading Episode 'The Geology Methodology' for attr 'seasons'
2017-11-10 02:59:35 WARNING (Thread-11) [plexapi] Reloading Episode 'The Geology Methodology' for attr 'seasons'
2017-11-10 02:59:46 WARNING (Thread-2) [plexapi] Reloading Episode 'The Geology Methodology' for attr 'seasons'
2017-11-10 02:59:57 WARNING (Thread-12) [plexapi] Reloading Episode 'The Geology Methodology' for attr 'seasons'
2017-11-10 03:00:08 WARNING (Thread-18) [plexapi] Reloading Episode 'The Geolo

python-plex api is updated to lower this log message from warning to debug. Still need to get it on pypi.
https://github.com/pkkid/python-plexapi/blob/master/plexapi/base.py#L282

I'm still having this problem, is it enough to update plexapi?

This is fixed in 0.61

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:

Hey - I am looking forward to using the plexapi heavily within Home Assistant - but how do I integrate it, to make it available within Home assistant sensors/automations?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sogeniusio picture sogeniusio  路  3Comments

kirichkov picture kirichkov  路  3Comments

i-am-shodan picture i-am-shodan  路  3Comments

bdraco picture bdraco  路  3Comments

MartinHjelmare picture MartinHjelmare  路  3Comments