Thank you very much for all the detailed diagnostics.
I too have reproduced the continuous growth of the cache
The issue is two-fold
- You have PlexKodiConnect repeatedly making requests for the metadata info over and over again - every few seconds.
- For a media file that has not been analyzed, everytime a Plex client requests it or requests metadata info, the server attempts to do an Media Analysis. This results in new thumbs being generated. If there is an issue with the file, then the analysis will not complete and will get re-analyzed later. In your case few seconds later when PlexKodiConnect is repeating the request
This is an extract showing the repeated requests from PlexKodiConnect for the test movie that you added and we know it fails to analyze
Jul 05, 2018 11:23:31.003 [0x7f85b17ff700] DEBUG - Request: [192.168.99.110:51046 (Allowed Network)] GET /library/metadata/20983?includeRelated=0&includeExtras=1&includeReviews=1&checkFiles=0 (7 live) TLS Signed-in Token (kantlivelong)
Jul 05, 2018 11:23:31.011 [0x7f85c9fff700] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.
Jul 05, 2018 11:23:36.998 [0x7f85b17ff700] DEBUG - Request: [192.168.99.110:51046 (Allowed Network)] GET /library/metadata/20983?includeRelated=0&includeExtras=1&includeReviews=1&checkFiles=0 (9 live) TLS Signed-in Token (kantlivelong)
Jul 05, 2018 11:23:37.006 [0x7f85b0ffe700] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.
Jul 05, 2018 11:23:42.975 [0x7f85bafff700] DEBUG - Request: [192.168.99.110:51046 (Allowed Network)] GET /library/metadata/20983?includeRelated=0&includeExtras=1&includeReviews=1&checkFiles=0 (10 live) TLS Signed-in Token (kantlivelong)
Jul 05, 2018 11:23:42.987 [0x7f85c9fff700] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.
Jul 05, 2018 11:23:49.042 [0x7f85c57fa700] DEBUG - Request: [192.168.99.110:51046 (Allowed Network)] GET /library/metadata/20983?includeRelated=0&includeExtras=1&includeReviews=1&checkFiles=0 (10 live) TLS Signed-in Token (kantlivelong)
Jul 05, 2018 11:23:49.060 [0x7f85b0ffe700] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.
Jul 05, 2018 11:24:00.972 [0x7f85bbffe700] DEBUG - Request: [192.168.99.110:51046 (Allowed Network)] GET /library/metadata/20983?includeRelated=0&includeExtras=1&includeReviews=1&checkFiles=0 (10 live) TLS Signed-in Token (kantlivelong)
Jul 05, 2018 11:24:00.981 [0x7f85b0ffe700] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.
Jul 05, 2018 11:24:07.035 [0x7f85bbffe700] DEBUG - Request: [192.168.99.110:51046 (Allowed Network)] GET /library/metadata/20983?includeRelated=0&includeExtras=1&includeReviews=1&checkFiles=0 (10 live) TLS Signed-in Token (kantlivelong)
Jul 05, 2018 11:24:07.043 [0x7f85b07fd700] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.
Jul 05, 2018 11:24:13.001 [0x7f85b6fff700] DEBUG - Request: [192.168.99.110:51046 (Allowed Network)] GET /library/metadata/20983?includeRelated=0&includeExtras=1&includeReviews=1&checkFiles=0 (10 live) TLS Signed-in Token (kantlivelong)
Jul 05, 2018 11:24:13.009 [0x7f85b0ffe700] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.
Jul 05, 2018 11:24:18.979 [0x7f85bafff700] DEBUG - Request: [192.168.99.110:51046 (Allowed Network)] GET /library/metadata/20983?includeRelated=0&includeExtras=1&includeReviews=1&checkFiles=0 (10 live) TLS Signed-in Token (kantlivelong)
Jul 05, 2018 11:24:18.988 [0x7f85b07fd700] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.
Jul 05, 2018 11:24:24.932 [0x7f85b17ff700] DEBUG - Request: [192.168.99.110:51046 (Allowed Network)] GET /library/metadata/20983?includeRelated=0&includeExtras=1&includeReviews=1&checkFiles=0 (10 live) TLS Signed-in Token (kantlivelong)
Jul 05, 2018 11:24:24.943 [0x7f85afffc700] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.
Jul 05, 2018 11:24:31.025 [0x7f85bbffe700] DEBUG - Request: [192.168.99.110:51046 (Allowed Network)] GET /library/metadata/20983?includeRelated=0&includeExtras=1&includeReviews=1&checkFiles=0 (10 live) TLS Signed-in Token (kantlivelong)
Jul 05, 2018 11:24:31.035 [0x7f85b07fd700] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.
Jul 05, 2018 11:24:37.015 [0x7f85c57fa700] DEBUG - Request: [192.168.99.110:51046 (Allowed Network)] GET /library/metadata/20983?includeRelated=0&includeExtras=1&includeReviews=1&checkFiles=0 (9 live) TLS Signed-in Token (kantlivelong)
Jul 05, 2018 11:24:37.023 [0x7f85afffc700] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.
Jul 05, 2018 11:24:43.003 [0x7f85b9fff700] DEBUG - Request: [192.168.99.110:51046 (Allowed Network)] GET /library/metadata/20983?includeRelated=0&includeExtras=1&includeReviews=1&checkFiles=0 (9 live) TLS Signed-in Token (kantlivelong)
Jul 05, 2018 11:24:43.011 [0x7f85b07fd700] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.
Jul 05, 2018 11:24:48.955 [0x7f85b6fff700] DEBUG - Request: [192.168.99.110:51046 (Allowed Network)] GET /library/metadata/20983?includeRelated=0&includeExtras=1&includeReviews=1&checkFiles=0 (9 live) TLS Signed-in Token (kantlivelong)
Jul 05, 2018 11:24:48.976 [0x7f85afffc700] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.
Jul 05, 2018 11:25:01.010 [0x7f85b9fff700] DEBUG - Request: [192.168.99.110:51046 (Allowed Network)] GET /library/metadata/20983?includeRelated=0&includeExtras=1&includeReviews=1&checkFiles=0 (9 live) TLS Signed-in Token (kantlivelong)
Jul 05, 2018 11:25:01.028 [0x7f85afffc700] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.
Jul 05, 2018 11:25:12.911 [0x7f85b17ff700] DEBUG - Request: [192.168.99.110:51046 (Allowed Network)] GET /library/metadata/20983?includeRelated=0&includeExtras=1&includeReviews=1&checkFiles=0 (9 live) TLS Signed-in Token (kantlivelong)
Jul 05, 2018 11:25:12.920 [0x7f85c9fff700] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.
Jul 05, 2018 11:25:18.996 [0x7f85c57fa700] DEBUG - Request: [192.168.99.110:51046 (Allowed Network)] GET /library/metadata/20983?includeRelated=0&includeExtras=1&includeReviews=1&checkFiles=0 (10 live) TLS Signed-in Token (kantlivelong)
Jul 05, 2018 11:25:19.004 [0x7f85bc7ff700] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.
I think asking for same media item metadata every 5-7 seconds is not normal Plex client behavior - so i would suggest raising that as an issue with the PlexKodiConnect
I did some testing with a file that does analyze ok. New cache files get created when there is a request for a different size image or if the media file got re-analyzed. You can end up with some cache files being identical but there should not be many