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

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 32737

Freddy Barker

  • Hero Member
  • *****
  • Posts: 751
  • 🎧 MB 3.4.7628P
you only need to do it once

TEST REPORT (2) - [Saturday 16 MAR 2019 @ 11:42]

I just tried another new sync, which failed COPY and DELETE for tracks and playlists operations..

ONLY when I perform these operations again...

Click settings (Spanner icon) grant access to MicroSD Card.
Select
Back Arrow


...does the sync perform 100% (and nothing new in error log).


(Part Of) Sync App Error Log

Code
16 Mar 2019 11:17:26 com.getmusicbee.musicbeewifisync.ErrorHandler logError
 SEVERE: receiveFile [SM-J500FN, 6.0.1, 0.3.1] file=Playlists/WHISSEY.m3u: java.io.FileNotFoundException: /storage/B2D4-1CF9/Playlists/WHISSEY.m3u: open failed: EACCES (Permission denied)
 16 Mar 2019 11:17:26 com.getmusicbee.musicbeewifisync.ErrorHandler logError
 SEVERE: receiveFile [SM-J500FN, 6.0.1, 0.3.1] file=Playlists/RATED.m3u: java.io.FileNotFoundException: /storage/B2D4-1CF9/Playlists/RATED.m3u: open failed: EACCES (Permission denied)
 16 Mar 2019 11:17:26 com.getmusicbee.musicbeewifisync.ErrorHandler logError
 SEVERE: receiveFile [SM-J500FN, 6.0.1, 0.3.1] file=Playlists/RANDOM.m3u: java.io.FileNotFoundException: /storage/B2D4-1CF9/Playlists/RANDOM.m3u: open failed: EACCES (Permission denied)


(Part of) MB Error log

Code
16/03/2019 11:17:25 - Add playlist "D:\MusicBee\Library\Playlists\SAMSUNG\ONLY ME.xautopf" I/O error occurred.
16/03/2019 11:17:25 - Add playlist "D:\MusicBee\Library\Playlists\SAMSUNG\OLDIES.xautopf" I/O error occurred.
16/03/2019 11:17:25 - Add playlist "D:\MusicBee\Library\Playlists\SAMSUNG\CLASSICS.xautopf" I/O error occurred.
16/03/2019 11:17:25 - Add playlist "D:\MusicBee\Library\Playlists\GROUPS\RECENTS.xautopf" I/O error occurred.
Last Edit: March 16, 2019, 01:42:15 PM by Freddy Barker

Freddy Barker

  • Hero Member
  • *****
  • Posts: 751
  • 🎧 MB 3.4.7628P
@freddy, can you download the latest app alpha 0.3.1
https://play.google.com/apps/internaltest/4700978781087552506

and then click the settings button and redo the grant access. It now forces you to select the sd card itself so we can eliminate that as a potential reason for the issues

TEST REPORT (3) - [Saturday 16 MAR 2019 @ 12:16]

ACTIONS
On Device SM-A500FU Android v6.0.1
DELETE All contents of MUSIC and PLAYLISTS folders
Launch App
Grant access to MicroSD Card.
Sync Now
Sync Status: = MusiBee synchronization successfully completed.

RESULTS
All 172 test tracks copied to Music Folder
NONE of the 7 Playlists were copied to Playlists Folder

ERROR LOGS
MusicBee Wifi Sync 0.3.1 = NONE

MB v3.3.7011.33478

