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

BoringName

  • Sr. Member
  • ****
  • Posts: 916
It seems I lied before. I just installed the new version, cleared it's data/cache and tried a sync and it said it wanted to delete the songs that I thought were deleted previously. Even though the app reported no errors and looked like it was deleting all the songs, it didn't actually delete them.

I ran the sync again in the new version which reported completing successfully with no errors but the songs are still there.

I enabled debug mode in the settings and the log shows it's calling the deleteFile method but its not deleting them and not reporting any errors.

Every time I do a sync it wants to delete the same files but doesn't delete them.

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10272
Version 2.7.1 is now in the store. Install this on the device with the error and run it initially.
Using the new version, the app now wants to delete all 21.000 music files on the device and then (I assume) it will sync. I have left the playlist location as it was - as a folder directly under the root. I'm assuming this sync will take hours, so I'll report back when I can.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10272
Six-plus hours later, and at 99% complete, the sync failed. It was just about to start on the playlists.
I found this in MB's error log. Which may be a hint why playlists are failing to appear on the tablet.
Code
8/1/2024 2:32:24 AM - Add playlist "G:\MusicBee\phred\Playlists\Dynamic Duos.mbp" Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
8/1/2024 3:28:15 PM - Add playlist "G:\MusicBee\phred\Playlists\Dynamic Duos.mbp" Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
The WiFi app's error log has nothing from today.

All of the music copied to the device as GMMP is showing 20,902 tracks. But zero playlists. However, when I do a preview for another sync, it's showing that 20,000+ files will be deleted and then synced.

A USB (Wired) sync works as expected including copying over the playlists.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

fredbee

  • Newbie
  • *
  • Posts: 1
It doesn't work for me, sadly. I added 2 new files and the app says "sync completed" but they don't get transfered.

kimt1688

  • Jr. Member
  • **
  • Posts: 109
Version 2.7.2 has been released to the store as an open test.
The following is from the release notes

Fixed file deletion process not working properly.
Adjusted the selection state of the screen when the program is launched for the first time.
Adjusted the timing of registering files copied by wired Sync to MediaStore.

Third, after wired Sync, when the app is launched for the first time, MusicBee searches for all files and registers the copied files in the MediaStore. Otherwise, it will not be possible to delete or update them later.
I have changed the timing of that process to later than before. This will ensure that the process is done, but there will be multiple toasts at the start and end of the process.
I have not been able to keep up with multi-threading, so there is still room for adjustment, but for now I decided on this timing for certainty.

BoringName

  • Sr. Member
  • ****
  • Posts: 916
Just confirming the songs do get deleted now if I remove a playlist from the sync. But the playlist file still remains as I reported previously.

Also did a couple of tests with playlist formats. If you want to float between wired and wireless syncs, you really need to set the playlist format to m3u. If you don't your playlists will get doubled up.

The wired sync will copy your playlists across as playlist 1.m3u8, playlist 2.m3u8 etc.. and then the wireless sync will copy them across as playlist 1.m3u8.m3u, playlist 2.m3u8.m3u etc....

If you set the playlist format to m3u, both the wired and wireless sync will save them in the same format playlist 1.m3u, playlist 2.m3u etc...

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10272
Still no joy here with 2.7.2.

- I'm still getting the permissions pop-up when deleting files from the tablet.

- Playlists are still not copying over. The app's status bar shows that it is trying to copy the playlist and after a few minutes closes with the message "MusicBee synchronization successfully completed." However, the status bar on MB says "Synchronizations failed." MB is correct and the app is wrong. No playlists have been copied to the tablet.

Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

Tinidazone

  • Jr. Member
  • **
  • Posts: 82
A quick question

Does this plugin still get supported? I tried it few months ago it was not working
I tried to find it on play store today I couldn't find it
I wear shades 😎 cuz you're just too bright 🔆

Madmaxneo

  • Jr. Member
  • **
  • Posts: 104
A quick question

Does this plugin still get supported? I tried it few months ago it was not working
I tried to find it on play store today I couldn't find it
Yes @kimt1688 has taken over development of the app. A closed beta testing is going on. Not sure if they are still taking beta testers or not.

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10272
A closed beta testing is going on. Not sure if they are still taking beta testers or not.
The testing is now open, and has been for a week or two. Download the app from the Play Store.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

