Long load time in web browser and “couldn’t retrieve the play queue for this item” on iOS

Since the latest update, Plex has been a complete dog - slow load times for music in the web browser and iOS displaying the error “couldn’t retrieve the play queue for this item.”

I’ve tried deleting statistics, as mentioned in another post and combined that with a database rebuild. The library displays at a normal speed and nothing seems to be going on with the machine itself. I see errors like this in the logs:

Dec 06, 2019 05:30:05.653 [14300] ERROR - Soci Exception handled: sqlite3_statement_backend::loadOne: database is locked
Dec 06, 2019 05:30:05.835 [1280] WARN - Waited one whole second for a busy database.
Dec 06, 2019 05:30:06.088 [16380] WARN - Held transaction for too long (…\Statistics\StatisticsMedia.cpp:29): 0.234375 seconds

How can I fix it?Plex Media Logs-2019-12-06.zip (2.0 MB)

Server Version#: 1.18.2.2058
Player Version#: 4.16.3

Have you tried clearing Browser cache and ios device? You can clear plex cache in ios app.

How many music files do you have?

CPU may not be at 100% but is one core at 100%?

Hadn’t noticed that option before in the app. I cleared the cache there but still getting the same error. On the browser, it’s playing but it’s slow to load between songs.

8,479 files.

CPU spikes to 20% but it’s distributed across the cores.

One thing that I don’t recall being high before is ‘power usage.’ Also, before I can say it was 100% Plex, I see that I had a Windows 10 update deployed on Nov 15 that had a bunch of junk. Not sure if that was exactly when my problems started.

Try a setting in the Server/library/Analyze audio tracks for loudness

Right now, it’s set to ‘as a scheduled task.’ I should set it to never?

worth a try

Ok, tried that. Restarted PMS after making the change but it still seems like the same problem.

Have you added a lot of content recently?

Nothing added in the past 6 months. On the pictures side, I removed a few folders and it’s saying that I have 62k pictures but I don’t have anything displaying those currently.

So it’s been optimized, bundles cleaned. You have all Task scheduled when the server is up?

Yep… ran optimize. Rebuilt the database. Ran optimize after rebuilding the database. :slightly_smiling_face:

The only thing is these other errors related to slowness retrieving the statistics data.

Ok , so there metadata slowness? Maybe a DNS change on your server may help that issue. Some ISP DNS are terrible at times. Try 8.8.8.8

I’m not sure if it’s metadata slowness per se. The library lists themselves, tracks, etc. all load quickly. It’s only during playback where there is an excessively long pause and then, eventually, it starts to play. On the iOS, I suspect that it’s giving up much faster and throwing the error. Once I start to play an album, the song will play, minutes-long pause between tracks and then the next one loads.

Fixed it - sort of. Another bomb from a Plex update. I downgraded to 1.18.1.1973 and now I’m not seeing the errors in the logs anymore. None of the StatisticsMedia.cpp errors, no database locked errors, no database errors at all. I’m not sure if I can draw Plex support to this post but there’s something wrong with the latest update folks - skip 1.18.2.2058, possibly 1.18.2.2029 as well. I’m not sure which caused but I’ll wait for a fix to be posted.

I’ve deployed update 1.18.3.2156 and it seems to be working so far (no errors in PMS logs). I’ll reply in another day or two and give an update.

Hi,

I’ve had these exact symptoms, include the errors in the logs: ERROR - Soci Exception handled: sqlite3_statement_backend::loadOne: database is locked AND also the Held transaction too long errors.

I can’t pinpoint exactly when it started, but it was probably sometime in December when I upgraded to 1.18.2 or a version around that. Here is what I know of this issue:

  • I think it impacts all clients, resulting in shows/movies SOMETIMES taking a long time to start or fail with the “couldn’t retrieve the play queue for this item”
  • I followed the instructions to repair my plex DB but this did not fix the issue: https://support.plex.tv/articles/201100678-repair-a-corrupt-database/
  • I was seeing these exact symptoms with PMS 1.18.5.2260 yesterday. However I have not restarted my server in a long time, so this morning I applied PMS 1.18.5.2309 and restarted so maybe that will help. HOWEVER I’m already observing Held transaction for too long error in the logfiles after this restart.
  • My PMS server has an Intel Xeon Processor E3-1246 (4 CORES, 3.5GHZ) and 32GB OF RAM. It is running Ubuntu Server 16.04 LTS (will be upgrade to 18.04 LTS soon), and is pretty much dedicated to plex. All my media is stored in a ZFS zpool, however my plex DB is stored on an SSD volume (ext4). The server is never really that busy.

Something is not right here, I’ve used plex fine for many years before this issue. I’m hoping the reboot fixed this, but wanted to post here now in case it has not.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.