Code
16/03/2019 12:02:50 - Add playlist "D:\MusicBee\Library\Playlists\SAMSUNG\WHISSEY.xautopf" I/O error occurred.
16/03/2019 12:02:50 - Add playlist "D:\MusicBee\Library\Playlists\SAMSUNG\RATED.xautopf" I/O error occurred.
16/03/2019 12:02:50 - Add playlist "D:\MusicBee\Library\Playlists\SAMSUNG\RANDOM.xautopf" I/O error occurred.
16/03/2019 12:02:51 - Add playlist "D:\MusicBee\Library\Playlists\SAMSUNG\ONLY ME.xautopf" I/O error occurred.
16/03/2019 12:02:51 - Add playlist "D:\MusicBee\Library\Playlists\SAMSUNG\OLDIES.xautopf" I/O error occurred.
16/03/2019 12:02:51 - Add playlist "D:\MusicBee\Library\Playlists\SAMSUNG\CLASSICS.xautopf" I/O error occurred.
16/03/2019 12:02:51 - Add playlist "D:\MusicBee\Library\Playlists\GROUPS\RECENTS.xautopf" I/O error occurred.
Regards: Freddy
Last Edit: March 16, 2019, 01:47:49 PM by Freddy Barker

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7594
Using 3.3.7011 and 0.3 I ran a sync that included (as a test) deleting one playlist and adding about 50 new tracks from a few albums. Sync went as expected, but it seemed to hang when it came to deleting the playlist. The mbp is about 6kb and contained a list of 93 tracks. Since I sync -all- my tracks, the deletion should have been of the playlist file itself with the tracks being left as is. After about 15 minutes of the X5 showing that it was still deleting the playlist I tapped 'stop.' The status bar on MB had long ago showed 100% and 'synchronisation successfully completed.' There are no entries in either error log. Using a file manager on the X5 I see that the playlist file is indeed gone. So it seems everything worked, but it never showed as completed on the device and it continually said it was deleting the playlist.

Then, using MB I added the playlist back in and went to sync on the X5. I asked for a preview and the 'gathering of info' spinning wheel was taking quite a long time. After twenty minutes I interrupted the scan by restarting the device. Did a preview and then a sync. Looking at the tracks previewed it appears that the tracks of the playlist were actually deleted and are now being put back. Perhaps that's expected - delete a playlist and delete the songs. If so, I'd like to see and option (a la MB) to simply delete the list, or to also delete the tracks on the list.
Download the latest MusicBee v3.4 patch from here.
Download the latest MusicBee v3.5 beta patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
Check out the MusicBee Wiki.
How to post screenshots is here

Freddy Barker

  • Hero Member
  • *****
  • Posts: 751
  • 🎧 MB 3.4.7628P
@freddy, can you download the latest app alpha 0.3.1
https://play.google.com/apps/internaltest/4700978781087552506

and then click the settings button and redo the grant access. It now forces you to select the sd card itself so we can eliminate that as a potential reason for the issues

TEST REPORT (4) [Saturday 16 MAR 2019 @ 13:41]

Note:
I doubt any of this is of much help at this stage, but thought I give a it a go and a fresh start on new device - I'll wait for further instructions from you @steven

ACTIONS
Add new device SM-T713 running Android 7.0 (Nougat)
MicroSD Card formatted, added 'Music' and 'Playlists' folders on 'Card'
Configue MB v3.3.7011.33478 to sync 1 Playlist containing 28 tracks.
Launch MusicBee Wifi Sync 0.3.1
Click settings (Spanner icon) grant access to Removable MicroSD Card.
NO OPTION TO SELECT
PREVIEW
SYNC NOW
Sync Status: MusiBee synchronization completed with errors, 29 files not copied.

ERROR LOGS
MB v3.3.7011.33478
28 like this..
16/03/2019 13:33:21 - Copy D:\MusicBee\Library\Music\Dr. Feelgood\Down by the Jetty\04 Roxette.mp3 to SM-T713\Card\Music\Dr. Feelgood\Down by the Jetty\1-04 - Roxette.mp3
1 of these..
16/03/2019 13:33:21 - Add playlist "D:\MusicBee\Library\Playlists\GROUPS\RECENTS.xautopf" I/O error occurred.

