Author Topic: Wifi android device synching  (Read 310798 times)

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34313
debug version for reverse playlist sync:
https://play.google.com/apps/internaltest/4700978781087552506

After doing a sync preview, open the error log and send me the info

thezyth

  • Newbie
  • *
  • Posts: 3
I can't sync preview it errors out for me something

Code
2020-10-31: SM-G988W;  10;  2.0.0
04:49:16: sendPlaylists: java.lang.IllegalArgumentException: Failed to determine if 9C33-6BBD:gmmp/playlists is child of 9C33-6BBD:: java.io.FileNotFoundException: Missing file for 9C33-6BBD:gmmp/playlists at /mnt/media_rw/9C33-6BBD/gmmp/playlists

psychoadept

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 10691
I can't sync preview it errors out for me something

2020-10-31: SM-G988W;  10;  2.0.0

You may not have the debug version yet, the one I have reports version 2.0.3.  it still errors, but the error message is longer:

Code
2020-10-31: SM-G950U;  9;  2.0.3
08:13:20: settings: card path=/storage/6162-6433,permissions=6162-6433:
08:13:21: ping: socket ok=/10.0.0.39
08:13:21: ping: hello=MusicBeeWifiSyncServer/1.0
08:13:21: ping: matched=/10.0.0.39,status=OK
08:14:48: startSync: preview=true,iteration=0
08:14:49: command: action=SYNC_START
08:14:49: tryStart: connecting /10.0.0.39, attempt=0
08:14:49: tryStart: connected
08:14:49: tryStart: hello=true,fromMB=true,custfiles=false,preview=true,dev=SM-G950U,2
08:14:49: storage: path=/storage/6162-6433,root=6162-6433:,uri=content://com.android.externalstorage.documents/tree/6162-6433%3A
08:14:49: syncDevice: root=/storage/6162-6433,ignoreErrors=false,playlists=true,ratings=false,playcount=true
08:14:49: syncDevice: command=SendPlaylists
08:14:49: getFiles: permissions path=content://com.android.externalstorage.documents/tree/6162-6433%3A,folderpath=MusicBee/Playlists/,id=6162-6433:MusicBee/Playlists/
08:14:49: getFiles: folderUri=content://com.android.externalstorage.documents/tree/6162-6433%3A/document/6162-6433%3AMusicBee%2FPlaylists%2F/children
08:14:50: getFiles: permissions path=content://com.android.externalstorage.documents/tree/6162-6433%3A,folderpath=/gmmp/playlists,id=6162-6433:gmmp/playlists
08:14:50: getFiles: folderUri=content://com.android.externalstorage.documents/tree/6162-6433%3A/document/6162-6433%3Agmmp%2Fplaylists/children
08:14:50: sendPlaylists: java.lang.IllegalArgumentException: Failed to determine if 6162-6433:gmmp/playlists is child of 6162-6433:: java.io.FileNotFoundException: Missing file for 6162-6433:gmmp/playlists at /mnt/media_rw/6162-6433/gmmp/playlists
08:14:50: android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165)
08:14:50: android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
08:14:50: android.content.ContentProviderProxy.query(ContentProviderNative.java:418)
08:14:50: android.content.ContentResolver.query(ContentResolver.java:809)
08:14:50: android.content.ContentResolver.query(ContentResolver.java:759)
08:14:50: android.content.ContentResolver.query(ContentResolver.java:717)
08:14:50: com.getmusicbee.musicbeewifisync.FileStorageAccess.getFiles(WifiSyncService.java:1728)
08:14:50: com.getmusicbee.musicbeewifisync.WifiSyncService$SynchronisationWorker.sendPlaylists(WifiSyncService.java:1056)
08:14:50: com.getmusicbee.musicbeewifisync.WifiSyncService$SynchronisationWorker.syncDevice(WifiSyncService.java:472)
08:14:50: com.getmusicbee.musicbeewifisync.WifiSyncService$SynchronisationWorker.tryStartSynchronisation(WifiSyncService.java:359)
08:14:50: com.getmusicbee.musicbeewifisync.WifiSyncService$SynchronisationWorker.run(WifiSyncService.java:245)
08:14:50: java.lang.Thread.run(Thread.java:764)
08:14:50: syncDevice: command=GetFiles
08:14:50: getFiles: Get: MusicBee/Music/,url=/storage/6162-6433/MusicBee/Music/, inc=true
08:14:50: getFiles: count=12929
08:14:52: syncDevice: command=GetFiles
08:14:52: getFiles: Get: MusicBee/Music/Podcasts/,url=/storage/6162-6433/MusicBee/Music/Podcasts/, inc=true
08:14:52: getFiles: count=0
08:14:52: syncDevice: command=GetFiles
08:14:52: getFiles: Get: MusicBee/Playlists/,url=/storage/6162-6433/MusicBee/Playlists/, inc=false
08:14:52: getFiles: count=0
08:14:52: syncDevice: command=ShowPreviewResults
08:14:52: syncDevice: exit
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest beta patch (3.5)
(Unzip and overwrite existing program files)

HannibAlBundy

  • Newbie
  • *
  • Posts: 17
Hi,

I'm also trying to have a 2 way sync running for playlists with GMMP and I'm facing another issue. Not sure if it's related to what psychoadept and thezyth are experiencing...

Basically, MB to GMMP works fine but weirdly, as soon as a change is initiated from GMMP, the reverse sync causes a lot of empty duplicates on existing playlists renamed with HTML ASCII encoding and other duplicates with "playlists" as a prefix. Those duplicates don't exists before I run the MB Wifi Sync app or before I click Preview. Furthermore, empty playlists are copied in but changes are not actually reflected in MB.