Babydoll32

  • Full Member
  • ***
  • Posts: 180
Hi, I tested with GMMP classic and new version. First sync worked fine. But when I check sync back ratings, play- & skipcount,
I get a non-recoverable error and following error log:

Code
08:23:33: ping: socket ok=/192.xxxxxx
08:23:33: ping: hello=MusicBeeWifiSyncServer/1.0
08:23:33: ping: matched=/192.xxxxxx,status=OK
08:23:36: startSync: preview=false,iteration=0
08:23:36: command: action=SYNC_START
08:23:36: tryStart: connecting /192.xxxxxx, attempt=0
08:23:36: tryStart: connected
08:23:36: tryStart: hello=true,fromMB=true,custfiles=false,preview=false,dev=Redmi Note 10,2
08:23:36: storage: path=/storage/5CA2296EA2294DB8,root=null
08:23:36: syncDevice: root=/storage/5CA2296EA2294DB8,ignoreErrors=false,playlists=true,ratings=true,playcount=true
08:23:36: syncDevice: command=SendPlaylists
08:23:36: syncDevice: command=SendFile
08:23:36: syncDevice: command=SendStats
08:23:36: tryStart0: java.lang.NullPointerException
08:23:36: kim.tkland.musicbeewifisync.WifiSyncService$SynchronisationWorker.sendStats(WifiSyncService.kt:1483)
08:23:36: kim.tkland.musicbeewifisync.WifiSyncService$SynchronisationWorker.syncDevice(WifiSyncService.kt:429)
08:23:36: kim.tkland.musicbeewifisync.WifiSyncService$SynchronisationWorker.tryStartSynchronisation(WifiSyncService.kt:313)
08:23:36: kim.tkland.musicbeewifisync.WifiSyncService$SynchronisationWorker.run(WifiSyncService.kt:167)
08:23:36: java.lang.Thread.run(Thread.java:1012)
08:23:36: waitScanFiles: start
08:23:36: waitScanFiles: done

I'm using an unrooted Xiaomi Note 10 with Android 12 and the latest versions of Musicbee, GMMP & Wifi-Sync Tool.
It should sync to my SD. If I select None or Poweramp sync is successfully, but doesn't change ratings or playcounts.

BoringName

  • Sr. Member
  • ****
  • Posts: 916
Hi, I tested with GMMP classic and new version. First sync worked fine. But when I check sync back ratings, play- & skipcount,
I get a non-recoverable error and following error log:

Have you paid for GMMP? Reverse play counts and ratings will not work with the locked versions (trial) of GMMP.

edit: *locked
Last Edit: August 08, 2024, 10:28:33 PM by BoringName

Babydoll32

  • Full Member
  • ***
  • Posts: 180
Have you paid for GMMP? Reverse play counts and ratings will not work with the unlocked versions (trial) of GMMP.

Yes. Paid both. Classic version years ago and new version yesterday. Poweramp was also paid years ago.

BoringName

  • Sr. Member
  • ****
  • Posts: 916
Have you paid for GMMP? Reverse play counts and ratings will not work with the locked versions (trial) of GMMP.

Yes. Paid both. Classic version years ago and new version yesterday. Poweramp was also paid years ago.

Did it prompt you to select the stats.xml file when you first installed?

If the file exists it will prompt you to give it permissions to the file. I don't know what happens if the file doesn't exist yet. Possibly when you attempted a sync it created the stats.xml but didn't have permission to read it. Now the file exists, reinstalling the app might prompt for file permissions for the file.

Keep in mind while testing, every time you select to sync to a different player or reinstall the app, the history of what's been imported gets cleared so it will cause your play counts to be duplicated unless you clear the databases in the players.

Babydoll32

  • Full Member
  • ***
  • Posts: 180
Did it prompt you to select the stats.xml file when you first installed?

If the file exists it will prompt you to give it permissions to the file. I don't know what happens if the file doesn't exist yet. Possibly when you attempted a sync it created the stats.xml but didn't have permission to read it. Now the file exists, reinstalling the app might prompt for file permissions for the file.

Thanks. The stats.xml file was the crack in the bottle. GMMP did not created it automatically, so it doesn’t exist until I saved stats manually. I thought GMMP creates stats.xml after installing, but doesn‘t (at least not on my phone).