MusicBee Wifi Sync 0.3.1
28 like this..
Mar 16, 2019 1:33:22 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile [SM-T713, 7.0, 0.3.1] file=Music/Dr. Feelgood/Down by the Jetty/1-04 - Roxette.mp3: java.io.FileNotFoundException
1 of these..
Mar 16, 2019 1:33:22 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile [SM-T713, 7.0, 0.3.1] file=Playlists/RECENTS.m3u: java.io.FileNotFoundException: /storage/2504-19E0/Playlists/RECENTS.m3u (Permission denied)

Regards: Freddy

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 32737
I have added some debug code to 0.3.3
can you run the sync without granting permission and capture the log
and then run again and grant permission and capture the log again
Last Edit: March 16, 2019, 03:09:42 PM by Steven

Freddy Barker

  • Hero Member
  • *****
  • Posts: 751
  • 🎧 MB 3.4.7628P
I have added some debug code to 0.3.3
can you run the sync without granting permission and capture the log
and then run again and grant permission and capture the log again

As requested with MB Wi-Fi sync v0.3.3

LOG WITHOUT PERMISSIONS

16 Mar 2019 15:11:18 com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile [SM-A500FU, 6.0.1, 0.3.3] file=Playlists/WHISSEY.m3u: java.io.FileNotFoundException: /storage/6264-3230/Playlists/WHISSEY.m3u: open failed: EACCES (Permission denied)
16 Mar 2019 15:11:18 com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile [SM-A500FU, 6.0.1, 0.3.3] file=Playlists/RATED.m3u: java.io.FileNotFoundException: /storage/6264-3230/Playlists/RATED.m3u: open failed: EACCES (Permission denied)
16 Mar 2019 15:11:18 com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile [SM-A500FU, 6.0.1, 0.3.3] file=Playlists/RANDOM.m3u: java.io.FileNotFoundException: /storage/6264-3230/Playlists/RANDOM.m3u: open failed: EACCES (Permission denied)
16 Mar 2019 15:11:19 com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile [SM-A500FU, 6.0.1, 0.3.3] file=Playlists/ONLY ME.m3u: java.io.FileNotFoundException: /storage/6264-3230/Playlists/ONLY ME.m3u: open failed: EACCES (Permission denied)
16 Mar 2019 15:11:19 com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile [SM-A500FU, 6.0.1, 0.3.3] file=Playlists/OLDIES.m3u: java.io.FileNotFoundException: /storage/6264-3230/Playlists/OLDIES.m3u: open failed: EACCES (Permission denied)
16 Mar 2019 15:11:19 com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile [SM-A500FU, 6.0.1, 0.3.3] file=Playlists/CLASSICS.m3u: java.io.FileNotFoundException: /storage/6264-3230/Playlists/CLASSICS.m3u: open failed: EACCES (Permission denied)
16 Mar 2019 15:11:19 com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile [SM-A500FU, 6.0.1, 0.3.3] file=Playlists/RECENTS.m3u: java.io.FileNotFoundException: /storage/6264-3230/Playlists/RECENTS.m3u: open failed: EACCES (Permission denied)


LOG WITH PERMISSIONS

