Android Sync Problems

Hi,
actually i tried different smartphones in the meantime - i have the same behaviour on all of them so this might be a server related problem.

So far i tried

  • Sony Z3 Compact with 128gb micro sd card
  • Samsung Galaxy J5 with same 128gb micro sd card
  • Samsung Galaxy S7 with the same 128gb and a brand new 128gb micro sd card

I also tried to have all music set to 192kbit to force it to transcode as well as 320kbit to simply use the existing files in the best quality. In the end the behaviour is the same - it always starts to sync but stops completely after some time. Forcing it to sync by pushing the refresh button only helps sometimes - i will sync a few more songs and then stops again.

Which logs would you need to analyse this further?

+1 here, same symptoms, logs available if required.

@“McLovin.” - Just to be clear, you are trying to sync your entire library in one shot, right? If so, can we try with smaller number of items just to check if the sync process itself is a problem or just when trying your entire library.

Try 1 album, use an album that hasn’t synced before.
Try ~10 albums/a few hundred songs

If these work then it’s probably the size of the entire library giving sync an issue. I have no issues doing these 2 myself. I’ve not tried my entire music library though.

Also, are there other things going on with your server at the same time. Syncing will move to the background if something else comes up, so it may be it’s not coming back to the foreground. Just thinking out load, but if this is happening, it could be waiting to finish it’s current task to gather up the list of songs to sync, but because it’s in the background, just taking a long time due to the size of this list, so it never makes it back to the foreground to continue the syncing.

If either of the 2 tests above cause problems, please provide me the PMS and Android app logs after waiting 5 minute after it stops. If they work, I don’t need the log. The next step, if you don’t mind, remove the current sync then try syncing the entire library again. Wait for it to stop, let it sit for 5 minutes, then hit the refresh and when it stops, wait another 5 minutes. Then get me the logs.

Also, have you tried to initiate the sync from Web and from the Android app? If you have, do you notice a difference?

In my case, 10-30 artists works well, adding “various” (1700 files across many albums)
seems to wreak havoc. PMS is usually idle during tests. This used to work well. :frowning:

@bugderry said:
In my case, 10-30 artists works well, adding “various” (1700 files across many albums)
seems to wreak havoc. PMS is usually idle during tests. This used to work well. :frowning:

Please provide your logs after recreating adding those 1700 songs.

@bugderry said:
In my case, 10-30 artists works well, adding “various” (1700 files across many albums)
seems to wreak havoc. PMS is usually idle during tests. This used to work well. :frowning:

Plex first transcodes everything and THEN transfers it, so make sure you have ample wiggle room on the disk where your temporary transcoding is done.

I’ll provide logs, first I’ll need to clean up the current mess.

Thanks for the tip, I am syncing from the phone, and using the new “original” setting
for size. I don’t see any evidence of transcoding on the PMS,
but there’s plenty of free space.

@“MovieFan.Plex” - i have to two Music librarys - one with about 12.000 songs which is not possible to sync as a whole and a second one with around 1000 songs which ususally syncs fine.

When i do the sync i am the only one connected to the Plex Server so there is no other Plex process causing high load. For the system itself it’s a i7 with 16gb Ram and Plex running on a SSD with enough free space available. The data itself is on normal HDs.

So I started the the sync from the App and the small library was synced successfull.
Once i deleted the content on the phone it looks like it does not free up the space on the card automatically (Screenshot - unfortunatelly its in german). Initially the card is set to use around 100gb for sync but after i delete the local content in the Plex App it only shows 94,2GB available instead of the actuall free 100gb. I reinstalled the App and the amount of free space was showing correctly again.


Afterwards i started the sync from Web and the small library failed now.
I did not try the big library again, yet - maybe the problem can be already identified with the small one already. Weird thing is that usully the small one did not create any problems at all - feels a bit random at the moment.

I attached the Android and PMS Logs after a reboot of the server. Please remove them from the forum once you got them.

Manufacturer: samsung
Device: herolte
Model: SM-G930F
Product: heroltexx
Version: 7.0

Server running v.1.7.2.3878

Many thanks for your support!

