Viewing artists fails consistently due to “includeStations” in query
Server Version#: 1.30.0.6359
Player Version#: 4.87.2
Is there a way to always have this “includeStations” query parameter removed?
I have a very large music collection and have found that almost all Artists consistently fail to load, just getting “Something went wrong” page.
So I optimized the database, rebooted my server, optimized again to be sure. No luck each time.
I turn on debug and verbose logging and confirmed that the query is taking just over 30 seconds - every single time. Consistently between 32 and 35 seconds.
I found no way to change the timeout setting at first, so I tried resubmitting the request through browser tools without any of the “include*” flags, and it was instantaneous. I start adding one by one, and then all but one, and confirmed it is specifically the includeStations flag that is causing this issue. Including this flag on the request caused it to be over 30seconds. Without it, it took milliseconds. Including it but setting flag to Zero took 4seconds, then several subsequent runs each took only 300ms.
To be sure, reboot the server, resend the request without includeStations at all, and its still 300ms (tried to make sure its not overly cached)
I edited music library, to unchecked the “Popular Tracks” setting, which appeared to cause a rescan of entire library. Waited it out, tried again and still 34 seconds to try (fail) to view an artist. Stop server, start it, but still times out. Optimize database: still times out. Stop and start, still times out.
To be sure, removed all include* query params except for includeStations, and still takes over 30seconds.
Current music library advanced settings: Plex Music for both scanner and agent; Visibility: include in home screen and global search; Album sort: library default; Sonic Analysis: off; Prefer local metadata: on; Store track progress, include related content, artist bios, album reviews and ratings, popular tracks, find lyrics: all off; Generes: plex music; Album Art: plex music only.
Debug/Verbose logs of it taking over 30seconds when includeStations is present:
Nov 14, 2022 12:57:09.674 [10356] DEBUG - Request: [127.0.0.1:6495 (Loopback)] GET /library/metadata/1509877?includeConcerts=1&includeExtras=1&includeOnDeck=1&includePopularLeaves=1&includePreferences=1&includeReviews=1&includeChapters=1**&includeStations=1**&includeExternalMedia=1&asyncAugmentMetadata=1&asyncCheckFiles=1&asyncRefreshAnalysis=1&asyncRefreshLocalMediaAgent=1 (4 live) #104 GZIP Signed-in Token (Al L) (Microsoft Edge) / Accept => application/json, text/plain, / / Accept-Encoding => gzip, deflate, br / Accept-Language => en / Connection => keep-alive / DNT => 1 / Host => 127.0.0.1:32400 / Referer => http://127.0.0.1:32400/web/index.html / sec-ch-ua => “Microsoft Edge”;v=“107”, “Chromium”;v=“107”, “Not=A?Brand”;v=“24” / sec-ch-ua-mobile => ?0 / sec-ch-ua-platform => “Windows” / Sec-Fetch-Dest => empty / Sec-Fetch-Mode => cors / Sec-Fetch-Site => same-origin / User-Agent => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.42 / X-Plex-Client-Identifier => u8m… / X-Plex-Device => Windows / X-Plex-Device-Name => Microsoft Edge / X-Plex-Device-Screen-Resolution => 1671x1352,3440x1440 / X-Plex-Drm => playready / X-Plex-Features => external-media,indirect-media,hub-style-list / X-Plex-Language => en / X-Plex-Model => bundled / X-Plex-Platform => Microsoft Edge / X-Plex-Platform-Version => 107.0 / X-Plex-Product => Plex Web / X-Plex-Provider-Version => 5.1 / X-Plex-Text-Format => plain / X-Plex-Token => xxxxxxxxxxxxxxxxxxxx / X-Plex-Version => 4.87.2
Nov 14, 2022 12:57:09.680 [10356] DEBUG - [Req#104] There were 1 top-level paths for Turnpike Troubadours.
Nov 14, 2022 12:57:43.312 [10356] VERBOSE - [Req#104] It took 32.7 sec to serialize a list with 1 elements.