16 Mar 2019 15:13:08 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant [SM-A500FU, 6.0.1, 0.3.3] saved permissions:
16 Mar 2019 15:13:08 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant [SM-A500FU, 6.0.1, 0.3.3] 6264-3230:: /storage/6264-3230
16 Mar 2019 15:13:08 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant [SM-A500FU, 6.0.1, 0.3.3] perm uri=content://com.android.externalstorage.documents/tree/6264-3230%3A,mapped path=/storage/6264-3230,write=true,sd card=/storage/6264-3230
16 Mar 2019 15:13:08 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant [SM-A500FU, 6.0.1, 0.3.3] selected permission=content://com.android.externalstorage.documents/tree/6264-3230%3A
16 Mar 2019 15:13:11 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant [SM-A500FU, 6.0.1, 0.3.3] saved permissions:
16 Mar 2019 15:13:11 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant [SM-A500FU, 6.0.1, 0.3.3] 6264-3230:: /storage/6264-3230
16 Mar 2019 15:13:11 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant [SM-A500FU, 6.0.1, 0.3.3] perm uri=content://com.android.externalstorage.documents/tree/6264-3230%3A,mapped path=/storage/6264-3230,write=true,sd card=/storage/6264-3230
16 Mar 2019 15:13:11 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant [SM-A500FU, 6.0.1, 0.3.3] selected permission=content://com.android.externalstorage.documents/tree/6264-3230%3A
16 Mar 2019 15:13:19 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant [SM-A500FU, 6.0.1, 0.3.3] saved permissions:
16 Mar 2019 15:13:19 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant [SM-A500FU, 6.0.1, 0.3.3] 6264-3230:: /storage/6264-3230
16 Mar 2019 15:13:19 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant [SM-A500FU, 6.0.1, 0.3.3] perm uri=content://com.android.externalstorage.documents/tree/6264-3230%3A,mapped path=/storage/6264-3230,write=true,sd card=/storage/6264-3230
16 Mar 2019 15:13:19 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant [SM-A500FU, 6.0.1, 0.3.3] selected permission=content://com.android.externalstorage.documents/tree/6264-3230%3A


Regards: Freddy

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 32737
I think i know whats going on. Does it work if you just click "SYNC NOW" (without resetting the storage grant and without doing the preview) ?

Freddy Barker

  • Hero Member
  • *****
  • Posts: 751
  • 🎧 MB 3.4.7628P
I think i know whats going on. Does it work if you just click "SYNC NOW" (without resetting the storage grant and without doing the preview) ?

It did copy some music tracks ok but none of the playlists.

Are you able to clear the error log on each launch of the App please?

[EDIT]

I just launched Wi-Fi sync again, using 'Preview' and 'Sync Now' but not granting permissions, and the playlist were copied to the correct folder ok!
Last Edit: March 16, 2019, 05:40:19 PM by Freddy Barker

Freddy Barker

  • Hero Member
  • *****
  • Posts: 751
  • 🎧 MB 3.4.7628P
I think i know whats going on. Does it work if you just click "SYNC NOW" (without resetting the storage grant and without doing the preview) ?

Works ok on device SM-T713 running Android 7.0 (Nougat), without the grant access menu option even  showing up, just Preview and Sync Now, and all good!
Freddy

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 32737
v0.3.4 is available now which should fix the issue.
The errorlog is reset on the next restart and only after the first error has occurred

Freddy Barker

  • Hero Member
  • *****
  • Posts: 751
  • 🎧 MB 3.4.7628P
v0.3.4 is available now which should fix the issue.
The errorlog is reset on the next restart and only after the first error has occurred

All 3 Android devices updated and synced 100% correct, and no fiddling with permissions required!!

Awesome work, and maybe an MB music player for Android next on the agenda??  :-*
Last Edit: March 17, 2019, 12:03:34 AM by Freddy Barker

Freddy Barker

  • Hero Member
  • *****
  • Posts: 751
  • 🎧 MB 3.4.7628P
v0.3.4 is available now which should fix the issue.
The errorlog is reset on the next restart and only after the first error has occurred

@Steven..

Got notification for MusicBee Wifi Sync v0.4 - shall I go ahead and test or wait for instructions?
Office open even on Sunday!

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 32737
Its really just the version you were using so I suggest you update so you have the latest but no need to specially test it.

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 32737
I approached the GoneMad developer about access to ratings/ playcounts and playlists back to MusicBee ie. 2-way sync. Based on his feedback, it looks like there is a way for all three so i will look at implementing that.
However, for the ratings and playcounts, the mechanism is to trigger the backup functionality which generates an xml file dump of the library (I assume like the MB iTunes xml export function). I am not familiar with gonemad but so does having the backup function automatically invoked cause any concerns - does the backup function do more than just dump an xml file of the library?