Device conf:
Synchronise all music + Synchronise all playlists
Playlist storage gmmp\playlists\
Save as format M3U

GMMP Playlist conf: UTF-8

MB Playlist conf: Tried both MBP and M3U just in case it would change something

MB Wifi Sync conf: Sync from computer as configured in MusicBee / Reverse sync to computer playlists only /gmmp/playlists / from player GoneMad

Is it a config mistake or a misbehavior?

Many thanks,
Adrien.

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34313
it still errors, but the error message is longer:
I thought it might be some problem with the root path's but
MusicBee%2FPlaylists%2F/children
works and
gmmp%2Fplaylists/children
doesnt

So assuming gmmp/playlists exists (for that exact letter casing), try changing the path in the settings to: gmmp/playlists/

psychoadept

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 10691
It still won't let me change the playlist path. It looks like the problem might be that it's looking for /gmmp/playlists on the card (that's 6162-6433), which is where all the MusicBee folders are. But /gmmp/playlists is in internal storage and not movable. I can tell it somewhere else to look for playlists, but I can't change its own playlists folder.

I don't think this is related, but I noticed that it reports MusicBee/Playlists/ as having 0 files, which is not true. Some other issue? Though if it's looking for audio files, no, there aren't any there.
Last Edit: November 01, 2020, 01:59:23 AM by psychoadept
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest beta patch (3.5)
(Unzip and overwrite existing program files)

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34313
It still won't let me change the playlist path. It looks like the problem might be that it's looking for /gmmp/playlists on the card (that's 6162-6433), which is where all the MusicBee folders are. But /gmmp/playlists is in internal storage and not movable. I can tell it somewhere else to look for playlists, but I can't change its own playlists folder.

I don't think this is related, but I noticed that it reports MusicBee/Playlists/ as having 0 files, which is not true. Some other issue? Though if it's looking for audio files, no, there aren't any there.
Yes the app will only look at the sd card the music files are located so thats why it cant find the gmmp playlists. Unfortunately with the awful file permission requirements with android 10+, it wont be straight-forward for me implement.
For the MusicBee/Playlists/ folder, i am finding the same

psychoadept

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 10691
I don't need to use the gmmp/playlists folder at all, so if you can just ignore it that's fine with me.  Might not be true for everybody, though.
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest beta patch (3.5)
(Unzip and overwrite existing program files)

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34313
I don't know gonemad well enough, so could you tell me how it works with playlists that are sourced from MB. Does it import them into gmmp/playlists/ or leave them in the MusicBee/Playlists folder ie. when you update that playlist in gonemad, does it update the playlist file in MusicBee/Playlists ?
If thats right then gmmp/playlists is just for playlists created in gonemad?

I realise now, trying to sync playlists created in the gmmp/playlists folder is not going to work well because when MB sync's back to the device it will send those playlists to MusicBee/Playlists, so you end up with 2 copies of the playlist in gonemad

edit:
never mind - editing a playlist in gonemad that was sourced from MB does update the playlist in the musicbee/playlists folder and it does sync back (with the fixed version)
I think i will remove the gmmp/playlists folder from the sync for the reason stated
Last Edit: November 01, 2020, 04:56:56 AM by Steven

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34313
v2.0.4 - internal testers only
- fixed reverse sync of playlists from the device MusicBee/Playlists folder
- reverse sync of /gmmp/playlists folder is no longer supported

https://play.google.com/apps/internaltest/4700978781087552506

psychoadept

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 10691
Hey, something happened! Not quite as desired, but a big step!

I can do a sync preview now, and it will show me the playlists. What's not working right:

* It's reporting some of my auto-playlists as missing files (like, all the files). It probably shouldn't be trying to sync back the auto-playlists anyway. (I realize this could get a little tricky, with the playlists arriving on the phone as M3U.)

* It's syncing other auto-playlists back to the computer as static playlists with weird characters in the name (the playlists are named
correctly on the phone, but one has a space and one has a plus sign - lost in translation?)

* It doesn't see a playlist that I updated with GMMP as needing to sync. I checked that the file modification time was updated. Might be the 90 minute thing?
Last Edit: November 01, 2020, 07:47:48 AM by psychoadept
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest beta patch (3.5)
(Unzip and overwrite existing program files)

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34313
The reverse sync now skips auto-playlists and if you haven't updated musicbee.exe since I made the comment about the 90 minute buffer then that would explain the file modification time not working

https://getmusicbee.com/patches/MusicBee34_Patched.zip
i will have a look at the other issues later

edit:
i can reproduce the unexpected characters in the filenames when using android 10 and should be able to fix that
Last Edit: November 01, 2020, 10:20:29 AM by Steven

psychoadept

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 10691
The reverse sync now skips auto-playlists and if you haven't updated musicbee.exe since I made the comment about the 90 minute buffer then that would explain the file modification time not working

We have liftoff! Successful reverse sync of the playlist I edited on the phone. The correct tracks appeared on it in MusicBee. Woohoo!
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest beta patch (3.5)
(Unzip and overwrite existing program files)

phred

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 9305
v2.0.4 - internal testers only
Should those of us not experiencing those issues download this version?
Download the latest MusicBee v3.5 or 3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Posting screenshots is here
Searching the forum with Google is  here

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34313
v2.1 - internal testers only
- fixed reverse sync of playlists from the device MusicBee/Playlists folder
- reverse sync of /gmmp/playlists folder is no longer supported
- fixed unexpected characters/ duplicate playlists when reverse syncing playlists for some android versions

https://play.google.com/apps/internaltest/4700978781087552506

also make sure you update musicbee
https://getmusicbee.com/patches/MusicBee34_Patched.zip
unzip and replace the existing musicbee application files