Sync hooks "Waiting to be downloaded" (Android)

Hi
I try to sync music&photos on my Galaxy A3 (Playlists, albums). I have space left on my SD card and destination directory is set to external storage. Storage limit is not reached. I have space left on the internal storage too for apps to work, but not a lot.

In synchronization status, sync is appearing ended, but progress circle is stopped at 96% and there are items waiting to be downloaded. The server ended transcoding furthers days (weeks) ago.

The files are effectiveley missing on my device. logs are bvelow.

Do you have any suggestion ?
Thanks
Fabien

Hello Fabien,

Welcome to the Plex forums. I’ve reviewed your logs. There isn’t much information there. It does show that your Plex Media Server was offline. It may not have actually been offline, but was unreachable for some reason.

Can you try restarting your PMS and waiting 3 minutes. Then restart the app and hit the sync button. Please then provide me a new log from the app as well as the entire log package from your server. See the link in my signature for instructions on how to get logs from the server if you are not familiar with how to do that.

Hello

Thank you for your answer.
I confirm that PMS is online. It’s reachable for playing through any device, local network or internet. I do precise that mobile connection goes down often while I’m travelling due to poor connection coverage. I do not use mobile data to sync nowadays.

Here are the logs.

Did you restart PMS before you grabbed these logs? I’m not seeing the typical startup messages in your log.

However, from what I do see, it appears that you have something playing/paused on your android device that is keeping the app busy so the sync process never gets a chance to start. Please try force stopping the Android app on your device. Then from PMS, cancel the sync jobs to that device. Open the Android app and create a new sync job. See if that starts. If not, please provide me the Android app logs immediately after performing the steps I just mentioned.

Yes I’m sure I restarted PMS. I’m running the QNAP qpkg with a TS-253A, and I stopped/restarted 2 times before doing what you told me from the webUI QTS. I waited 3 minutes before starting the android app. I didn’t try to restart the NAS.

Neverthless, issue is occuring since a few monhs, with some random achievements, under many versions of PMS and after some NAS restarts, with many QTS 4.3 versions. I’ve upgraded my mobile phone to nougat 3 days ago, no change.

I moved android app to external storage (SD card) many times, as updates make the app back to system memory.

When I canceled the 3 sync jobs from PMS and created new ones from the android app, I’v not been able to find the third one (“Pour Mamies”), which is a photo playlist (I don’t find it in the playlists, I can find it whith the search tool, I can’t synchronize it as I did before). However, the two other syncs fail during the download, after the conversion, after several percents of downloading.

I provide three logs made at different moments.

After that, I moved the app to the internal storage then I followed another time the steps you indicate (cancel the syncs from PMS, create new ones from android app) : the first sync succeeded, the second failed. After this fail, the first sync appeared again “waiting to be downloaded”, as the second sync job is. The files are on the mobile phone anyway, and I can access them offline (that was not the case the days before). This is the log #4. I don’t know if the files were accessible before log#4 and after #3. The error “waiting to be downloaded” is still there.

I’m struggling…
Fabien

Hello
Do you have any solution I can try ?
Thanks

Sorry for the delay. Your logs still indicate that your phone cannot reach your server.

Device Neon media server response time is Infinity ms

There’s nothing indicating why it it can’t connect. The app does a check for servers every so often, and these checks are failing to find your server. So you are able to stream from your server? Can you just playback something for about 1 minute, then get me the app log. Right now, all the logs you provided don’t show anything but failed connections to your server. I don’t see the sync tasks you were performing.

Also get me the log from PMS at the same time.

I confirm successful playback from PMS with my android app. Here are android and pms logs after a 1min playback of not-locally-stored file : a Vivaldi title (Cum Sancto Spiritu).

I also performed a sync of android failed transfered files with my windows app. It’s been successful, so I give you the logs too.

For info :

  • yesterday I bought an album on qobuz (Leila Huissoud), uploaded it to plex and synced to my mobile phone sucessfully. The previous failed transfers (Dropkick Murphys) are still appearing “waiting to be downloaded”, whereas they actually succeeded, see the end of my 09/03 post.
  • Due to poor mobile network during my car travels, many 3G disconnections occurs, and my server comes unreachable. Is it possible that app stucked on that status, but connection came back ?

Ok, looking at your new logs I see the playback working properly. Just prior to you starting playback, I see the same error as before. Comparing it to your server log, your server is running, so I’m unsure of the error. It appears like it is trying to play a file that no longer exists, but it’s trying anyways. It could be trying to play a song from the album that won’t sync so the album is considered busy which is why the sync won’t complete. We need to get the app to stop trying to play that file.

Have you tried performing a force stop of the Plex app on your phone? A restart of your phone might also help.

As I said this is a recurring issue. I did many restarts and force stops, with several versions of the app and pms. I also uninstalled/reinstalled the app, using internal or external storage.
Sometimes sync works, like yesterday and sometimes it fails, blocking all syncs.

