Slow offline caching/appears to be stalling

Issue description:

Hello,

Recently I was unable to playback my locally cached files, so I decided to start fresh (re-cache all my music).

I removed all the offline files with Symfonium and set up a rule so that all files from the Music library on my Plex server would be cached.

I have Symfonium set to cache to an SD card.

After syncing the server, I went to Manage offline files, then Download queue. I saw the first album or so get downloaded, then nothing seems to happen for a while. Maybe there’s some additional processing happening? It seems to be stalling out very frequently and at this rate is going to take an extremely long time to sync my library over. Also, not all of the files that show up in the download queue seem to show up in my library as cached.

I sent over some logs under this forum nickname, please have a look and let me know if I’m missing something or if there is any additional information I can provide.

Thanks!

Logs:

Upload description: huihuicat

Additional information:

Reproduction steps:

  1. Add a Plex library
  2. Configure the library to cache all files
  3. Perform a sync using the Sync Manager
  4. Open the Manage offline files > Download queue to watch the results

Media provider:

Plex

Screenshots:

It seems to be running along even though the UI isn’t necessarily accurate. I do notice that I am missing tracks that ought to have been cached from the first few albums. At this point I’ll wait until later and see if those tracks have an error or something.

Yes the queue only shows an extract as it’s fast moving, and failures are retried at the end of the queue.

Thanks for the reply, I’ll let you know how it ends up.

I sent another log under the same identifier, and took a quick look at this log.

My interpretation is the app successfully downloaded 5 tracks (Verbose/QueryBuilder: Query: DELETE on download_items) in 72 seconds. The actual downloads seem to be fast enough that there ought to be more being downloaded in this time period, and the only thing close to a failure I’m seeing is some cancellations (I haven’t canceled a single download, just waiting).

It now seems to just be stuck, no downloads happening at all from what I see. Can you please recommend some troubleshooting steps?

Reboot the phone ? Then check the queue content ?

Thank you. All was paused after the reboot, I pressed resume and it’s chugging along. There seems to be one entry stuck at the top, attaching a screenshot in case it’s helpful.

Update: Now two tracks appear to be stuck at the top of the queue at 0%. Sent another log in case it helps.

Now appears to be entirely stuck again, not seeing any downloads happening for over 10 minutes and the queue entries just say “Queued”. Still have two tracks that appear to be at 0% at the top of the queue list.

Edit: Sent in another log in case it’s helpful…

Okay, after quite a while it seems to have started again, but still really slow. It wasn’t slow like this the first time I synced otherwise I probably would have given up.

Honestly logs are not clear, if you pause / cancel the 2 blocked does it continue ?

Yes it does continue in that case. I’ll keep monitoring it, thanks.

If I tap any item in the queue to open the download task action modal and tap away from the modal, downloads proceed as expected and at a good speed for about 11-13 seconds, then seem to just stop/stall out unless I intervene.

Opening and closing the download task action modal after downloading stops allows things to continue relatively smoothly and even if I wait several minutes in between opening and closing the modal it’s not like the UI needs to catch up, it just continues with the next queue item. Something seems wrong here, please let me know if there’s anything I can do to provide better logs or information.

I checked the Plex server logs today and all looks normal there, no errors, just seeing the download activity there when Symfonium is actually downloading. In other words, when the Symfonium UI shows no download activity in the queue, I’m also not seeing any downloads (transfers) happening on the server side.

Edit: Sent another log with the same identifier (forum nickname) after letting it download, stall, and then open and close the download task action modal, stall, then open and close the modal, and stall again.

You can try to force http 1/1 in the settings and limit to 1 simultaneous download.

Thanks for the suggestion. I updated the settings, restarted my phone, opened the download queue and pressed Resume. 9 tracks downloaded, 10th track stalled and the UI indicates the download is not finished yet. Opened and closed the modal dialog. The next track started, and stalled.

So these settings don’t seem to improve the conditions.

I set up a Navidrome server (via PikaPods) to see if this might be something Plex specific, unfortunately I’m seeing the same behaviour.

That’s one of the most used feature of the app so it works for the majority.

Did your phone had a recent update ? I see that’s a Samsung they love to break things :frowning:

Yes this may be my first and last Samsung device, it looks like an OS update was installed January 19. I think all was working well before that.

If you have any other suggestions I would love to hear them, otherwise I’ll be over here tapping my screen every 12 seconds :frowning:

Check https://dontkillmyapp.com/ and ask chatGPT & co if there’s new specific things to tune on the last updates.

I’ll try one random thing based on the logs, but absolutely no idea if it will work and the root cause.

1 Like