Awesome, these logs reveal more than what we were getting before. I’m seeing at least 2 issues. We’ve seen these errors before but haven’t figured out the cause. Synced information is stored on the internal database in the app. Your log is showing errors writing to this file. The database is also optimized to keep it cleaned up, like we do for a regular PMS. This optimization isn’t working. Both of these issues could be related. Either the database is busy and can’t be accessed or the database is corrupted. I believe you’ve tried re-installing the app a few times which should create a new database so I doubt it is a corruption issue. There may be some other app on your device that is interfering with the database. Or maybe you have another app that also uses SQLite and there is an issue with multiple instances of SQLite running simultaneously.

Hm ok that is really interesting - so far i dont think that this is related to a specific smartphone model cause it tried it on several differnt devices. Just some ideas from a non-developer standpoint:

  • Might this be to some internal Android settings? Although I had the same behaviour on Android v. 5 / 6 / 7 - maybe related to some indexing service of Android which locks the files/database? I did not have any Antivirus software or similar installed nor any apps (except the camera) which saves files to the sd card
  • Can this be related to the amount of songs / size of this database?
  • Or maybe related to the speed of the sd card itself, that the data can not be read / written fast enough? Altough i tried it with two different cards - one with around 40mbit and the other with 80mbit (tested with hd tune)
  • Or maybe related to the filesystem of the sd card and how memory errors are handled?

Will try to sync the same small library to the internal memory now just for testing

Just tried to sync the small library (around 1000 songs) to the internal memory and it synced fine.

@“MovieFan.Plex” What are the next steps? Can i try anything else? What is the timeline till these database problems when syncing to a sd card are fixed in the Plex app?

Just tried to sync the big library to the sd card again and still have the same problems. I can’t imagine, that this usecase “sync all music” is so unusuall - especially with the SD cards being so cheap nowadays.

Please let me know what else i can do to help solving this - i would really like to get it to work the way it should.

@McLovin. said:
Just tried to sync the big library to the sd card again and still have the same problems. I can’t imagine, that this usecase “sync all music” is so unusuall - especially with the SD cards being so cheap nowadays.

Please let me know what else i can do to help solving this - i really would like to get it to work the way it should.

Try syncing smaller parts of it… Playlists, or albums.

Thanks for the tip @KarlDag but i see this more as a work-around than a real fix.
Do we have a specific number of items that will sync fine? Or will this be trial and error again and again?

Don’t get me wrong - i love Plex and have it up and running for several years now but this bug turns Plex on my Smartphone pretty much useless.

@McLovin. said:
Thanks for the tip @KarlDag but i see this more as a work-around than a real fix.
Do we have a specific number of items that will sync fine? Or will this be trial and error again and again?

Don’t get me wrong - i love Plex and have it up and running for several years now but this bug turns Plex on my Smartphone pretty much useless.

You still haven’t said how much room is left on your transcode hard drive… Plex transcodes everything first and then transfers. If your free space on that hard drive on your server is less than the size of your library, it’s not going to work, doesn’t matter how much space is left on your device.

Thanks for the idea @KarlDag - i think i answered this already but it must have been on one of the other posts about this problem. I assume the free space on the main plex drive is not the problem in this case.

I have Plex installed on the main OS harddrive which is a 256gb SSD. There is still 114gb of free space on it.
The musik folder is at 78,8gb and is sitting on an additional hd with a couple hundred gb of free space.

I’m also having a similar issue. Big MP3 playlist that I want to sync. All MP3’s are there. But it is not saying 100%.
Log attached:

I removed the library and retry to download it. Again stuck at 98%… See attached logs

I’m having a similar Android sync problem. I’ve got a Music library with about 120gb of FLAC files and I’m trying to sync them in “original” quality (since that should be supported on my device). This is a Amazon Fire table I keep in my travel bag that is wifi only and it would be nice to have all music available… The initial sync did about 30gb of transfers and then just stopped with “Sync complete” and “Waiting to download” on the library. If I force a sync, it’ll copy a few more files but then stop (it current has ~3000 left out of 5000 items total). I can keep doing this and it eats away at the data that needs to be sync’d, but I’m guessing if I ever get close to the end it won’t work anyway :neutral:

As far as i know the bug is still there and there is no further reply from Plex when it will be fixed :frowning:

The only workaround with Plex would be to sync smaller parts by try and error till you have everything synced.