The other matter is battery usage : I had presumption about Plex bettery impact but now I understand why I sometimes ran out of battery sooner than expected.
How to find this file? Could it be a smart playlist (I had problem with syncing one some time ago).
There is also the photo library (09/03 post).

The file is a music file from a premium music library. It is very possible that the problem is due to the smart playlist. Could I suggest removing the sync job from both PMS and the app, then recreate the playlist. Then try out syncing this list. Make sure the entire list syncs before adding/removing any more music items that may change the playlist.

Ok I’ll finish to try this tomorrow. I actually had syncing 2 smart playlists : I removed the sync. I also deleted them totally from the server, to be sure. I will recreate them tomorrow and perform a complete sync before doing anything else.

I just saw that there was a second music library in the app, maybe an old one (before I had created a premium music library in PMS). This library doesn’t exists anymore on PMS but remains in the app, could it be also a part of the problem ? How do I delete this library from the app ?

Oh, that could be related. Unfortunately, there isn’t a way to force deleting an item like that. When you delete the sync job, it should remove the items in the library too. If the library is empty, is should remove the library. If those are still there, there might be some sort of corruption in the Plex database in the app that keeps track of the sync info. Uninstalling the app should remove that database and start over from scratch, but you said, you’ve tried that, so I’m not sure what the fix would be.

Let me check with the devs to see if there is some other way to force that library to get removed.

That seems better.
I built 2 lists , a smart playlist based on a track (52 items) (from PMS webui) and a mood playlist (105 items) (from android app).

Both synced, and are available offline in the android app. But the second one was still appearing “waiting to be downloaded” (“en attente de téléchargement” in my version). This indication disappeared after I try to play one of its track, that’s a strange behavior.

Looks like the old library doesn’t have somethong to deal with the issue, but any method to to remove it from android app would be appreciated. I did not try to reinstall the app since I made the change in libraries types, I didn’t even notice this old library before but it should have been there for long. I’m not really willing to make a fresh install, as new sync issues could occur, so tell me :slight_smile:

@fetfets said:
Both synced, and are available offline in the android app. But the second one was still appearing “waiting to be downloaded” (“en attente de téléchargement” in my version). This indication disappeared after I try to play one of its track, that’s a strange behavior.

Thanks, I’ll look into that.

Looks like the old library doesn’t have somethong to deal with the issue, but any method to to remove it from android app would be appreciated. I did not try to reinstall the app since I made the change in libraries types, I didn’t even notice this old library before but it should have been there for long. I’m not really willing to make a fresh install, as new sync issues could occur, so tell me :slight_smile:

I’m still waiting to hear back from the devs for a manual method to remove those items.

Ok, I’ve checked with the devs and unfortunately there is no way to manually remove those oddly synced files. Here is an idea I had. Create a new library back on your PMS, you can leave it empty, but name it the same as that library shown in the app. Then update the sync in the app. This might get the sync routine to see that the items in the library are no longer available and remove that sync job.

Thank you for having asked the devs. Your idea sounded very cute !

I was confident, unfortunately when I tried, the sync created a new library, with the same name as the previous one. But under this new library there is the name of my server, written in grey, as for the other synced one. It’s not the case for the library I wanted to delete. It look like a “local” one, but I have no music stored on my device but the plex library.
This “local library” show items in the “discover” or “Browse” views, thoses items are playable.

Maybe the libraries syncs are not identified by library name but by a library ID, recreating a new library with the same name will no make the ID identical and syncs won’t match.

I’ll try to delete the playable items of the old library from sync jobs and give you my feedback.

Feedback :
It seems to be impossible to delete thoses playable items of the old library as they’re not appearing in sync jobs (app or PMS). Do you suggest me to find any folder on the sd card, or to reset the app from scratch ?

The synced files are in a system, so unless you’ve rooted your device, you won’t find those files. Even then, I’m not sure that will remove them from the UI. The files might be gone, but the entry is actually in the database which might not get removed. Unfortunately, the only way to really fix this is to start over. You can just clear the app data. No need to uninstall, reinstall.

I’ve cleared the app data… let’s start from scratch :frowning:

  • Old library has been removed → one issue is resolved
  • Set storage to external and synced some individual items (from PMS) → OK
  • To avoid time waste, I did a selection of albums (2 albums, 27 songs) → “sync completed” is told, but progress circle stops at 97% and the warning “waiting to be downloaded” appears. In PMS, I get the details : the first album synced right, the second is waiting to be downloaded. I switched the smartphone wifi and mobile-data off, and tried to play the tracks of both albums from synced content in the app : all played successfully (tracks of the first album, and of the second, which is told to be “waiting to be downloaded”). I deleted the sync job and synced the second album only → everything ran right.

app and PMS logs included to this post.