getmusicbee.com

Support => Portable Devices => Topic started by: Steven on January 24, 2019, 07:39:23 PM

Title: Wifi android device synching
Post by: Steven on January 24, 2019, 07:39:23 PM
One-way Wifi sync is now available for Android 5+ devices

The app is available for beta testing at
https://play.google.com/apps/testing/com.getmusicbee.musicbeewifisync

You need MusicBee v3.3.7014+
https://getmusicbee.com/forum/index.php?topic=27074.msg155944#new

Instructions:
- In the MusicBee Device preferences panel, tick the "enable Wifi transfer with Android devices"
- make sure you allow MusicBee when windows firewall prompts
- on your Android device, run the Wifi sync app
- select whether you want to sync to your Internal memory or to an external SD Card (if available)
- then click "Locate Server"
- MusicBee must be running for this to work and windows firewall permission granted
- you only need to do this once
- only connections from your private network are supported
- the app error log can be viewed from the action bar/ Error Log menu item


---------------
I am doing some research into Wifi synching with android devices and also want to investigate the possibility of 2-way synching with some of the popular android players. Not promising anything but what I want to know is for the people interested in this, which android player do you use?
Title: Re: Wifi android device synching
Post by: Freddy Barker on January 24, 2019, 08:06:14 PM
I am doing some research into Wifi synching with android devices and also want to investigate the possibility of 2-way synching with some of the popular android players. Not promising anything but what I want to know is for the people interested in this, which android player do you use?

I've stuck with the Media Monkey Android player as it's always worked good for me.
Title: Re: Wifi android device synching
Post by: psychoadept on January 24, 2019, 08:16:25 PM
I think several of us use GMMP
Title: Re: Wifi android device synching
Post by: Steven on January 24, 2019, 08:28:51 PM
I think several of us use GMMP
Do you know if it provides a way for an external application to retrieve ratings/ playcounts/ tags?
I'll try contacting the dev on http://gonemadmusicplayer.proboards.com
Title: Re: Wifi android device synching
Post by: phred on January 24, 2019, 08:54:21 PM
I think several of us use GMMP
I'm one of those users.
Title: Re: Wifi android device synching
Post by: Freddy Barker on January 24, 2019, 09:56:49 PM
Seems I'm  stil a Beta tester for Rocket Player from JRT studios, who also have a WiFi sync with iTunes App.
The developer (in Texas) was always quick to fix any issues, is:-

Justin Tipton - [email protected]
https://play.google.com/store/apps/dev?id=8177774334723216869
Title: Re: Wifi android device synching
Post by: psychoadept on January 24, 2019, 10:17:57 PM
I think several of us use GMMP
Do you know if it provides a way for an external application to retrieve ratings/ playcounts/ tags?
I'll try contacting the dev on http://gonemadmusicplayer.proboards.com

I know it talks to Simple Last.fm Scrobbler and some other scrobbling apps. Beyond that, I'm not sure.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on January 25, 2019, 02:25:42 AM
I am doing some research into Wifi synching with android devices and also want to investigate the possibility of 2-way synching with some of the popular android players. Not promising anything but what I want to know is for the people interested in this, which android player do you use?


I would love wifi syncing.   I used iSyncr to sync wirelessly from itunes to my devices even while laying in bed in the other room.   But can't use it with musicbee.   I use Poweramp mostly but have Playerpro, Blackplayer, Jet Audio, and others that i have used or purchased before.   I also have Rocket Player but don't use it.   It will work with isyncr to sync ratings to and from itunes or something like that.   but poweramp doesn't use ratings from other players.   The dev only has the ratings for poweramp only.   I believe Player Pro and Jet Audio will let you select what ratings system you want to use such as isyncr.   maybe one of the devs would allow ratings from Musicbee if approached. 
Title: Re: Wifi android device synching
Post by: boroda on January 25, 2019, 07:07:45 AM
gmmp, jet audio.
Title: Re: Wifi android device synching
Post by: klint on January 25, 2019, 09:20:23 AM
I'm using Rocket Player Beta as well (and I'd ready to use their iSyncr apps if needed to sync over wifi).
And I agree that Justin Tipton is quite reactive.
Title: Re: Wifi android device synching
Post by: Steven on February 07, 2019, 07:23:49 PM
An update on this. I have implemented one way synch over Wifi now with a MusicBee synch app that runs on the android phone. It seems (at least for my Wifi setup) to be much faster than MTP transfer. Also it doesnt have the long stall that MTP does after deleting files.
Once I have tested this thoughly and am comfortable it is reliable then I will release it on the play store as I think just those improvements alone justify it (the release process is all new to me so it might take some time)

After that I will then look at implementing 2-way synch if i can get the co-operation of any of the mobile player developers
Title: Re: Wifi android device synching
Post by: phred on February 07, 2019, 07:50:55 PM
Great news, Steven. I look forward to trying out the WiFi Sync from MB to my two Android devices, both of which are running GMMP.
Title: Re: Wifi android device synching
Post by: psychoadept on February 08, 2019, 12:48:34 AM
SWEET, looking forward to this!
Title: Re: Wifi android device synching
Post by: railfan-eric28 on February 08, 2019, 02:20:40 AM
An update on this. I have implemented one way synch over Wifi now with a MusicBee synch app that runs on the android phone. It seems (at least for my Wifi setup) to be much faster than MTP transfer. Also it doesnt have the long stall that MTP does after deleting files.
Once I have tested this thoughly and am comfortable it is reliable then I will release it on the play store as I think just those improvements alone justify it (the release process is all new to me so it might take some time)

After that I will then look at implementing 2-way synch if i can get the co-operation of any of the mobile player developers


sweet that sounds awesome.   is that long stall after file deleting something to do with my galaxy tab s 8.4 losing the MicroSD card from the computer?  I can drag and drop files with windows explorer or let it just sit idle and it stays connected in windows but everytime I try to sync with musicbee the computer loses the connection to the SD card before sync is completed .  So i have to babysit the darn thing till it gets synced the rest of the way.   btw Musicbee isn't reading my devices after sync or  failed sync again.   I have to close it out and reconnect the device to get it to read into MB.  Unless you fixed it again in recent versions.   I hadn't updated it for a few weeks.
Title: Re: Wifi android device synching
Post by: zkhcohen on February 08, 2019, 06:13:13 AM
An update on this. I have implemented one way synch over Wifi now with a MusicBee synch app that runs on the android phone. It seems (at least for my Wifi setup) to be much faster than MTP transfer. Also it doesnt have the long stall that MTP does after deleting files.
Once I have tested this thoughly and am comfortable it is reliable then I will release it on the play store as I think just those improvements alone justify it (the release process is all new to me so it might take some time)

After that I will then look at implementing 2-way synch if i can get the co-operation of any of the mobile player developers


This is really awesome! Thank you for implementing this. Please please, if you manage to get 2-way sync enabled, make it optional. I've had too many bad experiences with accidental deletion.
Title: Re: Wifi android device synching
Post by: frankz on February 08, 2019, 06:36:09 AM
Great news, Steven. I look forward to trying out the WiFi Sync from MB to my two Android devices, both of which are running GMMP.
I feel like I need to thank you for pointing me in the direction of GMMP.  I'm new to using my Android phone for music (my old car only had an iPod interface) and was kind of lost in the sea of players. They all had benefits and they all had drawbacks and I felt like I needed to settle for the "least bad" until I installed GMMP.  It ticks all of the boxes for me (Android Auto, Chromecast, ReplayGain, Responsive Support) and is easy to customize in a way that makes it just about perfect for me.  So, thank you.

 As far as Wifi Sync, I'm a wired type guy, but hearing it's faster has gotten me interested!
Title: Re: Wifi android device synching
Post by: phred on February 08, 2019, 01:01:31 PM
Great news, Steven. I look forward to trying out the WiFi Sync from MB to my two Android devices, both of which are running GMMP.
I feel like I need to thank you for pointing me in the direction of GMMP.  I'm new to using my Android phone for music (my old car only had an iPod interface) and was kind of lost in the sea of players. They all had benefits and they all had drawbacks and I felt like I needed to settle for the "least bad" until I installed GMMP.  It ticks all of the boxes for me (Android Auto, Chromecast, ReplayGain, Responsive Support) and is easy to customize in a way that makes it just about perfect for me.  So, thank you.
You're welcome, but if you want to trace it back, it was psychoadept who pointed me to it after being dissatisfied with whatever I was using before - PowerAMP. I will add that GMMP seems to have a more active development path than most (all?) of the others. Not to mention that Customer Support is really great. I got a new FiiO DAP that has it's own OS and music player, but it also has the ability to launch it with Android OS. Which allowed me to use GMMP on it. Since discovering that piece, I've never booted into the default OS.

Quote
As far as Wifi Sync, I'm a wired type guy, but hearing it's faster has gotten me interested!
I too, am quite content to plug in a USB cable and sync. And I don't feel that it's slow. But the ability to not be tethered while syncing is great.
Title: Re: Wifi android device synching
Post by: klint on February 08, 2019, 02:40:15 PM
Great news, thanks Steven!

By the way, when you mention 2 ways, do you mean playcounts/ratings/etc sync'ed back from the phone to MB? That would be awesome indeed, particularly for podcasts (once listened on the phone, can be removed from MB, manually from a smart playlist based on playcounts). I haven't tried GMMP, but I'm using Rocket Player for its excellent audiobook & podcasts support.

Cheers
Title: Re: Wifi android device synching
Post by: Babydoll32 on February 11, 2019, 06:28:03 PM
Hi, Steven.
Great news!!! GMMP and Rocket Player are good ones. My favourite is Rocket Player. Hope you're successful!
Title: Re: Wifi android device synching
Post by: Steven on February 13, 2019, 10:41:57 PM
Any keen testers?

An alpha version is available on:
https://play.google.com/apps/testing/com.getmusicbee.musicbeewifisync

You need to PM me your email address you use for google play store so I can add you to the tester list

You also need the latest v3.3 patch version
https://getmusicbee.com/patches/MusicBee33_Patched.zip

Its pretty straight forward
Run MB and enable Wifi Sync in the Device preferences

From your phone, run the Sync app. The first step is to let the sync app detect the MusicBee server. Hopefully that works easily and only needs to be done this once.
For older android versions (< Nougat) where you have an external sd card, you will also be required to select "Internal Storage" or "SD Card". For more recent Android versions, the sync app detects the storage from your device sync settings in MB.

After that just click "Sync Now" and thats it!

If you tick the "preview changes" checkbox you can see the changes that will happen and click "Proceed" for the copy/ deletes to be done.

I have set it so MB will only accept connections from your private network - you need to be connected to a Wifi hotspot thats common to your computer and phone.
Android versions older than Kit-kat are not supported
Title: Re: Wifi android device synching
Post by: phred on February 13, 2019, 11:18:17 PM
I'm certainly willing to give it a run around the block. PM sent with play store email address.

Title: Re: Wifi android device synching
Post by: Steven on February 14, 2019, 06:52:40 AM
i'll delay this to the weekend as i realise there are a couple more things i want to test
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 14, 2019, 09:35:58 AM
I'm certainly willing to give it a run around the block. PM sent with play store email address.

I'm in too - I have a spare Samsung J5 running Android 6.0.1 (Marshmallow) with 32Gb MicroSD.
Title: Re: Wifi android device synching
Post by: Steven on February 14, 2019, 10:15:49 PM
the people who PM'ed me have now been added as testers

join the testing program via:
https://play.google.com/apps/testing/com.getmusicbee.musicbeewifisync

and its installable from:
https://play.google.com/store/apps/details?id=com.getmusicbee.musicbeewifisync

I suggest you start with "preview changes" ticked so you can see what it would do
If you have trouble connecting, a log file is created (for now) in the Download folder as: MusicBeeWifiSyncErrorLog.txt
Title: Re: Wifi android device synching
Post by: klint on February 14, 2019, 10:55:02 PM
Hi Steven
The app cannot locate the server but the log file is empty. The Windows firewall seems to be ok ("private" is on and I'm on a private network). The wifi setting is checked app is MB. Is there anything else I should check?
Thanks
Title: Re: Wifi android device synching
Post by: zkhcohen on February 14, 2019, 11:01:16 PM
Apparently it doesn't match my previous configuration:

https://i.imgur.com/bZ30KBH.jpg



LOG:

Feb 14, 2019 2:51:29 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: Probing 10.3.15.
Feb 14, 2019 2:51:34 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 10.3.15.1
Feb 14, 2019 2:51:34 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 10.3.15.27
Feb 14, 2019 2:51:34 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 10.3.15.17
Feb 14, 2019 2:51:34 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 10.3.15.15
Feb 14, 2019 2:51:34 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 10.3.15.107
Feb 14, 2019 2:51:34 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 10.3.15.1
Feb 14, 2019 2:51:36 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /10.3.15.1 (port 27304) from /10.3.15.16 (port 32778) after 2500ms
Feb 14, 2019 2:51:36 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 10.3.15.27
Feb 14, 2019 2:51:36 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: MusicBeeWifiSyncServer/1.0
Feb 14, 2019 2:51:40 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Start: MB unable to match volume names (2)
Feb 14, 2019 2:51:40 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Start: Phone memory
Feb 14, 2019 2:51:40 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Start: SD card
Feb 14, 2019 2:52:00 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Start: MB unable to match volume names (2)
Feb 14, 2019 2:52:00 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Start: Phone memory
Feb 14, 2019 2:52:00 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Start: SD card
Feb 14, 2019 2:52:34 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Start: MB unable to match volume names (2)
Feb 14, 2019 2:52:34 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Start: Phone memory
Feb 14, 2019 2:52:34 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Start: SD card
Title: Re: Wifi android device synching
Post by: zkhcohen on February 14, 2019, 11:25:12 PM
Hi Steven
The app cannot locate the server but the log file is empty. The Windows firewall seems to be ok ("private" is on and I'm on a private network). The wifi setting is checked app is MB. Is there anything else I should check?
Thanks

Other firewalls on the network, potentially?

Use TCPView to see which port MusicBee is listening on.
Title: Re: Wifi android device synching
Post by: phred on February 14, 2019, 11:27:35 PM
I'm also getting the 'can't match the device to an existing configuration' error. I disabled my firewall with no change in behavior.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on February 15, 2019, 12:03:26 AM
the wifi app says "server not found.  Ensure Musicbee is running.... etc etc"   I opened and closed and reopened Musicbee but still no good.  I checked the setting under the device settings for WIFI on the program.
Title: Re: Wifi android device synching
Post by: MCDoubleDefDP on February 15, 2019, 01:41:55 AM
I think several of us use GMMP
Do you know if it provides a way for an external application to retrieve ratings/ playcounts/ tags?
I'll try contacting the dev on http://gonemadmusicplayer.proboards.com

I stumbled upon this thread today and didn't see that your question was answered, so I asked the dev on Discord and he said "Gmmp exports everything to file that can be imported and exported. He can hijack that. Syncing would be nice but i have wayyyyyy too much on my plate already
Its xml format i believe"

EDIT: He added "i mean he can email me [gonemadsoftware(at)gmail(dot)com] and i can help in the sense of give advice.. just not code anything. i do believe there are intents to trigger a backup and restore too.. i think"

I see that in the stable 2.x version of GoneMAD Music Player, you go to Settings > General > Backup > Backup Stats (play counts and ratings).

I currently use Syncthing to 2-way sync my Android music folder with my Windows music folder to work with MusicBee, and GoneMAD writes all standard tags directly to the file, so MusicBee picks up any metadata or ratings changes I make on my phone. Since play counts are handled by the individual databases of your apps, those obviously don't sync, however.

I hope this was helpful.
Title: Re: Wifi android device synching
Post by: Steven on February 15, 2019, 07:04:24 AM
Use TCPView to see which port MusicBee is listening on.
port is 27304
Title: Re: Wifi android device synching
Post by: Steven on February 15, 2019, 07:17:30 AM
Apparently it doesn't match my previous configuration:

https://i.imgur.com/bZ30KBH.jpg
check the error log on the musicbee side (help/ support/ view error log)


To the others, are you running MB with the "wifi synching" checkbox ticked in the MusicBee device preferences tab?
I would need to see the log on your phone and also the last entries in the musicbee error log
Title: Re: Wifi android device synching
Post by: phred on February 15, 2019, 01:31:25 PM
Using 3.3.6982 I have "enable Wifi transfer with android phones" ticked. I have installed the Wifi sync app on my Samsung S8 running Android v8.0. Clicking "sync now" results in the "can't match device..." error. There is nothing in the MB error log. And I can't find the log on my phone as I'm not sure where it is located. If you could tell me the name of the log on the Android I could search for it.

On my FiiO X5, which is running Android 5.1 Lollipop (with no ability to update it) I can see the app in the play store, but when I try to install it, it's says "no eligible devices." I need to dig into this part a little more so for right now I'm only concerned with the Samsung not being able to connect. I'll update the X5 situation when I actually get the app installed.


Title: Re: Wifi android device synching
Post by: boroda on February 15, 2019, 01:55:19 PM
mb 3.3.6982, wi-fi sync enabled, one plus 2 (android 6.0). I get "server not found" error on my phone. no log on the phone, no related entries in the log on pc.
Title: Re: Wifi android device synching
Post by: phred on February 15, 2019, 01:58:50 PM
Now that I've finally gotten the app installed on the X5, I selected 'removable SD card' and pressed 'locate server.' This results in 'Server not found. Ensure MB is running on your computer and dWindows firewall is not blocking MB.'

I have temporarily disabled all my security software and confirmed that MB is running and the box is ticked to enable wifi transfer.
Title: Re: Wifi android device synching
Post by: Steven on February 15, 2019, 02:01:20 PM
And I can't find the log on my phone as I'm not sure where it is located. If you could tell me the name of the log on the Android I could search for it.
in the Download folder as: MusicBeeWifiSyncErrorLog.txt
you need to access the file via the Android Files app
Title: Re: Wifi android device synching
Post by: phred on February 15, 2019, 02:14:57 PM
This is from the Samsung running Android 8.0
Code
Feb 15, 2019 8:07:32 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Start: MB unable to match volume names (1)
Feb 15, 2019 8:07:32 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Start: Phone memory
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 15, 2019, 02:19:58 PM
[EDIT]

Galaxy A5 (SM-A500FU) and Galaxy J5 (SM-J500FN) - Android 6.0.1 (Marshmallow)

Device storage/Download/ MusicBeeWifiSyncErrorLog.txt.lck

Device storage/Download/ MusicBeeWifiSyncErrorLog.txt

Code
15 Feb 2019 13:19:00 com.getmusicbee.musicbeewifisync.ErrorHandler LogError
Sn to /192.168.1.254 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
15 Feb 2019 13:19:00 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.71
15 Feb 2019 13:19:00 com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.71 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
15 Feb 2019 13:19:00 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.67
15 Feb 2019 13:19:01 com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.67 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Title: Re: Wifi android device synching
Post by: Steven on February 15, 2019, 02:21:08 PM
This is from the Samsung running Android 8.0
Code
Feb 15, 2019 8:07:32 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Start: MB unable to match volume names (1)
Feb 15, 2019 8:07:32 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Start: Phone memory
can you PM me a link to your settings file (help/ support/ view settings)
Title: Re: Wifi android device synching
Post by: phred on February 15, 2019, 02:30:26 PM
can you PM me a link to your settings file (help/ support/ view settings)
PM sent
Title: Re: Wifi android device synching
Post by: phred on February 15, 2019, 02:34:36 PM
Here's the error log from the FiiO X5. It looks like it's trying to connect to every device on my network. And being refused by all of them. It should only be trying to connect to 192.168.1.101, which isn't showing in the error log. Note that the log seems to contain more than one attempt to connect.

Code
Feb 15, 2019 8:52:43 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: Probing 192.168.1.
Feb 15, 2019 8:52:46 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.1
Feb 15, 2019 8:52:46 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.2
Feb 15, 2019 8:52:46 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.10
Feb 15, 2019 8:52:46 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.11
Feb 15, 2019 8:52:46 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.103
Feb 15, 2019 8:52:46 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.202
Feb 15, 2019 8:52:46 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.201
Feb 15, 2019 8:52:46 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.115
Feb 15, 2019 8:53:16 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.1
Feb 15, 2019 8:53:16 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.1 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:53:16 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.2
Feb 15, 2019 8:53:16 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.2 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:53:16 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.10
Feb 15, 2019 8:53:16 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.10 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:53:16 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.11
Feb 15, 2019 8:53:16 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.11 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:53:16 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.103
Feb 15, 2019 8:53:16 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.103 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:53:16 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.202
Feb 15, 2019 8:53:16 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.202 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:53:16 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.201
Feb 15, 2019 8:53:16 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.201 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:53:16 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.115
Feb 15, 2019 8:53:17 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.115 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:55:19 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.1
Feb 15, 2019 8:55:19 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.1 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:55:19 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.2
Feb 15, 2019 8:55:19 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.2 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:55:19 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.10
Feb 15, 2019 8:55:19 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.10 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:55:19 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.11
Feb 15, 2019 8:55:19 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.11 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:55:19 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.103
Feb 15, 2019 8:55:19 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.103 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:55:19 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.202
Feb 15, 2019 8:55:19 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.202 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:55:19 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.201
Feb 15, 2019 8:55:20 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.201 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:55:20 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.115
Feb 15, 2019 8:55:21 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.115 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:56:09 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.1
Feb 15, 2019 8:56:09 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.1 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:56:09 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.2
Feb 15, 2019 8:56:09 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.2 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:56:09 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.10
Feb 15, 2019 8:56:09 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.10 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:56:09 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.11
Feb 15, 2019 8:56:09 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.11 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:56:09 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.103
Feb 15, 2019 8:56:09 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.103 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:56:09 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.202
Feb 15, 2019 8:56:09 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.202 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:56:09 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.201
Feb 15, 2019 8:56:09 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.201 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
Feb 15, 2019 8:56:09 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.115
Feb 15, 2019 8:56:11 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.115 (port 27304) after 2500ms
Title: Re: Wifi android device synching
Post by: klint on February 15, 2019, 05:24:09 PM
Hi Steven
The app cannot locate the server but the log file is empty. The Windows firewall seems to be ok ("private" is on and I'm on a private network). The wifi setting is checked app is MB. Is there anything else I should check?
Thanks

Other firewalls on the network, potentially?

Use TCPView to see which port MusicBee is listening on.


It's listening to port 27304.
But I just have scanned the ports of the PC from my phone and none is open. So, there must be another firewall. Too bad for me :) (I can't do a thing as it's my office laptop).
Title: Re: Wifi android device synching
Post by: Steven on February 15, 2019, 06:14:24 PM
can you PM me a link to your settings file (help/ support/ view settings)
PM sent
thanks. Can you confirm its the "SM-G950U\Phone" device?
If so, the path explains why its not working and i will need to make a change on the android side as something that is working for me doesnt appear to work for anyone else
Title: Re: Wifi android device synching
Post by: zkhcohen on February 15, 2019, 06:53:44 PM
Apparently it doesn't match my previous configuration:

https://i.imgur.com/bZ30KBH.jpg
check the error log on the musicbee side (help/ support/ view error log)


To the others, are you running MB with the "wifi synching" checkbox ticked in the MusicBee device preferences tab?
I would need to see the log on your phone and also the last entries in the musicbee error log



2/14/2019 2:51:35 PM - Unable to match: SM-G955U\Card\ to a volume: Phone memory; SD card;
2/14/2019 2:51:56 PM - Unable to match: SM-G955U\Card\ to a volume: Phone memory; SD card;
2/14/2019 2:52:29 PM - Unable to match: SM-G955U\Card\ to a volume: Phone memory; SD card;


This is the storage path I have configured for the Device Settings in MusicBee:

SM-G955U\Card\

Title: Re: Wifi android device synching
Post by: phred on February 15, 2019, 07:05:40 PM
thanks. Can you confirm its the "SM-G950U\Phone" device?
If so, the path explains why its not working and i will need to make a change on the android side as something that is working for me doesnt appear to work for anyone else
Yes, that's my Samsung S8.
Title: Re: Wifi android device synching
Post by: Steven on February 15, 2019, 07:47:24 PM
I have posted an updated Android version but i think it takes a few hours to roll out and not sure if you get notified when its ready.
It now prompts you to select the storage (Internal or SD Card) as the automatic matching to the musicbee sync settings storage selection is clearly not working for most devices.
I think thats most of the issues reported. I haven't looked yet as why in some cases no connection is made at all but will do so.
Title: Re: Wifi android device synching
Post by: phred on February 15, 2019, 08:02:45 PM
I have posted an updated Android version but i think it takes a few hours to roll out and not sure if you get notified when its ready.
It now prompts you to select the storage (Internal or SD Card) as the automatic matching to the musicbee sync settings storage selection is clearly not working for most devices.
I think thats most of the issues reported. I haven't looked yet as why in some cases no connection is made at all but will do so.
Thanks. I'll check for the update in a couple of hours.
Title: Re: Wifi android device synching
Post by: zkhcohen on February 15, 2019, 08:42:10 PM
I have posted an updated Android version but i think it takes a few hours to roll out and not sure if you get notified when its ready.
It now prompts you to select the storage (Internal or SD Card) as the automatic matching to the musicbee sync settings storage selection is clearly not working for most devices.
I think thats most of the issues reported. I haven't looked yet as why in some cases no connection is made at all but will do so.

Updated. Now it connects and very quickly determines what needs to be synced.

Here's the new issue:

Feb 15, 2019 12:39:52 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: ReceiveFile: /storage/0CB5-7600/Music/Balam Acab/Wander   Wonder/06 - Oh, Why.mp3.part (Permission denied)
Feb 15, 2019 12:40:13 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Looper: Read timed out


Are these Android or Windows perms. which are being denied?
Title: Re: Wifi android device synching
Post by: Steven on February 15, 2019, 08:57:42 PM
Are these Android or Windows perms. which are being denied?
its the Android permissions and I expect its because your card is in read-only mode - the sync app currently doesnt check that status and display an error for that.
Title: Re: Wifi android device synching
Post by: zkhcohen on February 15, 2019, 09:00:13 PM
Are these Android or Windows perms. which are being denied?
its the Android permissions and I expect its because your card is in read-only mode - the sync app currently doesnt check that status and display an error for that.


Is there any way to release the read-only mode? I can readily write to the card from the "Files" app on my phone, and regularly sync to MusicBee directly to the card over a cable connection.

Also, fully recognizing that this is in alpha, but what are the security implications of exposing the wifi-sync port on MusicBee? What web-server API is used? Future support for encryption or at least a sync-key so that users who have multiple MusicBee wifi-sync enabled sessions on the network won't get confused?

Edit: I'm also on a Samsung S8+ if it matters!
Title: Re: Wifi android device synching
Post by: phred on February 15, 2019, 09:12:20 PM
Tested the new build on the Samsung S8 and it worked perfectly on one test. Will be testing more later today. I haven't tested the new build on the FiiO X5 at this point, but I don't think the 'connection refused' issued has been addressed yet.
Title: Re: Wifi android device synching
Post by: zkhcohen on February 15, 2019, 09:15:32 PM
Tested the new build on the Samsung S8 and it worked perfectly on one test. Will be testing more later today. I haven't tested the new build on the FiiO X5 at this point, but I don't think the 'connection refused' issued has been addressed yet.

Was this to your SD card or the internal device storage?
Title: Re: Wifi android device synching
Post by: phred on February 15, 2019, 09:16:38 PM
Hmmm ... it always wants to sync the (m3u) playlists even when there have been no changes. I synced and then immediately synced again and the preview shows the same playlists that were just synced.
Title: Re: Wifi android device synching
Post by: phred on February 15, 2019, 09:18:03 PM
Tested the new build on the Samsung S8 and it worked perfectly on one test. Will be testing more later today. I haven't tested the new build on the FiiO X5 at this point, but I don't think the 'connection refused' issued has been addressed yet.

Was this to your SD card or the internal device storage?
To the internal storage. I don't run a SD card on the S8. I do on the FiiO X5, but haven't gotten to that yet to test the new build.
Title: Re: Wifi android device synching
Post by: Steven on February 15, 2019, 09:18:48 PM
Hmmm ... it always wants to sync the (m3u) playlists even when there have been no changes. I synced and then immediately synced again and the preview shows the same playlists that were just synced.
except for a brief period, its always been the case the playlists are always copied. I dont think i will change that
Title: Re: Wifi android device synching
Post by: zkhcohen on February 15, 2019, 09:21:10 PM
Tested the new build on the Samsung S8 and it worked perfectly on one test. Will be testing more later today. I haven't tested the new build on the FiiO X5 at this point, but I don't think the 'connection refused' issued has been addressed yet.

Was this to your SD card or the internal device storage?
To the internal storage. I don't run a SD card on the S8. I do on the FiiO X5, but haven't gotten to that yet to test the new build.

Cool. When I get a chance in the next hour or two I'll create a separate device profile for my internal storage and try syncing there.
Title: Re: Wifi android device synching
Post by: phred on February 15, 2019, 09:22:05 PM
Hmmm ... it always wants to sync the (m3u) playlists even when there have been no changes. I synced and then immediately synced again and the preview shows the same playlists that were just synced.
except for a brief period, its always been the case the playlists are always copied. I dont think i will change that
Okay, that makes sense. And yes, I do remember on a wired sync it does the same thing.

For the future: show the total number of tracks to be synced. I can't remember if MB does that on a wired sync, but on a desktop it's fairly easy to get a sense of how many tracks will be transferred. It's more difficult to sense on a small screen.
Title: Re: Wifi android device synching
Post by: Steven on February 15, 2019, 10:02:51 PM
Here's the new issue:

Feb 15, 2019 12:39:52 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: ReceiveFile: /storage/0CB5-7600/Music/Balam Acab/Wander   Wonder/06 - Oh, Why.mp3.part (Permission denied)
My external sd card works fine but after googling this issue, it appears the permissions denied can be an issue for some sd cards. There are a couple of suggested solutions so i will do that tomorrow but i wont be able to test it to confirm it works
Title: Re: Wifi android device synching
Post by: zkhcohen on February 15, 2019, 10:14:39 PM
Here's the new issue:

Feb 15, 2019 12:39:52 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: ReceiveFile: /storage/0CB5-7600/Music/Balam Acab/Wander   Wonder/06 - Oh, Why.mp3.part (Permission denied)
My external sd card works fine but after googling this issue, it appears the permissions denied can be an issue for some sd cards. There are a couple of suggested solutions so i will do that tomorrow but i wont be able to test it to confirm it works

Here's my model of SD card:

https://www.amazon.com/SanDisk-Extreme-microSDXC-UHS-I-Adapter/dp/B01HU3Q6S4

I'll test any changes you make!
Title: Re: Wifi android device synching
Post by: zkhcohen on February 15, 2019, 10:57:56 PM
With the new changes it doesn't seem to matter if I select SD Card or Internal Storage... it will try to sync either. At the moment, as you know, it only syncs to my Internal Storage properly. I'm guessing if I tried to run SD card sync after syncing some files to internal storage, it would be confused about what to sync.

I also experienced a weird timeout after switching sync locations twice:

Feb 15, 2019 2:50:43 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Looper: Read timed out

Now the app is crashing as soon as I hit "sync" after opening it. I sent the crash reports -- not sure if you or Google Play devs see those.

Edit: Restarting my phone didn't fix it. Unchecking Preview Changes allowed me to click "Sync Now" once (and it appeared to start syncing to internal storage), but once I cancelled it, I can't restart it:

Feb 15, 2019 2:58:39 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Looper: malformed input around byte 2
Feb 15, 2019 2:58:52 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Looper: Read timed out

Edit 2: On the next restart, the sync options disappeared, but I was able to start the sync successfully. After stopping and restarting the sync, I experience the same issue - it times out. Preview Changes is a guaranteed app crash now. Something has permanently changed. I'll hold off on reinstalling the app in case you want me to export something for diagnostic purposes.

Edit 3: Another note - enabling Wifi Sync in MusicBee seems to require a restart of the app AND desktop program in order for the phone to detect it. This might be related to other people's issues. Disabling wifi sync causes MusicBee to immediately stop listening on port 27304. If this is by-design, there should probably be a prompt to tell you to restart after making this change.

Edit 4: Found errors in MusicBee Desktop logs. Sent via PM.
Title: Re: Wifi android device synching
Post by: Steven on February 16, 2019, 09:42:34 AM
Here's the new issue:

Feb 15, 2019 12:39:52 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: ReceiveFile: /storage/0CB5-7600/Music/Balam Acab/Wander   Wonder/06 - Oh, Why.mp3.part (Permission denied)
could you try with "preview changes" unticked
Title: Re: Wifi android device synching
Post by: Steven on February 16, 2019, 10:16:07 AM
Also everyone, could you update to the latest patch version as i see one bit of code where its still trying to access the device via MTP rather than Wifi and that can cause locking up

https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 16, 2019, 11:57:54 AM
Also everyone, could you update to the latest patch version as i see one bit of code where its still trying to access the device via MTP rather than Wifi and that can cause locking up

https://getmusicbee.com/patches/MusicBee33_Patched.zip

REPORT

Checked all sync settings - worked fine with CABLE

Local Home Broadband
Media Centre laptop running Microsoft 10 Defender

Updated to latest patch
MB Portable v3.3.6986 - Error Log =

16/02/2019 10:34:51 - WPD:The library, drive, or media pool is empty. (Exception from HRESULT: 0x800710D2)

Galaxy J5 SM-J500FN  Android 6.0.1

Device storage/Download/ MusicBeeWifiSyncErrorLog.txt

Code
16 Feb 2019 11:47:35 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: Probing 192.168.1.
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.65
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.71
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.254
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.94
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.67
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.65
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.65 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfom
INFO: Ping: 192.168.1.71
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.71 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.254
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.254 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.94
16 Feb 2019 11:47:39 com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.94 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)
16 Feb 2019 11:47:39 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.67
16 Feb 2019 11:47:39 com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Ping: failed to connect to /192.168.1.67 (port 27304) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused)

Title: Re: Wifi android device synching
Post by: Steven on February 16, 2019, 01:43:14 PM
REPORT
as i mentioned yesterday, i haven't looked as yet into the connection refused issue. In the interim, make sure you have "wifi sync" ticked in the device preferences, MB is running and also that you have responded to the windows firewall prompt to allow MB access to your private network (or any other firewall software you might be using)
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 16, 2019, 02:54:04 PM
as i mentioned yesterday, i haven't looked as yet into the connection refused issue. In the interim, make sure you have "wifi sync" ticked in the device preferences, MB is running and also that you have responded to the windows firewall prompt to allow MB access to your private network (or any other firewall software you might be using)

REPORT UPDATE FYI

Updated latest patch MB Portable v3.3.6986 = YES
Updated Sync App from Play Store? = YES
MusicBee running? = YES
Wifi sync ticked in device prefs? = YES

Not seen any "windows firewall prompts", however TWO instances of 'musicbee.exe' have been ALLOWED on Private AND Public networks.
No other AV or Malaware Bytes software installed..
Error log - similar to earlier report..

Hope this helps - Freddy
Title: Re: Wifi android device synching
Post by: Steven on February 16, 2019, 03:33:38 PM
REPORT UPDATE FYI
use this version:
https://getmusicbee.com/patches/MusicBee33_Patched.zip

and after you attempt to sync from your phone, check the musicbee error log (help/ support/ view error log)
if you dont see any ip address (eg. 192.1.243.2) at the end of the log then something is blocking access to the musicbee server
Title: Re: Wifi android device synching
Post by: phred on February 16, 2019, 03:57:19 PM
REPORT UPDATE FYI
use this version:
https://getmusicbee.com/patches/MusicBee33_Patched.zip
I assume this patch isn't to address the 'connection refused' issue, correct?
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 16, 2019, 04:07:37 PM
REPORT UPDATE FYI
use this version:
https://getmusicbee.com/patches/MusicBee33_Patched.zip

and after you attempt to sync from your phone, check the musicbee error log (help/ support/ view error log)
if you dont see any ip address (eg. 192.1.243.2) at the end of the log then something is blocking access to the musicbee server

UPDATE
Nothing has changed after patch! Same Errors on Android and nothing new in the MB error log!
Maybe it's because I'm running 'Music Bee Remote', 'Unified Remote' and ' RemotePC (which I need) on the Media Server PC and there's a clash with Ports?
I'll do some differential diagnosis....
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 16, 2019, 04:15:16 PM
I think it's just a Debug version...
Title: Re: Wifi android device synching
Post by: Steven on February 16, 2019, 04:27:02 PM
UPDATE
Nothing has changed after patch! Same Errors on Android and nothing new in the MB error log!
Maybe it's because I'm running 'Music Bee Remote', 'Unified Remote' and ' RemotePC (which I need) on the Media Server PC and there's a clash with Ports?
from the windows search bar, enter: cmd
then: ipconfig
the ip4v address value is your computer and should be one of the addresses MB is probing in the android log
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 16, 2019, 05:35:41 PM
windows search bar, enter: cmd
then: ipconfig
the ip4v address value is your computer and should be one of the addresses MB is probing in the android log

I can confirm that the ip4v address is 192.168.1.73 and BOTH 'Music Bee Remote' using 192.168.1.73.3000 and 'Unified Remote'  is 192.168.1.73.9512

..and according to the Android Error, that did not include 192.168.1.73..
Code
16 Feb 2019 11:47:35 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: Probing 192.168.1.
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.65
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.71
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.254
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.94
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: 192.168.1.67
16 Feb 2019 11:47:38 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.65

Hope this helps!
Title: Re: Wifi android device synching
Post by: phred on February 16, 2019, 05:50:59 PM
Hmmm ... Freddy Barker's error log exhibits the same issue I posted a few pages back (https://getmusicbee.com/forum/index.php?topic=27681.msg155225#msg155225) in that it's pinging every device on the network -except- the one it needs to reach.
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 16, 2019, 06:03:04 PM
Hmmm ... Freddy Barker's error log exhibits the same issue I posted a few pages back (https://getmusicbee.com/forum/index.php?topic=27681.msg155225#msg155225) in that it's pinging every device on the network -except- the one it needs to reach.

A logical observation @phred - however, if I close the two remote server programs running on the Win PC, and thus releasing the ip4v mentioned 192.168.1.73, and re-run the MB Wifi Sync App, then the error log is empty??
Title: Re: Wifi android device synching
Post by: phred on February 16, 2019, 06:40:14 PM
What I find odd is that from my phone there's no issue with the WiFi sync. But from the DAP it's hitting all IPs in the network except the one it needs. And one of the other IPs does have two servers running on it with non-conflicting ports. But the PC that's not being seen by the sync app isn't running any server (other than MB.)
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 16, 2019, 07:12:21 PM
I wish I could be of more help other than just Alpha testing. The last time I wrote any sort of computer code, was on a 48k Sinclair Spectrum circa 1980.
I can read and carry out simple instructions though -  ;D

The DAP runs Android too right?  - Freddy
Title: Re: Wifi android device synching
Post by: Steven on February 16, 2019, 07:15:39 PM
i have made an attempt to address the server not found issue. Send me the android log if it still doesnt work
The version is 0.1.3 and it will be an hour or two before its available on the store

Also a reminder to update to the latest v3.3 patch which also fixes some issues
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 16, 2019, 07:26:37 PM
'@Steven
Any way to send the App file(s) APK? directly to testers in order to bypass the slightly annoying Google Play Store delay?
Title: Re: Wifi android device synching
Post by: Steven on February 16, 2019, 08:12:51 PM
'@Steven
Any way to send the App file(s) APK? directly to testers in order to bypass the slightly annoying Google Play Store delay?
sure - i have added yourself and phred to the internal test list which is supposed to take minutes to be available:
https://play.google.com/apps/internaltest/4700978781087552506
Title: Re: Wifi android device synching
Post by: phred on February 16, 2019, 08:22:13 PM
i have made an attempt to address the server not found issue. Send me the android log if it still doesnt work
Good news, bad news.
The good is that my X5 is now seeing and connecting to MB.
The bad is that it says 'no changes required' after doing 'preview changes' / 'sync now'
I know there are over one hundred tracks in MB's library that are not on the X5, so I will connect via USB and see how many tracks are waiting to be synced and see if I notice anything else that might be causing this.

sure - i have added yourself and phred to the internal test list which is supposed to take minutes to be available:
https://play.google.com/apps/internaltest/4700978781087552506
Thanks for this. I had already downloaded the new build. Actually, since I'm updating two devices, it's easier for me to use a web browser on my PC when I can download the app to both devices without having to swap out cards. (While the X5 has WiFi, I haven't, and probably won't) install an email client on it.
Title: Re: Wifi android device synching
Post by: phred on February 16, 2019, 08:28:43 PM
There are four error log files on the X5, but three of the have zero bytes. The one with data:
Code
Feb 16, 2019 3:09:12 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: Probing 192.168.1., exclude=182
Feb 16, 2019 3:09:15 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: 192.168.1.101
Feb 16, 2019 3:09:15 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Ping: MusicBeeWifiSyncServer/1.0

MB wired to the X5 is showing 220gb to be copied to the device, along with a number of deletions. This large number doesn't surprise me as not only have I been adding new CDs to the library, I've been updating and changing tags, along with redoing the volume analysis.

So there's no reason I can see that would cause the WiFi sync to say there are no changes required.
Title: Re: Wifi android device synching
Post by: Steven on February 16, 2019, 08:32:29 PM
can you try again, and if it still says none, i guess i can release a debug version on the internal testing channel
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 16, 2019, 08:33:57 PM
'@Steven
Any way to send the App file(s) APK? directly to testers in order to bypass the slightly annoying Google Play Store delay?
sure - i have added yourself and phred to the internal test list which is supposed to take minutes to be available:
https://play.google.com/apps/internaltest/4700978781087552506

Awesomeness, I joined "The internal test program", restarted the device, & was notified of an update - took 2 minutes!

Eureka!
Made some progress! Got past the original error, unfortunately encountered another problem:
 "ERROR MESSAGE - The storage is marked as read-only and cannot be synchronised"
Nothing in the Android error log this time..

Latest patch MB Portable v3.3.6986 - Error Log..

16/02/2019 20:23:18 - WifiSync: 192.168.1.88
16/02/2019 20:23:18 - WifiSync: 192.168.1.88
16/02/2019 20:23:25 - WifiSync: 192.168.1.88
16/02/2019 20:23:25 - SM-J500FN\Card\ not mounted: READONLY
16/02/2019 20:28:57 - WifiSync: 192.168.1.88
16/02/2019 20:28:57 - SM-J500FN\Card\ not mounted: READONLY
16/02/2019 20:29:42 - WifiSync: 192.168.1.88
16/02/2019 20:29:42 - SM-J500FN\Card\ not mounted: READONLY
Title: Re: Wifi android device synching
Post by: phred on February 16, 2019, 08:38:15 PM
can you try again, and if it still says none, i guess i can release a debug version on the internal testing channel
Tried it four times, all with the same result: no changes required. Also four files in the error log all with zero bytes.
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 16, 2019, 08:42:49 PM
Additionally..

"ERROR MESSAGE - The storage is marked as read-only and cannot be synchronised"

Obviously(?) the SD Card is NOT read-only as the message indicates, as it was sync'd ok with 30 tracks a while ok but via cable - there ALWAYS seems to be some fiddling required with Apps writing to SD cards...

Freddy
Title: Re: Wifi android device synching
Post by: Steven on February 16, 2019, 08:44:40 PM
can you try again, and if it still says none, i guess i can release a debug version on the internal testing channel
Tried it four times, all with the same result: no changes required. Also four files in the error log all with zero bytes.
are there any errors in the MB error log?

also, run this patch version which will record the number of changes on the musicbee side in the error log
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: phred on February 16, 2019, 09:00:24 PM
are there any errors in the MB error log?
Nothing other than the IP. One for each time I've tried to sync.
2/16/2019 3:41:48 PM - WifiSync: 192.168.1.183
I don't know if it will make a difference, but I'm about to change the DHCP IP on the X5 to a static IP.

Plus about 45 entries like this:
2/16/2019 3:41:18 PM - Q:\Eric Clapton\I Still Do\Eric Clapton - 9 - I Dreamed I Saw St. Augustine.mp3:refresh:The parameter is incorrect. [Q:\Eric Clapton\I Still Do\]
All stating the parameter is incorrect. But I've seen this before and a) it doesn't affect playback, and b) I'm fairly certain it has nothing to do with the WiFi sync.
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 16, 2019, 09:03:46 PM
Just tried to sync, with "Preview changes" - this time I switched from "Removable SD Card" to "Internal Storage", all when as expected and the copying of tracks proceeding quicker than with cable!

Nice one @Steven & @Phred
Thanks for your patience and expertise, office closed now, until tomorrow  :D
Title: Re: Wifi android device synching
Post by: Steven on February 16, 2019, 09:04:54 PM
Additionally..

"ERROR MESSAGE - The storage is marked as read-only and cannot be synchronised"

Obviously(?) the SD Card is NOT read-only as the message indicates, as it was sync'd ok with 30 tracks a while ok but via cable - there ALWAYS seems to be some fiddling required with Apps writing to SD cards...
i have removed the read-only check on the internal testers channel but you might find it fails when writing new files
Title: Re: Wifi android device synching
Post by: Steven on February 16, 2019, 09:06:01 PM
@phred, did you see this?

also, run this patch version which will record the number of changes on the musicbee side in the error log
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 16, 2019, 09:08:57 PM
@phred, did you see this?

also, run this patch version which will record the number of changes on the musicbee side in the error log
https://getmusicbee.com/patches/MusicBee33_Patched.zip

Do I grab this patch too??
Title: Re: Wifi android device synching
Post by: phred on February 16, 2019, 09:12:19 PM
I don't know if it will make a difference, but I'm about to change the DHCP IP on the X5 to a static IP.
Changed the IP to static and there's no change in the result. Changed is confirmed by looking at the error log from MB.
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 16, 2019, 09:21:56 PM
Just tried to sync, with "Preview changes" - this time I switched from "Removable SD Card" to "Internal Storage", all when as expected and the copying of tracks proceeding quicker than with cable!

Nice one @Steven & @Phred
Thanks for your patience and expertise, office closed now, until tomorrow  :D

Couldn't resist one last try syncing to SD card - failed the 'read-only' but this time was an Error log entry on the Android:

16 Feb 2019 21:15:03 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Start: Storage is marked as read-only: /storage/B2D4-1CF9
Title: Re: Wifi android device synching
Post by: phred on February 16, 2019, 09:29:02 PM
@phred, did you see this?

also, run this patch version which will record the number of changes on the musicbee side in the error log
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Apparently I missed that patch.
Here's the latest error log:
2/16/2019 4:26:44 PM - WifiSync: 192.168.1.117
2/16/2019 4:26:47 PM - ShowPreviewResults=0

Title: Re: Wifi android device synching
Post by: Steven on February 16, 2019, 09:30:30 PM
Couldn't resist one last try syncing to SD card - failed the 'read-only' but this time was an Error log entry on the Android:

16 Feb 2019 21:15:03 com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: Start: Storage is marked as read-only: /storage/B2D4-1CF9
you are not using the latest internal test version (0.1.4)
Title: Re: Wifi android device synching
Post by: Steven on February 16, 2019, 09:37:32 PM
Apparently I missed that patch.
Here's the latest error log:
2/16/2019 4:26:44 PM - WifiSync: 192.168.1.117
2/16/2019 4:26:47 PM - ShowPreviewResults=0
I still have your settings file - is the device one of these:
  <DeviceId>X5_SD1</DeviceId>
  <Name>X5_SD1</Name>
  <RootPath>V:\</RootPath>
  <DeviceType>3</DeviceType>

  <DeviceId>X5</DeviceId>
  <Name>X5</Name>
  <RootPath>T:\</RootPath>
  <DeviceType>3</DeviceType>


if yes, they are both configured as USB devices and thats probably why its not working
Title: Re: Wifi android device synching
Post by: phred on February 16, 2019, 09:52:45 PM
I still have your settings file - is the device one of these:
  <DeviceId>X5_SD1</DeviceId>
  <Name>X5_SD1</Name>
  <RootPath>V:\</RootPath>
  <DeviceType>3</DeviceType>

  <DeviceId>X5</DeviceId>
  <Name>X5</Name>
  <RootPath>T:\</RootPath>
  <DeviceType>3</DeviceType>

if yes, they are both configured as USB devices and thats probably why its not working
Yes, they're both the FiiO X5. The first (X5_SD1, path V:) is the SD card that contains the music files and playlists. The other (X5, path T:) is the internal memory.

So how do I remove the USB configuration? I don't think deleting the device from the Devices tab will do it as a device needs to be connected in order to set it up the first time.

Hmmm ... in Device Preferences I see a new device 'Removable Disk'. If this is the X5, how would I point the WiFi to it?
Title: Re: Wifi android device synching
Post by: phred on February 16, 2019, 10:00:10 PM
STOP THE PRESSES!!

I just did a power-cycle on the X5 and told it to preview changes and it not only connected to SD_1, but it showed a lot of files to be synced. There are seemingly hundreds of files to sync (which would be correct) but I don't have the time right now to let it go. I will try it again in an hour or two and report back. But the bottom line right now is for you (Steven) to do nothing else. Don't create a debug version.
Title: Re: Wifi android device synching
Post by: phred on February 17, 2019, 12:54:52 AM
Apparently I spoke too soon. (Don't you hate when that happens?)

The preview show a number of songs to be transferred to the X5 and I started the sync and walked away. When I came back a short while later, the sync had stopped with the error message "A non-recoverable error occurred during the synchronization process. Restart the app and try again." Which I did, but got the same error. Restarted the X5 and attempted again only to be told that it couldn't find the server. Closed and relaunched MB and started the sync and it started working. After about ten minutes I got the non-recoverable error again.

Here are the error logs starting with the most recent:

Code
Feb 16, 2019 7:45:14 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: ReceiveFile: Error reading file
Feb 16, 2019 7:45:15 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Looper: bad byte at 1

Code
Feb 16, 2019 7:26:05 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Looper: failed to connect to /192.168.1.101 (port 27304) after 2500ms
Feb 16, 2019 7:26:05 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: Probing 192.168.1., exclude=116
Feb 16, 2019 7:45:14 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: ReceiveFile: Error reading file
Feb 16, 2019 7:45:15 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Looper: bad byte at 1

Code
Feb 16, 2019 7:25:57 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Looper: failed to connect to /192.168.1.101 (port 27304) after 2500ms
Feb 16, 2019 7:25:57 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: Probing 192.168.1., exclude=116
Feb 16, 2019 7:26:05 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Looper: failed to connect to /192.168.1.101 (port 27304) after 2500ms
Feb 16, 2019 7:26:05 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: FindCandidate: Probing 192.168.1., exclude=116
Feb 16, 2019 7:45:14 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: ReceiveFile: Error reading file
Feb 16, 2019 7:45:15 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Looper: bad byte at 1

Does "bad byte at 1" indicate a corrupt mp3 file?
Title: Re: Wifi android device synching
Post by: railfan-eric28 on February 17, 2019, 03:32:50 AM
I still get server not found.   I tried making a new entry in my router firewall and use the port number someone said they used several pages back.   Not sure what I'm missing.   
Title: Re: Wifi android device synching
Post by: phred on February 17, 2019, 03:47:40 AM
I still get server not found.   I tried making a new entry in my router firewall and use the port number someone said they used several pages back.   Not sure what I'm missing.
Make sure you're using the latest MB patch as Steven made a few changes. The link is in my sig or in Reply #118 in this thread. Also update the WiFi Sync app as (again) Steven has updated it. New version as of this writing is 0.1.4 although I don't see any version number on the Play store nor in the app. But update it.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on February 17, 2019, 03:50:26 AM
I still get server not found.   I tried making a new entry in my router firewall and use the port number someone said they used several pages back.   Not sure what I'm missing.
Make sure you're using the latest MB patch as Steven made a few changes. The link is in my sig or in Reply #118 in this thread. Also update the WiFi Sync app as (again) Steven has updated it. New version as of this writing is 0.1.4 although I don't see any version number on the Play store nor in the app. But update it.

I did use the newest patch before posting.   I don't know if i have the newest app update.   There's no settings or info within the app itself to see what version it is or what port number it uses.   I still can't get it to work after pausing my antivirus.   Musicbee is already allowed on the windows firewall list. 
Title: Re: Wifi android device synching
Post by: Steven on February 17, 2019, 09:20:43 AM
on your phone goto
Settings/ Apps and Notifications/ MusicBee Wifi Sync and scroll to the bottom which will show the version number
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 17, 2019, 10:20:07 AM
on your phone goto
Settings/ Apps and Notifications/ MusicBee Wifi Sync and scroll to the bottom which will show the version number

Slightly different on my older Android devices.

Settings / Application Manager / Music Bee WiFi Sync /  App info

If possible and for clarity when running App, can the version number be shown on App screen?

(I don't have auto-updates turned on)
Title: Re: Wifi android device synching
Post by: Steven on February 17, 2019, 10:56:45 AM
Does "bad byte at 1" indicate a corrupt mp3 file?
could you run this debug version of MusicBee
https://www.mediafire.com/file/xs6pqgfp6mnmj2w/MusicBeeDebugSockets.zip/file

it will potentially write a lot of info to the error log, so i will need a zip of the entire file
i will probably also need to create an android debug version depending on the info
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 17, 2019, 01:40:58 PM
REPORT 17 FEB
Updated latest patch MB Portable v3.3.6986
Updated Play Store Sync App to v0.1.4

WiFi sync to Internal Memory - PERFECT and fast.

WiFi sync to SD Card - Error Message:-

"A non-recoverable error occurred during the synchronization process.  Restart the app and try again"

Android Error log = 1 entry:
17 Feb 2019 13:23:19 com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: ReceiveFile: /storage/B2D4-1CF9/Music/The Beatles/Sgt. Pepper's Lonely Hearts Club Band/1-11 - Good Morning Good Morning.m4a.part: open failed: EACCES (Permission denied)

MB Error log - sending via PM ??
Title: Re: Wifi android device synching
Post by: phred on February 17, 2019, 01:46:47 PM
could you run this debug version of MusicBee
https://www.mediafire.com/file/xs6pqgfp6mnmj2w/MusicBeeDebugSockets.zip/file

it will potentially write a lot of info to the error log, so i will need a zip of the entire file
i will probably also need to create an android debug version depending on the info
@Steven- first off, I apologize to you as upon further inspection, I was running 0.1.3 on both devices. I received no notification about 0.1.4 through the 'internal' list. However, I now have it on both and am getting ready to try again, and with the debug MB version installed. I should also note that from yesterday's MB log, I see the following entry:
Code
2/16/2019 7:45:22 PM - 10.0.14393.0 - 3.3.6986.37519 P - WifiSyncAbort: Unable to write data to the transport connection: An established connection was aborted by the software in your host machine.

About to sync the X5 and will report back.
Title: Re: Wifi android device synching
Post by: Steven on February 17, 2019, 01:57:25 PM
SEVERE: ReceiveFile: /storage/B2D4-1CF9/Music/The Beatles/Sgt. Pepper's Lonely Hearts Club Band/1-11 - Good Morning Good Morning.m4a.part: open failed: EACCES (Permission denied)
in the android Settings/ Apps & Notifications does MB Wifi Sync have Storage permissions enabled
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 17, 2019, 02:23:48 PM
SEVERE: ReceiveFile: /storage/B2D4-1CF9/Music/The Beatles/Sgt. Pepper's Lonely Hearts Club Band/1-11 - Good Morning Good Morning.m4a.part: open failed: EACCES (Permission denied)
in the android Settings/ Apps & Notifications does MB Wifi Sync have Storage permissions enabled

In Applications Manager / Music Bee WiFi Sync / Permissions / Storage = YES
Title: Re: Wifi android device synching
Post by: Steven on February 17, 2019, 02:52:12 PM
Regarding the issues with permissions on external sd cards, i think i will need to use a different api for file handling so it will probably be a few days before progress is made on that front. I am a bit baffled why it all works fine for me on 2 different devices though - maybe something to do with developer access to the device.
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 17, 2019, 02:55:42 PM
Regarding the issues with permissions on external sd cards, i think i will need to use a different api for file handling so it will probably be a few days before progress is made on that front. I am a bit baffled why it all works fine for me on 2 different devices though - maybe something to do with developer access to the device.

You're so close - don't despair..
There is nearly always a bit of faff for any app regarding permissions, even when changing to a different MicroSD Card using the same app on the same phone AND using the same SD Card on another phone!
Title: Re: Wifi android device synching
Post by: Steven on February 17, 2019, 03:28:39 PM
does anyone have experience with other apps that write to shared folders (such as music or photos) on an external sd card?
I was wondering, do you actually need to select the sd card from this dialog?

https://i.stack.imgur.com/8zjcC.png
Title: Re: Wifi android device synching
Post by: frankz on February 17, 2019, 03:35:32 PM
Yes, I have been prompted to (even taken to) that screen to select the card on installing music apps (I just went through a bunch, so it's fresh in my mind). 
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 17, 2019, 03:55:07 PM
SEVERE: ReceiveFile: /storage/B2D4-1CF9/Music/The Beatles/Sgt. Pepper's Lonely Hearts Club Band/1-11 - Good Morning Good Morning.m4a.part: open failed: EACCES (Permission denied)
in the android Settings/ Apps & Notifications does MB Wifi Sync have Storage permissions enabled

In Applications Manager / Music Bee WiFi Sync / Permissions / Storage = YES

Looking at an old Music App - the MicroSD Card has the same ID number "storage/B2D4-1CF9/Music" but it seems to be asking for access to Card AND Folders...
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 17, 2019, 04:00:22 PM
does anyone have experience with other apps that write to shared folders (such as music or photos) on an external sd card?
I was wondering, do you actually need to select the sd card from this dialog?

https://i.stack.imgur.com/8zjcC.png


YES -  Always and it hardly ever seems to work first time !!
Title: Re: Wifi android device synching
Post by: phred on February 17, 2019, 04:11:00 PM
A successful sync!! I don't really know how long it took as I had to leave for a while.

@Steven- I will PM a ZIP of MB's error log in a few minutes. The X5 error log is empty - zero bytes.
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 17, 2019, 04:17:00 PM
A successful sync!! I don't really know how long it took as I had to leave for a while.

@Steven- I will PM a ZIP of MB's error log in a few minutes. The X5 error log is empty - zero bytes.

Result!
Title: Re: Wifi android device synching
Post by: phred on February 17, 2019, 04:30:03 PM
@Steven-

I have removed the debug version and repatched with 3.3.6986. I deleted one directory from the X5 and launched a sync, with previewed and synced the files in that 'missing' directory successfully.
Title: Re: Wifi android device synching
Post by: Steven on February 17, 2019, 04:33:31 PM
@Steven-

I have removed the debug version and repatched with 3.3.6986. I deleted one directory from the X5 and launched a sync, with previewed and synced the files in that 'missing' directory successfully.
so you are able to write to an external sd card without the permissions error. What android version is the X5 on?

Also there isnt anything in the log you sent that sheds any light on the bad byte error
Title: Re: Wifi android device synching
Post by: phred on February 17, 2019, 04:57:06 PM
so you are able to write to an external sd card without the permissions error. What android version is the X5 on?

Also there isnt anything in the log you sent that sheds any light on the bad byte error
(I thought I answered this, but don't see the reply anywhere.)

Correct, I saw no sign of permissions error during the huge and successful sync. The X5 uses Android 5.1.1 and the sync wrote to an external SanDisk 400gb micro SD card. The device can take two external cards, but I only use one.

Yes, I looked through the MB log for the bad byte error and didn't see anything.

The only thing remaining for me, and off-topic, so when you have time, your suggestions/thoughts on the 'incorrect parameter' entries in the MB log and that I mentioned in the PM.

I've got a couple more CDs to RIP and add to the library today, and will follow that with more syncing. I'll report back if something isn't working, but right now things look great.

Thanks.
Title: Re: Wifi android device synching
Post by: phred on February 17, 2019, 07:59:20 PM
Subsequent transfers via WiFi on both devices are working as expected.

One negative thing I noticed, and maybe this simply hasn't been implemented yet, tracks are not being deleted. I transferred a 27 track CD and all was well. I realized that two of those tracks didn't belong to that CD, so I deleted them from the ripped album in MB and then resynced. Both of the 'deleted' tracks are still present on the X5. MB's error log and WiFi app error log shows nothing to indicate and issue.
Title: Re: Wifi android device synching
Post by: Steven on February 17, 2019, 08:22:13 PM
Both of the 'deleted' tracks are still present on the X5. MB's error log and WiFi app error log shows nothing to indicate and issue.
it should be working. do you have "delete files" ticked in your sync settings for the X5 ?
Note also that MB is matching the sync settings against the device name, so will only find the device in MB named "X5"
Title: Re: Wifi android device synching
Post by: psychoadept on February 17, 2019, 08:56:13 PM
Yesterday I tried to set everything up, made sure I was on the current MB and all, but kept getting a message (on the phone) that it couldn't find the server. Had to leave before I could troubleshoot much.

Today, I tried it again and it connected. No idea what changed. I started a sync and could see the progress on both the phone and the computer. Then, not long into it, I got a message (again on the phone) that there was an "unrecoverable error". Since then, I just get the message again that it can't find the server.  I've tried updating MB again but that didn't help.

Phone error log here: https://drive.google.com/file/d/1XcFuidrpoOLOInt26xx0fclMfu04pUaN/view?usp=sharing

The MusicBee error log has a bunch of errors that seem to be related to deleting things. This is the last one (which is a little longer):

Code
2/17/2019 1:43:48 PM - 10.0.17763.0 - 3.3.6986.27856 - System.Exception: delete SM-G950U\Card\MusicBee\Music\B\Billy J Kramer & The Dakotas\1964 - Little Children\01 Little Children.MP3 ---> #=zMzJvP0fc8uTB5HA$B7onv6aXcmY_: 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. ---> System.IO.IOException: 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. ---> System.Net.Sockets.SocketException: 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
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count)
   at #=z53KzvbSw7$Dh6kjjUwGjU7WJ1eTz.#=zxRyJyho=()
   --- End of inner exception stack trace ---
   at #=z53KzvbSw7$Dh6kjjUwGjU7WJ1eTz.#=zxRyJyho=()
   at #=z53KzvbSw7$Dh6kjjUwGjU7WJ1eTz.#=zV5qJFh0=(#=z1eOxCjD1iRUQqmZ2Hw== #=zzzPxjjQ=, Boolean #=zfuEfpdJI2zo1I9VkeQ==)
   at #=z53KzvbSw7$Dh6kjjUwGjU7WJ1eTz.#=zV5qJFh0=(#=zRI3R4rQXuPdOxopMoblAvA8= #=zfEkmJK4=, Boolean #=zfuEfpdJI2zo1I9VkeQ==, Boolean #=zf7zd9qCHZQPq)
   at #=z2j$HbXgKXKJK7IHIAPtp90k=.#=zQAifV1u$xxjZBAgaUi0LZzY0eO5n(#=zRI3R4rQXuPdOxopMoblAvA8= #=zeOK0pMk=, Object #=zc__S86IeT0ME)
   --- End of inner exception stack trace ---


Update: I dug around in our router settings and discovered that somehow my computer's MAC address was attached to a profile for an iPhone that belonged to somebody who stayed here briefly a year ago. *shrug* I reset the network map and so far it's staying connected this time. But I'm still getting the unrecoverable error message right after I start a sync. Now MusicBee has error messages like this:

Code
2/17/2019 3:26:05 PM - Copy C:\Users\scampbll\Music\Music\C\C2C\2012 - Tetra - 07 Happy.mp3 to SM-G950U\Card\MusicBee\Music\C\C2C\2012 - Tetra - 07 Happy.mp3
2/17/2019 3:26:05 PM - 10.0.17763.0 - 3.3.6987.19538 - WifiSyncAbort: Found invalid data while decoding.

2/17/2019 3:26:05 PM - Copy C:\Users\scampbll\Music\Music\G\Glen Campbell\1977 - Southern Nights - 01 Southern Nights.MP3 to SM-G950U\Card\MusicBee\Music\G\Glen Campbell\1977 - Southern Nights - 01 Southern Nights.MP3
2/17/2019 3:26:05 PM - 10.0.17763.0 - 3.3.6987.19538 - WifiSyncAbort: Unable to write data to the transport connection: An established connection was aborted by the software in your host machine.

The phone error log says something about permission denied... I checked the app permissions and it has read/write access for the SD card.
Title: Re: Wifi android device synching
Post by: Steven on February 17, 2019, 09:51:47 PM
@psychoadept
Apart from phred and myself, i think most people are having permission issues on external sd cards. I will need to implement a different api and it will take some time as its quite difficult navigating around the mess that google has implemented for sd card handling
Title: Re: Wifi android device synching
Post by: phred on February 17, 2019, 10:14:15 PM
it should be working. do you have "delete files" ticked in your sync settings for the X5 ?
Note also that MB is matching the sync settings against the device name, so will only find the device in MB named "X5"
To be honest, it's a little difficult to tell which profile is being used. I have "Removable Disk" which is new since I started testing WiFi and has the storage path set to U:\. I have "X5" which uses storage path T:\, and there is "X5_SD1" which is the label of the SD card and has a storage path of V:\. All three of them are set to delete files. T:\ and V:\ represent the internal and external (SD card) respectively when the X5 is connected via USB.

I'm going to delete "Removable Disk" and do some more testing. Overall I'm pretty happy with how this is working. I just hope the other users can get squared away soon.
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 17, 2019, 10:19:54 PM
@psychoadept
Apart from phred and myself, i think most people are having permission issues on external sd cards. I will need to implement a different api and it will take some time as its quite difficult navigating around the mess that google has implemented for sd card handling

May it be worth contacting Justin at JRT Studios for a bit of insider info?

http://www.jrtstudio.com/contact-us
Title: Re: Wifi android device synching
Post by: phred on February 17, 2019, 10:36:52 PM
Today, I tried it again and it connected. No idea what changed. I started a sync and could see the progress on both the phone and the computer. Then, not long into it, I got a message (again on the phone) that there was an "unrecoverable error". Since then, I just get the message again that it can't find the server.  I've tried updating MB again but that didn't help.
@psychoadept-
From the "SM-G950U\Card" in your error message, I assume you're using a Samsung Galaxy S8, correct?
- Double-check the version number of the app. It should be 0.1.4. Settings > Apps > MusicBee Wifi Sync >scroll to the very bottom.
- While there tap on 'Permissions' and make sure 'storage' is turned on. (I know you already checked, but humor me please.)
- Next time the sync fails, exit and restart MB.

I don't think that will get you going, but it's worth a shot. Those are the steps I took when troubleshooting the S8. Which has worked perfectly.
Title: Re: Wifi android device synching
Post by: phred on February 17, 2019, 10:59:29 PM
it should be working. do you have "delete files" ticked in your sync settings for the X5 ?
Note also that MB is matching the sync settings against the device name, so will only find the device in MB named "X5"
To be honest, it's a little difficult to tell which profile is being used. I have "Removable Disk" which is new since I started testing WiFi and has the storage path set to U:\. I have "X5" which uses storage path T:\, and there is "X5_SD1" which is the label of the SD card and has a storage path of V:\. All three of them are set to delete files. T:\ and V:\ represent the internal and external (SD card) respectively when the X5 is connected via USB.

I'm going to delete "Removable Disk" and do some more testing. Overall I'm pretty happy with how this is working. I just hope the other users can get squared away soon.
I deleted the "Removable Disk" profile and now the sync wants to delete all 27,000+ tracks from the X5 which I did not allow. I now know which profile belongs (belonged) to the X5 when using WiFi. I have rebooted the X5 and have restarted MB and I can't get the "Removable Disk" profile to be recreated. I tried reinstalling it (without uninstalling) and the Play Store tells me I have no eligible devices.

I took the APK from the S8 and installed it on the X5 and it still won't create a profile. I uninstalled if from the X5 and reinstalled it. Still no profile. I do not want to delete 27k+ files and have to (or not be able to) resync them.

Any suggestions?
Title: Re: Wifi android device synching
Post by: psychoadept on February 18, 2019, 01:56:55 AM
Today, I tried it again and it connected. No idea what changed. I started a sync and could see the progress on both the phone and the computer. Then, not long into it, I got a message (again on the phone) that there was an "unrecoverable error". Since then, I just get the message again that it can't find the server.  I've tried updating MB again but that didn't help.
@psychoadept-
From the "SM-G950U\Card" in your error message, I assume you're using a Samsung Galaxy S8, correct?
- Double-check the version number of the app. It should be 0.1.4. Settings > Apps > MusicBee Wifi Sync >scroll to the very bottom.
- While there tap on 'Permissions' and make sure 'storage' is turned on. (I know you already checked, but humor me please.)
- Next time the sync fails, exit and restart MB.

I don't think that will get you going, but it's worth a shot. Those are the steps I took when troubleshooting the S8. Which has worked perfectly.

None of that worked. :( I even tried uninstalling and reinstalling the app, but that has put me back at the "server not found" message.

Regarding the permissions, it looks like some recent Android update changed how write permissions vs read permissions are handled. It was deleting ok, but fails as soon as it tries to copy a file.

Meanwhile, trying to get it to just connect again...


Update: Regarding the connection problem, the error messages indicate that the app is trying to connect alternately to 192.168.1.132 (our wireless printer) and 192.168.1.124 (my roommate's phone). No wonder it doesn't find anything!
Title: Re: Wifi android device synching
Post by: railfan-eric28 on February 18, 2019, 03:34:08 AM
I was finally able to connect to server and sync but then later went to check on it and the sync failed, it said on the phone.

update just tried again and after about 10 seconds it gave the error again.   "a non-recoverable error occurred during the sync process, restart app and try again."  The program still shows synchronizing files 2% complete.

update:   It's trying to copy a music video as the first file but i can't find it in my playlists so I don't know if it's pulling it from the video folder on either the phone or the computer.
Title: Re: Wifi android device synching
Post by: Bee-liever on February 18, 2019, 04:37:08 AM
MB 3.3.6987.19538

Had to disable 3rd-Party firewall [Comodo] and then Windows firewall [automatically activated when Comodo disabled] to get sever connection.

Closest I've got is 92% complete.
Like railfan-eric28 and psychoadept, I keep getting the "unrecoverable error".

WifiSyncErrorLog:
Code
18/02/2019 2:50:21 pm com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: ReceiveFile: Error reading file
18/02/2019 3:13:40 pm com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: ReceiveFile: Error reading file

MBeeErrorLog:
Code
18/02/2019 2:56:55 PM - D:\Track01.cda:refresh:The device is not ready. [D:\]
18/02/2019 3:04:44 PM - D:\Track01.cda:refresh:The device is not ready. [D:\]
18/02/2019 3:14:26 PM - Copy S:\My Music\My Music Library\Popular\Standard Releases\L\Linda Ronstadt\198411-Lush Life\02 - Skylark.flac to 4024E\SD card\Music\Linda Ronstadt\Lush Life\1·02 - Skylark.mp3
18/02/2019 3:14:26 PM - Copy S:\My Music\My Music Library\Popular\Standard Releases\L\Linda Ronstadt\198411-Lush Life\03 - It Never Entered My Mind.flac to 4024E\SD card\Music\Linda Ronstadt\Lush Life\1·03 - It Never Entered My Mind.mp3
18/02/2019 3:14:26 PM - 10.0.17763.0 - 3.3.6987.19538 P - WifiSyncAbort: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.

Off Topic (?)
The logged error
Code
13/02/2019 10:56:35 AM - D:\Track01.cda:refresh:The device is not ready. [D:\]
suddenly appeared on this date and now occurs every time I start MB.
Title: Re: Wifi android device synching
Post by: Steven on February 18, 2019, 06:58:17 AM
Code
13/02/2019 10:56:35 AM - D:\Track01.cda:refresh:The device is not ready. [D:\]
suddenly appeared on this date and now occurs every time I start MB.
does it go away on restart if "wifi sync" is unticked?
Title: Re: Wifi android device synching
Post by: Bee-liever on February 18, 2019, 07:43:21 AM
does it go away on restart if "wifi sync" is unticked?
No it doesn't, but I think it's a bit of a red herring.
Don't think it's a coincidence that it started 13/2 and ,checking Windows 10 update log, there was the 2019-02 cumulative Update and the 2019-02 .NET Update  installed on the same day.  :-X
Title: Re: Wifi android device synching
Post by: phred on February 18, 2019, 01:24:35 PM
I deleted the "Removable Disk" profile and now the sync wants to delete all 27,000+ tracks from the X5 which I did not allow. I now know which profile belongs (belonged) to the X5 when using WiFi. I have rebooted the X5 and have restarted MB and I can't get the "Removable Disk" profile to be recreated. I tried reinstalling it (without uninstalling) and the Play Store tells me I have no eligible devices.

I took the APK from the S8 and installed it on the X5 and it still won't create a profile. I uninstalled if from the X5 and reinstalled it. Still no profile. I do not want to delete 27k+ files and have to (or not be able to) resync them.

Any suggestions?
I resolved this by restoring MusicBee3Settings.ini from a backup copy made when 'removable disk' was present. All is well.
Title: Re: Wifi android device synching
Post by: psychoadept on February 18, 2019, 03:11:58 PM
I saw that the app had updated so just tried connecting again, and it sees MusicBee now. Still can't transfer anything.
Title: Re: Wifi android device synching
Post by: phred on February 18, 2019, 03:40:39 PM
I saw that the app had updated so just tried connecting again, and it sees MusicBee now. Still can't transfer anything.
What is the version number of this updated app? My Play Store tells me that "this app is compatible with all of your devices" yet when I try to (re)install it I'm told "No eligible devices for app install."
Title: Re: Wifi android device synching
Post by: psychoadept on February 18, 2019, 03:47:26 PM
What is the version number of this updated app? My Play Store tells me that "this app is compatible with all of your devices" yet when I try to (re)install it I'm told "No eligible devices for app install."

It still says 0.1.4 for me.
Title: Re: Wifi android device synching
Post by: phred on February 18, 2019, 04:05:01 PM
It still says 0.1.4 for me.
Thanks. So there's no update yet as 0.1.4 is from Saturday. I would think Steven would say so here when he's issued an update.
Title: Re: Wifi android device synching
Post by: phred on February 18, 2019, 05:41:34 PM
Using 0.1.4 and 3.3.6987 I'm finding files aren't being deleted from the device (X5) as expected. "Delete tracks that are not on the auto-sync list from the device" and "confirm deletion" are both ticked. Two examples...

1- I ripped one track from a CD and using WiFi Sync I transferred it to the X5. I then deleted the track using MB. I did another sync and it said "No changes required."

2- I created an album of three tracks and then synced them via WiFi. Worked as expected. I then changed the name of the album from within MB and synced again. I got a "successful sync" message. Looking at the Music directory on the X5 I see than -both- albums were present. The original album still existed along with the newly-named album.
Title: Re: Wifi android device synching
Post by: Steven on February 18, 2019, 06:38:04 PM
it would be best for me if everyone holds off testing and reporting issues while i research the android api's available for storage - its truely a mess and poorly documented by google!
Title: Re: Wifi android device synching
Post by: Steven on February 18, 2019, 07:49:09 PM
Could someone who has been having the permissions problem for files on external sd cards try this version (0.1.5)?
Unfortunately because i dont have the issue with my device, i cant confirm it myself.
You should see a new confirmation prompt to allow access to the sd card.
The release is only available on the internal testers channel. Also you will need Android 7+ for this test (Nougat +)

https://play.google.com/apps/internaltest/4700978781087552506
Title: Re: Wifi android device synching
Post by: zkhcohen on February 18, 2019, 08:11:51 PM
Could someone who has been having the permissions problem for files on external sd cards try this version (0.1.5)?
Unfortunately because i dont have the issue with my device, i cant confirm it myself.
You should see a new confirmation prompt to allow access to the sd card.
The release is only available on the internal testers channel. Also you will need Android 7+ for this test (Nougat +)

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

Unfortunately, I got the same result with 0.1.5. I did receive the new prompt and accepted it as well as the Android prompt.

The error logs are identical to before.

Edit: Internal Storage sync worked. After cancelling it, I'm unable to restart the sync. Additional "Read timed out." errors produced in Android log. MusicBee desktop log shows these errors:

2/18/2019 12:15:35 PM - 10.0.17763.0 - 3.3.6982.39833S - System.Exception: Add playlist C:\Users\Zachary\Music\MusicBee\Playlists\Playlists\Top.mbp ---> System.IO.IOException: Unable to write data to the transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
   at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at System.IO.BufferedStream.WriteByte(Byte value)
   at #=zW4KiHrUY06c4Z9xhGeY_P$_zxjMy.#=zGGQFrsM=(String #=zrfwo7ck=)
   at #=zW4KiHrUY06c4Z9xhGeY_P$_zxjMy.#=zS6WhbxFBUVHV(String #=zM4BYefM=, #=z4lU28AM9Bjn7cpz4Pg== #=zi2eqTQB71gB1, Stream #=z8OnlY8PeBhrM)
   at #=zW4KiHrUY06c4Z9xhGeY_P$_zxjMy.#=zLpyAlUg=(#=zSwv_lkxPjUWsxgxNFoAZAp0= #=z2MyTcIM=, IList`1 #=z9DAX4Ic=)
   at #=zjKVqecC435VWw45cvfBakrc=.#=zqYxaOmm7i6cJZcBgfzYlzdU=(#=zSwv_lkxPjUWsxgxNFoAZAp0= #=zNtbWL$zOmtM0, Dictionary`2 #=zFeSYsPleXjhU4eJRNikwETQ=, Object #=z1rNWyu$WUSxa)
   at #=zjKVqecC435VWw45cvfBakrc=.#=zHa4FwseR2hyMJ4a6Mg==(Boolean #=zVsUO3dRN2Uvi2QmhaA==, Boolean #=zO$Akw2AXnWOq, Dictionary`2 #=z_0SkIMkJz4G6, List`1 #=z3h_Xuk9cFZAuwQLflg==, Object #=z1rNWyu$WUSxa)
   --- End of inner exception stack trace ---

Edit 2: Aha! Figured it out. The "synchronizing files" message in the MusicBee desktop app didn't disappear after cancelling it from the Android side. Additionally, the port isn't released for several minutes or until you restart the desktop app. This prevents future syncs from running successfully.
Title: Re: Wifi android device synching
Post by: Steven on February 18, 2019, 08:19:48 PM
thanks for letting me know
You should update the MB patch version though - it wont help for this issue but fixes other issues
Title: Re: Wifi android device synching
Post by: zkhcohen on February 18, 2019, 08:23:24 PM
thanks for letting me know
You should update the MB patch version though - it wont help for this issue but fixes other issues

Will do. In case you didn't notice, I just ninja-edited (edit 2) my previous comment with the cause of the last issue.
Title: Re: Wifi android device synching
Post by: psychoadept on February 19, 2019, 03:53:15 AM

Unfortunately, I got the same result with 0.1.5. I did receive the new prompt and accepted it as well as the Android prompt.


Ditto, updated to 0.1.5 but same result.
Title: Re: Wifi android device synching
Post by: Bee-liever on February 19, 2019, 05:19:39 AM
it would be best for me if everyone holds off testing and reporting issues while i research the android api's available for storage - its truely a mess and poorly documented by google!

Just a little something to consider on this:
I originally used an MTP connection and profile when syncing.
During the wifi testing, I connected my phone as a USB device, thus creating device profiles for the phone and SD card drives.
Even after deleting these profiles, the wifi sync will no longer use MTP profile and keeps defaulting to internal storage regardless of the selection within the wifi app.
Title: Re: Wifi android device synching
Post by: Steven on February 19, 2019, 08:52:30 PM
I have made another test version available 0.1.6
https://play.google.com/apps/internaltest/4700978781087552506
As before, for this test you need Android 7+

I have created a small test within the app where the following files will be created on your sd card:
Music/000/001/002.txt
Music/000/001/003.txt
Music/000/001/003.txt is then deleted
so you should only see 1 file if you check in the Files app (navigate from the devices folder, not via the Music folder)

A snackbar message will display if it works or not. Let me know how it goes.
If it does work then it shouldnt be too hard to apply the change to the app
Title: Re: Wifi android device synching
Post by: zkhcohen on February 20, 2019, 12:09:36 AM
I have made another test version available 0.1.6
https://play.google.com/apps/internaltest/4700978781087552506
As before, for this test you need Android 7+

I have created a small test within the app where the following files will be created on your sd card:
Music/000/001/002.txt
Music/000/001/003.txt
Music/000/001/003.txt is then deleted
so you should only see 1 file if you check in the Files app (navigate from the devices folder, not via the Music folder)

A snackbar message will display if it works or not. Let me know how it goes.
If it does work then it shouldnt be too hard to apply the change to the app

Ready for a WTF moment? The test totally worked. The files were created on my SD Card (and 003 deleted)....

...but the sync still failed. Permission denied.

Edit: I misread your final line: "If it does work then it shouldnt be too hard to apply the change to the app"
Title: Re: Wifi android device synching
Post by: psychoadept on February 20, 2019, 08:12:42 AM
A snackbar message will display if it works or not. Let me know how it goes.
If it does work then it shouldnt be too hard to apply the change to the app

The first time I got an error. It seemed to be unhappy because there wasn't already a Music folder on my SD card (all my files are synced to a MusicBee subfolder). But once I created the Music folder and restarted the app, it worked. 002.txt is there.
Title: Re: Wifi android device synching
Post by: zkhcohen on February 20, 2019, 10:17:09 AM
A snackbar message will display if it works or not. Let me know how it goes.
If it does work then it shouldnt be too hard to apply the change to the app

The first time I got an error. It seemed to be unhappy because there wasn't already a Music folder on my SD card (all my files are synced to a MusicBee subfolder). But once I created the Music folder and restarted the app, it worked. 002.txt is there.

Does this suggest that folder creation is the issue, rather than music files?? I noticed that it created a separate folder per artist on my internal storage.
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 20, 2019, 12:46:41 PM
Does this suggest that folder creation is the issue, rather than music files?? I noticed that it created a separate folder per artist on my einternal storage.

Looking at an old Music App - the MicroSD Card has the same ID number "storage/B2D4-1CF9/Music" but it seems to be asking for access to Card AND Folders...l
Title: Re: Wifi android device synching
Post by: Steven on February 23, 2019, 04:36:40 PM
the permissions issue should be fixed now version: 0.1.7:
https://play.google.com/apps/internaltest/4700978781087552506

also update MusicBee as there was a bug with timestamps. Any files you previously synched with Wifi Sync will probably be re-synched again
https://getmusicbee.com/patches/MusicBee33_Patched.zip


@railfan-eric28 and bee-liever,
I havent done any changes specifically for the errors you have. If its still happening, let me know and i will look into it (but I am guessing it was permissions related).
Title: Re: Wifi android device synching
Post by: phred on February 23, 2019, 05:04:44 PM
the permissions issue should be fixed now version: 0.1.7:
https://play.google.com/apps/internaltest/4700978781087552506
I have updated MB to 3.3.6993 and Wifi Sync to 0.1.7. Works fine on the Samsung S8 (internal storage) but not on the X5 (SD Card.)

Launching the sync app on the X5 I get a request to select the storage for your files. Two choices are shown: Internal Storage and Removable SD Card, which is selected by default. I tap 'grant access' and I see a 'file explorer' type screen showing all the directories on the SD Card (including the two I use for syncing: Playlists and Music.) At the bottom of the screen is "Select X5_SD1" which is correct, but when I tap it it goes back to the 'select the storage...' screen and the 'sync now' button is grayed out.

To refresh - I was having no permission problems on the X5 with 0.1.5. Now apparently, I am.

Suggestions?
Title: Re: Wifi android device synching
Post by: Steven on February 23, 2019, 05:34:41 PM
Launching the sync app on the X5 I get a request to select the storage for your files. Two choices are shown: Internal Storage and Removable SD Card, which is selected by default. I tap 'grant access' and I see a 'file explorer' type screen showing all the directories on the SD Card (including the two I use for syncing: Playlists and Music.) At the bottom of the screen is "Select X5_SD1" which is correct, but when I tap it it goes back to the 'select the storage...' screen and the 'sync now' button is grayed out.
unfortunately in order to make use of the new storage framework, for < Android 7, requires the user to manually select the card or a folder, and its really nonintuitive. You should tap the sd card (you should see folders such as Music) and then click the "select" button down the bottom. You didnt click the back button did you? If you are sure, could you post a screenshot of the android dialog that shows where you clicked "select"?
Title: Re: Wifi android device synching
Post by: phred on February 23, 2019, 06:10:06 PM
unfortunately in order to make use of the new storage framework, for < Android 7, requires the user to manually select the card or a folder, and its really nonintuitive. You should tap the sd card (you should see folders such as Music) and then click the "select" button down the bottom. You didnt click the back button did you? If you are sure, could you post a screenshot of the android dialog that shows where you clicked "select"?
No, I did not click the back button. Sorry for the quality of the shots. I had to take pictures of the screen as it appears the X5 can't do screenshots. Or at least not in the way I'm accustomed to with other/later Android operation systems.

Screenshot one - upon launching the app:
http://i.imgur.com/QKGcPbLl.jpg

Screenshot two - after tapping 'grant access':
http://i.imgur.com/MIF7OfGl.jpg

Screenshot three - after tapping 'select 'x5_sd1':
http://i.imgur.com/bKMkMcil.jpg
Title: Re: Wifi android device synching
Post by: Steven on February 23, 2019, 06:17:19 PM
phred, i created a new android debug version. 0.1.7.1
it should show a popup window after you click Select
Can you let me know the values or post a screenshot of it
Title: Re: Wifi android device synching
Post by: phred on February 23, 2019, 06:48:02 PM
phred, i created a new android debug version. 0.1.7.1
it should show a popup window after you click Select
Can you let me know the values or post a screenshot of it
Thanks Steven. Here's the image:
https://i.imgur.com/qZljNMX.jpg
Title: Re: Wifi android device synching
Post by: Steven on February 23, 2019, 07:06:16 PM
that looks ok. Could you run this android version 0.1.7.4
https://play.google.com/apps/internaltest/4700978781087552506

you wont see the new popup, instead it will write some info to the error log in the downloads folder
Title: Re: Wifi android device synching
Post by: phred on February 23, 2019, 07:56:57 PM
that looks ok. Could you run this android version 0.1.7.4
Code
Feb 23, 2019 2:51:27 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: grant: perm count=2
Feb 23, 2019 2:51:27 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: grant: perm path=0E65-65B9:Music,root=0E65-65B9,perm r=true,w=true,index=2,sd card=/MNT/EXTERNAL_SD1
Feb 23, 2019 2:51:27 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: grant: perm path=0E65-65B9:,root=0E65-65B9,perm r=true,w=true,index=2,sd card=/MNT/EXTERNAL_SD1
Feb 23, 2019 2:51:27 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: grant: access=false
Feb 23, 2019 2:51:32 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: grant: perm count=2
Feb 23, 2019 2:51:32 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: grant: perm path=0E65-65B9:Music,root=0E65-65B9,perm r=true,w=true,index=2,sd card=/MNT/EXTERNAL_SD1
Feb 23, 2019 2:51:32 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: grant: perm path=0E65-65B9:,root=0E65-65B9,perm r=true,w=true,index=2,sd card=/MNT/EXTERNAL_SD1
Feb 23, 2019 2:51:32 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogInfo
INFO: grant: access=false
Title: Re: Wifi android device synching
Post by: Steven on February 23, 2019, 08:04:57 PM
thanks. I can see why its not working and will need to think of a solution
Title: Re: Wifi android device synching
Post by: phred on February 23, 2019, 08:28:03 PM
thanks. I can see why its not working and will need to think of a solution
Good luck. For both of us.

Is there anyway to get my hands on 0.1.5 as an APK, so I can continue using the sync while you work on a fix?
Title: Re: Wifi android device synching
Post by: Steven on February 23, 2019, 09:55:54 PM
Try again now with v0.1.8
Title: Re: Wifi android device synching
Post by: phred on February 23, 2019, 10:19:37 PM
Try again now with v0.1.8
Connected, permission granted, and syncing as expected.

Thanks!
Title: Re: Wifi android device synching
Post by: Steven on February 23, 2019, 10:23:55 PM
Yes it will work in your case but there was still a bug.
I have updated to v0.1.9
https://play.google.com/apps/internaltest/4700978781087552506

for others, also update MusicBee as there was a bug with timestamps. Any files you previously synched with Wifi Sync will probably be re-synched again
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: phred on February 23, 2019, 10:35:20 PM
Connected, permission granted, and syncing as expected.
Except it didn't finish the sync. It threw "A non-recoverable error occurred during the synchonization process. Restart the app and try again." I did and it didn't.
Here's the X5 log:
Code
Feb 23, 2019 5:22:06 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: ReceiveLoop: java.net.SocketTimeoutException
Feb 23, 2019 5:22:06 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: ReceiveFile: Error reading file
Feb 23, 2019 5:22:26 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Looper: java.net.SocketTimeoutException
Feb 23, 2019 5:27:08 PM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Looper: java.net.SocketTimeoutException

But I see 0.1.9 is available so I'll try that and report back.
Title: Re: Wifi android device synching
Post by: phred on February 23, 2019, 11:28:35 PM
But I see 0.1.9 is available so I'll try that and report back.
I'm happy to report all is well.
Title: Re: Wifi android device synching
Post by: psychoadept on February 24, 2019, 06:43:56 AM
I just updated to latest MB and wifi app 0.1.9. Everything went smooth at first, except at the end it complained about not being able to find a playlist. So I tried running it again, and then it told me there were several files that still needed to be synced (for some reason mostly Enya, and a few others). When I tried to sync again, I got this error log: https://drive.google.com/open?id=1402_9SuXDT2xgGfeJwQFzUc2J8V9TRqy

I went and verified that the files weren't there, and indeed couldn't find them. I've tried restarting my phone and various other things, but no luck. I get this same result every time.
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 24, 2019, 09:15:42 AM
But I see 0.1.9 is available so I'll try that and report back.
I'm happy to report all is well.


I had no request to test but I just tried out of curiosity!
Music files and playlist sync went perfectly to SD card..
Latest android App used, no errors in log.
Same version of MB as last Sunday..

UPDATE

I was using 0.1.8 from last night, and all OK - but then tried 0.1.9 which failed all the file DELETE actions..
Title: Re: Wifi android device synching
Post by: Steven on February 24, 2019, 11:17:15 AM
@psychoadept and all,
i can see why it would only work on the first run and that should be fixed now v0.2:
https://play.google.com/apps/internaltest/4700978781087552506

I have also temporarily bumped up the error logging to assist with any future issues

also for those that missed the message, update MusicBee as there was a bug with timestamps. Any files you previously synched with Wifi Sync will probably be re-synched again
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: phred on February 24, 2019, 01:34:54 PM
With 3.3.6993 and 0.2 the Samsung S8 is throwing the 'non-recoverable error during sync' error. The FiiO X5 is currently syncing, but since it's syncing a lot of the tracks I synced yesterday (I understand the reason for this) it may take a while before I can try a second sync.

Error log from the S8:
Code
Feb 24, 2019 8:31:43 AM com.getmusicbee.musicbeewifisync.ErrorHandler LogError
SEVERE: Looper: Attempt to invoke virtual method 'java.lang.String android.net.Uri.toString()' on a null object reference

Error log from MB:
Code
2/24/2019 8:29:44 AM - SM-G950U\Phone\ not mounted: 
2/24/2019 8:29:54 AM - SM-G950U\Phone\ not mounted:
2/24/2019 8:30:13 AM - SM-G950U\Phone\ not mounted:
2/24/2019 8:31:43 AM - SM-G950U\Phone\ not mounted:
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 24, 2019, 01:48:45 PM
@psychoadept and all,
i can see why it would only work on the first run and that should be fixed now v0.2:
https://play.google.com/apps/internaltest/4700978781087552506

I have also temporarily bumped up the error logging to assist with any future issues

also for those that missed the message, update MusicBee as there was a bug with timestamps. Any files you previously synched with Wifi Sync will probably be re-synched again
https://getmusicbee.com/patches/MusicBee33_Patched.zip

Working all good for me on Android 6.0.1
MB sync App 0.2
MB 3.3.6993
Title: Re: Wifi android device synching
Post by: Steven on February 24, 2019, 01:49:24 PM
With 3.3.6993 and 0.2 the Samsung S8 is throwing the 'non-recoverable error during sync' error.
that was some debugging code. Its should work now with 0.2.1
Title: Re: Wifi android device synching
Post by: phred on February 24, 2019, 02:28:13 PM
that was some debugging code. Its should work now with 0.2.1
Connections are being made from both devices to MB, but I added one song to a playlist that the S8 syncs with and deleted an album that the X5 syncs. Both devices connect and instantly stated that 'MusicBee synchronization successfully completed.' The added track is not on the S8 and the deleted album is still on the X5.

From MB:
Code
2/24/2019 9:15:39 AM - Sync Preview failed: Found invalid data while decoding.

From the S8:
Code
Feb 24, 2019 9:15:32 AM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: storage: root path=/storage/emulated/0, root id=null, perm uri=null

From the X5:
Code
Feb 24, 2019 9:15:37 AM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3AMusic,mapped path=null,write=true,sd card=/mnt/external_sd1
Feb 24, 2019 9:15:37 AM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3A,mapped path=/mnt/external_sd1,write=true,sd card=/mnt/external_sd1
Feb 24, 2019 9:15:37 AM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: selected permission=content://com.android.externalstorage.documents/tree/0E65-65B9%3A
Feb 24, 2019 9:15:38 AM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3AMusic,mapped path=null,write=true,sd card=/mnt/external_sd1
Feb 24, 2019 9:15:38 AM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3A,mapped path=/mnt/external_sd1,write=true,sd card=/mnt/external_sd1
Feb 24, 2019 9:15:38 AM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: selected permission=content://com.android.externalstorage.documents/tree/0E65-65B9%3A
Feb 24, 2019 9:15:38 AM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: storage: root path=/mnt/external_sd1, root id=0E65-65B9:, perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3A
Title: Re: Wifi android device synching
Post by: Steven on February 24, 2019, 02:33:25 PM
try with v0.2.2.
in this case only, also restart MB
Title: Re: Wifi android device synching
Post by: phred on February 24, 2019, 04:10:31 PM
try with v0.2.2.
in this case only, also restart MB
It's been a couple of hours and there's no new update available. 0.2.1 is still on both devices.
Title: Re: Wifi android device synching
Post by: Steven on February 24, 2019, 04:17:57 PM
it should be there now or in a few minutes
Title: Re: Wifi android device synching
Post by: phred on February 24, 2019, 04:22:01 PM
it should be there now or in a few minutes
Installing now on both devices. Will be testing shortly. Thanks.
Title: Re: Wifi android device synching
Post by: zkhcohen on February 24, 2019, 05:37:29 PM
it should be there now or in a few minutes

This version is working great! Looks like you fixed both of my issues: permissions and cancelling syncs.

I had one error which was resolved by re-running the sync immediately afterwards. I have no idea why it tried to connect to "10.3.15.27". For reference, this error occurred after cancelling and immediately restarting the same sync. Also note that the preview page did not re-appear when I did that, it simply resumed where it left off:

Feb 24, 2019 9:31:47 AM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper: failed to connect to /10.3.15.27 (port 27304) from /192.168.0.15 (port 60124) after 2500ms
Feb 24, 2019 9:31:47 AM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: findCandidate: Probing 192.168.0., exclude=14
Feb 24, 2019 9:31:47 AM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: Ping: MusicBeeWifiSyncServer/1.0
Feb 24, 2019 9:31:47 AM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: storage: root path=/storage/0CB5-7600, root id=0CB5-7600:, perm uri=content://com.android.externalstorage.documents/tree/0CB5-7600%3A
Feb 24, 2019 9:31:49 AM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: storage: root path=/storage/0CB5-7600, root id=0CB5-7600:, perm uri=content://com.android.externalstorage.documents/tree/0CB5-7600%3A
Feb 24, 2019 9:32:04 AM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile: java.lang.InterruptedException
Feb 24, 2019 9:32:04 AM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveLoop: java.lang.InterruptedException
Feb 24, 2019 9:32:07 AM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: deleteFiles: Music/James Blake/Assume Form/08 - Where’s the Catch .mp3: Failed to determine if 0CB5-7600:Music/James Blake/Assume Form/08 - Where’s the Catch .mp3 is child of 0CB5-7600:: java.io.FileNotFoundException: Missing file for 0CB5-7600:Music/James Blake/Assume Form/08 - Where’s the Catch .mp3 at /storage/0CB5-7600/Music/James Blake/Assume Form/08 - Where’s the Catch .mp3
Feb 24, 2019 9:32:25 AM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper: Read timed out
Title: Re: Wifi android device synching
Post by: Steven on February 24, 2019, 06:16:35 PM
Thanks thats good to know.
There is an issue with m4a files, which are incorrectly being named as .mp3 and hence causing re-syncing. This will only be an issue on external sd cards.
This might be a show-stopper as it appears m4a files are incorrectly mapped by google to audio/mpeg which is actually for mp3 files. Its very frustrating how bad google's implementation for the storage access is.

edit:
nevermind - i figured out a suitable workaround and will post an updated version later after some more testing
Title: Re: Wifi android device synching
Post by: Steven on February 24, 2019, 07:22:35 PM
v0.2.3
https://play.google.com/apps/internaltest/4700978781087552506

.m4a files (and some others) should now correctly sync with the correct file extension

SEVERE: deleteFiles: Music/James Blake/Assume Form/08 - Where’s the Catch .mp3: Failed to determine if 0CB5-7600:Music/James Blake/Assume Form/08 - Where’s the Catch .mp3 is child of 0CB5-7600:: java.io.FileNotFoundException: Missing file for 0CB5-7600:Music/James Blake/Assume Form/08 - Where’s the Catch .mp3 at /storage/0CB5-7600/Music/James Blake/Assume Form/08 - Where’s the Catch .mp3
I have put in handling for this

also for those that missed the message, update MusicBee as there was a bug with timestamps. Any files you previously synched with Wifi Sync will probably be re-synched again
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: phred on February 24, 2019, 07:47:52 PM
With 0.2.2 the Samsung S8 worked perfectly. And it appears that the X5 is working too, but due to the fact that it's resyncing everything (24k+ tracks) it's slow going. I had to disable the idle timeout along with the display timeout, and connect to a power supply. From the progress scrollbar, it looks like less than 25% has completed and it's been going for about three hours.
Title: Re: Wifi android device synching
Post by: zkhcohen on February 24, 2019, 08:16:22 PM
With 0.2.2 the Samsung S8 worked perfectly. And it appears that the X5 is working too, but due to the fact that it's resyncing everything (24k+ tracks) it's slow going. I had to disable the idle timeout along with the display timeout, and connect to a power supply. From the progress scrollbar, it looks like less than 25% has completed and it's been going for about three hours.

Steven - Is there a benchmark for the speed of this transfer protocol? It seemed to go extremely fast for me, but I only synced about 100 songs. It would be nice to have some idea of whether our transfer speeds are expected-behavior, or limited by our network environment in some way.
Title: Re: Wifi android device synching
Post by: Steven on February 24, 2019, 08:17:22 PM
With 0.2.2 the Samsung S8 worked perfectly. And it appears that the X5 is working too, but due to the fact that it's resyncing everything (24k+ tracks) it's slow going. I had to disable the idle timeout along with the display timeout, and connect to a power supply. From the progress scrollbar, it looks like less than 25% has completed and it's been going for about three hours.
if you have a lot of .m4a files, you probably want to use v0.2.3 as they will be synched with the wrong filename in earlier versions
Title: Re: Wifi android device synching
Post by: Steven on February 24, 2019, 08:19:43 PM
Steven - Is there a benchmark for the speed of this transfer protocol? It seemed to go extremely fast for me, but I only synced about 100 songs. It would be nice to have some idea of whether our transfer speeds are expected-behavior, or limited by our network environment in some way.
for me, its many times faster than MTP but I didnt want to publicise that too much as it of course depends on the wifi router you are using/ how conjested with other traffic etc
Title: Re: Wifi android device synching
Post by: phred on February 24, 2019, 09:12:42 PM
f you have a lot of .m4a files, you probably want to use v0.2.3 as they will be synched with the wrong filename in earlier versions
I have all mp3s, so that part of 0.2.3 doesn't concern me. And the sync is still going.

Despite what zkhcohen states, this is just about the slowest sync I've done. But then again, I've only had to sync the entire library when I first got the X5 and then again when I swapped out the 256gb card for a 400gb. Once this sync is done it will only be deletes, updates, and much smaller copies.
Title: Re: Wifi android device synching
Post by: zkhcohen on February 24, 2019, 09:17:09 PM
f you have a lot of .m4a files, you probably want to use v0.2.3 as they will be synched with the wrong filename in earlier versions
I have all mp3s, so that part of 0.2.3 doesn't concern me. And the sync is still going.

Despite what zkhcohen states, this is just about the slowest sync I've done. But then again, I've only had to sync the entire library when I first got the X5 and then again when I swapped out the 256gb card for a 400gb. Once this sync is done it will only be deletes, updates, and much smaller copies.


You could try using Wireshark to see if there's a bottleneck of some sort:

http://blog.davidvassallo.me/2010/03/22/measuring-bandwidth-using-wireshark/


Title: Re: Wifi android device synching
Post by: phred on February 25, 2019, 12:42:37 AM
After seven hours of syncing with 0.2.2, I took a look at the X5 and it was displaying the now-dreaded "non recoverable" error. Using a file manager I see that nothing in the music folder has today's date. I also don't see tracks added to MB since the last sync. The plan now is to wipe the card and do a full, wired sync via MB directly. And then add some albums and resync again with 0.2.3.

Error Log from MB:
Code
2/24/2019 6:04:14 PM - Copy Z:\God Made Me Funky\God Made Me Funky\7 - God Made Me Funky.mp3 to T:\Music\God Made Me Funky\God Made Me Funky\7 - God Made Me Funky.mp3
2/24/2019 6:04:14 PM - 10.0.14393.0 - 3.3.6993.27676 P - WifiSyncAbort: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.

2/24/2019 6:04:14 PM - Copy Z:\God Made Me Funky\God Made Me Funky\6 - Ur Own Way.mp3 to T:\Music\God Made Me Funky\God Made Me Funky\6 - Ur Own Way.mp3
2/24/2019 6:04:14 PM - 10.0.14393.0 - 3.3.6993.27676 P - WifiSyncAbort: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.

2/24/2019 6:04:14 PM - Copy Z:\God Made Me Funky\God Made Me Funky\5 - Basslude.mp3 to T:\Music\God Made Me Funky\God Made Me Funky\5 - Basslude.mp3
2/24/2019 6:04:14 PM - 10.0.14393.0 - 3.3.6993.27676 P - WifiSyncAbort: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.

2/24/2019 6:04:14 PM - Copy Z:\God Made Me Funky\God Made Me Funky\4 - Majikarpet.mp3 to T:\Music\God Made Me Funky\God Made Me Funky\4 - Majikarpet.mp3
2/24/2019 6:04:14 PM - 10.0.14393.0 - 3.3.6993.27676 P - WifiSyncAbort: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.

2/24/2019 6:04:14 PM - Copy Z:\God Made Me Funky\God Made Me Funky\3 - Bartenda.mp3 to T:\Music\God Made Me Funky\God Made Me Funky\3 - Bartenda.mp3
2/24/2019 6:04:14 PM - 10.0.14393.0 - 3.3.6993.27676 P - WifiSyncAbort: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.

2/24/2019 6:04:14 PM - Copy Z:\God Made Me Funky\God Made Me Funky\2 - Intro.mp3 to T:\Music\God Made Me Funky\God Made Me Funky\2 - Intro.mp3
2/24/2019 6:04:14 PM - 10.0.14393.0 - 3.3.6993.27676 P - WifiSyncAbort: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.

Error Log from X5:
Code
INFO: findCandidate: Probing 192.168.1., exclude=116
Feb 24, 2019 12:04:52 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3AMusic,mapped path=null,write=true,sd card=/mnt/external_sd1
Feb 24, 2019 12:04:52 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3A,mapped path=/mnt/external_sd1,write=true,sd card=/mnt/external_sd1
Feb 24, 2019 12:04:52 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: selected permission=content://com.android.externalstorage.documents/tree/0E65-65B9%3A
Feb 24, 2019 12:04:53 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3AMusic,mapped path=null,write=true,sd card=/mnt/external_sd1
Feb 24, 2019 12:04:53 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3A,mapped path=/mnt/external_sd1,write=true,sd card=/mnt/external_sd1
Feb 24, 2019 12:04:53 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: selected permission=content://com.android.externalstorage.documents/tree/0E65-65B9%3A
Feb 24, 2019 12:04:53 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: storage: root path=/mnt/external_sd1, root id=0E65-65B9:, perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3A
Feb 24, 2019 12:05:01 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: storage: root path=/mnt/external_sd1, root id=0E65-65B9:, perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3A
Feb 24, 2019 5:54:02 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveLoop: java.net.SocketTimeoutException
Feb 24, 2019 5:54:03 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile: Error reading file
Feb 24, 2019 5:54:03 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper: bad second or third byte at 2
Title: Re: Wifi android device synching
Post by: psychoadept on February 25, 2019, 02:50:20 AM
Yes, 0.2.2 appears to be a winner!

MusicBee wasn't quite keeping up with the process; it's stopping at 90% right now (just syncing the playlists).
Title: Re: Wifi android device synching
Post by: Steven on February 25, 2019, 06:48:34 AM
MusicBee wasn't quite keeping up with the process; it's stopping at 90% right now (just syncing the playlists).
I am not sure i understand. Are you referring to the taskbar progress in windows not ending at 100% ?
Title: Re: Wifi android device synching
Post by: phred on February 25, 2019, 04:18:15 PM
I connected the X5 to MB via USB cable, disabled WiFi transfer in Devices Preferences and synced 27k tracks. All went well until it got to the playlists. None of which copied. Error is "2/25/2019 8:41:02 AM - Add playlist "G:\MusicBee\phred\Playlists\R & R HoF Inductees.xautopf" Operation is not valid due to the current state of the object." A 'preview' shows that 79 playlists need to be synced. If I delete a playlist via MB and resync, a file with the playlist name is created, but is empty.

I have removed the card from the X5 and put it in the card reader on my PC, I get the same behavior.

With the card back in the X5 and with WiFi syncing enabled (0.2.3) the preview shows many, many, many files need to be synced. Not just the playlists. These are tracks that were copied to the card via USB last night. I have confirmed the files are there with a file manager.

I really don't want to sync 27k+ files again just to see if the playlists will copy.

Suggestions?
Title: Re: Wifi android device synching
Post by: Steven on February 25, 2019, 06:08:09 PM
I connected the X5 to MB via USB cable, disabled WiFi transfer in Devices Preferences and synced 27k tracks. All went well until it got to the playlists. None of which copied. Error is "2/25/2019 8:41:02 AM - Add playlist "G:\MusicBee\phred\Playlists\R & R HoF Inductees.xautopf" Operation is not valid due to the current state of the object.
Is there a stack trace in the error log? - please send it to me if there is

As to the wifi sync showing 27,000 tracks - do you have delete enabled in the sync prefs and if so did the preview show a set of deletes as well?
I believe your device is old enough to allow USB sync (as opposed to using the MTP protocol which is mandatory for later android versions). I suspect the issue relates to the android database not being updated when you use that method. MB is using the android database as the source for file info. In short I think you best not use wifi sync on that device unless you use MTP for wired sync as well.

PS. you dont have to disable wifi-sync. It has no bearing on sync's initiated from MusicBee.
Title: Re: Wifi android device synching
Post by: psychoadept on February 25, 2019, 06:30:19 PM
MusicBee wasn't quite keeping up with the process; it's stopping at 90% right now (just syncing the playlists).
I am not sure i understand. Are you referring to the taskbar progress in windows not ending at 100% ?

Yeah, that's what I mean. After the phone is done syncing, I look at MusicBee and it still says 90%.
Title: Re: Wifi android device synching
Post by: Steven on February 25, 2019, 07:05:07 PM
the USB device playlist save is fixed now:
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: phred on February 25, 2019, 07:19:08 PM
the USB device playlist save is fixed now:
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Great. I was only about 200 tracks into a USB sync so I canceled it, added the patch, and restarted.

Do you think I try another WiFi sync once the USB sync has completed? Or should abandon hope for the X5 and WiFi?
Title: Re: Wifi android device synching
Post by: Steven on February 25, 2019, 07:27:04 PM
Do you think I try another WiFi sync once the USB sync has completed? Or should abandon hope for the X5 and WiFi?
I think so but I cant say with certaintly. There might be a way to force the android device to scan all the files onto the device into the database used for the MTP protocol. If you are googling for info, the database is called MediaStore.
If you do manage that, then incremental wifi syncs should be fine.

edit:
rebooting the device might help
and this topic might help:
http://www.jrtstudio.com/iSyncr/Tutorials/How-To-Refresh-Android-Media-Cache


also this on
https://android.stackexchange.com/questions/46315/not-all-files-are-visible-over-mtp

    Disconnect the USB cable from phone.
    Click 'Clear data' on the Media Storage application.
    Then 'Force stop'.
    Reconnect the USB cable to phone.
    The Media Storage application is restarted and rebuilds the media list.
    Missing files are now available.
    This avoids rebooting, which was important for me.
Title: Re: Wifi android device synching
Post by: phred on February 25, 2019, 07:33:53 PM
There might be a way to force the android device to scan all the files onto the device into the database used for the MTP protocol. If you are googling for info, the database is called MediaStore.
If you do manage that, then incremental wifi syncs should be fine.

edit:
rebooting the device might help
and this topic might help:
http://www.jrtstudio.com/iSyncr/Tutorials/How-To-Refresh-Android-Media-Cache
Thanks. Once the USB sync completes I'll try the suggestion in the link. And then start googling.
Title: Re: Wifi android device synching
Post by: Steven on February 25, 2019, 09:21:42 PM
If any of the others who joined the testing list have any comments on the latest version, it would be appreciated - the app should be fully functional now.

The latest play store version is 0.2.4
https://play.google.com/apps/internaltest/4700978781087552506

for those who missed the message a few days ago, also update MusicBee as there was a bug with timestamps. Any files you previously synched with Wifi Sync will probably be re-synched again
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: phred on February 26, 2019, 02:20:38 AM
https://android.stackexchange.com/questions/46315/not-all-files-are-visible-over-mtp
    Disconnect the USB cable from phone.
    Click 'Clear data' on the Media Storage application.
    Then 'Force stop'.
    Reconnect the USB cable to phone.
    The Media Storage application is restarted and rebuilds the media list.
    Missing files are now available.
    This avoids rebooting, which was important for me.
Steven- thanks for this link and procedure. The link pretty much said the same thing, but also made reference to an app called SD Scanner, which scans the card for changes and then syncs the changes to Media Storage. The link given for SD Scanner is dead on Google Play, but I found an APK, installed it and it seemed to help. I also found an option in GoneMad Music Player to not only scan the specified folders but to sync with the Android Media Library upon each start of the music service.

After using SD Scanner and GMMP scanner, I'm happy to report that the playlists on the X5 are showing and sync without error via USB. When I tried WiFi it still shows me that all tracks are going to be synced. So based on Steven's advice, the X5 will be a USB sync only - probably due to its non-upgradable v5.1.1 OS. (Although I will test it every now and then.) As far as the Samsung S8, WiFi sync is working perfectly.
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 26, 2019, 10:18:02 AM
TEST RESULTS:
MusicBee Wifi Sync Android App v 0.2.4
Device Android v 6.0.1
MB v 3.3.6993
Music files types predominantly m4a + few mp3.
All expected copy and delete operations sucessful for both Internal memory and MicroSD card for music files.
No Error log entries for MB on PC
MusicBeeWifiSyncErrorLog.txt.2 and Log.txt.2.lck empty.

PROBLEM
OLDIES.M3U Playlist NOT copied (using relative paths).
OLDIES.M3U Playlist IS copied but shows EMPTY. (NOT using relative paths).

Regards: Freddy
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 26, 2019, 01:36:36 PM
TEST RESULTS:
MusicBee Wifi Sync Android App v 0.2.4
Device Android v 6.0.1
MB v 3.3.6993
Music files types predominantly m4a + few mp3.
All expected copy and delete operations sucessful for both Internal memory and MicroSD card for music files.
No Error log entries for MB on PC
MusicBeeWifiSyncErrorLog.txt.2 and Log.txt.2.lck empty.

PROBLEM
OLDIES.M3U Playlist NOT copied (using relative paths).
OLDIES.M3U Playlist IS copied but shows EMPTY. (NOT using relative paths).

IMPORTANT UPDATE

Exactly the same results as above with cable connection!
(This has always functioned OK in the past), the only thing I could find that was different was OLDIES.PLA in the Playlist folder in internal memory. Checked that nothing was at that locaation before testing.
Hope this helps.
Title: Re: Wifi android device synching
Post by: Steven on February 26, 2019, 01:46:17 PM
You are not using the latest MB version, so please update it and try again.
I cant believe ticking the relative paths option would make any difference as to whether the playlist was copied or not, and if it didnt copy then there should be an entry in the Android error log. If the playlist is still empty after using the latest version, on what basis are you saying the playlist was empty?
It is possible that if you are using the wired MTP connection and configured .PLA as the format, then when using wireless i am not sure what MB would do, so I will check that out. Try changing the format to .M3U
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 26, 2019, 03:03:20 PM
You are not using the latest MB version, so please update it and try again.
I cant believe ticking the relative paths option would make any difference as to whether the playlist was copied or not, and if it didnt copy then there should be an entry in the Android error log. If the playlist is still empty after using the latest version, on what basis are you saying the playlist was empty?
It is possible that if you are using the wired MTP connection and configured .PLA as the format, then when using wireless i am not sure what MB would do, so I will check that out. Try changing the format to .M3U

TEST BY REQUST No.2
(Previously - Tried changing 'relative paths' option to see if it made any difference).
Device settings never changed from Playlist = M3U
Apologies, missed the latest patch.

MusicBee Wifi Sync Android App v 0.2.4
Device Android v 6.0.1
MB v 3.3.6996
Music files types predominantly m4a + few mp3.
All expected copy and delete operations successful for MicroSD card for music files.
No Error log entries for MB on PC.

DIFFERENT PROBLEM
Playlist OLDIES.M3U WAS NOT copied to MicroSD\ Playlists\OLDIES.M3U

MusicBeeWifiSyncErrorLog.txt

26 Feb 2019 14:36:13 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/B2D4-1CF9%3A,mapped path=/storage/B2D4-1CF9,write=true,sd card=/storage/B2D4-1CF9
26 Feb 2019 14:36:13 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: selected permission=content://com.android.externalstorage.documents/tree/B2D4-1CF9%3A
26 Feb 2019 14:36:15 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/B2D4-1CF9%3A,mapped path=/storage/B2D4-1CF9,write=true,sd card=/storage/B2D4-1CF9
26 Feb 2019 14:36:15 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: selected permission=content://com.android.externalstorage.documents/tree/B2D4-1CF9%3A
26 Feb 2019 14:36:15 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: storage: root path=/storage/B2D4-1CF9, root id=B2D4-1CF9:, perm uri=content://com.android.externalstorage.documents/tree/B2D4-1CF9%3A
26 Feb 2019 14:36:17 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: storage: root path=/storage/B2D4-1CF9, root id=B2D4-1CF9:, perm uri=content://com.android.externalstorage.documents/tree/B2D4-1CF9%3A



TEST BY REQUST No.3

Same results as above except:
Playlist OLDIES.M3U WAS copied to MicroSD\Playlists\OLDIES.M3U
No additional entry to MusicBeeWifiSyncErrorLog.txt

On the Android device OLDIES.M3U playlist appears empty, if I double-click, nothing happens.

Freddy
Title: Re: Wifi android device synching
Post by: phred on February 26, 2019, 05:13:50 PM
On the Android device OLDIES.M3U playlist appears empty, if I double-click, nothing happens.
Is the .m3u file truly empty? Look at it with a text editor. And is it showing zero bytes as a file size.

I was experiencing something like this yesterday where the -music player- was not showing the playlists. But they were there and contained data. If the playlist file actually contains data and your music player doesn't see them, perhaps you need to find the 'rescan' option in the player. Or sync the Android Media Storage with the newly synced files.

This might help a little: https://getmusicbee.com/forum/index.php?topic=27681.msg155676#msg155676
Title: Re: Wifi android device synching
Post by: Steven on February 26, 2019, 05:56:30 PM
@freddy, yes i can see there is a bug with MTP wired sync for playlists. This should fix that:
https://getmusicbee.com/patches/MusicBee33_Patched.zip

I am afraid i have no idea why your wireless playlist sync doesnt happen without an error being logged.
How do you determine the playlist is not there?

Title: Re: Wifi android device synching
Post by: Freddy Barker on February 26, 2019, 07:55:05 PM
@freddy, I am afraid i have no idea why your wireless playlist sync doesnt happen without an error being logged.
How do you determine the playlist is not there?

Referring to my second test - TEST BY REQUST No.3 post:-
https://getmusicbee.com/forum/index.php?topic=27681.msg155688#msg155688

Same results as above except:
Playlist OLDIES.M3U WAS copied to MicroSD\Playlist\OLDIES.M3U
but in the previous TEST No.2
Playlist OLDIES.M3U WAS NOT copied to MicroSD\Playlist\OLDIES.M3U
(I deleted all MicroSD\Playlists and MicroSD\Music contents between tests..

No additional entry to MusicBeeWifiSyncErrorLog.txt

On the Android device OLDIES.M3U playlist appears empty, if I double-click, nothing happens.

Hope that's a bit clearer!!
Title: Re: Wifi android device synching
Post by: Steven on February 26, 2019, 08:05:31 PM
Hope that's a bit clearer!!
In honesty not really - i am finding your reports very hard to follow and make sense of.
You need to view the contents of the playlist files to determine if they are empty eg. using windows explorer copy the file to your computer drive and then edit the file using a text editor.
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 26, 2019, 08:06:13 PM
On the Android device OLDIES.M3U playlist appears empty, if I double-click, nothing happens.
Is the .m3u file truly empty? Look at it with a text editor. And is it showing zero bytes as a file size.

I was experiencing something like this yesterday where the -music player- was not showing the playlists. But they were there and contained data. If the playlist file actually contains data and your music player doesn't see them, perhaps you need to find the 'rescan' option in the player. Or sync the Android Media Storage with the newly synced files.

This might help a little: https://getmusicbee.com/forum/index.php?topic=27681.msg155676#msg155676

As far as I can see - in the FIRST test run (after clearing out all of the SD card files and just leaving the MUSIC and PLAYLISTS folders), there defo is no playlist to see, and on a subsequent test, it is there to see, but is zero bytes, it says EMPTY when looking at it using an Android music player, if I double-click on it, nothing happens.
It's all worked just fine in the past - using the cable!!
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 26, 2019, 08:12:09 PM
Hope that's a bit clearer!!
In honesty not really - i am finding your reports very hard to follow and make sense of.
You need to view the contents of the playlist files to determine if they are empty eg. using windows explorer copy the file to your computer drive and then edit the file using a text editor.

Sorry about that!
I'll clear everything off of the Android device , update to the latest MB patch and start again, and will try to make any test results clearer.
Freddy
Title: Re: Wifi android device synching
Post by: Steven on February 26, 2019, 08:32:34 PM
I'll clear everything off of the Android device , update to the latest MB patch and start again, and will try to make any test results clearer.
were you using the latest patch that i linked to a couple of hours ago ?
@freddy, yes i can see there is a bug with MTP wired sync for playlists. This should fix that:
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Assuming yes, can you replace musicbee.exe with this one:
https://www.mediafire.com/file/5kcpk4izbkj6hd0/MusicBeeDebugMtp.zip/file
which will log what is being done for wired MTP sync in the error log
Title: Re: Wifi android device synching
Post by: phred on February 26, 2019, 08:48:10 PM
Using 3.3.6996 and 0.2.4 and changing nothing else from yesterday, WiFi sync is mostly working again on the X5. I added an album to MB's library and one other track to a playlist. WiFi preview shows only the album to be synced and doesn't display any playlists. I went ahead anyway and the album transferred but the track for the playlist did not. There were 89 tracks in the playlist before the sync and there still are.

For reference, when WiFi syncing to the Samsung S8 I see the playlists both in preview and when actually syncing. Whether or not there are changes. Steven- you said this is normal. But on the X5 I have -never- seen the playlists. When I did a sync last night via USB cable, the playlists showed in preview and in the actual sync. And they are unchanged in today's WiFi sync. Here's the X5 error log:
Code
Feb 26, 2019 3:37:49 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3AMusic,mapped path=null,write=true,sd card=/mnt/external_sd1
Feb 26, 2019 3:37:49 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3A,mapped path=/mnt/external_sd1,write=true,sd card=/mnt/external_sd1
Feb 26, 2019 3:37:49 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: selected permission=content://com.android.externalstorage.documents/tree/0E65-65B9%3A
Feb 26, 2019 3:37:50 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3AMusic,mapped path=null,write=true,sd card=/mnt/external_sd1
Feb 26, 2019 3:37:50 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3A,mapped path=/mnt/external_sd1,write=true,sd card=/mnt/external_sd1
Feb 26, 2019 3:37:50 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: selected permission=content://com.android.externalstorage.documents/tree/0E65-65B9%3A
Feb 26, 2019 3:37:50 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: storage: root path=/mnt/external_sd1, root id=0E65-65B9:, perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3A
Feb 26, 2019 3:37:59 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: storage: root path=/mnt/external_sd1, root id=0E65-65B9:, perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3A

I'm not looking for a miracle, Steven. I had resigned myself to syncing the X5 via USB, but tried WiFi today just on a whim. If you can't do anything about this, I understand. At least I'm getting the tracks copied over and that's much better than yesterday's attempt and the preview showing that all 27k+ tracks would be synced.
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 26, 2019, 09:02:06 PM
were you using the latest patch that i linked to a couple of hours ago ?

Yes and whatever you have done - everything is now working perfectly!!

TESTING LATEST
MusicBee Wifi Sync Android App v 0.2.4
Device Android v 6.0.1
MB v3.3.6996.32080

All expected COPY and DELETE operations successful on MicroSD card for music files to MicroSD\Music\mytracks.m4a

The Playlist OLDIES.M3U was copied successfully to MicroSD\Playlists\OLDIES.M3U (1.25 KB)
EXAMPLE = (/Music/Maria Muldaur/Hear of Mine/1-01 - Midnight At The Oasis.m4a)
plus the whole list etc.


NO Error log entries for MB on PC.

Phone/Download/MusicBeeWifiSyncErrorLog.txt

26 Feb 2019 20:40:28 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/B2D4-1CF9%3A,mapped path=/storage/B2D4-1CF9,write=true,sd card=/storage/B2D4-1CF9
26 Feb 2019 20:40:28 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: selected permission=content://com.android.externalstorage.documents/tree/B2D4-1CF9%3A
26 Feb 2019 20:40:29 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/B2D4-1CF9%3A,mapped path=/storage/B2D4-1CF9,write=true,sd card=/storage/B2D4-1CF9
26 Feb 2019 20:40:29 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: selected permission=content://com.android.externalstorage.documents/tree/B2D4-1CF9%3A
26 Feb 2019 20:40:29 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: storage: root path=/storage/B2D4-1CF9, root id=B2D4-1CF9:, perm uri=content://com.android.externalstorage.documents/tree/B2D4-1CF9%3A
26 Feb 2019 20:40:33 com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: storage: root path=/storage/B2D4-1CF9, root id=B2D4-1CF9:, perm uri=content://com.android.externalstorage.documents/tree/B2D4-1CF9%3A
Title: Re: Wifi android device synching
Post by: railfan-eric28 on February 27, 2019, 05:39:09 AM
I just tried to sync with my Galaxy S7 but it wants to delete all the songs on the phone it looks like.  I don't want to delete 20GB of songs and resync them all at the same time.   Is there a fix?
Title: Re: Wifi android device synching
Post by: Steven on February 27, 2019, 07:15:19 AM
are you using the latest MB patch version 3.3.6996 and android app 0.2.4?
files are prompted for deletion for any songs that dont match the generated filename based on the sync settings using all the source files
eg. has the file path or naming template been changed in any way in the sync settings
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 27, 2019, 10:21:56 AM
TEST RESULTS

MY CURRENT SETTINGS
Preferences / devices / SM-J500FN / configure / settings /

MEDIA STORAGE
STORAGE PATH:  [SM-J500FN\Card]

PLAYLIST PATH: [SM-J500FN\Card\Playlists\]

I just added a few  more Playlists, one at a time, to the sync settings, and you'll be be relieved / please to know all went OK!

QUESTION @STEVEN
What is the normal / correct / required configuration for Playlist path?
Is it generated by MB or by browsing and selecting by the user?

My reason for asking, is that I'm sure it recently changed from (3) to (1), and I didn't change it, so maybe that's why the Playlists are in the correct location and work Ok and previously, did not always??

(1) - SM-J500FN\Card\Playlists\
(2) - Card\Playlists\
(3) - Playlists\
(4) - Other

Best regards; Freddy
Title: Re: Wifi android device synching
Post by: phred on February 27, 2019, 12:06:48 PM
What is the normal / correct / required configuration for Playlist path?
Is it generated by MB or by browsing and selecting by the user?
You have to determine what/where your player requires as regards to location of the playlist files and the music files.
You have to set that up in MB. And once set, it should remain persistent as long as you don't change it on the player.
MB can't determine where to put the files unless you configure it.
Title: Re: Wifi android device synching
Post by: Freddy Barker on February 27, 2019, 02:33:11 PM
You have to determine what/where your player requires as regards to location of the playlist files and the music files.
You have to set that up in MB. And once set, it should remain persistent as long as you don't change it on the player.
MB can't determine where to put the files unless you configure it.

Hi and thanks,
My Android player(s) have always been [Card\Music\] and [Card\Playlists\]
So either option here will do the job?

(1) - SM-J500FN\Card\Playlists\
(2) - Card\Playlists\
(3) - Playlists\
Title: Re: Wifi android device synching
Post by: Steven on February 27, 2019, 07:04:29 PM
Using 3.3.6996 and 0.2.4 and changing nothing else from yesterday, WiFi sync is mostly working again on the X5. I added an album to MB's library and one other track to a playlist. WiFi preview shows only the album to be synced and doesn't display any playlists. I went ahead anyway and the album transferred but the track for the playlist did not. There were 89 tracks in the playlist before the sync and there still are.
irrespective of which android version and which storage card you use, MB will always sync a playlist if (a) its included in the MB device sync settings and (b) you dont have the format set to "Do not save" ie. you have the format set to M3U.
If those conditions are met, the preview should always show the playlist. As to the actual sync, its theoretically possible it doesnt sync due to a bug
Title: Re: Wifi android device synching
Post by: phred on February 27, 2019, 09:27:12 PM
irrespective of which android version and which storage card you use, MB will always sync a playlist if (a) its included in the MB device sync settings and (b) you dont have the format set to "Do not save" ie. you have the format set to M3U.
If those conditions are met, the preview should always show the playlist. As to the actual sync, its theoretically possible it doesnt sync due to a bug
The playlists are definitely included in the sync settings for the X5 and the format is set to M3U. But the playlists are not visible in the preview, nor do they transfer.

BUT(!) please don't put any time into this on my behalf. When I fired up the X5 this afternoon to see what the preview showed as needed to sync, it showed all 27k+ tracks again. I will continue to use WiFi on the S8, but unless there's some major breakthrough, I won't even check any more with the X5. I understand it may be entirely due to Android 5.1.1 and there's nothing I can, nor FiiO will, do about that.

Although I see that FiiO just release a firmware update for the X5. There's no mention of an Android OS update, but I'll update the firmware and try another WiFi sync.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on February 27, 2019, 11:38:20 PM
are you using the latest MB patch version 3.3.6996 and android app 0.2.4?
files are prompted for deletion for any songs that dont match the generated filename based on the sync settings using all the source files
eg. has the file path or naming template been changed in any way in the sync settings
I am using 6996 and 0.1.4 according to the app info. .  I checked for updates yesterday before trying it and posting about it.  It doesn't not show up under the beta apps in the play store app.

also as I posted in a different thread I moved my music to a new computer and figured out how to reconnect my library and file path so I wouldn't be starting from scratch.    Bringing me to another question.   How do I tell the app which computer I'm trying to connect too?  The old one is till online.
Title: Re: Wifi android device synching
Post by: phred on February 28, 2019, 02:05:58 AM
Although I see that FiiO just release a firmware update for the X5. There's no mention of an Android OS update, but I'll update the firmware and try another WiFi sync.
Sadly no change.
Title: Re: Wifi android device synching
Post by: phred on February 28, 2019, 02:09:09 AM
I am using 6996 and 0.1.4 according to the app info. .  I checked for updates yesterday before trying it and posting about it.  It doesn't not show up under the beta apps in the play store app.
Current version of the wifi app is 0.2.4. Open up the Play Store app from within your device and check for updates.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on February 28, 2019, 04:54:13 AM
I am using 6996 and 0.1.4 according to the app info. .  I checked for updates yesterday before trying it and posting about it.  It doesn't not show up under the beta apps in the play store app.
Current version of the wifi app is 0.2.4. Open up the Play Store app from within your device and check for updates.

Isn't that what I just said I did?  I did it twice.   Before trying to sync and again before posting to the forum.
Title: Re: Wifi android device synching
Post by: Steven on February 28, 2019, 07:33:34 AM
If any of the others who joined the testing list have any comments on the latest version, it would be appreciated - the app should be fully functional now.

The latest play store version is 0.2.4
https://play.google.com/apps/internaltest/4700978781087552506

for those who missed the message a few days ago, also update MusicBee as there was a bug with timestamps. Any files you previously synched with Wifi Sync will probably be re-synched again
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: railfan-eric28 on February 28, 2019, 08:05:50 AM
I still am not getting any updates on the MB Wifi App.   What do I need to do?  It was last updated on Feb 16th.
Title: Re: Wifi android device synching
Post by: zkhcohen on February 28, 2019, 08:20:04 AM
Still working great for me. Currently transferring at 85-115 Mbps.
Title: Re: Wifi android device synching
Post by: Steven on February 28, 2019, 08:43:08 AM
What do I need to do?
use the link provided in the message?
Title: Re: Wifi android device synching
Post by: zkhcohen on February 28, 2019, 08:48:32 AM
Finished the sync.All songs were transferred. None of my .m3u playlists were transferred, even after retrying.This wasn't an issue on earlier builds.


MusicBee Desktop logs show many of these:


2/28/2019 12:44:58 AM - Add playlist "C:\Users\Zachary\Music\MusicBee\Playlists\Playlists\Transcendent Chill.mbp" I/O error occurred.


Phone logs show:

Feb 28, 2019 12:44:58 AM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile: SM-G955U
Feb 28, 2019 12:44:58 AM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: createFolder: SM-G955U: Invalid url
Feb 28, 2019 12:44:58 AM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile: SM-G955U
Feb 28, 2019 12:44:58 AM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: createFolder: SM-G955U: Invalid url
Feb 28, 2019 12:44:58 AM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile: SM-G955U
Feb 28, 2019 12:44:58 AM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: createFolder: SM-G955U: Invalid url
Feb 28, 2019 12:44:58 AM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile: SM-G955U
Feb 28, 2019 12:44:58 AM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: createFolder: SM-G955U: Invalid url
Feb 28, 2019 12:44:58 AM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile: SM-G955U



....etc., etc.
Title: Re: Wifi android device synching
Post by: Steven on February 28, 2019, 09:07:06 AM
is "C:\Users\Zachary\Music\MusicBee\Playlists\Playlists\..." the correct source playlist location?
what is the storage path in the musicbee device sync settings?
and what is the Playlist storage path configured in the musicbee device sync settings?

it might be useful to send me a link to your settings file, indicating which device you are using if there are multiple
Title: Re: Wifi android device synching
Post by: zkhcohen on February 28, 2019, 10:09:02 AM
is "C:\Users\Zachary\Music\MusicBee\Playlists\Playlists\..." the correct source playlist location?
what is the storage path in the musicbee device sync settings?
and what is the Playlist storage path configured in the musicbee device sync settings?

it might be useful to send me a link to your settings file, indicating which device you are using if there are multiple

That path does contain the playlists, but not the .m3u ones. I have no idea why it's trying to sync the .mbp one as indicated by the error message I sent. The folder does contain .mbp playlists.

I'll pm you my settings file. There's only one device.
Title: Re: Wifi android device synching
Post by: Bee-liever on February 28, 2019, 10:41:57 AM
I still am not getting any updates on the MB Wifi App.   What do I need to do?  It was last updated on Feb 16th.
I would hazard a guess that you are using an android 4.4 (KitKat) device.
All the updates after 1.4 only work on android 5.0 and above.
Title: Re: Wifi android device synching
Post by: phred on February 28, 2019, 12:06:26 PM
What do I need to do?
use the link provided in the message?
https://play.google.com/apps/internaltest/4700978781087552506

Unless Bee-liever is correct.
Title: Re: Wifi android device synching
Post by: phred on February 28, 2019, 12:27:40 PM
None of my .m3u playlists were transferred
My MB error log shows one set of these for each of my 79 playlists. And yes, the path is correct.
Code
2/27/2019 4:56:20 PM - Operation is not valid due to the current state of the object.
2/27/2019 4:56:20 PM - Add playlist "G:\MusicBee\phred\Playlists\George Harrison.mbp" Operation is not valid due to the current state of the object.

X5 error log
Code
Feb 27, 2019 4:56:17 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3A,mapped path=/mnt/external_sd1,write=true,sd card=/mnt/external_sd1
Feb 27, 2019 4:56:18 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: selected permission=content://com.android.externalstorage.documents/tree/0E65-65B9%3A
Feb 27, 2019 4:56:20 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3A,mapped path=/mnt/external_sd1,write=true,sd card=/mnt/external_sd1
Feb 27, 2019 4:56:20 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: grant: selected permission=content://com.android.externalstorage.documents/tree/0E65-65B9%3A
Feb 27, 2019 4:56:20 PM com.getmusicbee.musicbeewifisync.ErrorHandler logInfo
INFO: storage: root path=/mnt/external_sd1, root id=0E65-65B9:, perm uri=content://com.android.externalstorage.documents/tree/0E65-65B9%3A

And I'm not sure if this has anything to do with the problem, but I've got about 3000 entries like this in the MB error log. I've mentioned this before, but there's been no comment. The drive letters referenced, Q: and R:, are optical drives. I see no reason why MB should be calling that when syncing. And at the time of these entries, I wasn't using, nor was there a disk in the opticals.
Code
2/27/2019 9:20:51 PM - Q:\Track03.cda:refresh:The parameter is incorrect. [Q:\]
2/27/2019 9:20:51 PM - R:\Track10.cda:refresh:The parameter is incorrect. [R:\]
2/27/2019 9:20:52 PM - Q:\Willie Dixon\The Quiet Night\9 - I Think I Got the Bl.mp3:refresh:The parameter is incorrect. [Q:\Willie Dixon\The Quiet Night\]
2/27/2019 9:20:55 PM - R:\Grateful Dead\Boston Music Hall\1-9 - Tennessee Jed.mp3:refresh:The parameter is incorrect. [R:\Grateful Dead\Boston Music Hall\]
Title: Re: Wifi android device synching
Post by: Steven on February 28, 2019, 05:59:37 PM
@zkhcohen, your device is named "SAMSUNG-SM-G955U" but your playlist root path is configured as "SM-G955U\Card\Playlists\"
I am guessing the name of your device has recently been changed.
So MB is trying to save the playlists to:
SAMSUNG-SM-G955U\Card\SM-G955U\Card\Playlists\

You should set the correct playlist root path - easier if you just make it a relative path like the other folders.

Having said all this, there is a bug as it failed to create folder "SM-G955U". I can see why that happened and will fix that

@phred, i have sent you a PM re: the refresh entries in the error log
Title: Re: Wifi android device synching
Post by: railfan-eric28 on March 01, 2019, 02:42:23 AM
@zkhcohen, your device is named "SAMSUNG-SM-G955U" but your playlist root path is configured as "SM-G955U\Card\Playlists\"
I am guessing the name of your device has recently been changed.
So MB is trying to save the playlists to:
SAMSUNG-SM-G955U\Card\SM-G955U\Card\Playlists\

You should set the correct playlist root path - easier if you just make it a relative path like the other folders.

Having said all this, there is a bug as it failed to create folder "SM-G955U". I can see why that happened and will fix that

@phred, i have sent you a PM re: the refresh entries in the error log

Are you saying that if we rename our device or switch cards to a new one the playlists won't work or have to be recreated?
Title: Re: Wifi android device synching
Post by: railfan-eric28 on March 01, 2019, 02:45:22 AM
I still am not getting any updates on the MB Wifi App.   What do I need to do?  It was last updated on Feb 16th.
I would hazard a guess that you are using an android 4.4 (KitKat) device.
All the updates after 1.4 only work on android 5.0 and above.
In my earlier post I said i am using a GS7.   I'm on nougat.   
Title: Re: Wifi android device synching
Post by: railfan-eric28 on March 01, 2019, 02:47:24 AM
What do I need to do?
use the link provided in the message?
https://play.google.com/apps/internaltest/4700978781087552506

Unless Bee-liever is correct.

Thanks.   I am confused as I joined a test version when it first came out and had to send a PM to Steven to get approved.   
Title: Re: Wifi android device synching
Post by: railfan-eric28 on March 01, 2019, 03:15:51 AM
So I finally got the Wifi App updated but it still wants to delete a list too long to get to the bottom off my SD Card.   Is it necessary to delete everything and sync it all again?  That would take 8 hrs or more.   I have at least 20GB's or more on my card.   
Title: Re: Wifi android device synching
Post by: Steven on March 01, 2019, 07:12:36 AM
Is it necessary to delete everything and sync it all again?
no.
can you send me a link to your settings file (help/ support/ view settings)
and also let me know the folder path the music files reside on your device
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 01, 2019, 03:36:43 PM
TESTING - 01 MAR 2019
MusicBee Wifi Sync Android App 0.2.5
Device SM-J500FN Android 6.0.1
MB 3.3.6996.32080

MEDIA STORAGE
Storage path: [SM-J500FN\Card\]
Playlist path:  [SM-J500FN\Card\Playlists\]

ACTIONS
Added more playlists.
Removed some tracks from previously added playlists.
Added new tracks to an existing playlist.

RESULTS
All expected COPY and DELETE operations successful on [\Card\Music\] *.m4a
All 5 Playlists copied successfully to [\Card\Playlists\] *.m3u
  
Freddy
Title: Re: Wifi android device synching
Post by: TeutonJon78 on March 01, 2019, 06:35:25 PM
App 0.2.5
Musicbee 6996

A sync to the microSD card on an i777 running CM13 worked wonderfully (43 GB). I'll be trying it on my Axon 7 microsd card next with full library sync (117 GB).

Soooooo much better than MTP syncing, especially for not getting hung up on playlist syncing for 30 minutes.

Edit: Ok, so I've been getting a few failures on the bigger transfer. from the MB error log:

2019-03-01 6:44:56 PM - 10.0.17763.0 - 3.3.6996.38313 - WifiSyncAbort: Cannot write to a BufferedStream while the read buffer is not empty if the underlying stream is not seekable. Ensure that the stream underlying this BufferedStream can seek or avoid interleaving read and write operations on this BufferedStream.

My guess is the overzealous power manager on my Axon 7 is killing the app somehow. It restarts fine, but the preview still says it needs to sync files it already syncs. When it starts copying files, it starts about where it ended up.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on March 02, 2019, 03:26:11 AM
Is it necessary to delete everything and sync it all again?
no.
can you send me a link to your settings file (help/ support/ view settings)
and also let me know the folder path the music files reside on your device


The folder path on the phone is /storage/9C33-6BBD/Music for the music and /Playlists for the playlists.   
And here for the settings file:

https://drive.google.com/open?id=1DB_iJM5_WcKHd_VNZzRFuixTrSuIJkNa

Title: Re: Wifi android device synching
Post by: TeutonJon78 on March 02, 2019, 08:10:50 AM
So I finished syncing my large collection. It failed several times, mostly for the unknown reason I posted before. Once because my computer went to sleep.

Performing the sync several times seems to have gotten it to work correctly. The only error is one song that keeps trying to copy everytime but won't for some reason. The log shows it copying, but it never makes it to the sdcard and both say the sync was complete.

Copying it over manually and then resyncing it again matched the expected results.
Title: Re: Wifi android device synching
Post by: Steven on March 02, 2019, 09:13:42 AM
The folder path on the phone is /storage/9C33-6BBD/Music for the music and /Playlists for the playlists.  
that doesnt match to your settings file which has:
SM-G930V\Card\
however i am not sure that is actually the problem

how did you get the files onto the sd card - using musicbee, and using wired MTP sync? and did you sync to that phone with the card inserted?
Title: Re: Wifi android device synching
Post by: Steven on March 02, 2019, 09:22:05 AM
Edit: Ok, so I've been getting a few failures on the bigger transfer. from the MB error log:
do you have the log from the android device in the Downloads folder?

I am going to look at the retry handling and having the actual android errors will help
Title: Re: Wifi android device synching
Post by: TeutonJon78 on March 02, 2019, 09:28:37 AM
Yeah, I have the file. It's about a 1 MB. I've been testing the sync and getting a LOT of weird failures/recopys. I'll post it to my google drive and PM you the link.
Title: Re: Wifi android device synching
Post by: Steven on March 02, 2019, 10:54:03 AM
Yeah, I have the file. It's about a 1 MB. I've been testing the sync and getting a LOT of weird failures/recopys. I'll post it to my google drive and PM you the link.
looking at the error log, i dont think i can do anything about the issue you were having. It looks to me like something on the android device went unstable and didnt recover
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 02, 2019, 12:14:22 PM
@steven

I was gonna do some testing today with the "enable 2 way synchronisation" option checked, but is 'greyed out'..

Is that correct for Wifi sync only??

Freddy
Title: Re: Wifi android device synching
Post by: klint on March 02, 2019, 03:10:56 PM
Hi Steven
My PC has a firewall that I can't tweak (an office PC), so I'm not able to test the sync over wifi and  I'm still "stuck" with the sync over MTP. :(

And I have a question there: could there be a side effect on the MTP sync from the latest changes you did on the device syncing ? I'm asking because with the latest build I installed yesterday, MB sync simulation is now showing ALL files to be resent to the phone, and also is not showing some deletions that should be done. I haven't applied the sync yet for the latter reason, but I fear that I will have to erase all files manually before the sync rewrites all files.

Thanks
Title: Re: Wifi android device synching
Post by: Steven on March 02, 2019, 03:35:04 PM
could there be a side effect on the MTP sync from the latest changes you did on the device syncing ?
only if you succeeded with the Wifi Sync on an some of the earlier MB builds due to a bug with setting the file modification time, and every file was synched.
I suggest you try with the MB version from the first forum topic. If it still happens, check the modification date/time of some of the files. Also check the MB sync settings has the correct music folder path and correct storage path
Let me know how that goes.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on March 02, 2019, 03:59:00 PM
The folder path on the phone is /storage/9C33-6BBD/Music for the music and /Playlists for the playlists.   
that doesnt match to your settings file which has:
SM-G930V\Card\
however i am not sure that is actually the problem

how did you get the files onto the sd card - using musicbee, and using wired MTP sync? and did you sync to that phone with the card inserted?

I synced it with MB with the phone plugged into the computer.   So I think that is MTP sync.  I think the setting is "File Transfer".
Title: Re: Wifi android device synching
Post by: Steven on March 02, 2019, 05:26:55 PM
I synced it with MB with the phone plugged into the computer.   So I think that is MTP sync.  I think the setting is "File Transfer".
I take that to mean the card in question was inserted in the phone when you synched it with MB using a wired connection.
In that case, can you navigate to one of the music files that resides on the phone using Windows Explorer and confirm the file modification date looks similar to the file modification date of the equivalent source file in your musicbee library (it wont be an exact match but there should be no more than a minute or two difference)
Title: Re: Wifi android device synching
Post by: Steven on March 02, 2019, 05:48:46 PM
I was gonna do some testing today with the "enable 2 way synchronisation" option checked, but is 'greyed out'..

Is that correct for Wifi sync only??
yes thats right for now
Title: Re: Wifi android device synching
Post by: phred on March 02, 2019, 09:58:24 PM
Using 3.3.6998 and 0.2.5.
After stating a few days ago that I will reluctantly refrain from using WiFi sync on my FiiO X5 due to its 5.1.1 Android OS, I decided to give it another try today. Last time it took almost twelve hours. Today it took three. And it appears to have copied everything that it was supposed to except playlists. I believe I saw one or two other users state that playlists weren't being copied. I watched the syncing tracks very carefully at it approached 99% and did not see a single playlist appear. There is nothing in either error log. Perhaps all my playlists are up to date? Steven said at one point that even if that were the case, they should be seen on the sync list.

I'm going to create a new playlist and sync again to see if it gets picked up. I shall report back.
Title: Re: Wifi android device synching
Post by: Steven on March 02, 2019, 10:20:08 PM
re: the playlists, there is a bug in the Android media scanner where it doesnt add playlists files to the mediastore database.
I added some handling to work around that, although i dont recall if it was included in 0.2.5
The file should be physically present on the card but not show in windows explorer or anywhere that depends on the mediastore database.
If you browse using the Files app via the SD Card storage you should see the file.
If you are still convinced it wasnt even copied at all then i will give you a debug version.
Title: Re: Wifi android device synching
Post by: phred on March 03, 2019, 02:10:33 AM
The file should be physically present on the card but not show in windows explorer or anywhere that depends on the mediastore database.
If you browse using the Files app via the SD Card storage you should see the file.
If you are still convinced it wasnt even copied at all then i will give you a debug version.
I added a new playlist to the sync parameters and set the sync to -only- sync playlists. Nothing new was added to the X5. I checked with an Android file manager and the new playlist file does not exist on the card. I also connected the X5 via USB to MB and examined the playlists folder. The new playlist isn't there.
Title: Re: Wifi android device synching
Post by: Steven on March 03, 2019, 10:51:59 AM
@phred, can you run this debug version and let me know the info at the end of the error log after doing a wifi sync (preview only is ok)

https://www.mediafire.com/file/gymyuftgsiyi04s/MusicBeeDebugPlaylists.zip/file

Title: Re: Wifi android device synching
Post by: Freddy Barker on March 03, 2019, 12:37:22 PM
TEST - [03 MAR 2019]
Device SM-J500FN Android 6.0.1
MB 3.3.6996.32080

DEVICE SETTING
Storage path = [SM-J500FN\Card\]

TEST ACTIONS
1 - Amend device setting to: Playlist path = [Playlists\].
2 - Remove tracks, add tracks and add playlist to sync settings.
3 - Restart MB.
4 - DELETE all current playlists on Card.
5 - Launch MusicBee Wifi Sync App 0.2.5.

RESULTS
All expected COPY (35) and DELETE (126) operations successful on [\Card\Music\] *.m4a
All Playlists copied successfully to [\Card\Playlists\] *.m3u

ONLY ONE ERROR (The only entry in the error log for months!)
Slightly odd as the track "01 Theme From Shaft.m4a" was not in any of the Playlists in the device sync settings, and so was not transferred to device.

MB Error Log:
02/03/2019 11:15:09 - Copy D:\MusicBee\Library\Music\Isaac Hayes\Shaft\01 Theme From Shaft.m4a to SM-J500FN\Card\Music\Isaac Hayes\Shaft\1-01 - Theme From Shaft.m4a
  
Regards: Freddy
Title: Re: Wifi android device synching
Post by: phred on March 03, 2019, 12:54:34 PM
@phred, can you run this debug version and let me know the info at the end of the error log after doing a wifi sync (preview only is ok)
I added one playlist to the list of already enabled playlists and then attempted a WiFi sync. Sync app stated "No changes required."
Debug error log:
Code
3/3/2019 7:36:39 AM - device name=X5,storage=T:\,playlists path=Playlists\,est=True
3/3/2019 7:36:39 AM - playlist all=False,count=0,create folders=False
3/3/2019 7:36:44 AM - playlists=False,format=M3u,partial=False
3/3/2019 7:36:44 AM - sync playlists=False,est=True
After seeing that the log shows "storage=T:\" I looked at the 'removable device' settings in MB and it's pointing to U:\ as the root of the storage path. There's a drop down in that field, but all that shows is U:\ and I can't manually change it to T:\. I recall at one point during WiFi testing the X5 was syncing to U:\. Looking at the other configurations under devices, X5 (the internal card that I don't use for music) is showing at T:\ and X5_SD1 is showing as V:\. T:\ and V:\ are used when I'm syncing via USB.
Title: Re: Wifi android device synching
Post by: Steven on March 03, 2019, 01:34:48 PM
Its nothing to do with what storage path you have set. MB is matching on the device name, so the configuration you need to edit is called "X5" - you can find and edit it in Preferences/ Devices.
As it stands you have no playlists selected in "X5"
Title: Re: Wifi android device synching
Post by: phred on March 03, 2019, 02:16:06 PM
Its nothing to do with what storage path you have set. MB is matching on the device name, so the configuration you need to edit is called "X5" - you can find and edit it in Preferences/ Devices.
As it stands you have no playlists selected in "X5"
YES! Playlists are now showing up on the preview and they are syncing. Added one playlist and it copied. Deleted a playlist and it was removed. Added a track to a playlist and it copied. Thanks very much Steven.
Title: Re: Wifi android device synching
Post by: zkhcohen on March 03, 2019, 05:14:20 PM
@zkhcohen, your device is named "SAMSUNG-SM-G955U" but your playlist root path is configured as "SM-G955U\Card\Playlists\"
I am guessing the name of your device has recently been changed.
So MB is trying to save the playlists to:
SAMSUNG-SM-G955U\Card\SM-G955U\Card\Playlists\

You should set the correct playlist root path - easier if you just make it a relative path like the other folders.

Having said all this, there is a bug as it failed to create folder "SM-G955U". I can see why that happened and will fix that

@phred, i have sent you a PM re: the refresh entries in the error log


Super weird. I didn't intentionally change the phone name.

Modifying the playlist path worked perfectly! Thanks.
Title: Re: Wifi android device synching
Post by: psychoadept on March 03, 2019, 08:34:24 PM
I'm having a problem with inconsistency of file paths between wired and wireless syncing. What I WANT is to sync everything to a folder on my SD card called MusicBee, with subfolders for Music, Audiobooks, etc. With wired sync this works with the following settings (it looks wrong because the Music path doesn't show the music subfolder, but it actually does create a MusicBee\Music folder where it puts all the tracks).

(https://i.imgur.com/q74TkwV.png?1)


However, when I unplug the phone and open the device from Devices, this i what I get:

(https://i.imgur.com/YS4GkD2.png?1)

I've tried editing and saving it, but it won't change. And it seems to be trying to delete/recopy tracks based on these settings when I use the wireless sync.
Title: Re: Wifi android device synching
Post by: Steven on March 03, 2019, 08:45:16 PM
Putting aside the wired vs. wireless sync for a moment, if you still have the phone connected to the computer and dont use wireless sync in a musicbee session, does the values for audiobooks and podcasts show incorrectly both when opened from the Preferences/ Devices/ Configure panel vs. opening from the main panel? ie. is it simply a display bug in the Preferences/ Devices/ Configure panel irrespective of whether wired sync is active

I didnt actually test the preserve folders and filenames setting, so i will do so as it sounds like there is an issue with relative paths

edit:
nevermind about the test with Configure panel as i get the same behaviour
Title: Re: Wifi android device synching
Post by: psychoadept on March 03, 2019, 09:08:37 PM
Ok, thanks. I *think* it's actually syncing correctly.
Title: Re: Wifi android device synching
Post by: Steven on March 03, 2019, 09:34:54 PM
Ok, thanks. I *think* it's actually syncing correctly.
I think its just a display bug when accessed via the Preferences/ Devices tab, and should have sync'ed correctly assuming you saved with the correct path.
Its fixed now:
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: klint on March 03, 2019, 10:11:22 PM
)
could there be a side effect on the MTP sync from the latest changes you did on the device syncing ?
only if you succeeded with the Wifi Sync on an some of the earlier MB builds due to a bug with setting the file modification time, and every file was synched.
I suggest you try with the MB version from the first forum topic. If it still happens, check the modification date/time of some of the files. Also check the MB sync settings has the correct music folder path and correct storage path
Let me know how that goes.


The issue comes from the fact that the Storage folder of my phone is always reset to "internal memory" even if I set it back to "external SD card" (after what the sync over MTP behaves quite correctly).

I have tried to modify another parameter in the device settings, like "delete unmatched target files" together with the Root path (set back to "SD CARD"), yet in MusicBee3Settings.ini, only on the <DeleteUnmatchedTargetFiles> param is updated, but not the <RootPath> one, when exiting MB.
Title: Re: Wifi android device synching
Post by: psychoadept on March 03, 2019, 10:35:17 PM
Ok, thanks. I *think* it's actually syncing correctly.
I think its just a display bug when accessed via the Preferences/ Devices tab, and should have sync'ed correctly assuming you saved with the correct path.
Its fixed now:
https://getmusicbee.com/patches/MusicBee33_Patched.zip

That fixed it, thanks!
Title: Re: Wifi android device synching
Post by: Steven on March 04, 2019, 06:47:45 AM
The issue comes from the fact that the Storage folder of my phone is always reset to "internal memory" even if I set it back to "external SD card" (after what the sync over MTP behaves quite correctly).

I have tried to modify another parameter in the device settings, like "delete unmatched target files" together with the Root path (set back to "SD CARD"), yet in MusicBee3Settings.ini, only on the <DeleteUnmatchedTargetFiles> param is updated, but not the <RootPath> one, when exiting MB.
wifi sync doesnt update the MB device sync settings. With wired sync, when you change the storage root path, there is a behaviour where its not saved unless you do a preview or sync. I will address that at some point
Title: Re: Wifi android device synching
Post by: klint on March 04, 2019, 09:31:16 AM
The issue comes from the fact that the Storage folder of my phone is always reset to "internal memory" even if I set it back to "external SD card" (after what the sync over MTP behaves quite correctly).

I have tried to modify another parameter in the device settings, like "delete unmatched target files" together with the Root path (set back to "SD CARD"), yet in MusicBee3Settings.ini, only on the <DeleteUnmatchedTargetFiles> param is updated, but not the <RootPath> one, when exiting MB.
wifi sync doesnt update the MB device sync settings. With wired sync, when you change the storage root path, there is a behaviour where its not saved unless you do a preview or sync. I will address that at some point

Hi Steven
I have done some further testing, and the RootPath setting does not get updated even after a sequence of preview/sync: it is set to "Internal memory" while I explicitely set it to "SD Card" (still, the device summary in the sync panel always shows the SD Card size, not the internal memory one).
Thanks
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 04, 2019, 05:32:13 PM
Music Bee Wifi Sync App 0.2.6 TEST - 04 March 2019

(MB 3.3.7001.38776), RESULTS - All Good!
  
Regards: Freddy
Title: Re: Wifi android device synching
Post by: Steven on March 04, 2019, 06:36:45 PM
I have done some further testing, and the RootPath setting does not get updated even after a sequence of preview/sync: it is set to "Internal memory" while I explicitely set it to "SD Card" (still, the device summary in the sync panel always shows the SD Card size, not the internal memory one).
yes i agree - it looks like a change i made causes it not to be updated. I will fix that for the next 3.3 update

edit:
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: railfan-eric28 on March 05, 2019, 03:32:40 AM
Is it necessary to delete everything and sync it all again?
no.
can you send me a link to your settings file (help/ support/ view settings)
and also let me know the folder path the music files reside on your device


Come to find out I hadn't yet synced from this new computer and it was importing old outdated playlists and the new ones was in mbp and the links was broken.   So after lots of 
 fooling around, as i couldn't get any help on my other thread, I finely figured out how to manually export each playlist from the old computer and read them into the new computer in working order. and then finally it synced it only deleted some files and then synced the rest.   So far so good. 


Title: Re: Wifi android device synching
Post by: klint on March 05, 2019, 09:47:34 AM
I have done some further testing, and the RootPath setting does not get updated even after a sequence of preview/sync: it is set to "Internal memory" while I explicitely set it to "SD Card" (still, the device summary in the sync panel always shows the SD Card size, not the internal memory one).
yes i agree - it looks like a change i made causes it not to be updated. I will fix that for the next 3.3 update

edit:
https://getmusicbee.com/patches/MusicBee33_Patched.zip

Hi Steven
Thanks, but now I'm stuck in another issue: the folder paths for music/podcast/... on the device now mention explicitely Internal Storage while the RootPath is SD Card. I have tried to remove the Internal device from those pathes but they are back.


(https://i.imgur.com/ZMmX2DT.png)

Of course, the sync preview tells me to resync everything ;)

Thanks
Title: Re: Wifi android device synching
Post by: Steven on March 05, 2019, 10:32:52 AM
that should have been fixed this morning so please re-download
Title: Re: Wifi android device synching
Post by: klint on March 05, 2019, 02:56:09 PM
that should have been fixed this morning so please re-download


Happy to report that it works fine now. Thanks Steven :)
Title: Re: Wifi android device synching
Post by: Steven on March 06, 2019, 07:18:05 PM
Will it be possible only with 2 way Wifi Sync?
Thats right. After I feel comfortable one-way wifi sync is stable i will approach the developers of some of the players to see if there is a way to sync ratings and play-counts back to musicbee. Specifically on the point of deleting songs on the phone and playlists, i could probably do that without any co-operation of the other players but i havent investigated yet.

Also there should be an option to include folders manually in the preferences like if i want to just sync only two albums then why do i need to sync whole music? And there should be an easy way to do it like you should be able to just right-click on any album in MusicBee and click Sync and boom it goes to the phone.
you can do that with wired sync, using right click/ Send To/ Device
Title: Re: Wifi android device synching
Post by: OhJeffrey on March 06, 2019, 10:24:36 PM
Hey Steven,
you are incredible. Wow, I'm stunned by your work!
MusicBee is by far the most advanced MusicPlayer I know. Way better, faster and smoother than others.
While using MB for all my partys and playlist management I still have to use MediaMonkey for the AndroidSync. If you would be able to get the 2-way-sync to work... oh boy ... that would be the next big thing! :-*
Title: MB Wifi Sync Playlist Issue
Post by: KangNi on March 06, 2019, 11:30:55 PM
Hi,

I've just tried MB Wifi Sync and experienced an issue with changing the playlist format.

I started syncing with M3U files and it worked fine.
Later I switched to PLA and it worked fine.
After I switched back to M3U, the android APP corretly shows M3U files in the sync preview, but when I proceed it still stores PLA files!  :o

I've already tried restart MB and the APP.
There seems to be no way to set it back to sync M3U files again  :-\

Any ideas here?

MB 3.3.7003
MB Sync 0.2.6

Greetings
Title: Re: Wifi android device synching
Post by: KangNi on March 07, 2019, 12:24:28 AM
Quote
If you find they're truly not being copied over try manually deleting the pla files on the device and then resyncing.

I've did deleted the PLA files and Yes, they are synced in the right folder.
But the App still writes PLA files but shows M3U in the sync preview.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on March 07, 2019, 02:33:58 AM
Is there going to be a way to select which playlists or whatever to sync via WIFI from the android app?  So I can lay in bed or whatever and change it without going to the computer and doing it on the software?  That's how iSyncr works.  Except it was slow as hell to try to browse artists, albums, or songs or anything other then playlists. 
Title: Re: Wifi android device synching
Post by: phred on March 07, 2019, 02:48:03 AM
Quote
If you find they're truly not being copied over try manually deleting the pla files on the device and then resyncing.

I've did deleted the PLA files and Yes, they are synced in the right folder.
But the App still writes PLA files but shows M3U in the sync preview.

You say you're seeing m3u in the preview, so make sure they're not going to a different folder rather than the one expected.
Title: Re: Wifi android device synching
Post by: Steven on March 07, 2019, 08:55:56 AM
PLA formatted playlists is not supported (and wont be) by WifiSync and switches to M3U
Title: Re: Wifi android device synching
Post by: chrisdivine on March 08, 2019, 09:08:08 AM
Hi Steven!

I LOVE MB! Really and the WiFI Sync option is a killer feature! Thanks 4 your work. You are doing a great job!

I am using 3.3.7003 and syncronication is a little bit buggy at the moment. Sometimes it works, sometimes not.
Actually it stops with the android message: A non-recoverable error occured during the synchronization process.... and the log files say (german phone!):
"März 08, 2019 9:48:15 VORM. com.getmusicbee.musicbeewifisync.ErrorHandler logError
SCHWERWIEGEND: looper [CLT-L29, 9, 0.2.6] command=ReceiveFile: java.io.UTFDataFormatException: malformed input around byte 114"
"März 08, 2019 9:52:25 VORM. com.getmusicbee.musicbeewifisync.ErrorHandler logError
SCHWERWIEGEND: looper [CLT-L29, 9, 0.2.6] command=ShowPreviewResults: java.io.UTFDataFormatException: malformed input around byte 108"
CLT-L29 is the name on my phone (Android 9) using only the internal device.
Maybe this info can help you with the development.

Once again: THANK YOU!
chris


Title: Re: Wifi android device synching
Post by: KangNi on March 09, 2019, 07:37:51 PM
Hi there,

due to I still experiencing sync issues with playlists, but also found some obvious reasons for that, I've startet a new general thread about Android and playlists:

https://getmusicbee.com/forum/index.php?topic=28124.msg156052#msg156052 (https://getmusicbee.com/forum/index.php?topic=28124.msg156052#msg156052)

Please have look.

Greetings
Title: Re: Wifi android device synching
Post by: Steven on March 10, 2019, 09:44:26 PM
I am using 3.3.7003 and syncronication is a little bit buggy at the moment. Sometimes it works, sometimes not.
Actually it stops with the android message: A non-recoverable error occured during the synchronization process.... and the log files say (german phone!):
"März 08, 2019 9:48:15 VORM. com.getmusicbee.musicbeewifisync.ErrorHandler logError
SCHWERWIEGEND: looper [CLT-L29, 9, 0.2.6] command=ReceiveFile: java.io.UTFDataFormatException: malformed input around byte 114"
How solid is your Wifi connection?
I do have some retry code when a socket read or write fails but i see one place i missed, so have fixed that for the next android app update - it might be a few days though
Title: Re: Wifi android device synching
Post by: Steven on March 10, 2019, 10:31:30 PM
Is there going to be a way to select which playlists or whatever to sync via WIFI from the android app?
I have implemented the ability to select specific playlists for sync from the android device (not artists or albums, just playlists)
I will probably make it available in a few days time
Title: Re: Wifi android device synching
Post by: railfan-eric28 on March 11, 2019, 08:31:23 AM
Is there going to be a way to select which playlists or whatever to sync via WIFI from the android app?
I have implemented the ability to select specific playlists for sync from the android device (not artists or albums, just playlists)
I will probably make it available in a few days time
Oh thank you!!!  I can't wait to try it.  Keep up the good work!!!  I wish you can sync ratings with poweramp but maxmp doesn't want to sync with anything because he said it's not reliable to sync ratings with other players outside of Poweramps closed in rating system.   pity so I don't know if you will have any luck inquiring Max about it.   But I do know I've used a few players that will let you select what rating system you want to use.   I think PlayerPro and Jet Audio was two of them.   They had iSyncr on there, android, and a few others.   
Title: Re: Wifi android device synching
Post by: zkhcohen on March 14, 2019, 10:30:36 AM
Works on the Samsung S10 without any issues.

Glad to see that the new version hasn't affected anything.
Title: Re: Wifi android device synching
Post by: Steven on March 14, 2019, 07:41:56 PM
Updated alpha version 0.3:
https://play.google.com/apps/internaltest/4700978781087552506

It needs the latest patched MusicBee v3.3
https://getmusicbee.com/patches/MusicBee33_Patched.zip

- changed and enhanced UI
- error log is now viewable from the action bar (also the error log is now written to the private musicbee data folder)
- ability to select adhoc playlists for sync
- now writes playlists and contents to the mediastore database (needed for some players)
- enhanced retry functionality for socket connection failures
Title: Re: Wifi android device synching
Post by: phred on March 14, 2019, 08:06:24 PM
Updated alpha version 0.3:
https://play.google.com/apps/internaltest/4700978781087552506
It's starting to mature nicely. Some nice additions to this version. I like the settings option and to ability to see the error log from within the app. And it's working well on the Samsung S8. Didn't do a sync with the X5, but launched and the playlist option appears, so I assume a sync will work well here also.

Nice work.

Thanks.
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 15, 2019, 01:41:25 PM
Updated alpha version 0.3:
https://play.google.com/apps/internaltest/4700978781087552506

It needs the latest patched MusicBee v3.3
https://getmusicbee.com/patches/MusicBee33_Patched.zip

TESTING - [15 MAR 2019]
Device SM-A500FU Android v6.0.1
MB v3.3.7011.33478
MB vSync 0.3

ACTIONS
Added new Playlist.
All previously synced Auto-playlist have updated with several changes.

RESULTS
MusicBee Wifi Sync 0.3
ON SCREEN MESSAGE = MusiBee synchonization completed with errors.
132 files not copied, 78 files not deleted.
No Download\error log.
No new Playlist copied.

MB ERROR LOG
15/03/2019 12:25:13 - Delete "SM-J500FN\Card\Music\Kiki Dee\Amoureuse\1-21 - Amoureuse.m4a" I/O error occurred.
Plus 77 similar, 1 for each track.

15/03/2019 12:25:59 - Add playlist "D:\MusicBee\Library\Playlists\SAMSUNG\RATED.xautopf" I/O error occurred.
Plus 131 similar, 1 for each track.
 
Regards: Freddy
Title: Re: Wifi android device synching
Post by: Steven on March 15, 2019, 04:03:18 PM
you need to view the error log in the app itself - click on the menu in the action bar
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 15, 2019, 05:17:07 PM
you need to view the error log in the app itself - click on the menu in the action bar

Yes! the three-dots-menu Error log - empty. (just a pop-up "COPY TO CLIPBOARD")
Scanned device - nothing since 15/02/2019 @ 10:45 from search=musicbee

However!
Rebooted the PC and restarted the device - all syncing worked 100%
Nice work!
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 15, 2019, 05:31:08 PM
you need to view the error log in the app itself - click on the menu in the action bar


Just tried to sync on a second device = no playlists were updated or new one copied

MB ERROR LOG
Code
15/03/2019 16:24:32 - Add playlist "D:\MusicBee\Library\Playlists\SAMSUNG\WHISSEY.xautopf" I/O error occurred.
15/03/2019 16:24:32 - Add playlist "D:\MusicBee\Library\Playlists\SAMSUNG\RATED.xautopf" I/O error occurred.
15/03/2019 16:24:33 - Add playlist "D:\MusicBee\Library\Playlists\SAMSUNG\RANDOM.xautopf" I/O error occurred.
15/03/2019 16:24:33 - Add playlist "D:\MusicBee\Library\Playlists\SAMSUNG\ONLY ME.xautopf" I/O error occurred.
15/03/2019 16:24:33 - Add playlist "D:\MusicBee\Library\Playlists\SAMSUNG\OLDIES.xautopf" I/O error occurred.
15/03/2019 16:24:33 - Add playlist "D:\MusicBee\Library\Playlists\SAMSUNG\CLASSICS.xautopf" I/O error occurred.
15/03/2019 16:24:33 - Add playlist "D:\MusicBee\Library\Playlists\GROUPS\RECENTS.xautopf" I/O error occurred.

MB WIFI SYNC LOG
Code
15 Mar 2019 16:24:29 com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile [SM-A500FU, 6.0.1, 0.3] file=Playlists/WHISSEY.m3u: java.io.FileNotFoundException: /storage/6264-3230/Playlists/WHISSEY.m3u: open failed: EACCES (Permission denied)
15 Mar 2019 16:24:32 com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile [SM-A500FU, 6.0.1, 0.3] file=Playlists/RATED.m3u: java.io.FileNotFoundException: /storage/6264-3230/Playlists/RATED.m3u: open failed: EACCES (Permission denied)
15 Mar 2019 16:24:32 com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile [SM-A500FU, 6.0.1, 0.3] file=Playlists/RANDOM.m3u: java.io.FileNotFoundException: /storage/6264-3230/Playlists/RANDOM.m3u: open failed: EACCES (Permission denied)
15 Mar 2019 16:24:32 com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile [SM-A500FU, 6.0.1, 0.3] file=Playlists/ONLY ME.m3u: java.io.FileNotFoundException: /storage/6264-3230/Playlists/ONLY ME.m3u: open failed: EACCES (Permission denied)
15 Mar 2019 16:24:32 com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile [SM-A500FU, 6.0.1, 0.3] file=Playlists/OLDIES.m3u: java.io.FileNotFoundException: /storage/6264-3230/Playlists/OLDIES.m3u: open failed: EACCES (Permission denied)
15 Mar 2019 16:24:32 com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile [SM-A500FU, 6.0.1, 0.3] file=Playlists/CLASSICS.m3u: java.io.FileNotFoundException: /storage/6264-3230/Playlists/CLASSICS.m3u: open failed: EACCES (Permission denied)
15 Mar 2019 16:24:32 com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: receiveFile [SM-A500FU, 6.0.1, 0.3] file=Playlists/RECENTS.m3u: java.io.FileNotFoundException: /storage/6264-3230/Playlists/RECENTS.m3u: open failed: EACCES (Permission denied)
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 15, 2019, 05:42:48 PM
Same as....
Rebooted the PC and restarted the second device - all syncing worked 100%
Strange huh?
Title: Re: Wifi android device synching
Post by: Steven on March 15, 2019, 07:12:42 PM
i expect when you granted permissions on the android 6.0 device, you granted access to the Music folder and didnt grant access for the sd card itself ie. the Playlists folder is not permissioned.
If you open the Settings panel from the action bar, I think you can re-grant the permission. If not, i will make the enhancement so you can
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 15, 2019, 09:57:04 PM
i expect when you granted permissions on the android 6.0 device, you granted access to the Music folder and didnt grant access for the sd card itself ie. the Playlists folder is not permissioned.
If you open the Settings panel from the action bar, I think you can re-grant the permission. If not, i will make the enhancement so you can

Not sure... permission was granted and all worked ok with the previous version of MB sync.
I made no changes to the device settings on MB, other than adding 1 more playlist to the sync.
I tried it a couple more times this evening, and it's a bit hit and miss whether it works or not.
Freddy
Title: Re: Wifi android device synching
Post by: christmw2503 on March 16, 2019, 10:17:34 AM
Wow! Just found out that wifi sync works even without internet. Just created hotspot from my phone (after turning off internet) and connected my laptop to that hotspot and sync still works.
Title: Re: Wifi android device synching
Post by: Steven on March 16, 2019, 11:05:18 AM
@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
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 16, 2019, 11:47:54 AM
@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 (1) [Saturday 16 MAR 2019 @ 10:55]

NOTES
All previously synced auto-playlist have been updated with several changes.

ACTIONS
On Device SM-A500FU Android v6.0.1
Update to MusicBee Wifi Sync 0.3.1
Launch App
Click settings (Spanner icon) grant access to MicroSD Card.
Select
Back Arrow
PREVIEW
SYNC NOW
Sync Status: = MusiBee synchonization successfully completed.

Repeat on Device SM-J500FN Android v6.0.1
*** ALL GOOD ***

ERROR LOGS
MB v3.3.7011.33478 = NONE
MusicBee Wifi Sync 0.3.1 = NONE

Regards: Freddy
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 16, 2019, 12:22:44 PM
@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

Additional Information
For any subsequent sync operations, then theses actions need to be performed again...

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

This is correct during testing phase??

Title: Re: Wifi android device synching
Post by: Steven on March 16, 2019, 12:23:55 PM
you only need to do it once
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 16, 2019, 12:56:07 PM
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.
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 16, 2019, 01:40:40 PM
@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
Title: Re: Wifi android device synching
Post by: phred on March 16, 2019, 02:46:54 PM
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.
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 16, 2019, 02:49:19 PM
@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
Title: Re: Wifi android device synching
Post by: Steven on March 16, 2019, 03:06:07 PM
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
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 16, 2019, 04:20:27 PM
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
Title: Re: Wifi android device synching
Post by: Steven on March 16, 2019, 04:31:48 PM
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) ?
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 16, 2019, 04:46:15 PM
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!
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 16, 2019, 05:48:34 PM
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
Title: Re: Wifi android device synching
Post by: Steven on March 16, 2019, 05:48:51 PM
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
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 16, 2019, 06:23:10 PM
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??  :-*
Title: Re: Wifi android device synching
Post by: Freddy Barker on March 17, 2019, 12:49:05 PM
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!
Title: Re: Wifi android device synching
Post by: Steven on March 17, 2019, 01:13:58 PM
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.
Title: Re: Wifi android device synching
Post by: Steven on March 18, 2019, 09:40:59 PM
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?
Title: Re: Wifi android device synching
Post by: MCDoubleDefDP on March 19, 2019, 04:10:35 AM
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?


Nope, no concerns at all. All the "Backup Stats" option does is drop a stats.xml file in the "gmmp" folder. It works the exact same way as your iTunes XML backup.

This is very exciting that you're looking into this!
Title: Re: Wifi android device synching
Post by: railfan-eric28 on March 19, 2019, 04:35:45 AM
I have a question.   If I sync with both the cord and wifi sync does it copy the music separately so I would have to choose one or the other?  Or can I do both and keep the music synced together and delete files that aren't in the playlists anymore?
Title: Re: Wifi android device synching
Post by: Doc Bean on March 20, 2019, 12:29:17 PM
Instructions:
- In the MusicBee Device preferences panel, tick the "enable Wifi transfer with Android devices"
- make sure you allow MusicBee when windows firewall prompts
- on your Android device, run the Wifi sync app
- select whether you want to sync to your Internal memory or to an external SD Card (if available)
- then click "Locate Server"
- MusicBee must be running for this to work and windows firewall permission granted
- you only need to do this once
- only connections from your private network are supported
- the app error log can be viewed from the action bar/ Error Log menu item

I'm running Win 10 with Norton Security installed, which disabled the Windows Firewall. When I tick the "enable Wifi transfer with Android devices", there is no firewall prompt. I've configured the Norton Firewall to allow MB.

When I click Locate Server, I get Server not found. MB is running. My computer is connected to the router via an Ethernet cable, and my Galaxy S10+ (Android Pie) is connected via Wi-Fi.
Title: Re: Wifi android device synching
Post by: Steven on March 20, 2019, 07:09:28 PM
please take this up on a Norton forum re: enabling applications through their firewall
Title: Re: Wifi android device synching
Post by: Doc Bean on March 20, 2019, 07:12:04 PM
Ok, I'm not sure what I did but it finds the server. However, the following appears:

The MusicBee server was located but no existing device configuration exists in MusicBee.

Run a wired sync from MusicBee first and then try Wifi Sync again
.
Title: Re: Wifi android device synching
Post by: Steven on March 20, 2019, 07:36:33 PM
did you follow those instructions? and what was the result?
Title: Re: Wifi android device synching
Post by: Doc Bean on March 20, 2019, 07:51:19 PM
I didn't realize that one had to do that, so yes, it seems to be working now that I have done that. Thanks.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on March 21, 2019, 06:20:55 AM
I have a question.   If I sync with both the cord and wifi sync does it copy the music separately so I would have to choose one or the other?  Or can I do both and keep the music synced together and delete files that aren't in the playlists anymore?
anyone?
Title: Re: Wifi android device synching
Post by: MCDoubleDefDP on March 21, 2019, 02:26:48 PM
I have a question.   If I sync with both the cord and wifi sync does it copy the music separately so I would have to choose one or the other?  Or can I do both and keep the music synced together and delete files that aren't in the playlists anymore?
anyone?

Based on my experience, as long as you use the "as configured in MusicBee" setting in the WiFi app, it doesn't matter how you choose to sync because everything will be synced together.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on March 21, 2019, 09:06:47 PM
I have a question.   If I sync with both the cord and wifi sync does it copy the music separately so I would have to choose one or the other?  Or can I do both and keep the music synced together and delete files that aren't in the playlists anymore?
anyone?

Based on my experience, as long as you use the "as configured in MusicBee" setting in the WiFi app, it doesn't matter how you choose to sync because everything will be synced together.

So if i want to add more playlists using the app with will sync stuff double rather then using the same music that's already on there?
Title: Re: Wifi android device synching
Post by: Steven on March 21, 2019, 09:38:24 PM
So if i want to add more playlists using the app with will sync stuff double rather then using the same music that's already on there?
I have no idea what you are asking. What dont you try it and see
Title: Re: Wifi android device synching
Post by: railfan-eric28 on March 22, 2019, 07:26:41 AM
So if i want to add more playlists using the app with will sync stuff double rather then using the same music that's already on there?
I have no idea what you are asking. What dont you try it and see

If i add more playlists with the wifi will it add it and other songs that are already on my phone twice?  And if i use the delete function will it delete all the playlists that aren't selected through the app?  I'm also trying to figure out why I have duplicate playlists in poweramp and on my phone.  I have playlists in the Music Folder and Playlists in the Playlist folder.   I just want to make sure whatever I sync over the WIFI isn't duplicating what I already have via the wired sync.
Title: Re: Wifi android device synching
Post by: frankz on March 22, 2019, 12:21:03 PM
So if i want to add more playlists using the app with will sync stuff double rather then using the same music that's already on there?
If i add more playlists with the wifi will it add it and other songs that are already on my phone twice?  And if i use the delete function will it delete all the playlists that aren't selected through the app?  I'm also trying to figure out why I have duplicate playlists in poweramp and on my phone.  I have playlists in the Music Folder and Playlists in the Playlist folder.   I just want to make sure whatever I sync over the WIFI isn't duplicating what I already have via the wired sync.
I have no idea what you are asking. What dont you try it and see
Like he said, try it and see if it duplicates or not.  You can always go in the file manager and delete anything or everything, or hook up to a computer and do the same in file explorer, if it doesn't work out the way you want.

There's a certain amount of taking the initiative to undergo trial and error involved when you agree to beta test things.
Title: Re: Wifi android device synching
Post by: Coonce on March 23, 2019, 04:50:41 PM
Hi all,

I've been testing out the wi-fi sync on my LG V20 (running android 8 ), but I'm getting stuck at the app not thinking a wired sync hasn't been run at all.

Running musicbee 3.3.7016 and wi-fi sync app version 0.4.3

I have enable wifi transfer and allowed it in my firewall, and my V20 is listed under preferences -> devices. I am syncing to the SD card on my phone, rather than the internal storage.

I was looking for "MusicBeeWifiSyncErrorLog.txt" on my phone, but I'm not seeing it anywhere, tried using both the built in "file manager" app (which isn't great) and google's file explorer app.

Is it possible it's just not writing any file when doing a wired sync? Are there any other logs I can check to help troubleshoot?
Title: Re: Wifi android device synching
Post by: phred on March 23, 2019, 05:05:14 PM
I'm pretty sure no error log is written to the device when performing a wired sync. Try looking in MB's error log: Help > Support > View Error Log.

As for the error log when doing a WiFi sync, tap the three dots in the upper right corner > error log. No error log is created unless there are errors. The file would be saved in the Download directory on the device.
Title: Re: Wifi android device synching
Post by: Steven on April 11, 2019, 06:42:38 PM
I have the reverse sync from GoneMad player done and will make it available after some more testing.
This is to note how the reverse sync works while its fresh in my head

- new playlists added to gmmp will reverse synced back to musicbee
- updated playlists only if the file modification date/time is more recent (+90 mins buffer to reduce potential issues due to daylight saving or other clock differences). The playlist name must uniquely match a single musicbee playlist name
- files within a playlist must match an equivalent file already in your musicbee library. The matching is done by comparing the device filename to the expected filename that musicbee would sync to based on the device sync naming template used. If there are one or more files that cant be matched, you are given the choice to still sync a partially complete playlist ie. the unmatched files are excluded from the playlist
- ratings set in gmmp can be synched back to MusicBee. Only tracks that have been rated in gmmp since the last reverse sync are sent - so that means that on the first reverse sync, no ratings will be sent back to MB even if you have at some point in the past changed the rating only on the device
- playcounts from gmmp can be incrementally added back to musicbee. On the first reverse sync, a the full playcount will be sync'ed back. And then after that only the change in playcount will be sent.
Title: Re: Wifi android device synching
Post by: frankz on April 11, 2019, 07:05:44 PM
This is exciting.

Two questions:
1. Is last played date sent with the play count, or is it just the counts?
2. It it possible to pick and choose what to sync?  In other words, just ratings, just playlists, some combination of these, or is it an all or nothing thing?

What I would love to do would be to get out of using last.fm sync and just directly communicate between GMMP and MB, but I use last played and ratings heavily.  If last played isn't sync'd, I'd still want the ratings and use last.fm for the play data.  That's why I ask.

I guess I have one more question on the last point you highlighted.  My GMMP play count is already in MB from last.fm.  Am I right that doing this reverse sync would double those?  If so, I'll just delete my GMMP database before doing my first sync, which is easy enough, I just want to check that it's necessary to avoid double counts.

Title: Re: Wifi android device synching
Post by: Steven on April 11, 2019, 07:46:13 PM
1. Is last played date sent with the play count, or is it just the counts?
2. It it possible to pick and choose what to sync?  In other words, just ratings, just playlists, some combination of these, or is it an all or nothing thing?
I overlooked 1. but will include that
and for 2., you can choose playlists; ratings; and playcounts separately eg. you could just sync only playlists

I guess I have one more question on the last point you highlighted.  My GMMP play count is already in MB from last.fm.  Am I right that doing this reverse sync would double those?  If so, I'll just delete my GMMP database before doing my first sync, which is easy enough, I just want to check that it's necessary to avoid double counts.
yes reverse sync would effectively double the playcount from gmmp if you already use last.fm
Title: Re: Wifi android device synching
Post by: frankz on April 11, 2019, 07:52:57 PM
That sounds perfect.  I'm looking to get away from the last.fm sync, so having GMMP and MB work together directly will be fantastic. 
Title: Re: Wifi android device synching
Post by: psychoadept on April 11, 2019, 10:07:38 PM
This sounds so awesome! I still have trouble with my phone being able to find MusicBee on the network. Do you have any ideas on troubleshooting?
Title: Re: Wifi android device synching
Post by: Steven on April 12, 2019, 06:59:07 AM
This sounds so awesome! I still have trouble with my phone being able to find MusicBee on the network. Do you have any ideas on troubleshooting?
Check the musicbee error log. Otherwise i am not expert enough on network connectivity to be able to help
Title: Re: Wifi android device synching
Post by: psychoadept on April 12, 2019, 08:58:37 AM
Hah, me neither. But here's the error that shows up:

...

Update: naturally, once I posted this it started working. Except now when I start the sync I get a "synchronization cancelled" message. But no new errors.

Further update: I think something had gone haywire with my Windows firewall. I made sure my network was listed as private, and reset the firewall settings, and it seems to be happy now. I also had two configurations for my device, so I deleted both and made a new one, for good measure. Completed a full sync overnight. Hooray!
Title: Re: Wifi android device synching
Post by: redwing on April 13, 2019, 03:18:53 AM
How's the reverse sync work? Does it require wifi sync app too?

This sounds a perfect candidate for premium feature, meaning not everybody needs it but the development and maintenance require lots of efforts.

I'd suggest you bundle the two features into a single android app and sell it. That will help you compensate the MB server cost.
Title: Re: Wifi android device synching
Post by: Steven on April 13, 2019, 06:47:15 PM
How's the reverse sync work? Does it require wifi sync app too?

This sounds a perfect candidate for premium feature, meaning not everybody needs it but the development and maintenance require lots of efforts.

I'd suggest you bundle the two features into a single android app and sell it. That will help you compensate the MB server cost.
Yes both sync modes require an app running on the device.
I think what i will do is attempt to add PowerAmp player (not promising) and then open source the app so others can enhance it to include other players. I wont have the time to maintain this beyond fixing bugs.
Title: Re: Wifi android device synching
Post by: Steven on April 13, 2019, 07:01:09 PM
Reverse sync for GoneMad player is now available on the Android Internal Testing track. It's accessed from the vertical ... button in the action bar.
Send me an email with your google play account if you want to try it out and havent already sent it to me.
https://play.google.com/apps/internaltest/4700978781087552506

You will need the latest v3.3 patch version (3.3.7042+)
https://getmusicbee.com/patches/MusicBee33_Patched.zip

You should do one full sync using 3.3.7042+ first otherwise the first reverse sync will unnecessarily send back all playlists even though they were not modified on the device.
Title: Re: Wifi android device synching
Post by: MCDoubleDefDP on April 14, 2019, 12:14:08 AM
Is anyone else having trouble getting the GoneMAD reverse sync to work? I can sync my library of 10,800+ songs one-way from MusicBee to my phone just fine using the wifi app, but couldn't get reverse sync to work, so I removed all my music from my phone and tried syncing a test library of 3 songs. I did a regular sync using the wifi app and then played songs a few times and changed their ratings, but no matter how many times I try, reverse sync isn't working.

If I press the Reverse Sync Preview button, the loading circle will either spin indefinitely while the sync notification disappears after about 15 seconds, the app will close (like %5 of the time) or I will get a message saying no changes have been found (like 2%). In any case, it never gives me a preview of changes it's detected.

If I don't preview and just try Sync Now, I'll get the successful sync message, but nothing changes on MusicBee Desktop's side after rescanning the files for changes.

Am I doing something wrong?

I updated MusicBee to 3.3.7042 and the Wifi app to 0.5, and have tried both GoneMAD 2.2.2 stable and 3 alpha. Here is the error log:

Code
Apr 13, 2019 6:49:43 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:36 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:37 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:38 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:39 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:41 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:42 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:43 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:44 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:45 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:52:14 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Title: Re: Wifi android device synching
Post by: phred on April 14, 2019, 12:39:05 AM
MCDoubleDefDP- please also check MB's error log for entries at or near the same time and post them here. It might be helpful to Steven to see the log from the desktop in addition to the device.
Title: Re: Wifi android device synching
Post by: MCDoubleDefDP on April 14, 2019, 01:36:27 AM
MCDoubleDefDP- please also check MB's error log for entries at or near the same time and post them here. It might be helpful to Steven to see the log from the desktop in addition to the device.

Thanks, good idea. I've added it the end of my original post below.

Is anyone else having trouble getting the GoneMAD reverse sync to work? I can sync my library of 10,800+ songs one-way from MusicBee to my phone just fine using the wifi app, but couldn't get reverse sync to work, so I removed all my music from my phone and tried syncing a test library of 3 songs. I did a regular sync using the wifi app and then played songs a few times and changed their ratings, but no matter how many times I try, reverse sync isn't working.

If I press the Reverse Sync Preview button, the loading circle will either spin indefinitely while the sync notification disappears after about 15 seconds, the app will close (like %5 of the time) or I will get a message saying no changes have been found (like 2%). In any case, it never gives me a preview of changes it's detected.

If I don't preview and just try Sync Now, I'll get the successful sync message, but nothing changes on MusicBee Desktop's side after rescanning the files for changes.

Am I doing something wrong?

I updated MusicBee to 3.3.7042 and the Wifi app to 0.5, and have tried both GoneMAD 2.2.2 stable and 3 alpha. Here is the error log:

Code
Apr 13, 2019 6:49:43 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:36 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:37 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:38 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:39 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:41 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:42 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:43 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:44 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:51:45 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
Apr 13, 2019 6:52:14 PM com.getmusicbee.musicbeewifisync.ErrorHandler logError
SEVERE: looper [Nexus 6P, 8.1.0, 0.5] command=SyncFromDevice: java.net.SocketException: java.io.EOFException
EDIT: Here is the only thing in the error log on desktop from today:

Code
4/13/2019 6:40:29 PM - Nexus 6P\Internal shared storage\ not mounted: 
4/13/2019 6:40:34 PM - Nexus 6P\Internal shared storage\ not mounted:
4/13/2019 6:41:05 PM - Nexus 6P\Internal shared storage\ not mounted:
4/13/2019 6:42:52 PM - Nexus 6P\Internal shared storage\ not mounted:
4/13/2019 6:55:21 PM - 10.0.17763.0 - 3.3.7042.33234 - System.TypeInitializationException: The type initializer for '#=zq3sj_2Ji6AWZH$Gtl7XVQ94=' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'MusicBeeBass.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at #=zq3sj_2Ji6AWZH$Gtl7XVQ94=.#=zqg6Q9n1zcJwOkyzz1jaO$wlvrDJ5()
   at #=zq3sj_2Ji6AWZH$Gtl7XVQ94=..cctor()
   --- End of inner exception stack trace ---
   at #=zq3sj_2Ji6AWZH$Gtl7XVQ94=.#=zE4TvAzw=()
   at #=zOL3eqixsFoKHdOwMQWtjWeVPBWiL.#=z0jdUktI=(#=zl5XMUBBlv0s5GMrXP1pGgjtWIDFJ #=zUM2bFz6am9OV, #=zKmWwdfBxdgqEOdxocgpm0MQLoFTS #=zLV_cwkg=)
   at #=zfSagU0q8ggJ2oC4$CYnTBrA=.#=ziFYQIAfnak5h(#=zczq8GPDYHlgfWauhAw== #=zUtilR1kvKCbM, String #=zpmV5tUU=)
   at #=zfSagU0q8ggJ2oC4$CYnTBrA=.#=zmqnSkxC00asi()
Title: Re: Wifi android device synching
Post by: Steven on April 14, 2019, 08:01:39 AM
i did make an assumption that the /gmmp/stats.xml file was always on internal storage. Which card is that file actually stored for your device and is your internal storage card really not mounted?
Also your security software is removing musicbeebass.dll or you are running a partial install

edit:
I can see one mistake that might cause the issue. If it still happens can you still answer the above questions
v0.5.1
https://play.google.com/apps/internaltest/4700978781087552506
Title: Re: Wifi android device synching
Post by: MCDoubleDefDP on April 14, 2019, 03:57:48 PM
i did make an assumption that the /gmmp/stats.xml file was always on internal storage. Which card is that file actually stored for your device and is your internal storage card really not mounted?
Also your security software is removing musicbeebass.dll or you are running a partial install

edit:
I can see one mistake that might cause the issue. If it still happens can you still answer the above questions
v0.5.1
https://play.google.com/apps/internaltest/4700978781087552506

I've just updated to 0.5.1 and tried running it again a few times. Unfortunately, it's still doing the same thing. To answer your questions:

1) I have a Nexus 6P which does not have any external storage capabilities. All of my apps are installed to the default location and I don't think you can customize where GMMP saves its backup files. The full path from root is root/sdcard/storage/emulated/0/gmmp/stats.xml, but Solid Explorer reports it as /sdcard/gmmp/stats.xml.

2) I also just checked and the MusicBeeBass.dll file is still located at C:\Program Files (x86)\MusicBee\MusicBeeBass.dll. I also use the default program location on my computer.

---

Since I was having the same problem when my library was only 3 songs, I assumed the amount of songs didn't matter and put everything back on my phone last night. Here is a recording of the issue I'm having in case it helps: https://photos.app.goo.gl/DScStsyX6YJbQfJL6.
1. Opened GMMP and listened to a track in full and changed its rating. (I did a normal wifi sync before the recording started that completes in about only a few seconds.)
2. Opened the wifi app and tried a reverse sync preview. Let it run for about 50 seconds until the notification disappeared.
3. Backed out of the preview to stop it and pressed the "sync now" button. Got a successful sync message after about 5 seconds.
4. Did a file rescan on MusicBee Desktop and the track did not update.
Title: Re: Wifi android device synching
Post by: Steven on April 14, 2019, 04:13:15 PM
I think what i will do is attempt to add PowerAmp player (not promising)
I feel confident now that play-counts can be reverse sync'ed and ratings as well - but PowerAmp have changed the UI so you can only tap a thumbs up/ down, so i guess that could be sync'ed to love/ban in musicbee. Not sure about playlists just at the moment.
So if any PowerAmp users want to try this, send me an email with your google play email address. Also could you comment on what you would expect ratings to sync back as, if at all?
Title: Re: Wifi android device synching
Post by: Steven on April 14, 2019, 05:01:41 PM
I've just updated to 0.5.1 and tried running it again a few times. Unfortunately, it's still doing the same thing. To answer your questions:
Your previous error log is quite confusing and it almost seems like you are not using the latest MB patch version. So can you click "Help/ About" and confirm the MB version.
I am creating a debug version of the android app and will post an update a bit later
Title: Re: Wifi android device synching
Post by: Steven on April 14, 2019, 05:16:33 PM
0.5.2 has debug info - can you send me the error log details after attempting a reverse sync preview
Title: Re: Wifi android device synching
Post by: MCDoubleDefDP on April 14, 2019, 05:47:13 PM
0.5.2 has debug info - can you send me the error log details after attempting a reverse sync preview


It generated a log that is too long to post on this board, so I emailed it to you.

Also, I downloaded MusicBee portable to test the reverse sync with a few tracks and it worked properly. My main installation of MusicBee must've gotten corrupted somehow, so I am about to backup my library and try a clean install to see if that fixes it.
Title: Re: Wifi android device synching
Post by: Steven on April 14, 2019, 05:53:22 PM
I think its simple as you not having replaced musicbee.exe in the program files folder. If you do a help/ about that will confirm the MB version.

edit:
i see you confirmed that in your email. I will check out your debug log now
Title: Re: Wifi android device synching
Post by: psychoadept on April 14, 2019, 06:37:31 PM
I'm going to test this it as soon as possible. Trying to catch up on life things I've let slide while playing with my music, first...
Title: Re: Wifi android device synching
Post by: Steven on April 14, 2019, 06:51:11 PM
It generated a log that is too long to post on this board, so I emailed it to you.
the log doesnt make complete sense to. I think this one should capture the error better

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

edit:
I am reasonably sure the issue is because the device cannot display all the results. I will wait for your feedback first but I have the next version ready with a change to restrict the number of results displayed.
Title: Re: Wifi android device synching
Post by: MCDoubleDefDP on April 14, 2019, 07:36:06 PM
It generated a log that is too long to post on this board, so I emailed it to you.
the log doesnt make complete sense to. I think this one should capture the error better

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

edit:
I am reasonably sure the issue is because the device cannot display all the results. I will wait for your feedback first but I have the next version ready with a change to restrict the number of results displayed.

Thanks, I'll send you a new log in about 2-3 hours. I just finished moving from an installed MusicBee instance to the portable one and it's making me do the initial sync over again.
Title: Re: Wifi android device synching
Post by: Steven on April 14, 2019, 07:42:08 PM
in that case i will make the non-debug version available with the change:


v0.5.4
https://play.google.com/apps/internaltest/4700978781087552506
Title: Re: Wifi android device synching
Post by: MCDoubleDefDP on April 15, 2019, 06:08:54 PM

edit:
I am reasonably sure the issue is because the device cannot display all the results. I will wait for your feedback first but I have the next version ready with a change to restrict the number of results displayed.

I just did another test where I copied my entire 10,800+ song library to my phone using a fresh portable instance of MusicBee and I can confirm that reverse sync (0.5.5) appears to work as it is supposed to for ratings and playcounts (I briefly tried syncing playlists, but couldn't figure it out and didn't care to learn right now). I only tested a few tracks changing ratings and playcounts at a time, but the preview scan only took a couple seconds and didn't "scan" indefinitely like before.

My main portable instance of MusicBee still doesn't work, so it appears that the issue I'm having has to something to do with my library file or settings because when I transferred from an installed version to the portable version yesterday, I imported my settings and library instead of starting new like the test I just ran. The amount of files scanned doesn't appear to make a difference.

I'm going to a take a break and then try to figure out if I can import just my playcounts from my main library into my test one, and then manually rebuild everything so I make the test library my main one.
Title: Re: Wifi android device synching
Post by: Steven on April 15, 2019, 08:49:46 PM
I believe the issue relates to a bug on the MusicBee.exe side for handling files MB is unable to match in the library.
Anyone using the reverse sync functionality should apply the following patch:

https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: Steven on April 15, 2019, 10:26:08 PM
A few minor changes. For files that cannot be matched in musicbee, the sync app error log now logs the full file path of the device file that could not be matched so you can easily find and delete it if you wish

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

Also update again:
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: Babydoll32 on April 16, 2019, 06:03:12 AM
Hi, Steven.
I tried Wi-Fi Sync on my Nokia 8 with pure Android 9,
but I only got message "Run a wired sync from MusicBee first and then try Wifi Sync again.". I've done wired sync a few times, but nothing happens. I use v.0.4.3 and latest Musicbee.
Title: Re: Wifi android device synching
Post by: Steven on April 16, 2019, 08:09:38 AM
Hi, Steven.
I tried Wi-Fi Sync on my Nokia 8 with pure Android 9,
but I only got message "Run a wired sync from MusicBee first and then try Wifi Sync again.". I've done wired sync a few times, but nothing happens. I use v.0.4.3 and latest Musicbee.
when you do a wired sync, what is the exact device name that MB displays and how does it compare to the android device name displayed in Settings/About Phone/device name ?
Title: Re: Wifi android device synching
Post by: Babydoll32 on April 16, 2019, 11:13:57 AM
Hi, Steven.
I tried Wi-Fi Sync on my Nokia 8 with pure Android 9,
but I only got message "Run a wired sync from MusicBee first and then try Wifi Sync again.". I've done wired sync a few times, but nothing happens. I use v.0.4.3 and latest Musicbee.
when you do a wired sync, what is the exact device name that MB displays and how does it compare to the android device name displayed in Settings/About Phone/device name ?

MB shows Nokia 8 and Android shows Nokia 8. Tried with internal and external storage.
Title: Re: Wifi android device synching
Post by: Steven on April 16, 2019, 06:09:54 PM
MB shows Nokia 8 and Android shows Nokia 8. Tried with internal and external storage.
can you run this debug patch version of MB:
https://www.mediafire.com/file/jptxb7wdb1603pz/MusicBeeWifiDebug.zip/file
unzip and replace the existing musicbee file

send me the info added to the end of the MB error log (help/ support/ view error log) after attempting a wireless sync and the failure message displayed on the device
Title: Re: Wifi android device synching
Post by: Babydoll32 on April 16, 2019, 08:17:52 PM
MB shows Nokia 8 and Android shows Nokia 8. Tried with internal and external storage.
can you run this debug patch version of MB:
https://www.mediafire.com/file/jptxb7wdb1603pz/MusicBeeWifiDebug.zip/file
unzip and replace the existing musicbee file

send me the info added to the end of the MB error log (help/ support/ view error log) after attempting a wireless sync and the failure message displayed on the device

model=TA-1012, config=Virtuelles Laufwerk (MP3TMP)*
model=TA-1012, config=G:\*
model=TA-1012, config=STEFFI*
model=TA-1012, config=Nokia 8*
TA-1012 not matched

I think, I know where the problem is. My device name is Nokia 8, but model and hardware is signed as TA-1012  ???
Title: Re: Wifi android device synching
Post by: Steven on April 16, 2019, 08:53:06 PM
see https://www.wikihow.tech/Change-the-Name-of-Your-Android-Phone
I also have a nokia but i cant edit the name. However I can edit it in the bluetooth screen so try changing it to "Nokia 8" there
Title: Re: Wifi android device synching
Post by: Babydoll32 on April 16, 2019, 09:22:26 PM
see https://www.wikihow.tech/Change-the-Name-of-Your-Android-Phone
I also have a nokia but i cant edit the name. However I can edit it in the bluetooth screen so try changing it to "Nokia 8" there

Bluetooth name and device Name are Nokia 8.
But I can't change hardware ID

(http://i64.tinypic.com/288y16t.jpg)
Title: Re: Wifi android device synching
Post by: Steven on April 16, 2019, 09:59:21 PM
I have added the ability to override the device name in the Settings window, so change it to Nokia 8 there

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

Also I suggest you update the patch version so its not logging the debug info:
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: Babydoll32 on April 17, 2019, 05:48:01 AM
I have added the ability to override the device name in the Settings window, so change it to Nokia 8 there

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

Also I suggest you update the patch version so its not logging the debug info:
https://getmusicbee.com/patches/MusicBee33_Patched.zip

I would like to give it a try, but get message by google store, that's not available for my account. Just for invited members or so.
Title: Re: Wifi android device synching
Post by: Steven on April 17, 2019, 06:48:46 AM
I would like to give it a try, but get message by google store, that's not available for my account. Just for invited members or so.
send me the email account you use for google store
Title: Re: Wifi android device synching
Post by: Babydoll32 on April 17, 2019, 09:32:11 PM
I don't get it to work. MB is stilll searching for TA-1012 as device, not for Nokia 8. My desktop shows also Nokia 8 as device, but Nokia internal call itself TA-1012 and MB shows Nokia 8 but looks for TA-1012 not Nokia 8.
Title: Re: Wifi android device synching
Post by: Steven on April 17, 2019, 09:41:57 PM
I don't get it to work. MB is stilll searching for TA-1012 as device, not for Nokia 8. My desktop shows also Nokia 8 as device, but Nokia internal call itself TA-1012 and MB shows Nokia 8 but looks for TA-1012 not Nokia 8.
if you edited the name in the Settings window to "Nokia 8" then I find what you say very hard to believe and wont be able to help further
Title: Re: Wifi android device synching
Post by: Babydoll32 on April 17, 2019, 09:50:26 PM
I don't get it to work. MB is stilll searching for TA-1012 as device, not for Nokia 8. My desktop shows also Nokia 8 as device, but Nokia internal call itself TA-1012 and MB shows Nokia 8 but looks for TA-1012 not Nokia 8.
if you edited the name in the Settings window to "Nokia 8" then I find what you say very hard to believe and wont be able to help further

Maybe, I don't know exactly, which settings window you mean. Android app has no settings window. I can choose only between internal and external storage. In MB I find only a way, to change the path.
Title: Re: Wifi android device synching
Post by: phred on April 17, 2019, 11:33:55 PM
Maybe, I don't know exactly, which settings window you mean. Android app has no settings window. I can choose only between internal and external storage. In MB I find only a way, to change the path.
It sounds like you're not using the latest version of the Android app. It has an icon of a wrench on the upper right side - next to the menu (three vertical dots.) Tap it and you can choose between internal and removable storage and there's a line to enter then name of the device as displayed in MB. Also make sure you have the latest patch for MB. You can get that from my sig.
Title: Re: Wifi android device synching
Post by: Babydoll32 on April 18, 2019, 06:06:59 AM
Maybe, I don't know exactly, which settings window you mean. Android app has no settings window. I can choose only between internal and external storage. In MB I find only a way, to change the path.
It sounds like you're not using the latest version of the Android app. It has an icon of a wrench on the upper right side - next to the menu (three vertical dots.) Tap it and you can choose between internal and removable storage and there's a line to enter then name of the device as displayed in MB. Also make sure you have the latest patch for MB. You can get that from my sig.

Hi, Phred.
I'm using 0.5.7, after Steven added me and also latest MB patch. I also cleared cache, deinstalled and reinstalled a few times and the only screen I get, when I start the app, is the one below. No screen before, no after. No three dots, no other settings. The only thing when I start first time, is asking for access, which I confirm with yes.

(http://i63.tinypic.com/20u66pf.png)
Title: Re: Wifi android device synching
Post by: Babydoll32 on April 18, 2019, 06:30:14 AM
Is it necessary, that device is rooted? Cause my device is unrooted.
Title: Re: Wifi android device synching
Post by: phred on April 18, 2019, 12:28:42 PM
The device does not need to be rooted.

Again, it really looks like you don't have the latest versions of BOTH the app and MB.
If you are indeed running the latest versions
- Have you run at least one wired sync between MB and the device?
- After the wired sync have you enabled 'wifi transfer' in device preferences?

(http://i.imgur.com/UBIztPGl.jpg) (https://i.imgur.com/UBIztPG.jpg)
Title: Re: Wifi android device synching
Post by: Babydoll32 on April 18, 2019, 01:17:09 PM
The device does not need to be rooted.

Again, it really looks like you don't have the latest versions of BOTH the app and MB.
If you are indeed running the latest versions
- Have you run at least one wired sync between MB and the device?
- After the wired sync have you enabled 'wifi transfer' in device preferences?

I've installed both versions Steven linked as latest, a few posts before. App Version is 0.5.7.

1. I tried with older/official app version. I grant Access to my phone.

2. I tried Wi-Fi sync and get message "Run wired sync first". Connected my phone and let it pass the firewall. MB shows Nokia 8 and I enabled WiFi for Android. I made a wired sync and it works.

3. I disconnected USB and tried Wi-Fi sync again. I get message
 "Run wired sync first" again and nothing happend.

4. I installed version 0.5.7, cleaned cache. Did wired sync again, which worked. Tried Wi-Fi sync again and nothing happend.

I don't get behind the screen, where I can choose between internal and external memory. I don't have a settings button at this screen, so I can't tell MB, that TA-1012 is Nokia 8. The only thing, I didn't try is to reinstall MB on my desktop.
Title: Re: Wifi android device synching
Post by: Steven on April 18, 2019, 05:43:51 PM
i can see i need to make one more change on the android side, so will do that

edit:
v0.5.8
https://play.google.com/apps/internaltest/4700978781087552506

the device name override prompt should now appear after "Locate" fails for the first time.
Title: Re: Wifi android device synching
Post by: Babydoll32 on April 18, 2019, 09:10:06 PM
i can see i need to make one more change on the android side, so will do that

edit:
v0.5.8
https://play.google.com/apps/internaltest/4700978781087552506

the device name override prompt should now appear after "Locate" fails for the first time.

Thanks Steven!
Seems to work fine now! Also playcount sync with GMP.
Title: Re: Wifi android device synching
Post by: Steven on April 19, 2019, 08:46:06 AM
I have just noticed the reverse sync play count change is unnecessarily re-saving the musicbee library file ie. saving it with no changes. I will fix that for the next MusicBee patch update

edit:
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: Steven on April 21, 2019, 09:11:47 AM
Anyone who is interested to try out the GoneMad reverse sync should send me their email address they use for google play so i can add you. Also anyone interested in reverse sync of play-counts from PowerAmp should do the same

The android app is available at:
https://play.google.com/apps/internaltest/4700978781087552506

You also need the latest patch version of MusicBee v3.3.7049 +
https://getmusicbee.com/patches/MusicBee33_Patched.zip
unzip and replace the existing musicbee files
Title: Re: Wifi android device synching
Post by: SkyZippr on April 21, 2019, 01:30:33 PM
I can't get Wifi reverse sync to work. After I press 'Preview', I get 'File not matched in MusicBee' error and 'WARNING: 964 files will not sync'.
Error log is too long to post, but it seems to be simply a list of 'File not matched in MusicBee' for every single song in my GMMP library.
I don't know if it matters, but I have way more than 964 songs in my library.

I've done a wired sync, and then a Wifi sync, both of which was done without any error.

My wifi app version is 0.5.8, and my MusicBee version on my PC is 3.3.7050.
Title: Re: Wifi android device synching
Post by: Steven on April 21, 2019, 03:24:00 PM
can you post a screenshot of the device settings in MusicBee, especially the naming templates (Preferences/ Devices/ and open the device in question)
and then could you provide the full path as seen on the device for one of your music files
Title: Re: Wifi android device synching
Post by: SkyZippr on April 21, 2019, 03:50:52 PM
can you post a screenshot of the device settings in MusicBee, especially the naming templates (Preferences/ Devices/ and open the device in question)
and then could you provide the full path as seen on the device for one of your music files
Screenshot:
(https://i.imgur.com/j9cPPMq.png)

Would this suffice? The device name would be MHA-L29, which is a Huawei Mate 9.
The path for SD card means 'Samsung's memory card', as my phone is Japanese localized.
I know it should have some internal name like /storage/sdcard, but my phone doesn't show it.

The stock file manager shows full path as, for example: メモリーカード/Music/2Pac/All Eyez On Me/1-03 Skandalouz.m4a, with 'メモリーカード' being 'memory card'.

The SD card is shown as simply 'memory card' on the phone, but when it's connected to my PC it's 'Samsung's memory card'.
I guess it has something to do with the error?
Title: Re: Wifi android device synching
Post by: Steven on April 21, 2019, 05:36:12 PM
could you run this debug version of MB - unzip and replace musicbee.exe

https://www.mediafire.com/file/k8pkr4y8a9d9g7v/MusicBeeDebugSync.zip/file

It will log some info at the end of the error log (help/ support/ view error log) starting with the text:
mtp root=
Title: Re: Wifi android device synching
Post by: MCDoubleDefDP on April 21, 2019, 10:17:07 PM
could you run this debug version of MB - unzip and replace musicbee.exe

https://www.mediafire.com/file/k8pkr4y8a9d9g7v/MusicBeeDebugSync.zip/file

It will log some info at the end of the error log (help/ support/ view error log) starting with the text:
mtp root=

He appears to be having the same issue I am where reverse sync cannot locate files if I use the "preserve folders and filenames" option. If he resyncs his music using the "use naming template" option, it will work.
Title: Re: Wifi android device synching
Post by: SkyZippr on April 21, 2019, 11:24:17 PM
could you run this debug version of MB - unzip and replace musicbee.exe

https://www.mediafire.com/file/k8pkr4y8a9d9g7v/MusicBeeDebugSync.zip/file

It will log some info at the end of the error log (help/ support/ view error log) starting with the text:
mtp root=

This is strange. With this version, I seem to be having difficulty with WIRED syncing.
During copying playlists, a red message appears at the bottom: 'Synchronization has temporarily stalled for 2-5 minutes while the device processes current file operations. For the next sync, moving playlists folders to Music\Playlists in the settings tab will help.'
I've already moved my playlists to that folder earlier.
Wired syncing now takes 10+ minutes just to transfer 5 playlist files.


He appears to be having the same issue I am where reverse sync cannot locate files if I use the "preserve folders and filenames" option. If he resyncs his music using the "use naming template" option, it will work.

I'll give it a try. But since I live in Japan (GMT+8:00), I might to slow to respond.
Title: Re: Wifi android device synching
Post by: Steven on April 22, 2019, 07:37:03 AM
i just need you to run a reverse sync and send me the info in the musicbee error log

edit:
nevermind - i can reproduce this issue myself
Title: Re: Wifi android device synching
Post by: Steven on April 22, 2019, 09:43:17 AM
This should fix the issue:
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: SkyZippr on April 22, 2019, 11:46:16 AM
This should fix the issue:
https://getmusicbee.com/patches/MusicBee33_Patched.zip


Thanks Steven!
Just confirmed that reverse sync now works perfectly for updating both play count and rating.
Title: Re: Wifi android device synching
Post by: Steven on April 22, 2019, 04:43:21 PM
Reverse Sync of playcounts and ratings is now available for PowerAmp. You will need to send me your email address for google play so i can add you.
Of course GoneMad is already available on the alpha channel. I am not planning on adding support for any more players for now.


The android app is available at:
https://play.google.com/apps/internaltest/4700978781087552506

You also need the latest patch version of MusicBee v3.3.7051 +
https://getmusicbee.com/patches/MusicBee33_Patched.zip
unzip and replace the existing musicbee files
Title: Re: Wifi android device synching
Post by: christmw2503 on April 22, 2019, 09:20:20 PM
Any rating done in Poweramp will sync to a half star in Musicbee. Gonemad ratings do match. Do I have to join a log?
Title: Re: Wifi android device synching
Post by: Steven on April 22, 2019, 09:35:27 PM
thanks for reporting this. Its fixed now and available on the alpha channel now and the beta channel once its approved
Title: Re: Wifi android device synching
Post by: SkyZippr on April 23, 2019, 03:52:15 PM
I think I'm having a problem with dynamic IP.

Code
2019-04-23: MHA-L29;  9;  0.6.1
23:19:37: looper java.net.ConnectException: failed to connect to /10.165.1.163 (port 27304) from /10.165.2.110 (port 35148) after 1500ms: isConnected failed: EHOSTUNREACH (No route to host)

The IP for my PC is not 10.165.1.163.
I live in a mansion where (I assume) the whole mansion share the same global IP, and it's impossible to set a static IP by individual residents.

Is it possible to make wifi app to try re-locating MusicBee when connection fails?
Title: Re: Wifi android device synching
Post by: christmw2503 on April 23, 2019, 05:00:14 PM
thanks for reporting this. Its fixed now and available on the alpha channel now and the beta channel once its approved
I can confirm that it's fixed.
Title: Re: Wifi android device synching
Post by: phred on April 23, 2019, 05:03:22 PM
I think I'm having a problem with dynamic IP.

Code
2019-04-23: MHA-L29;  9;  0.6.1
23:19:37: looper java.net.ConnectException: failed to connect to /10.165.1.163 (port 27304) from /10.165.2.110 (port 35148) after 1500ms: isConnected failed: EHOSTUNREACH (No route to host)

The IP for my PC is not 10.165.1.163.
I live in a mansion where (I assume) the whole mansion share the same global IP, and it's impossible to set a static IP by individual residents.
A static IP is not necessary. As long as MB and the device are on the same network, and there is only one instance of MB running, it should work. MB has to be running, of course.
Title: Re: Wifi android device synching
Post by: Steven on April 23, 2019, 06:08:51 PM
Is it possible to make wifi app to try re-locating MusicBee when connection fails?
The app already does that automatically. Its only scanning addresses on the same sub-net.
Title: Re: Wifi android device synching
Post by: MCDoubleDefDP on April 23, 2019, 06:58:32 PM
Steven, I'd like to make a request if it's not already planned:

Could you move the reverse sync options to the settings menu and then make it so we only need to perform a single (regular) sync to add/remove music and update playcounts and ratings?

It isn't hard to understand how the regular and reverse sync both work, but it feels like having them separated is more complicated than it needs to be.
Title: Re: Wifi android device synching
Post by: Steven on April 23, 2019, 07:28:08 PM
Yes i do agree a single sync action that optionally also does a reverse sync would be better.
It is split due to playlist sync but i am considering removing reverse playlist sync, or at least splitting that out to a separate action.
Title: Re: Wifi android device synching
Post by: SkyZippr on April 23, 2019, 11:20:41 PM
A static IP is not necessary. As long as MB and the device are on the same network, and there is only one instance of MB running, it should work. MB has to be running, of course.

The app already does that automatically. Its only scanning addresses on the same sub-net.

I've restarted both the phone and the PC, and then did a wired sync, but it keeps looking for the same wrong IP.
I successfully ran several wifi syncs yesterday, and no setting has changed since then. (except that the wifi app got updated to 0.6.1, but I guess it shouldn't matter)
Title: Re: Wifi android device synching
Post by: psychoadept on April 24, 2019, 08:56:41 AM
I've restarted both the phone and the PC, and then did a wired sync, but it keeps looking for the same wrong IP.
I successfully ran several wifi syncs yesterday, and no setting has changed since then. (except that the wifi app got updated to 0.6.1, but I guess it shouldn't matter)

It's a long shot, but for some reason what happened for me was that my home network had gotten switched to public on the pc, and also even though it said it was letting MusicBee through the firewall it actually wasn't. I ended up resetting my firewall permissions.
Title: Re: Wifi android device synching
Post by: SkyZippr on April 24, 2019, 11:35:05 AM
It's a long shot, but for some reason what happened for me was that my home network had gotten switched to public on the pc, and also even though it said it was letting MusicBee through the firewall it actually wasn't. I ended up resetting my firewall permissions.

Ok wow, that's an incredibly long but precise shot. That was exactly the case, and Wifi App started working again moments after I set it back to private.
I don't remember switching it, but I'll surely keep an eye on it.
Title: Re: Wifi android device synching
Post by: Steven on April 24, 2019, 05:59:54 PM
Ok wow, that's an incredibly long but precise shot. That was exactly the case, and Wifi App started working again moments after I set it back to private.
I don't remember switching it, but I'll surely keep an eye on it.
There isnt anything on the musicbee side that would do that. I was wondering if there was any info logged at the end of MusicBee error log (help/ support/ view error log) for around the time it was failing?
Title: Re: Wifi android device synching
Post by: Babydoll32 on April 24, 2019, 08:40:57 PM
Hi Steven.
Snycing works good now. But one question. Does MB sync playcount also to GMP? I've synced a song to GMP with MB playcount 1. But GMP playcount shows already 0.
Title: Re: Wifi android device synching
Post by: Steven on April 24, 2019, 09:47:41 PM
Does MB sync playcount also to GMP?
No, only from GMP to add to your computer library play count
Title: Re: Wifi android device synching
Post by: SkyZippr on April 24, 2019, 11:32:41 PM
There isnt anything on the musicbee side that would do that. I was wondering if there was any info logged at the end of MusicBee error log (help/ support/ view error log) for around the time it was failing?

Unfortunately, no log is recorded on MB's side.
I may have clicked something by mistake while configuring firewall.
Title: Re: Wifi android device synching
Post by: SkyZippr on April 28, 2019, 03:17:42 AM
Strangely, Wifi sync stopped working again.

I made sure the network is set to Private on PC, and I even tried turning off the firewall (Comodo Security), but I kept getting the 'Unable to connect to Musicbee' error.
According to Wifi app's error log, it was trying to connect to 10.165.1.176 from 10.165.1.212, while my PC is now 10.165.2.20.
Musicbee.exe is added to the 'Trusted' list of Comodo security, and Windows firewall is disabled.
Musicbee's error log is empty so far.

Then, I tired deleting all the data of Wifi app from Android setting, and starting all over again.
However, even after running a wired sync from Musicbee, when pressing 'Locate Server', the wifi app shows 'Server not found'.
Now I don't have access to error log any more.

EDIT: Restarting PC & phone doesn't seem to help.
Title: Re: Wifi android device synching
Post by: psychoadept on April 28, 2019, 07:30:17 PM
It looks like, if you are saving artwork to folders and then change settings to not save it to folders, MusicBee doesn't do any cleanup on the artwork. I had a ton of artwork files in three different folder trees (because I was also having issues with MusicBee not creating the directory structure I wanted, but I think I've worked that part out now).
Title: Re: Wifi android device synching
Post by: phred on April 28, 2019, 09:15:34 PM
Using MB 3.3.7055 and WiFi Sync 0.6.1.

I added two albums to my MB library. They're there and they play. I attempted a WiFi sync preview and it shows all the tracks on the two albums and the playlists. All is as expected. I 'sync now' and in less than five seconds, the device (FiiO) states 'synchronization cancelled' and MB's status bar states 'synchronization successfully completed.' There is nothing in MB's error log from today and the app error log is showing entries from March 16. Is this error log still stored in the Android's download directory? If so, there are no error logs there.

I have restarted MB. I have restarted the app. No change. I ran a good number of syncs yesterday and had no issues. Syncing to my Samsung works as expected.

EDIT: Rebooting the PC seemed to take care of the problem. But I'd still like to know if the wifi error logs are still saved to the download directory.
Title: Re: Wifi android device synching
Post by: Steven on April 29, 2019, 07:09:05 PM
EDIT: Rebooting the PC seemed to take care of the problem. But I'd still like to know if the wifi error logs are still saved to the download directory.
the error log is in a user inaccessable section of app storage (as is standard for android apps). You can only access it via the ... button on the action bar
Title: Re: Wifi android device synching
Post by: phred on April 29, 2019, 07:12:34 PM
the error log is in a user inaccessable section of app storage (as is standard for android apps). You can only access it via the ... button on the action bar
Good to know. Thanks Steven.
Title: Re: Wifi android device synching
Post by: SkyZippr on April 30, 2019, 02:02:25 AM
Strangely, Wifi sync stopped working again.

I made sure the network is set to Private on PC, and I even tried turning off the firewall (Comodo Security), but I kept getting the 'Unable to connect to Musicbee' error.
According to Wifi app's error log, it was trying to connect to 10.165.1.176 from 10.165.1.212, while my PC is now 10.165.2.20.

My PC's IP is 10.165.1.117 now, and Wifi sync app is working again.
Title: Re: Wifi android device synching
Post by: Steven on May 02, 2019, 08:07:21 PM
v0.7
https://play.google.com/apps/internaltest/4700978781087552506

also update to v3.3.7061+
https://getmusicbee.com/patches/MusicBee33_Patched.zip

the full sync and reverse-sync have been integrated into a single activity and a few improvements to the sync failure reporting
Title: Re: Wifi android device synching
Post by: phred on May 03, 2019, 04:15:16 AM
Using MB 3.3.7055 and WiFi Sync 0.6.1.

I added two albums to my MB library. They're there and they play. I attempted a WiFi sync preview and it shows all the tracks on the two albums and the playlists. All is as expected. I 'sync now' and in less than five seconds, the device (FiiO) states 'synchronization cancelled' and MB's status bar states 'synchronization successfully completed.' There is nothing in MB's error log from today and the app error log is showing entries from March 16. Is this error log still stored in the Android's download directory? If so, there are no error logs there.

I have restarted MB. I have restarted the app. No change. I ran a good number of syncs yesterday and had no issues. Syncing to my Samsung works as expected.

EDIT: Rebooting the PC seemed to take care of the problem. But I'd still like to know if the wifi error logs are still saved to the download directory.
This issue has shown up again, but now using MB 3.3.7061 and WiFi Sync 0.7. Rebooting the PC doesn't help as it did previously. Restarting the FiiO also doesn't change. As previously, the device completes an accurate preview, but when the sync is initiated, the device declares "synchronization cancelled" and MB's status bar states "synchronization successfully competed.

MB's Error Log shows:
Code
5/2/2019 9:46:56 PM - Sync Preview failed: 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 FiiO Error Log shows the correct date and time, but is showing version 0.6.1 even though going to Android Apps the WiFi Sync version shows as 0.7. And on the device it shows all in English, but as you can see from this cut and paste, a lot of it is now in Chinese:
Code
2019-05-02: X5;  5.1.1;  0.6.1਍㈀㄀㨀㐀㔀㨀㌀㌀㨀 最攀琀䘀椀氀攀猀 樀愀瘀愀⸀渀攀琀⸀匀漀挀欀攀琀䔀砀挀攀瀀琀椀漀渀㨀 樀愀瘀愀⸀渀攀琀⸀匀漀挀欀攀琀䔀砀挀攀瀀琀椀漀渀㨀 猀攀渀搀琀漀 昀愀椀氀攀搀㨀 䔀吀䤀䴀䔀䐀伀唀吀 ⠀䌀漀渀渀攀挀琀椀漀渀 琀椀洀攀搀 漀甀琀⤀ഀ
21:45:33: looper command=SyncToDevice: java.net.SocketException: java.net.SocketException: sendto failed: EPIPE (Broken pipe)਍㈀㄀㨀㐀㔀㨀㌀㐀㨀 眀愀椀琀匀挀愀渀 樀愀瘀愀⸀氀愀渀最⸀䤀渀琀攀爀爀甀瀀琀攀搀䔀砀挀攀瀀琀椀漀渀ഀ
21:45:34: looper java.net.SocketException: sendto failed: EPIPE (Broken pipe)਍
I will play with the error log language issue tom'w and if I can get it all in English I will post.

EDIT: English WiFi Error Log in Reply #413
Title: Re: Wifi android device synching
Post by: psychoadept on May 03, 2019, 04:57:14 AM
I just updated both MB and the wifi app. I like the new options layout! Can't wait to test the reverse sync but not quite up to committing that much attention until next week, once my classes are done for the semester.

I've been having this happen a lot where it acts like its going to sync and then says "synchronization cancelled", but usually if I retry it a few times it will finally get it together and do the sync. At least for the moment, though, that's not happening. I can preview the sync, but it won't run.
Title: Re: Wifi android device synching
Post by: phred on May 03, 2019, 01:24:42 PM
I've been having this happen a lot where it acts like its going to sync and then says "synchronization cancelled", but usually if I retry it a few times it will finally get it together and do the sync. At least for the moment, though, that's not happening. I can preview the sync, but it won't run.
Yes, exactly. On my initial post about this a PC reboot solved the issue, but now, whatever I do, it will not sync. Is there anything in either error log?

Here's the WiFi error log I posted in Reply #411, but all in English. I had used FTP to get it from the FiiO to my PC. Now I copied the log to the second card in the FiiO, pullled the card and put it in the PC and it's all English. I'll look for a different FTP app later as it's a real pain in the butt having to pull the card in order to report the error.
Code
2019-05-02: X5;  5.1.1;  0.6.1
21:45:33: getFiles java.net.SocketException: java.net.SocketException: sendto failed: ETIMEDOUT (Connection timed out)
21:45:33: looper command=SyncToDevice: java.net.SocketException: java.net.SocketException: sendto failed: EPIPE (Broken pipe)
21:45:34: waitScan java.lang.InterruptedException
21:45:34: looper java.net.SocketException: sendto failed: EPIPE (Broken pipe)
Title: Re: Wifi android device synching
Post by: psychoadept on May 03, 2019, 02:35:03 PM
There hasn't been anything from the error log on the phone, just some stuff from a couple days ago that says Socket Exception Timeout over and over. I'll double check on MusicBee.
Title: Re: Wifi android device synching
Post by: phred on May 03, 2019, 02:49:40 PM
There hasn't been anything from the error log on the phone, just some stuff from a couple days ago that says Socket Exception Timeout over and over. I'll double check on MusicBee.
Would you mind looking at the WiFi version number? Settings > Apps > MusicBee WiFi. Mine confirms 0.7 but the log is showing 0.6.1. Which may be part of the problem. I'll be able to attempt another sync in a little while and will report back.
Title: Re: Wifi android device synching
Post by: psychoadept on May 03, 2019, 03:07:23 PM
App is 0.7, MusicBee is 3.3.7061. I restarted both devices but still no luck. No error log on either side.
Title: Re: Wifi android device synching
Post by: Babydoll32 on May 03, 2019, 07:22:03 PM
Hi Steven,
are you planning a playcount sync to GoneMadPlayer?
It's because, if you have a song played in MB a thousand times GMP doesn't know.
And when I'm playing song in GMP, it will count from zero. So, when I sync back to MB,
MB won't recognize the new plays and doesn't increase playcount.
Title: Re: Wifi android device synching
Post by: Steven on May 03, 2019, 08:53:03 PM
Hi Steven,
are you planning a playcount sync to GoneMadPlayer?
It's because, if you have a song played in MB a thousand times GMP doesn't know.
And when I'm playing song in GMP, it will count from zero. So, when I sync back to MB,
MB won't recognize the new plays and doesn't increase playcount.
You already asked and i already said no. When you sync back from GMP or PoweAmp, its incremental ie. it adds to the existing MB playcount. Did you actually try it?
Title: Re: Wifi android device synching
Post by: phred on May 03, 2019, 09:07:38 PM
I finally had time to attempt another sync with the FiiO and it worked with none of the issues I reported yesterday. I can't be certain, but it might be that every time there's a new update for the app, it has this issue. I'll have to wait until the next update, and if it then happens again, it would be three updates in a row that had the issue. But that begs the question why, after waiting 18-24 hours, does it work properly with me not doing anything different?
Title: Re: Wifi android device synching
Post by: Steven on May 03, 2019, 09:35:36 PM
I've been having this happen a lot where it acts like its going to sync and then says "synchronization cancelled", but usually if I retry it a few times it will finally get it together and do the sync. At least for the moment, though, that's not happening. I can preview the sync, but it won't run.
Looking at the code, the only two places "Synchroniztion cancelled" is set is when you tap the "STOP" button or when you tap "No" on the delete files confirmation dialog.
It sounds like I need to create a debug version to see exactly what it is doing, which I can do tomorrow.
Title: Re: Wifi android device synching
Post by: phred on May 03, 2019, 10:31:37 PM
It sounds like I need to create a debug version to see exactly what it is doing, which I can do tomorrow.
I assume you couldn't glean anything useful from my two error logs?
Title: Re: Wifi android device synching
Post by: Steven on May 03, 2019, 10:36:36 PM
It sounds like I need to create a debug version to see exactly what it is doing, which I can do tomorrow.
I assume you couldn't glean anything useful from my two error logs?
I just googled "EPIPE (Broken pipe)" and it has come up with some interesting results so I will get back to you although it seems system related and probably not anything i can do about.
You mentioned sync is really slow - roughly how long does it take to copy 1 file?
Title: Re: Wifi android device synching
Post by: SkyZippr on May 04, 2019, 04:26:40 AM
I just noticed that the Wifi app's error log is not being updated.
I'm still struggling with 'Server not found' issue, but it seems the newer events are not recorded to error log.

The error log date was from 3 days ago, recorded by app version 0.6.1. I've already updated it to version 0.7.
Is such behavior normal?

(Btw, no log has ever been recorded on MB's side regarding the 'Server not found' issue,)
Title: Re: Wifi android device synching
Post by: phred on May 04, 2019, 04:37:03 AM
You mentioned sync is really slow - roughly how long does it take to copy 1 file?
Sorry, but I don't recall mentioning anything about a slow sync. Certainly not recently. When the sync does work, I have no complaints about its speed.
Title: Re: Wifi android device synching
Post by: Babydoll32 on May 04, 2019, 06:53:16 AM
Hi Steven,
are you planning a playcount sync to GoneMadPlayer?
It's because, if you have a song played in MB a thousand times GMP doesn't know.
And when I'm playing song in GMP, it will count from zero. So, when I sync back to MB,
MB won't recognize the new plays and doesn't increase playcount.
You already asked and i already said no. When you sync back from GMP or PoweAmp, its incremental ie. it adds to the existing MB playcount. Did you actually try it?

Yes. It worked. Version I tested before didn't. Thank you!
Title: Re: Wifi android device synching
Post by: Steven on May 04, 2019, 05:36:20 PM
@psychoadept and others,
v0.7.1
https://play.google.com/apps/internaltest/4700978781087552506

I have added a "enable debug logging" option to the settings window. Its not persisted on app restart, so set it before you do any testing where you want extra logging written to the error log.
Keep in mind the error log is only rewritten if there is a new error - if you still see an old log then that means no errors have been logged

For someone who is still at initial the "Locate Server" window, the logging is automatically enabled if the first attempt fails

edit:
to be clear, this is for debugging connectivity and command exection, not the specific issue of one file repeating sync

@phred,
although i dont know why your socket connection was breaking, I did find that for one function its not retrying the connection. This new version addresses that
Title: Re: Wifi android device synching
Post by: psychoadept on May 04, 2019, 05:57:41 PM
Thanks, Steven! Here's the error log just generated:

Code
2019-05-04: SM-G950U;  8.0.0;  0.7.1
11:54:38: startSync: preview=true,iteration=0
11:54:39: command: action=SYNC_START
11:54:39: tryStart: connecting /192.168.1.128, attempt=0
11:54:39: tryStart: connected
11:54:39: tryStart: hello=true,fromMB=true,custfiles=false,preview=true,dev=SM-G950U,2
11:54:39: syncDevice: root=/storage/6162-6433,ignoreErrors=false,playlists=false,ratings=false,playcount=false
11:54:39: syncDevice: command=ShowResults
11:54:39: syncDevice: command=GetFiles
11:54:39: getFiles: Get: MusicBee/Music/, inc=true
11:54:40: syncDevice: command=GetFiles
11:54:40: getFiles: Get: MusicBee/Podcasts/, inc=true
11:54:40: syncDevice: command=GetFiles
11:54:40: getFiles: Get: MusicBee/Playlists/, inc=false
11:54:40: syncDevice: command=DeleteFiles
11:54:40: deleteFiles: Delete: MusicBee/Playlists/NSFW.m3u
11:54:40: syncDevice: command=ShowPreviewResults
11:54:40: syncDevice: exit
11:54:57: startSync: preview=false,iteration=1
11:54:57: command: action=SYNC_START
11:54:57: tryStart: connecting /192.168.1.128, attempt=0
11:54:57: tryStart: connected
11:54:57: tryStart: hello=true,fromMB=true,custfiles=false,preview=false,dev=SM-G950U,2
11:54:57: syncDevice: root=/storage/6162-6433,ignoreErrors=false,playlists=false,ratings=false,playcount=false
11:54:57: syncDevice: command=ShowResults
11:54:58: syncDevice: command=GetFiles
11:54:58: getFiles: Get: MusicBee/Playlists/, inc=false
11:54:58: syncDevice: command=ShowDeleteConfirmation
11:54:58: syncDevice: command=Exit
11:54:58: exitSync: Exiting fails=0
11:54:59: syncDevice: exit
Title: Re: Wifi android device synching
Post by: Steven on May 04, 2019, 06:06:02 PM
so according to the log you did a preview which looks like some files were due to be deleted. You proceeded with the sync and got as far as the delete confirmation prompt. Did you tap Cancel at that point or did you proceed and the app mysteriously exited?
Or perhaps you didnt see any prompt at all?
Title: Re: Wifi android device synching
Post by: psychoadept on May 04, 2019, 06:10:50 PM
so according to the log you did a preview which looks like some files were due to be deleted. You proceeded with the sync and got as far as the delete confirmation prompt. Did you tap Cancel at that point or did you proceed and the app mysteriously exited?

Neither, the delete confirmation never appeared. it went straight to "synchronization cancelled" after I pressed "Sync Now".

Incidentally, that playlist NSFW is not in my list of playlists to sync. Nor is it in my playlists folder on the sd card. However, there's a second folder of playlists that keeps appearing on internal storage, in .pla format.  And it does show up there. I don't know why that exists, since I've only ever synced .m3u.
Title: Re: Wifi android device synching
Post by: Steven on May 04, 2019, 06:18:52 PM
Neither, the delete confirmation never appeared. it went straight to "synchronization cancelled" after I pressed "Sync Now".
v0.7.2
https://play.google.com/apps/internaltest/4700978781087552506

if this doesnt make any difference i will need to do something more drastic


Incidentally, that playlist NSFW is not in my list of playlists to sync. Nor is it in my playlists folder on the sd card. However, there's a second folder of playlists that keeps appearing on internal storage, in .pla format.  And it does show up there. I don't know why that exists, since I've only ever synced .m3u.
sometimes the mediastore database gets out of sync with reality. When you do get synching working again, and if it still happens after that sync, then let me know
Title: Re: Wifi android device synching
Post by: psychoadept on May 04, 2019, 06:42:36 PM
Ok, here's the next error log. Nothing changed on the behavior.

Code
2019-05-04: SM-G950U;  8.0.0;  0.7.2
12:40:29: startSync: preview=true,iteration=0
12:40:29: command: action=SYNC_START
12:40:29: tryStart: connecting /192.168.1.128, attempt=0
12:40:29: tryStart: connected
12:40:29: tryStart: hello=true,fromMB=true,custfiles=false,preview=true,dev=SM-G950U,2
12:40:29: syncDevice: root=/storage/6162-6433,ignoreErrors=false,playlists=false,ratings=false,playcount=false
12:40:30: syncDevice: command=ShowResults
12:40:30: syncDevice: command=GetFiles
12:40:30: getFiles: Get: MusicBee/Music/, inc=true
12:40:30: syncDevice: command=GetFiles
12:40:30: getFiles: Get: MusicBee/Podcasts/, inc=true
12:40:31: syncDevice: command=GetFiles
12:40:31: getFiles: Get: MusicBee/Playlists/, inc=false
12:40:31: syncDevice: command=DeleteFiles
12:40:31: deleteFiles: Delete: MusicBee/Playlists/NSFW.m3u
12:40:31: syncDevice: command=ShowPreviewResults
12:40:31: syncDevice: exit
12:40:40: startSync: preview=false,iteration=1
12:40:40: command: action=SYNC_START
12:40:40: tryStart: connecting /192.168.1.128, attempt=0
12:40:40: tryStart: connected
12:40:40: tryStart: hello=true,fromMB=true,custfiles=false,preview=false,dev=SM-G950U,2
12:40:40: syncDevice: root=/storage/6162-6433,ignoreErrors=false,playlists=false,ratings=false,playcount=false
12:40:40: syncDevice: command=ShowResults
12:40:41: syncDevice: command=GetFiles
12:40:41: getFiles: Get: MusicBee/Playlists/, inc=false
12:40:41: syncDevice: command=ShowDeleteConfirmation
12:40:41: syncDevice: command=Exit
12:40:41: exitSync: fails=0
12:40:42: syncDevice: exit
Title: Re: Wifi android device synching
Post by: phred on May 04, 2019, 07:38:28 PM
Part 1 of 2...
Keep in mind the error log is only rewritten if there is a new error - if you still see an old log then that means no errors have been logged
Installed 0.7.1 and enabled debugging but note how 'enable debugging' is covered up by 'grant access.' This is on my FiiO - on the Samsung it appears properly.
(http://i.imgur.com/1JihRJel.jpg) (https://i.imgur.com/1JihRJe.png)

I then performed a sync that had no changes to music files. The preview showed that only playlists would be synced. It completed successfully according to MB's status bar. It also appeared to complete successfully when watching it take place on the FiiO. Yet a new error log was created even though it didn't appear that there was an error.
Code
2019-05-04: X5;  5.1.1;  0.7.2
13:53:38: startSync: preview=true,iteration=0
13:53:38: command: action=SYNC_START
13:53:38: tryStart: connecting /192.168.1.101, attempt=0
13:53:38: tryStart: connected
13:53:38: tryStart: hello=true,fromMB=true,custfiles=false,preview=true,dev=X5,2
13:53:38: syncDevice: root=/mnt/external_sd1,ignoreErrors=false,playlists=false,ratings=false,playcount=false
13:53:43: syncDevice: command=ShowResults
13:53:48: syncDevice: command=GetFiles
13:53:48: getFiles: Get: Music/, inc=true
13:53:52: syncDevice: command=GetFiles
13:53:52: getFiles: Get: Podcasts/, inc=true
13:53:53: syncDevice: command=GetFiles
13:53:53: getFiles: Get: Playlists/, inc=false
13:53:53: syncDevice: command=ShowPreviewResults
13:53:53: syncDevice: exit
13:53:58: startSync: preview=false,iteration=1
13:53:58: command: action=SYNC_START
13:53:58: tryStart: connecting /192.168.1.101, attempt=0
13:53:58: tryStart: connected
13:53:58: tryStart: hello=true,fromMB=true,custfiles=false,preview=false,dev=X5,2
13:53:58: syncDevice: root=/mnt/external_sd1,ignoreErrors=false,playlists=false,ratings=false,playcount=false
13:54:02: syncDevice: command=ShowResults
13:54:07: syncDevice: command=GetFiles
13:54:07: getFiles: Get: Playlists/, inc=false
13:54:07: syncDevice: command=ReceiveFile
13:54:07: receiveFile: Receive: Playlists/Zumba.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Yesterday, Today, Tomorrow.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Yes & No.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Wishing & Hoping.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Will & Won't.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Weather.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Walking & Running.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Up & Down.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Truth & Lies.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Trains, Planes & Automobiles.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Time.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/The Wrecking Crew.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/The Rolling Stones.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/The Four Seasons.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/The Commitments.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Temperature.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Tears.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Sweet Stuff.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Street Map.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Stop, Look, Listen.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Something.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Sleeping, Dreaming, & Waking.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Royalty.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Rolling Stone's 500 Greatest Songs.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Rivers, Creeks, Streams.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Right & Wrong.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/R & R HoF Inductees.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Questions.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/One-Hit Wonders.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/O Canada.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Now & Then.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Non-lexical Vocables.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Night & Day.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Names.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Musical Map.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Muscle Shoals.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Money.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Mama Gimme Layla.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Madness.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Look! Up In The Sky!.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Ladies.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Joy of Trumpet.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Joy of Sax.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Joy of Keyboards.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Joy of Bass.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Humans.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Hey Oh.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Here, There, & Everywhere.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Hello Goodbye.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Happy & Sad.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Good & Bad.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Give or Take.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/George Harrison.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Funk.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Fools.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Family.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Falsetto.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Edible Arrangements.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Dynamic Duos.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Do & Don't.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Distinctive Voices.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Devil or Angel.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Dead or Alive.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Days of the Week.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Current Favorites.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Comings & Goings.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Colors.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Cats & Dogs.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Can & Can't.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/By the Ordinals.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/By the Numbers.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Body Parts.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Big & Little.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Benjamin.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Beginnings, Middles, & Ends.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Before & After.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Beatles & Stones Covers.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Baseball.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Animals.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Anatomy of a Song.m3u
13:54:13: syncDevice: command=ReceiveFile
13:54:13: receiveFile: Receive: Playlists/All Work & Some Play.m3u
13:54:13: syncDevice: command=ReceiveFile
13:54:13: receiveFile: Receive: Playlists/All or Nothing.m3u
13:54:13: syncDevice: command=Exit
13:54:13: exitSync: fails=0
13:54:27: syncDevice: exit
Title: Re: Wifi android device synching
Post by: phred on May 04, 2019, 07:39:10 PM
Part 2 of 2...
Then I deleted an album and did another sync. This time MB said it was successful, but the FiiO immediately said it was cancelled. I did not hit 'Stop' nor did I touch the device after touching 'sync now.' Here's the error log which contains not only the log data posted above, but also the new data, which starts at line 193 (time 14:00:28)
Code
2019-05-04: X5;  5.1.1;  0.7.2
13:53:38: startSync: preview=true,iteration=0
13:53:38: command: action=SYNC_START
13:53:38: tryStart: connecting /192.168.1.101, attempt=0
13:53:38: tryStart: connected
13:53:38: tryStart: hello=true,fromMB=true,custfiles=false,preview=true,dev=X5,2
13:53:38: syncDevice: root=/mnt/external_sd1,ignoreErrors=false,playlists=false,ratings=false,playcount=false
13:53:43: syncDevice: command=ShowResults
13:53:48: syncDevice: command=GetFiles
13:53:48: getFiles: Get: Music/, inc=true
13:53:52: syncDevice: command=GetFiles
13:53:52: getFiles: Get: Podcasts/, inc=true
13:53:53: syncDevice: command=GetFiles
13:53:53: getFiles: Get: Playlists/, inc=false
13:53:53: syncDevice: command=ShowPreviewResults
13:53:53: syncDevice: exit
13:53:58: startSync: preview=false,iteration=1
13:53:58: command: action=SYNC_START
13:53:58: tryStart: connecting /192.168.1.101, attempt=0
13:53:58: tryStart: connected
13:53:58: tryStart: hello=true,fromMB=true,custfiles=false,preview=false,dev=X5,2
13:53:58: syncDevice: root=/mnt/external_sd1,ignoreErrors=false,playlists=false,ratings=false,playcount=false
13:54:02: syncDevice: command=ShowResults
13:54:07: syncDevice: command=GetFiles
13:54:07: getFiles: Get: Playlists/, inc=false
13:54:07: syncDevice: command=ReceiveFile
13:54:07: receiveFile: Receive: Playlists/Zumba.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Yesterday, Today, Tomorrow.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Yes & No.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Wishing & Hoping.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Will & Won't.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Weather.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Walking & Running.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Up & Down.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Truth & Lies.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Trains, Planes & Automobiles.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/Time.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/The Wrecking Crew.m3u
13:54:08: syncDevice: command=ReceiveFile
13:54:08: receiveFile: Receive: Playlists/The Rolling Stones.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/The Four Seasons.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/The Commitments.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Temperature.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Tears.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Sweet Stuff.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Street Map.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Stop, Look, Listen.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Something.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Sleeping, Dreaming, & Waking.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Royalty.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Rolling Stone's 500 Greatest Songs.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Rivers, Creeks, Streams.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Right & Wrong.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/R & R HoF Inductees.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/Questions.m3u
13:54:09: syncDevice: command=ReceiveFile
13:54:09: receiveFile: Receive: Playlists/One-Hit Wonders.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/O Canada.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Now & Then.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Non-lexical Vocables.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Night & Day.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Names.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Musical Map.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Muscle Shoals.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Money.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Mama Gimme Layla.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Madness.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Look! Up In The Sky!.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Ladies.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Joy of Trumpet.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Joy of Sax.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Joy of Keyboards.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Joy of Bass.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Humans.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Hey Oh.m3u
13:54:10: syncDevice: command=ReceiveFile
13:54:10: receiveFile: Receive: Playlists/Here, There, & Everywhere.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Hello Goodbye.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Happy & Sad.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Good & Bad.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Give or Take.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/George Harrison.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Funk.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Fools.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Family.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Falsetto.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Edible Arrangements.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Dynamic Duos.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Do & Don't.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Distinctive Voices.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Devil or Angel.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Dead or Alive.m3u
13:54:11: syncDevice: command=ReceiveFile
13:54:11: receiveFile: Receive: Playlists/Days of the Week.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Current Favorites.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Comings & Goings.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Colors.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Cats & Dogs.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Can & Can't.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/By the Ordinals.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/By the Numbers.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Body Parts.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Big & Little.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Benjamin.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Beginnings, Middles, & Ends.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Before & After.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Beatles & Stones Covers.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Baseball.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Animals.m3u
13:54:12: syncDevice: command=ReceiveFile
13:54:12: receiveFile: Receive: Playlists/Anatomy of a Song.m3u
13:54:13: syncDevice: command=ReceiveFile
13:54:13: receiveFile: Receive: Playlists/All Work & Some Play.m3u
13:54:13: syncDevice: command=ReceiveFile
13:54:13: receiveFile: Receive: Playlists/All or Nothing.m3u
13:54:13: syncDevice: command=Exit
13:54:13: exitSync: fails=0
13:54:27: syncDevice: exit
14:00:28: ping: socket ok=/192.168.1.101
14:00:28: ping: hello=MusicBeeWifiSyncServer/1.0
14:00:28: ping: matched=/192.168.1.101,status=OK
14:00:32: startSync: preview=true,iteration=0
14:00:32: command: action=SYNC_START
14:00:32: tryStart: connecting /192.168.1.101, attempt=0
14:00:32: tryStart: connected
14:00:32: tryStart: hello=true,fromMB=true,custfiles=false,preview=true,dev=X5,2
14:00:32: syncDevice: root=/mnt/external_sd1,ignoreErrors=false,playlists=false,ratings=false,playcount=false
14:00:37: syncDevice: command=ShowResults
14:00:41: syncDevice: command=GetFiles
14:00:41: getFiles: Get: Music/, inc=true
14:00:47: syncDevice: command=GetFiles
14:00:47: getFiles: Get: Podcasts/, inc=true
14:00:48: syncDevice: command=GetFiles
14:00:48: getFiles: Get: Playlists/, inc=false
14:00:48: syncDevice: command=ShowPreviewResults
14:00:48: syncDevice: exit
14:00:53: startSync: preview=false,iteration=1
14:00:53: command: action=SYNC_START
14:00:53: tryStart: connecting /192.168.1.101, attempt=0
14:00:53: tryStart: connected
14:00:53: tryStart: hello=true,fromMB=true,custfiles=false,preview=false,dev=X5,2
14:00:53: syncDevice: root=/mnt/external_sd1,ignoreErrors=false,playlists=false,ratings=false,playcount=false
14:00:58: syncDevice: command=ShowResults
14:01:02: syncDevice: command=GetFiles
14:01:02: getFiles: Get: Playlists/, inc=false
14:01:02: syncDevice: command=ShowDeleteConfirmation
14:01:02: syncDevice: command=Exit
14:01:02: exitSync: fails=0
14:01:03: syncDevice: exit

I then restarted the FiiO and tried another sync but with the same results. The new log entries were added to everything that came before it, but for the sake of clarity, I'm only posting the results from this third attempt, which seems to have a lot more data than the similar failure at 14:00. This time it looks like it can't connect to the PC where MB lives.
Code
14:26:58: ping: socket ok=/192.168.1.101
14:26:58: ping: hello=MusicBeeWifiSyncServer/1.0
14:26:58: ping: matched=/192.168.1.101,status=OK
14:26:59: startSync: preview=true,iteration=0
14:26:59: command: action=SYNC_START
14:26:59: tryStart: connecting /192.168.1.101, attempt=0
14:27:01: tryStart: java.net.SocketTimeoutException: failed to connect to /192.168.1.101 (port 27304) after 2000ms
14:27:01: libcore.io.IoBridge.connectErrno(IoBridge.java:169)
14:27:01: libcore.io.IoBridge.connect(IoBridge.java:122)
14:27:01: java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
14:27:01: java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456)
14:27:01: java.net.Socket.connect(Socket.java:882)
14:27:01: com.getmusicbee.musicbeewifisync.WifiSyncService$SynchronisationWorker.tryStartSynchronisation(WifiSyncService.java:277)
14:27:02: com.getmusicbee.musicbeewifisync.WifiSyncService$SynchronisationWorker.run(WifiSyncService.java:232)
14:27:02: java.lang.Thread.run(Thread.java:818)
14:27:02: worker: no connection for 192.168.1.101 - trying again
14:27:02: locate: search=192.168.1.
14:27:02: locate: exclude=116
14:27:02: ping: socket ok=/192.168.1.101
14:27:02: ping: hello=MusicBeeWifiSyncServer/1.0
14:27:02: ping: matched=/192.168.1.101,status=OK
14:27:02: tryStart: connecting /192.168.1.101, attempt=0
14:27:02: tryStart: connected
14:27:02: tryStart: hello=true,fromMB=true,custfiles=false,preview=true,dev=X5,2
14:27:02: syncDevice: root=/mnt/external_sd1,ignoreErrors=false,playlists=false,ratings=false,playcount=false
14:27:06: syncDevice: command=ShowResults
14:27:10: syncDevice: command=GetFiles
14:27:10: getFiles: Get: Music/, inc=true
14:27:11: startSync: preview=true,iteration=0
14:27:11: command: action=SYNC_START
14:27:11: tryStart: connecting /192.168.1.101, attempt=0
14:27:11: tryStart: connected
14:27:14: syncDevice: command=GetFiles
14:27:14: getFiles: Get: Podcasts/, inc=true
14:27:14: syncDevice: command=GetFiles
14:27:14: getFiles: Get: Playlists/, inc=false
14:27:14: syncDevice: command=ShowPreviewResults
14:27:14: syncDevice: exit
14:27:14: tryStart: hello=true,fromMB=true,custfiles=false,preview=true,dev=X5,2
14:27:14: syncDevice: root=/mnt/external_sd1,ignoreErrors=false,playlists=false,ratings=false,playcount=false
14:27:18: syncDevice: command=ShowResults
14:27:23: syncDevice: command=GetFiles
14:27:23: getFiles: Get: Playlists/, inc=false
14:27:23: syncDevice: command=ShowPreviewResults
14:27:23: syncDevice: exit
14:27:25: ping: socket ok=/192.168.1.101
14:27:25: ping: hello=MusicBeeWifiSyncServer/1.0
14:27:25: ping: matched=/192.168.1.101,status=OK
14:27:32: startSync: preview=true,iteration=0
14:27:32: command: action=SYNC_START
14:27:32: tryStart: connecting /192.168.1.101, attempt=0
14:27:32: tryStart: connected
14:27:32: tryStart: hello=true,fromMB=true,custfiles=false,preview=true,dev=X5,2
14:27:32: syncDevice: root=/mnt/external_sd1,ignoreErrors=false,playlists=false,ratings=false,playcount=false
14:27:36: syncDevice: command=ShowResults
14:27:41: syncDevice: command=GetFiles
14:27:41: getFiles: Get: Playlists/, inc=false
14:27:41: syncDevice: command=ShowPreviewResults
14:27:41: syncDevice: exit
14:27:50: startSync: preview=false,iteration=1
14:27:50: command: action=SYNC_START
14:27:50: tryStart: connecting /192.168.1.101, attempt=0
14:27:50: tryStart: connected
14:27:50: tryStart: hello=true,fromMB=true,custfiles=false,preview=false,dev=X5,2
14:27:50: syncDevice: root=/mnt/external_sd1,ignoreErrors=false,playlists=false,ratings=false,playcount=false
14:27:54: syncDevice: command=ShowResults
14:27:59: syncDevice: command=GetFiles
14:27:59: getFiles: Get: Playlists/, inc=false
14:27:59: syncDevice: command=ShowDeleteConfirmation
14:27:59: syncDevice: command=Exit
14:27:59: exitSync: fails=0
14:28:00: syncDevice: exit
Title: Re: Wifi android device synching
Post by: Steven on May 04, 2019, 09:16:58 PM
Ok, here's the next error log. Nothing changed on the behavior.
I think I have got to the bottom on why it might happen - this should fix it:

v0.7.3
https://play.google.com/apps/internaltest/4700978781087552506
Title: Re: Wifi android device synching
Post by: Steven on May 04, 2019, 09:40:01 PM
v0.7.4
https://play.google.com/apps/internaltest/4700978781087552506

the settings window for the previous version might not have loaded

@phred,
an error log will always be created when you debug logging enabled.
The sync cancelled issue is the same as psychoadept and should be fixed
Title: Re: Wifi android device synching
Post by: psychoadept on May 04, 2019, 09:48:55 PM
Yep, appears to be working! It wanted to resync everything, but it also showed different file sizes (some larger, some smaller), so I'm letting it, out of curiosity. Maybe related to the fact that I reset the media library (which did in fact get rid of that ghost playlist).
Title: Re: Wifi android device synching
Post by: psychoadept on May 04, 2019, 10:13:29 PM
I canceled the sync because the reason it wanted to resync everything was that rather than putting things in MusicBee\Music, it was putting them in MusicBee\Music\Music\Music. This goes back to the issue I was having with getting things in the desired folder structure. I thought that was resolved but I guess not.

Here are my current device settings: https://i.imgur.com/IZ0FFR7.png

I had to change this once already, because I originally had Music going to MusicBee\*, which was creating a MusicBee\Music folder, but then it stopped doing that on its own and was syncing the library just to MusicBee. This way makes more sense to me anyway, because why would you specify an extra folder level for audiobooks and podcasts vs music.

Also, the Music\Music\Music folder structure makes sense with preserve files and folder names only if it's taking the folder structure from the base user folder. On my drive, everything is in <User>\Music\<Library Node>, so the main library is in fact Music\Music\<Files>. If you tack that on the end of the MusicBee\Music folder in device settings, then you would indeed get three levels of Music folders.

If making this work with Preserve Folders and Filenames is getting too involved, I can switch to a manual directory structure.
Title: Re: Wifi android device synching
Post by: phred on May 04, 2019, 10:28:34 PM
an error log will always be created when you debug logging enabled.
The sync cancelled issue is the same as psychoadept and should be fixed
Sorry Steven. I thought you had said the error log would only be created if an error occurred and would overwrite any existing log. Perhaps I misread. In any event I'm downloading the new update and will be able to test and report back in a little while.
Title: Re: Wifi android device synching
Post by: phred on May 04, 2019, 10:48:56 PM
A sync with 0.7.4 worked as expected. Thanks Steven for tracking down this pesky one.

Also thanks for fixing the visual glitch on the settings screen. However, there's now something similar on the 'preview/sync now' screen. I don't know if this is new, or I didn't notice it on the previous version, but the player choice is (mostly) covered up.
(http://i.imgur.com/ng4JM02l.jpg) (https://i.imgur.com/ng4JM02.png)
Title: Re: Wifi android device synching
Post by: psychoadept on May 05, 2019, 12:55:44 AM
This goes back to the issue I was having with getting things in the desired folder structure. I thought that was resolved but I guess not.

After thinking about this for a while, I suspect it's related to my quirky auto-organize settings, which were giving us such trouble in the other context. I'm more attached to those than I am to "preserve folders and filenames" so I've gone to a manual template for now.
Title: Re: Wifi android device synching
Post by: SkyZippr on May 05, 2019, 01:56:15 AM
Are there anything other than musicbee.exe that I need to unblock in firewall in order to get wifi sync to work?
I'm still struggling with it and haven't been able to perform any wifi sync for the past 5 days or so.
Title: Re: Wifi android device synching
Post by: phred on May 05, 2019, 03:53:53 AM
Are there anything other than musicbee.exe that I need to unblock in firewall in order to get wifi sync to work?
No there isin't. And I'm not even sure you -need- to unblock it. I certainly didn't.

Quote from: SkyZippr
I'm still struggling with it and haven't been able to perform any wifi sync for the past 5 days or so.
Are you certain you're using the latest version of MB -and- the app? The app is now at 0.7.4 and MB is at 3.3.7061 or above.

And did you see this?
For someone who is still at initial the "Locate Server" window, the logging is automatically enabled if the first attempt fails
You should have something logged if you're using the latest app version.
Title: Re: Wifi android device synching
Post by: Steven on May 05, 2019, 11:31:38 AM
If making this work with Preserve Folders and Filenames is getting too involved, I can switch to a manual directory structure.
It works fine for me using your sync settings. I believe you have auto-organise enabled for your library. The way it works is the auto-organise root path is used to get the relative path for each music file eg.
auto-organise template=C:\MusicBee\Music\<artist>\<album>\<disc-track#> - <title>
file=C:\MusicBee\Music\Dessa\A Badly Broken Code\02 - Poor Atlas.mp3
relative path=Dessa\A Badly Broken Code\02 - Poor Atlas.mp3
dest folder on device=MusicBee\Music\*.*
final destination path=MusicBee\Music\Dessa\A Badly Broken Code\02 - Poor Atlas.mp3

what could screw things up is if you have files in your library that dont comform to your naming template and not actually under C:\MusicBee\Music\ eg.
file=C:\MusicBee\Some file.mp3
I think if this was the case MB would be using C:\MusicBee as the base for relative paths of all the synched files
final destination path=MusicBee\Music\Music\Dessa\A Badly Broken Code\02 - Poor Atlas.mp3

do you think that could be the case?

also one other possibility i could investigate, are you including files from playlists or a specific computer folder where the file is not in the library?

edit:
I tried both those possibilities and in both cases the sync behaved as expected so I am at a loss why its adding the extra Music into the path.
I can give you a debug version to see whats going on

edit 2:
perhaps you have some exceptions in your library naming template and define the root of your music library using:
C:\MusicBee\<some expression that evaluates to Music sometimes and other times something else> ?
Title: Re: Wifi android device synching
Post by: Steven on May 05, 2019, 11:32:43 AM
Also thanks for fixing the visual glitch on the settings screen. However, there's now something similar on the 'preview/sync now' screen. I don't know if this is new, or I didn't notice it on the previous version, but the player choice is (mostly) covered up.
I have added scrolling for that panel for small screens. I will make it available later today
Title: Re: Wifi android device synching
Post by: phred on May 05, 2019, 12:51:26 PM
I have added scrolling for that panel for small screens. I will make it available later today
Thanks
Title: Re: Wifi android device synching
Post by: SkyZippr on May 05, 2019, 12:52:21 PM
Are you certain you're using the latest version of MB -and- the app? The app is now at 0.7.4 and MB is at 3.3.7061 or above.
I am using Wifi sync app 0.7.4 and MB 3.3.7061.

And did you see this?
For someone who is still at initial the "Locate Server" window, the logging is automatically enabled if the first attempt fails
You should have something logged if you're using the latest app version.
I'm not stuck at the initial 'Locate Server' window. Actually, somehow I got past that for just once, but after one successful wifi sync, it started showing 'Server not found' again.
The error log only shows an event from May 2nd, generated by 0.6.1. No new error log seems to have been recorded since that.
(Sorry, that 'for the past 5 days or so' was an incorrect statement)

The only reason I can think of is that both my PC is on wired LAN and my phone is on wifi, and both are dynamic private IP.
The IP's are like 10.165.A.XXX, A being either 1 or 2. I'm not sure the exact interval of IP changing, but I guess it's 12-24 hrs.
Sometimes PC would be 10.165.1.XXX while phone being 10.165.2.XXX, and sometimes both of them would be 10.165.1.XXX.
However, whether or not they share the same 'A' doesn't seem to have correlation with 'Server not found' error.
Title: Re: Wifi android device synching
Post by: Babydoll32 on May 05, 2019, 01:50:00 PM
I got one question. Does MB check for existing files on Android or will it copy everything again with a new sync? The reason why I ask is, that it seems to me, that it copy files again, with every new sync, insteed skipping already existing files. And that waste a lot of time, with a lot of songs. Maybe my settings are wrong?!
Title: Re: Wifi android device synching
Post by: Steven on May 05, 2019, 03:44:05 PM
I'm not stuck at the initial 'Locate Server' window. Actually, somehow I got past that for just once, but after one successful wifi sync, it started showing 'Server not found' again.
The error log only shows an event from May 2nd, generated by 0.6.1. No new error log seems to have been recorded since that.
(Sorry, that 'for the past 5 days or so' was an incorrect statement)

The only reason I can think of is that both my PC is on wired LAN and my phone is on wifi, and both are dynamic private IP.
The IP's are like 10.165.A.XXX, A being either 1 or 2. I'm not sure the exact interval of IP changing, but I guess it's 12-24 hrs.
Sometimes PC would be 10.165.1.XXX while phone being 10.165.2.XXX, and sometimes both of them would be 10.165.1.XXX.
However, whether or not they share the same 'A' doesn't seem to have correlation with 'Server not found' error.
You need to tick "enable debug logging" in the Settings panel
The current implementation will only search for the server on the same 10.165.A
I wouldnt know how to make an efficent way to search every combination of possible values so unless you can ensure they are both on the same subnet, its not going to work well.
Title: Re: Wifi android device synching
Post by: psychoadept on May 05, 2019, 03:58:16 PM
I got one question. Does MB check for existing files on Android or will it copy everything again with a new sync? The reason why I ask is, that it seems to me, that it copy files again, with every new sync, insteed skipping already existing files. And that waste a lot of time, with a lot of songs. Maybe my settings are wrong?!

MusicBee will resync files if their location according to the template in your device settings has changed, or if the file has been modified since the last sync. If the file is where it expects it to be and has not changed, it won't sync it again. [Update: fixing typos, yikes!]

I had one file with an exceptionally long name that kept resyncing, so if your filenames are very long you might also look at ways to shorten them and see if that helps.
Title: Re: Wifi android device synching
Post by: SkyZippr on May 05, 2019, 04:16:11 PM
You need to tick "enable debug logging" in the Settings panel
I did, but the error log doesn't change from May 2nd.

You need to tick "enable debug logging" in the Settings panel
The current implementation will only search for the server on the same 10.165.A
I wouldnt know how to make an efficent way to search every combination of possible values so unless you can ensure they are both on the same subnet, its not going to work well.
The thing is, even when both PC and phone were on the same 10.165.A, I still got 'Server not found' error.
Unfortunately I don't have the log for that occasion.

Can the PC be searched by network name or something?
Title: Re: Wifi android device synching
Post by: Steven on May 05, 2019, 04:21:19 PM
i wont be able to help further with this
Title: Re: Wifi android device synching
Post by: SkyZippr on May 05, 2019, 04:39:17 PM
I'll try setting both to static IP and see what happens.
Title: Re: Wifi android device synching
Post by: Steven on May 05, 2019, 05:54:52 PM
I have added scrolling for that panel for small screens. I will make it available later today
v0.7.5 - its available now
Title: Re: Wifi android device synching
Post by: phred on May 05, 2019, 07:07:07 PM
I have added scrolling for that panel for small screens. I will make it available later today
v0.7.5 - its available now
Looking good - thanks Steven.
Title: Re: Wifi android device synching
Post by: psychoadept on May 05, 2019, 08:22:55 PM
Steven, I'm trying to reply about the "preserve folders and filenames" bit, but I keep getting pulled away.  Will get back to you ASAP.
Title: Re: Wifi android device synching
Post by: Babydoll32 on May 05, 2019, 09:03:44 PM
I got one question. Does MB check for existing files on Android or will it copy everything again with a new sync? The reason why I ask is, that it seems to me, that it copy files again, with every new sync, insteed skipping already existing files. And that waste a lot of time, with a lot of songs. Maybe my settings are wrong?!

MusicBee will resync files if their location according to the template in your device settings has changed, or if the file has been modified since the last sync. If the file is where it expects it to be and has not changed, it won't sync it again. [Update: fixing typos, yikes!]

I had one file with an exceptionally long name that kept resyncing, so if your filenames are very long you might also look at ways to shorten them and see if that helps.

That's a little bit strange. Syncing works perfectly now, but MB WiFi will still copy the existing files, when I resync, also if there was no modification or long filename. Wired sync skips existing files like it should.
Title: Re: Wifi android device synching
Post by: Steven on May 05, 2019, 09:29:42 PM
That's a little bit strange. Syncing works perfectly now, but MB WiFi will still copy the existing files, when I resync, also if there was no modification or long filename. Wired sync skips existing files like it should.
can you run this debug version of musicbee.
It will add a lot of data to the end of your errorlog, so can you send me a zip of that file after the wifi sync (help/ support/view error log)

https://www.mediafire.com/file/8cqu6gnxdn629zj/MusicBeeDebugSync.zip/file
unzip and replace musicbee.exe
Title: Re: Wifi android device synching
Post by: SkyZippr on May 06, 2019, 12:55:00 AM
I tried setting both my PC and phone to static IP.
It looks like the wifi app is looking for a very specific IP, namely 10.165.1.126.
If I set my PC's IP to anything other than that, wifi app would be unable to locate the server.
I wonder if this leaves any clue to the issue I was having?

Also, is it impossible to implement a way to 'hook' the app via PC's network name instead of IP?
I suspect that other syncing apps like Folder Sync, Resilio Sync are all doing the same, since I never encountered any problem with them under the same environment.
I'm not very familiar with network, so forgive me if I'm referring to an entirely unrelated method.
Title: Re: Wifi android device synching
Post by: SkyZippr on May 06, 2019, 03:13:07 AM
I think I just came across another weird issue.
I excluded approximately 200 songs from transfer in MB, then ran a wifi sync. Instead of deleting the individual songs, wifi sync deleted the whole artist folder from the phone.
Then, upon the next wifi sync, it copied all the songs which were meant to be not deleted in the last sync.
Maybe I was deleting too many songs at a time? I'll try deleting fewer songs next time and see what happens.
Title: Re: Wifi android device synching
Post by: EuroMIX on May 06, 2019, 06:50:36 AM
First of all, thanks so much for trying to get this to work. I rely a lot on playlists and such that utilise how much and often I play a song, and plays not syncing both ways is a real bummer and basically ruins this system.

Any chance 2-way syncing could be made to work with MediaMonkey on android? It's probably the only music app I've found that actually handles delimiters for artists/genres/etc as well as MusicBee does, but I prefer to use your program on my PC.

I know the answer may be no, if only because MM is a major rival to MusicBee, but without an actual "MusicBee Mobile" (Mobee?), MediaMonkey probably serves this function the closest on Android.

Thanks so much if you can get it working.
Title: Re: Wifi android device synching
Post by: Steven on May 06, 2019, 07:49:32 AM
@Babydoll32, can you post a screenshot of your device sync settings, especially the storage path and naming template.
According to the log you sent, MB is not detecting any files on the device before the sync starts
Title: Re: Wifi android device synching
Post by: SkyZippr on May 06, 2019, 10:11:10 AM
I think I just came across another weird issue.
I excluded approximately 200 songs from transfer in MB, then ran a wifi sync. Instead of deleting the individual songs, wifi sync deleted the whole artist folder from the phone.
Then, upon the next wifi sync, it copied all the songs which were meant to be not deleted in the last sync.
Maybe I was deleting too many songs at a time? I'll try deleting fewer songs next time and see what happens.

Steven, I'm really sorry to keep bothering you with more and more issues.
I did a little test regarding the one above:

Note: I have a custom tag called 'Transfer' to manage the songs I'd like to transfer to my phone.
In my library, artist Calum Scott have 2 songs of which the 'Transfer' tag are  set to 'Yes', meaning those 2 songs are set to sync onto my phone.
I changed 'Transfer' the tag of one of the song to empty value, so that one would be deleted from my phone, and the other would remain on it.
Below is the screenshot of the preview prior to syncing. Wifi app correctly discovers the song that are meant to be deleted.
(https://imgur.com/EHKz4wU.jpg?1)

And here is the confirmation for deleting that particular song, after tapping 'SYNC NOW'.
(https://imgur.com/tU22Ver.jpg?1)

And below is the debug error log of the said syncing.
As shown, it first deleted the song, then at the end it deleted the artist folder containing one song that were meant to remain on the phone.
Code
2019-05-06: MHA-L29;  9;  0.7.5
17:47:58: ping: socket ok=/10.165.1.126
17:47:58: ping: hello=MusicBeeWifiSyncServer/1.0
17:47:58: ping: matched=/10.165.1.126,status=OK
17:48:06: startSync: preview=true,iteration=0
17:48:06: command: action=SYNC_START
17:48:06: tryStart: connecting /10.165.1.126, attempt=0
17:48:06: tryStart: connected
17:48:06: tryStart: hello=true,fromMB=true,custfiles=false,preview=true,dev=MHA-L29,2
17:48:06: syncDevice: root=/storage/1AA1-02B9,ignoreErrors=false,playlists=false,ratings=true,playcount=true
17:48:06: syncDevice: command=SendStats
17:48:07: syncDevice: command=ShowResults
17:48:07: syncDevice: command=GetFiles
17:48:07: getFiles: Get: Music/, inc=true
17:48:08: syncDevice: command=GetFiles
17:48:08: getFiles: Get: Podcasts/, inc=true
17:48:08: syncDevice: command=GetFiles
17:48:08: getFiles: Get: Music/Playlists/, inc=false
17:48:08: syncDevice: command=ShowPreviewResults
17:48:08: syncDevice: exit
17:49:05: startSync: preview=false,iteration=1
17:49:05: command: action=SYNC_START
17:49:05: tryStart: connecting /10.165.1.126, attempt=0
17:49:05: tryStart: connected
17:49:05: tryStart: hello=true,fromMB=true,custfiles=false,preview=false,dev=MHA-L29,2
17:49:05: syncDevice: root=/storage/1AA1-02B9,ignoreErrors=false,playlists=false,ratings=true,playcount=true
17:49:05: syncDevice: command=SendStats
17:49:06: syncDevice: command=ShowResults
17:49:06: syncDevice: command=GetFiles
17:49:06: getFiles: Get: Music/Playlists/, inc=false
17:49:06: syncDevice: command=ShowDeleteConfirmation
17:49:36: syncDevice: command=DeleteFiles
17:49:36: deleteFiles: Delete: Music/Calum Scott/Only Human/06 Stop Myself (Only Human).mp3
17:49:37: syncDevice: command=ReceiveFile
17:49:37: receiveFile: Receive: Music/Playlists/Recently Favorited.m3u8
17:49:37: syncDevice: command=ReceiveFile
17:49:37: receiveFile: Receive: Music/Playlists/Least Recently Played ★4's.m3u8
17:49:37: syncDevice: command=ReceiveFile
17:49:37: receiveFile: Receive: Music/Playlists/For Shuffle.m3u8
17:49:37: syncDevice: command=ReceiveFile
17:49:37: receiveFile: Receive: Music/Playlists/5 Stars.m3u8
17:49:37: syncDevice: command=ReceiveFile
17:49:37: receiveFile: Receive: Music/Playlists/4 Stars.m3u8
17:49:37: syncDevice: command=DeleteFolders
17:49:37: deleteFolder: Delete: Music/Calum Scott/
17:49:38: syncDevice: command=Exit
17:49:38: exitSync: fails=0
17:49:39: syncDevice: exit

Below is the screenshot of the preview of the next syncing, where the song that was not supposed to be deleted are being copied.
(https://i.imgur.com/HLPOmlv.jpg?1)

Btw, Wifi syncing seems to be working fine as long as the PC stays on 10.165.1.126.
Any other IP would cause 'Server not found' to reappear.
Title: Re: Wifi android device synching
Post by: Steven on May 06, 2019, 10:43:55 AM
can you reset the mediastore database on your device and when that is complete redo the test
Title: Re: Wifi android device synching
Post by: Babydoll32 on May 06, 2019, 11:18:36 AM
@Babydoll32, can you post a screenshot of your device sync settings, especially the storage path and naming template.
According to the log you sent, MB is not detecting any files on the device before the sync starts

Yes, that's the point. Files are there and sync is working well on other side. But waste a lot of time. Is it because I convert FLAC to OGG while converting, maybe?! I'll send you a screenshot this evening, when I'm at home.
Title: Re: Wifi android device synching
Post by: SkyZippr on May 06, 2019, 12:18:02 PM
can you reset the mediastore database on your device and when that is complete redo the test
Sorry for the waiting. It took me sometime to reset the mediastore due to my huge music library (over 8,000 songs).
Unfortunately, the result was the same. The debug log looks exactly the same except for the time stamps.
Title: Re: Wifi android device synching
Post by: Steven on May 06, 2019, 12:52:02 PM
Sorry for the waiting. It took me sometime to reset the mediastore due to my huge music library (over 8,000 songs).
Unfortunately, the result was the same. The debug log looks exactly the same except for the time stamps.
could you run this debug version of musicbee. It will add a lot info to the end of the error log - you only need to do a preview from the device and then send me the musicbee error log (help/ support/ view error log)

https://www.mediafire.com/file/d543a990sb38qsa/MusicBeeDebugSync.zip/file
unzip and replace musicbee.exe


also let me know the name of the file that should have copied on the first sync for this test
Title: Re: Wifi android device synching
Post by: SkyZippr on May 06, 2019, 01:57:01 PM
also let me know the name of the file that should have copied on the first sync for this test

On the first sync for the test, I was trying to delete "06 Stop Myself (Only Human).mp3". Did you mean that?
I uploaded the ErrorLog.dat for the preview of deleting 1 file to Google Drive, and PM'd you the link.
Title: Re: Wifi android device synching
Post by: Steven on May 06, 2019, 02:05:47 PM
I thought your first sync should have copied one file and deleted one file.
According to the log you sent, it should have deleted "06 Stop Myself (Only Human).mp3"
So what exactly is the issue?

if you run another test, please delete the existing error log first

Title: Re: Wifi android device synching
Post by: SkyZippr on May 06, 2019, 02:14:22 PM
Em that's not what I was trying to do.

First of all I have two songs in one particular album on the phone.
On the first sync, it should have deleted only one file out of the two, leaving the other untouched on the phone.
The issue is, in reality it deleted not only the one file, but also the artist folder.

From my previous post:
Code
17:49:36: syncDevice: command=DeleteFiles
17:49:36: deleteFiles: Delete: Music/Calum Scott/Only Human/06 Stop Myself (Only Human).mp3
This was supposed to happen.


Code
17:49:37: syncDevice: command=DeleteFolders
17:49:37: deleteFolder: Delete: Music/Calum Scott/
But this was NOT supposed to happen.
Title: Re: Wifi android device synching
Post by: Steven on May 06, 2019, 02:31:27 PM
On the first sync, it should have deleted only one file out of the two, leaving the other untouched on the phone.
The issue is, in reality it deleted not only the one file, but also the artist folder.
i can reproduce this, so should be able to fix it
Title: Re: Wifi android device synching
Post by: SkyZippr on May 06, 2019, 02:33:02 PM
Thanks Steven!
Title: Re: Wifi android device synching
Post by: Steven on May 06, 2019, 03:21:40 PM
This should fix the unwanted folder clean up

https://getmusicbee.com/patches/MusicBee33_Patched.zip
unzip and replace the existing musicbee files

@Babydoll32, you should try this version as it is possible it could be related to your issue
Title: Re: Wifi android device synching
Post by: Babydoll32 on May 06, 2019, 04:48:12 PM
@Babydoll32, can you post a screenshot of your device sync settings, especially the storage path and naming template.
According to the log you sent, MB is not detecting any files on the device before the sync starts

Hi, Steven.
Hope this may help.

(http://i65.tinypic.com/jrel4p.jpg)
(http://i64.tinypic.com/143i3iu.jpg)
Title: Re: Wifi android device synching
Post by: Steven on May 06, 2019, 04:56:40 PM
did you try using the latest patch from a couple of hours ago?
if it still happens, let me know and i will enhance the debug logging on the android device
Title: Re: Wifi android device synching
Post by: Babydoll32 on May 06, 2019, 06:02:01 PM
did you try using the latest patch from a couple of hours ago?
if it still happens, let me know and i will enhance the debug logging on the android device

It still happens  :(
Is it a cause of the Nokia 8 <> TA-1012 naming problem?
Title: Re: Wifi android device synching
Post by: Steven on May 06, 2019, 06:53:07 PM
It still happens  :(
Is it a cause of the Nokia 8 <> TA-1012 naming problem?
yes i think it is related to that

could you run this android version:
v0.7.6
https://play.google.com/apps/internaltest/4700978781087552506

it will add some extra info to the android error log
Title: Re: Wifi android device synching
Post by: Steven on May 06, 2019, 07:17:07 PM
i removed your previous post as the results were of no use due to other media files
could you run this android version:
v0.7.6.1
https://play.google.com/apps/internaltest/4700978781087552506
Title: Re: Wifi android device synching
Post by: Babydoll32 on May 06, 2019, 07:30:33 PM
i removed your previous post as the results were of no use due to other media files
could you run this android version:
v0.7.6.1
https://play.google.com/apps/internaltest/4700978781087552506

Code
2019-05-06: TA-1012;  9;  0.7.6.1
20:27:36: getFiles: Get: Bee/,url=/storage/02CB-10E4/Bee/, inc=true
20:27:36: getFiles:
20:27:36: getFiles: count=1
20:27:36: syncDevice: command=GetFiles
20:27:36: getFiles: Get: Podcasts/,url=/storage/02CB-10E4/Podcasts/, inc=true
20:27:37: getFiles:
20:27:37: getFiles: count=0
20:27:37: syncDevice: command=GetFiles
20:27:37: getFiles: Get: Bee/Playlists/,url=/storage/02CB-10E4/Bee/Playlists/, inc=false
20:27:37: getFiles:
20:27:37: getFiles: count=1
20:27:50: syncDevice: command=ReceiveFile
20:27:50: receiveFile: Receive: Bee/Marshmello/Happier (Remixes)/1-01 - Happier (Frank Walker Remix).ogg
20:27:52: syncDevice: command=ReceiveFile
20:27:52: receiveFile: Receive: Bee/Shawn Mendes/Lost In Japan (Remix)/1-01 - Lost In Japan (Remix).ogg
20:27:56: syncDevice: command=ReceiveFile
20:27:56: receiveFile: Receive: Bee/CHVRCHES/Graffiti (M-22 Remix)/1-01 - Graffiti (M-22 Remix).ogg
20:28:01: syncDevice: command=ReceiveFile
20:28:01: receiveFile: Receive: Bee/Gilligan Moss/Want U So Bad (Myd Remix)/1-01 - Want U So Bad (Myd Remix).ogg
20:28:01: syncDevice: command=ReceiveFile
20:28:01: receiveFile: Receive: Bee/Playlists/test.m3u
20:28:02: syncDevice: command=Exit
20:28:02: exitSync: fails=0
20:28:02: syncDevice: exit
Title: Re: Wifi android device synching
Post by: Steven on May 06, 2019, 07:33:41 PM
well there doesnt appear to be any ogg files in the mediastore database, so could you try a different format for this test, such as .mp3
Title: Re: Wifi android device synching
Post by: phred on May 06, 2019, 07:44:34 PM
Any chance 2-way syncing could be made to work with MediaMonkey on android? It's probably the only music app I've found that actually handles delimiters for artists/genres/etc as well as MusicBee does, but I prefer to use your program on my PC.
If I understand correctly, you want the developer of MusicBee to create something that will work with MediaMonkey??? Please tell me you're not serious. If you are, you need to understand that the MB developer does this in his spare time, for no compensation other than a small pittance in donations, and has more than he can handle dealing with his own application. I suggest you talk with the paid staff at MediaMonkey.
Title: Re: Wifi android device synching
Post by: Babydoll32 on May 06, 2019, 07:55:27 PM
well there doesnt appear to be any ogg files in the mediastore database, so could you try a different format for this test, such as .mp3

Now I got OGG and MP3 in my directory. But sync does same, copies everything new.

Code
2019-05-06: TA-1012;  9;  0.7.6.1
20:53:06: getFiles: Get: Bee/,url=/storage/02CB-10E4/Bee/, inc=true
20:53:06: getFiles:
20:53:06: getFiles: count=1
20:53:06: syncDevice: command=GetFiles
20:53:06: getFiles: Get: Podcasts/,url=/storage/02CB-10E4/Podcasts/, inc=true
20:53:06: getFiles:
20:53:06: getFiles: count=0
20:53:06: syncDevice: command=GetFiles
20:53:06: getFiles: Get: Bee/Playlists/,url=/storage/02CB-10E4/Bee/Playlists/, inc=false
20:53:06: getFiles:
20:53:06: getFiles: count=1
20:53:14: syncDevice: command=ReceiveFile
20:53:14: receiveFile: Receive: Bee/Marshmello/Happier (Remixes)/1-01 - Happier (Frank Walker Remix).mp3
20:53:15: syncDevice: command=ReceiveFile
20:53:15: receiveFile: Receive: Bee/Shawn Mendes/Lost In Japan (Remix)/1-01 - Lost In Japan (Remix).mp3
20:53:16: syncDevice: command=ReceiveFile
20:53:16: receiveFile: Receive: Bee/CHVRCHES/Graffiti (M-22 Remix)/1-01 - Graffiti (M-22 Remix).mp3
20:53:21: syncDevice: command=ReceiveFile
20:53:21: receiveFile: Receive: Bee/Gilligan Moss/Want U So Bad (Myd Remix)/1-01 - Want U So Bad (Myd Remix).mp3
20:53:21: syncDevice: command=ReceiveFile
20:53:21: receiveFile: Receive: Bee/Playlists/test.m3u
20:53:22: syncDevice: command=Exit
20:53:22: exitSync: fails=0
20:53:22: syncDevice: exit
Title: Re: Wifi android device synching
Post by: Steven on May 06, 2019, 08:15:33 PM
one last attempt to get the info i need:
v0.7.6.4
https://play.google.com/apps/internaltest/4700978781087552506
Title: Re: Wifi android device synching
Post by: Babydoll32 on May 06, 2019, 08:28:14 PM
one last attempt to get the info i need:
v0.7.6.4
https://play.google.com/apps/internaltest/4700978781087552506

No problem...

Code
2019-05-06: TA-1012;  9;  0.7.6.4
21:25:35: getFiles: Get: Bee/,url=/storage/02CB-10E4/Bee/, inc=true
21:25:35: getFiles: /storage/02CB-10E4/Music/Feenixpawl/Blaze/01 Feenixpawl; Arensky - Blaze.mp3: Sun May 05 19:16:40 GMT+02:00 2019
/storage/02CB-10E4/Music/Little Mix/Woman Like Me/01 Little Mix; Nicki Mi - Woman Like Me.mp3: Sun May 05 19:48:07 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Nichts ist für die Ewigkeit (Live am Hockenheimring 2014)/10 Böhse Onkelz - Immer auf der Suche (Live).mp3: Sun May 05 18:44:30 GMT+02:00 2019
/storage/02CB-10E4/Music/HRVY/I Wish You Were Here (Acoustic)/01 HRVY - I Wish You Were Here (Acoustic).mp3: Sun May 05 19:29:08 GMT+02:00 2019
/storage/02CB-10E4/Music/Alan Walker/On My Way/01 Alan Walker; Sabrina - On My Way.mp3: Sun May 05 18:21:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Carlos/The Silmarillia 2019/01 Carlos - The Silmarillia 2019.mp3: Sun May 05 18:56:34 GMT+02:00 2019
/storage/02CB-10E4/Music/Aloe Blacc/I Need A Dollar/01 Aloe Blacc - I Need A Dollar.mp3: Sun May 05 18:23:52 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Memento/12 Böhse Onkelz - 52 Wochen.mp3: Sun May 05 18:44:02 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Live in Dortmund/06 Böhse Onkelz - Danket dem Herrn (Live).mp3: Sun May 05 18:42:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Alexander Alar/Bangkok/01 Alexander Alar; Marc - Bangkok.mp3: Sun May 05 18:22:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Brother Beyond/The Very Best Of Brother Beyond/01 Brother Beyond - The Harder I Try.mp3: Sun May 05 18:53:24 GMT+02:00 2019
/storage/02CB-10E4/Music/Hailee Steinfeld/Love Myself/01 Hailee Steinfeld - Love Myself.mp3: Sun May 05 19:26:56 GMT+02:00 2019
/storage/02CB-10E4/Music/Gil Sanders/Party Through The Pain/01 Gil Sanders - Party Through The Pain.mp3: Sun May 05 19:23:26 GMT+02:00 2019
/storage/02CB-10E4/Music/Don Henley/Actual Miles- Henley's Greatest Hits/06 Don Henley - The End Of The Innocence.mp3: Sun May 05 19:10:46 GMT+02:00 2019
/storage/02CB-10E4/Music/Calmani & Grey/Time of Our Lives/02 Calmani; Grey - Time of Our Lives (Club Edit).mp3: Sun May 05 18:55:12 GMT+02:00 2019
/storage/02CB-10E4/Music/Mamer/Eagle/05 Mamer - Man.mp3: Sun May 05 19:53:15 GMT+02:00 2019
/storage/02CB-10E4/Music/Hozier/Wasteland, Baby!/06 Hozier - To Noise Making (Sing).mp3: Sun May 05 19:29:12 GMT+02:00 2019
/storage/02CB-10E4/Music/Joel Corry/Fallen (feat. Hayley May)/01 Joel Corry; Hayley M - Fallen (feat. Hayley May).mp3: Sun May 05 19:35:56 GMT+02:00 2019
/storage/02CB-10E4/Music/Kris Kristofferson/The Essential Kris Kristofferson/06 Kris Kristofferson - Casey's Last Ride (Album Version).mp3: Sun May 05 19:43:00 GMT+02:00 2019
/storage/02CB-10E4/Music/Interpol/The Weekend/01 Interpol - The Weekend.mp3: Sun May 05 19:30:34 GMT+02:00 2019
/storage/02CB-10E4/Music/Billy Idol/Greatest Hits (The One & Only)/05 Billy Idol - Rebel Yell.mp3: Sun May 05 18:34:32 GMT+02:00 2019
/storage/02CB-10E4/Music/Air Supply/Collections/01 Air Supply - All Out of Love.mp3: Sun May 05 18:21:14 GMT+02:00 2019
/storage/02CB-10E4/Music/Analog Sol/Trinidad Dreams/01 Analog Sol - Trinidad Dreams.mp3: Sun May 05 18:24:48 GMT+02:00 2019
/storage/02CB-10E4/Music/Marty Robbins/Gunfighter Ballads And Trail Songs/08 Marty Robbins - The Master's Call.mp3: Sun May 05 19:55:58 GMT+02:00 2019
/storage/02CB-10E4/Music/DYTONE/Never Enough/01 DYTONE - Never Enough_2.mp3: Sun May 05 19:12:26 GMT+02:00 2019
/storage/02CB-10E4/Music/Elderbrook/Old Friend/01 Elderbrook - Old Friend.mp3: Sun May 05 19:13:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Martin Garrix/Dreamer/01 Martin Garrix; Mike  - Dreamer.mp3: Sun May 05 19:55:37 GMT+02:00 2019
/storage/02CB-10E4/Music/Lorde/Pure Heroine/03 Lorde - Royals.mp3: Sun May 05 19:48:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Es ist soweit/11 Böhse Onkelz - Leiden.mp3: Sun May 05 18:39:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Live in Vienna/13 Böhse Onkelz - Stöckel und Strapse (live).mp3: Sun May 05 18:43:41 GMT+02:00 2019
/storage/02CB-10E4/Music/Leisure/The Hype/01 Leisure - The Hype.mp3: Sun May 05 19:45:55 GMT+02:00 2019
/storage/02CB-10E4/Music/Boot Slap/Fade Into You/01 Boot Slap - Fade Into You (Original Mix).mp3: Sun May 05 18:46:48 GMT+02:00 2019
/storage/02CB-10E4/Music/Daya/Insomnia/01 Daya - Insomnia.mp3: Sun May 05 19:06:34 GMT+02:00 2019

21:25:35: getFiles: count=1
21:25:35: syncDevice: command=GetFiles
21:25:35: getFiles: Get: Podcasts/,url=/storage/02CB-10E4/Podcasts/, inc=true
21:25:35: getFiles: /storage/02CB-10E4/Music/Feenixpawl/Blaze/01 Feenixpawl; Arensky - Blaze.mp3: Sun May 05 19:16:40 GMT+02:00 2019
/storage/02CB-10E4/Music/Little Mix/Woman Like Me/01 Little Mix; Nicki Mi - Woman Like Me.mp3: Sun May 05 19:48:07 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Nichts ist für die Ewigkeit (Live am Hockenheimring 2014)/10 Böhse Onkelz - Immer auf der Suche (Live).mp3: Sun May 05 18:44:30 GMT+02:00 2019
/storage/02CB-10E4/Music/HRVY/I Wish You Were Here (Acoustic)/01 HRVY - I Wish You Were Here (Acoustic).mp3: Sun May 05 19:29:08 GMT+02:00 2019
/storage/02CB-10E4/Music/Alan Walker/On My Way/01 Alan Walker; Sabrina - On My Way.mp3: Sun May 05 18:21:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Carlos/The Silmarillia 2019/01 Carlos - The Silmarillia 2019.mp3: Sun May 05 18:56:34 GMT+02:00 2019
/storage/02CB-10E4/Music/Aloe Blacc/I Need A Dollar/01 Aloe Blacc - I Need A Dollar.mp3: Sun May 05 18:23:52 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Memento/12 Böhse Onkelz - 52 Wochen.mp3: Sun May 05 18:44:02 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Live in Dortmund/06 Böhse Onkelz - Danket dem Herrn (Live).mp3: Sun May 05 18:42:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Alexander Alar/Bangkok/01 Alexander Alar; Marc - Bangkok.mp3: Sun May 05 18:22:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Brother Beyond/The Very Best Of Brother Beyond/01 Brother Beyond - The Harder I Try.mp3: Sun May 05 18:53:24 GMT+02:00 2019
/storage/02CB-10E4/Music/Hailee Steinfeld/Love Myself/01 Hailee Steinfeld - Love Myself.mp3: Sun May 05 19:26:56 GMT+02:00 2019
/storage/02CB-10E4/Music/Gil Sanders/Party Through The Pain/01 Gil Sanders - Party Through The Pain.mp3: Sun May 05 19:23:26 GMT+02:00 2019
/storage/02CB-10E4/Music/Don Henley/Actual Miles- Henley's Greatest Hits/06 Don Henley - The End Of The Innocence.mp3: Sun May 05 19:10:46 GMT+02:00 2019
/storage/02CB-10E4/Music/Calmani & Grey/Time of Our Lives/02 Calmani; Grey - Time of Our Lives (Club Edit).mp3: Sun May 05 18:55:12 GMT+02:00 2019
/storage/02CB-10E4/Music/Mamer/Eagle/05 Mamer - Man.mp3: Sun May 05 19:53:15 GMT+02:00 2019
/storage/02CB-10E4/Music/Hozier/Wasteland, Baby!/06 Hozier - To Noise Making (Sing).mp3: Sun May 05 19:29:12 GMT+02:00 2019
/storage/02CB-10E4/Music/Joel Corry/Fallen (feat. Hayley May)/01 Joel Corry; Hayley M - Fallen (feat. Hayley May).mp3: Sun May 05 19:35:56 GMT+02:00 2019
/storage/02CB-10E4/Music/Kris Kristofferson/The Essential Kris Kristofferson/06 Kris Kristofferson - Casey's Last Ride (Album Version).mp3: Sun May 05 19:43:00 GMT+02:00 2019
/storage/02CB-10E4/Music/Interpol/The Weekend/01 Interpol - The Weekend.mp3: Sun May 05 19:30:34 GMT+02:00 2019
/storage/02CB-10E4/Music/Billy Idol/Greatest Hits (The One & Only)/05 Billy Idol - Rebel Yell.mp3: Sun May 05 18:34:32 GMT+02:00 2019
/storage/02CB-10E4/Music/Air Supply/Collections/01 Air Supply - All Out of Love.mp3: Sun May 05 18:21:14 GMT+02:00 2019
/storage/02CB-10E4/Music/Analog Sol/Trinidad Dreams/01 Analog Sol - Trinidad Dreams.mp3: Sun May 05 18:24:48 GMT+02:00 2019
/storage/02CB-10E4/Music/Marty Robbins/Gunfighter Ballads And Trail Songs/08 Marty Robbins - The Master's Call.mp3: Sun May 05 19:55:58 GMT+02:00 2019
/storage/02CB-10E4/Music/DYTONE/Never Enough/01 DYTONE - Never Enough_2.mp3: Sun May 05 19:12:26 GMT+02:00 2019
/storage/02CB-10E4/Music/Elderbrook/Old Friend/01 Elderbrook - Old Friend.mp3: Sun May 05 19:13:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Martin Garrix/Dreamer/01 Martin Garrix; Mike  - Dreamer.mp3: Sun May 05 19:55:37 GMT+02:00 2019
/storage/02CB-10E4/Music/Lorde/Pure Heroine/03 Lorde - Royals.mp3: Sun May 05 19:48:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Es ist soweit/11 Böhse Onkelz - Leiden.mp3: Sun May 05 18:39:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Live in Vienna/13 Böhse Onkelz - Stöckel und Strapse (live).mp3: Sun May 05 18:43:41 GMT+02:00 2019
/storage/02CB-10E4/Music/Leisure/The Hype/01 Leisure - The Hype.mp3: Sun May 05 19:45:55 GMT+02:00 2019
/storage/02CB-10E4/Music/Boot Slap/Fade Into You/01 Boot Slap - Fade Into You (Original Mix).mp3: Sun May 05 18:46:48 GMT+02:00 2019
/storage/02CB-10E4/Music/Daya/Insomnia/01 Daya - Insomnia.mp3: Sun May 05 19:06:34 GMT+02:00 2019

21:25:35: getFiles: count=0
21:25:36: syncDevice: command=GetFiles
21:25:36: getFiles: Get: Bee/Playlists/,url=/storage/02CB-10E4/Bee/Playlists/, inc=false
21:25:36: getFiles: /storage/02CB-10E4/Music/Feenixpawl/Blaze/01 Feenixpawl; Arensky - Blaze.mp3: Sun May 05 19:16:40 GMT+02:00 2019
/storage/02CB-10E4/Music/Little Mix/Woman Like Me/01 Little Mix; Nicki Mi - Woman Like Me.mp3: Sun May 05 19:48:07 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Nichts ist für die Ewigkeit (Live am Hockenheimring 2014)/10 Böhse Onkelz - Immer auf der Suche (Live).mp3: Sun May 05 18:44:30 GMT+02:00 2019
/storage/02CB-10E4/Music/HRVY/I Wish You Were Here (Acoustic)/01 HRVY - I Wish You Were Here (Acoustic).mp3: Sun May 05 19:29:08 GMT+02:00 2019
/storage/02CB-10E4/Music/Alan Walker/On My Way/01 Alan Walker; Sabrina - On My Way.mp3: Sun May 05 18:21:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Carlos/The Silmarillia 2019/01 Carlos - The Silmarillia 2019.mp3: Sun May 05 18:56:34 GMT+02:00 2019
/storage/02CB-10E4/Music/Aloe Blacc/I Need A Dollar/01 Aloe Blacc - I Need A Dollar.mp3: Sun May 05 18:23:52 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Memento/12 Böhse Onkelz - 52 Wochen.mp3: Sun May 05 18:44:02 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Live in Dortmund/06 Böhse Onkelz - Danket dem Herrn (Live).mp3: Sun May 05 18:42:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Alexander Alar/Bangkok/01 Alexander Alar; Marc - Bangkok.mp3: Sun May 05 18:22:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Brother Beyond/The Very Best Of Brother Beyond/01 Brother Beyond - The Harder I Try.mp3: Sun May 05 18:53:24 GMT+02:00 2019
/storage/02CB-10E4/Music/Hailee Steinfeld/Love Myself/01 Hailee Steinfeld - Love Myself.mp3: Sun May 05 19:26:56 GMT+02:00 2019
/storage/02CB-10E4/Music/Gil Sanders/Party Through The Pain/01 Gil Sanders - Party Through The Pain.mp3: Sun May 05 19:23:26 GMT+02:00 2019
/storage/02CB-10E4/Music/Don Henley/Actual Miles- Henley's Greatest Hits/06 Don Henley - The End Of The Innocence.mp3: Sun May 05 19:10:46 GMT+02:00 2019
/storage/02CB-10E4/Music/Calmani & Grey/Time of Our Lives/02 Calmani; Grey - Time of Our Lives (Club Edit).mp3: Sun May 05 18:55:12 GMT+02:00 2019
/storage/02CB-10E4/Music/Mamer/Eagle/05 Mamer - Man.mp3: Sun May 05 19:53:15 GMT+02:00 2019
/storage/02CB-10E4/Music/Hozier/Wasteland, Baby!/06 Hozier - To Noise Making (Sing).mp3: Sun May 05 19:29:12 GMT+02:00 2019
/storage/02CB-10E4/Music/Joel Corry/Fallen (feat. Hayley May)/01 Joel Corry; Hayley M - Fallen (feat. Hayley May).mp3: Sun May 05 19:35:56 GMT+02:00 2019
/storage/02CB-10E4/Music/Kris Kristofferson/The Essential Kris Kristofferson/06 Kris Kristofferson - Casey's Last Ride (Album Version).mp3: Sun May 05 19:43:00 GMT+02:00 2019
/storage/02CB-10E4/Music/Interpol/The Weekend/01 Interpol - The Weekend.mp3: Sun May 05 19:30:34 GMT+02:00 2019
/storage/02CB-10E4/Music/Billy Idol/Greatest Hits (The One & Only)/05 Billy Idol - Rebel Yell.mp3: Sun May 05 18:34:32 GMT+02:00 2019
/storage/02CB-10E4/Music/Air Supply/Collections/01 Air Supply - All Out of Love.mp3: Sun May 05 18:21:14 GMT+02:00 2019
/storage/02CB-10E4/Music/Analog Sol/Trinidad Dreams/01 Analog Sol - Trinidad Dreams.mp3: Sun May 05 18:24:48 GMT+02:00 2019
/storage/02CB-10E4/Music/Marty Robbins/Gunfighter Ballads And Trail Songs/08 Marty Robbins - The Master's Call.mp3: Sun May 05 19:55:58 GMT+02:00 2019
/storage/02CB-10E4/Music/DYTONE/Never Enough/01 DYTONE - Never Enough_2.mp3: Sun May 05 19:12:26 GMT+02:00 2019
/storage/02CB-10E4/Music/Elderbrook/Old Friend/01 Elderbrook - Old Friend.mp3: Sun May 05 19:13:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Martin Garrix/Dreamer/01 Martin Garrix; Mike  - Dreamer.mp3: Sun May 05 19:55:37 GMT+02:00 2019
/storage/02CB-10E4/Music/Lorde/Pure Heroine/03 Lorde - Royals.mp3: Sun May 05 19:48:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Es ist soweit/11 Böhse Onkelz - Leiden.mp3: Sun May 05 18:39:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Live in Vienna/13 Böhse Onkelz - Stöckel und Strapse (live).mp3: Sun May 05 18:43:41 GMT+02:00 2019
/storage/02CB-10E4/Music/Leisure/The Hype/01 Leisure - The Hype.mp3: Sun May 05 19:45:55 GMT+02:00 2019
/storage/02CB-10E4/Music/Boot Slap/Fade Into You/01 Boot Slap - Fade Into You (Original Mix).mp3: Sun May 05 18:46:48 GMT+02:00 2019
/storage/02CB-10E4/Music/Daya/Insomnia/01 Daya - Insomnia.mp3: Sun May 05 19:06:34 GMT+02:00 2019

21:25:36: getFiles: count=1
21:25:46: syncDevice: command=ReceiveFile
21:25:46: receiveFile: Receive: Bee/Marshmello/Happier (Remixes)/1-01 - Happier (Frank Walker Remix).mp3
21:25:47: syncDevice: command=ReceiveFile
21:25:47: receiveFile: Receive: Bee/Shawn Mendes/Lost In Japan (Remix)/1-01 - Lost In Japan (Remix).mp3
21:25:48: syncDevice: command=ReceiveFile
21:25:48: receiveFile: Receive: Bee/CHVRCHES/Graffiti (M-22 Remix)/1-01 - Graffiti (M-22 Remix).mp3
21:25:53: syncDevice: command=ReceiveFile
21:25:53: receiveFile: Receive: Bee/Gilligan Moss/Want U So Bad (Myd Remix)/1-01 - Want U So Bad (Myd Remix).mp3
21:25:54: syncDevice: command=ReceiveFile
21:25:54: receiveFile: Receive: Bee/Playlists/test.m3u
21:25:54: syncDevice: command=Exit
21:25:54: exitSync: fails=0
21:25:55: syncDevice: exit
Title: Re: Wifi android device synching
Post by: Steven on May 06, 2019, 08:34:10 PM
rather than synching to Bee/, could you try Music/Bee/

also could you enable debug logging in the settings panel before starting the sync
Title: Re: Wifi android device synching
Post by: Babydoll32 on May 06, 2019, 08:43:57 PM
rather than synching to Bee/, could you try Music/Bee/

also could you enable debug logging in the settings panel before starting the sync

Code
2019-05-06: TA-1012;  9;  0.7.6.4
21:42:45: startSync: preview=false,iteration=0
21:42:45: command: action=SYNC_START
21:42:45: tryStart: connecting /192.168.178.47, attempt=0
21:42:45: tryStart: connected
21:42:45: tryStart: hello=true,fromMB=true,custfiles=false,preview=false,dev=Nokia 8,2
21:42:45: storage: path=/storage/02CB-10E4,root=02CB-10E4:,uri=content://com.android.externalstorage.documents/tree/02CB-10E4%3A
21:42:45: syncDevice: root=/storage/02CB-10E4,ignoreErrors=false,playlists=false,ratings=false,playcount=true
21:42:45: syncDevice: command=SendStats
21:42:46: syncDevice: command=ShowResults
21:42:46: syncDevice: command=GetFiles
21:42:46: getFiles: Get: Music/Bee/,url=/storage/02CB-10E4/Music/Bee/, inc=true
21:42:46: getFiles: /storage/02CB-10E4/Music/Feenixpawl/Blaze/01 Feenixpawl; Arensky - Blaze.mp3: Sun May 05 19:16:40 GMT+02:00 2019
/storage/02CB-10E4/Music/Little Mix/Woman Like Me/01 Little Mix; Nicki Mi - Woman Like Me.mp3: Sun May 05 19:48:07 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Nichts ist für die Ewigkeit (Live am Hockenheimring 2014)/10 Böhse Onkelz - Immer auf der Suche (Live).mp3: Sun May 05 18:44:30 GMT+02:00 2019
/storage/02CB-10E4/Music/HRVY/I Wish You Were Here (Acoustic)/01 HRVY - I Wish You Were Here (Acoustic).mp3: Sun May 05 19:29:08 GMT+02:00 2019
/storage/02CB-10E4/Music/Alan Walker/On My Way/01 Alan Walker; Sabrina - On My Way.mp3: Sun May 05 18:21:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Carlos/The Silmarillia 2019/01 Carlos - The Silmarillia 2019.mp3: Sun May 05 18:56:34 GMT+02:00 2019
/storage/02CB-10E4/Music/Aloe Blacc/I Need A Dollar/01 Aloe Blacc - I Need A Dollar.mp3: Sun May 05 18:23:52 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Memento/12 Böhse Onkelz - 52 Wochen.mp3: Sun May 05 18:44:02 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Live in Dortmund/06 Böhse Onkelz - Danket dem Herrn (Live).mp3: Sun May 05 18:42:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Alexander Alar/Bangkok/01 Alexander Alar; Marc - Bangkok.mp3: Sun May 05 18:22:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Brother Beyond/The Very Best Of Brother Beyond/01 Brother Beyond - The Harder I Try.mp3: Sun May 05 18:53:24 GMT+02:00 2019
/storage/02CB-10E4/Music/Hailee Steinfeld/Love Myself/01 Hailee Steinfeld - Love Myself.mp3: Sun May 05 19:26:56 GMT+02:00 2019
/storage/02CB-10E4/Music/Gil Sanders/Party Through The Pain/01 Gil Sanders - Party Through The Pain.mp3: Sun May 05 19:23:26 GMT+02:00 2019
/storage/02CB-10E4/Music/Don Henley/Actual Miles- Henley's Greatest Hits/06 Don Henley - The End Of The Innocence.mp3: Sun May 05 19:10:46 GMT+02:00 2019
/storage/02CB-10E4/Music/Calmani & Grey/Time of Our Lives/02 Calmani; Grey - Time of Our Lives (Club Edit).mp3: Sun May 05 18:55:12 GMT+02:00 2019
/storage/02CB-10E4/Music/Mamer/Eagle/05 Mamer - Man.mp3: Sun May 05 19:53:15 GMT+02:00 2019
/storage/02CB-10E4/Music/Hozier/Wasteland, Baby!/06 Hozier - To Noise Making (Sing).mp3: Sun May 05 19:29:12 GMT+02:00 2019
/storage/02CB-10E4/Music/Joel Corry/Fallen (feat. Hayley May)/01 Joel Corry; Hayley M - Fallen (feat. Hayley May).mp3: Sun May 05 19:35:56 GMT+02:00 2019
/storage/02CB-10E4/Music/Kris Kristofferson/The Essential Kris Kristofferson/06 Kris Kristofferson - Casey's Last Ride (Album Version).mp3: Sun May 05 19:43:00 GMT+02:00 2019
/storage/02CB-10E4/Music/Interpol/The Weekend/01 Interpol - The Weekend.mp3: Sun May 05 19:30:34 GMT+02:00 2019
/storage/02CB-10E4/Music/Billy Idol/Greatest Hits (The One & Only)/05 Billy Idol - Rebel Yell.mp3: Sun May 05 18:34:32 GMT+02:00 2019
/storage/02CB-10E4/Music/Air Supply/Collections/01 Air Supply - All Out of Love.mp3: Sun May 05 18:21:14 GMT+02:00 2019
/storage/02CB-10E4/Music/Analog Sol/Trinidad Dreams/01 Analog Sol - Trinidad Dreams.mp3: Sun May 05 18:24:48 GMT+02:00 2019
/storage/02CB-10E4/Music/Marty Robbins/Gunfighter Ballads And Trail Songs/08 Marty Robbins - The Master's Call.mp3: Sun May 05 19:55:58 GMT+02:00 2019
/storage/02CB-10E4/Music/DYTONE/Never Enough/01 DYTONE - Never Enough_2.mp3: Sun May 05 19:12:26 GMT+02:00 2019
/storage/02CB-10E4/Music/Elderbrook/Old Friend/01 Elderbrook - Old Friend.mp3: Sun May 05 19:13:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Martin Garrix/Dreamer/01 Martin Garrix; Mike  - Dreamer.mp3: Sun May 05 19:55:37 GMT+02:00 2019
/storage/02CB-10E4/Music/Lorde/Pure Heroine/03 Lorde - Royals.mp3: Sun May 05 19:48:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Es ist soweit/11 Böhse Onkelz - Leiden.mp3: Sun May 05 18:39:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Live in Vienna/13 Böhse Onkelz - Stöckel und Strapse (live).mp3: Sun May 05 18:43:41 GMT+02:00 2019
/storage/02CB-10E4/Music/Leisure/The Hype/01 Leisure - The Hype.mp3: Sun May 05 19:45:55 GMT+02:00 2019
/storage/02CB-10E4/Music/Boot Slap/Fade Into You/01 Boot Slap - Fade Into You (Original Mix).mp3: Sun May 05 18:46:48 GMT+02:00 2019
/storage/02CB-10E4/Music/Daya/Insomnia/01 Daya - Insomnia.mp3: Sun May 05 19:06:34 GMT+02:00 2019

21:42:46: getFiles: count=1
21:42:46: syncDevice: command=GetFiles
21:42:46: getFiles: Get: Podcasts/,url=/storage/02CB-10E4/Podcasts/, inc=true
21:42:46: getFiles: /storage/02CB-10E4/Music/Feenixpawl/Blaze/01 Feenixpawl; Arensky - Blaze.mp3: Sun May 05 19:16:40 GMT+02:00 2019
/storage/02CB-10E4/Music/Little Mix/Woman Like Me/01 Little Mix; Nicki Mi - Woman Like Me.mp3: Sun May 05 19:48:07 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Nichts ist für die Ewigkeit (Live am Hockenheimring 2014)/10 Böhse Onkelz - Immer auf der Suche (Live).mp3: Sun May 05 18:44:30 GMT+02:00 2019
/storage/02CB-10E4/Music/HRVY/I Wish You Were Here (Acoustic)/01 HRVY - I Wish You Were Here (Acoustic).mp3: Sun May 05 19:29:08 GMT+02:00 2019
/storage/02CB-10E4/Music/Alan Walker/On My Way/01 Alan Walker; Sabrina - On My Way.mp3: Sun May 05 18:21:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Carlos/The Silmarillia 2019/01 Carlos - The Silmarillia 2019.mp3: Sun May 05 18:56:34 GMT+02:00 2019
/storage/02CB-10E4/Music/Aloe Blacc/I Need A Dollar/01 Aloe Blacc - I Need A Dollar.mp3: Sun May 05 18:23:52 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Memento/12 Böhse Onkelz - 52 Wochen.mp3: Sun May 05 18:44:02 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Live in Dortmund/06 Böhse Onkelz - Danket dem Herrn (Live).mp3: Sun May 05 18:42:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Alexander Alar/Bangkok/01 Alexander Alar; Marc - Bangkok.mp3: Sun May 05 18:22:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Brother Beyond/The Very Best Of Brother Beyond/01 Brother Beyond - The Harder I Try.mp3: Sun May 05 18:53:24 GMT+02:00 2019
/storage/02CB-10E4/Music/Hailee Steinfeld/Love Myself/01 Hailee Steinfeld - Love Myself.mp3: Sun May 05 19:26:56 GMT+02:00 2019
/storage/02CB-10E4/Music/Gil Sanders/Party Through The Pain/01 Gil Sanders - Party Through The Pain.mp3: Sun May 05 19:23:26 GMT+02:00 2019
/storage/02CB-10E4/Music/Don Henley/Actual Miles- Henley's Greatest Hits/06 Don Henley - The End Of The Innocence.mp3: Sun May 05 19:10:46 GMT+02:00 2019
/storage/02CB-10E4/Music/Calmani & Grey/Time of Our Lives/02 Calmani; Grey - Time of Our Lives (Club Edit).mp3: Sun May 05 18:55:12 GMT+02:00 2019
/storage/02CB-10E4/Music/Mamer/Eagle/05 Mamer - Man.mp3: Sun May 05 19:53:15 GMT+02:00 2019
/storage/02CB-10E4/Music/Hozier/Wasteland, Baby!/06 Hozier - To Noise Making (Sing).mp3: Sun May 05 19:29:12 GMT+02:00 2019
/storage/02CB-10E4/Music/Joel Corry/Fallen (feat. Hayley May)/01 Joel Corry; Hayley M - Fallen (feat. Hayley May).mp3: Sun May 05 19:35:56 GMT+02:00 2019
/storage/02CB-10E4/Music/Kris Kristofferson/The Essential Kris Kristofferson/06 Kris Kristofferson - Casey's Last Ride (Album Version).mp3: Sun May 05 19:43:00 GMT+02:00 2019
/storage/02CB-10E4/Music/Interpol/The Weekend/01 Interpol - The Weekend.mp3: Sun May 05 19:30:34 GMT+02:00 2019
/storage/02CB-10E4/Music/Billy Idol/Greatest Hits (The One & Only)/05 Billy Idol - Rebel Yell.mp3: Sun May 05 18:34:32 GMT+02:00 2019
/storage/02CB-10E4/Music/Air Supply/Collections/01 Air Supply - All Out of Love.mp3: Sun May 05 18:21:14 GMT+02:00 2019
/storage/02CB-10E4/Music/Analog Sol/Trinidad Dreams/01 Analog Sol - Trinidad Dreams.mp3: Sun May 05 18:24:48 GMT+02:00 2019
/storage/02CB-10E4/Music/Marty Robbins/Gunfighter Ballads And Trail Songs/08 Marty Robbins - The Master's Call.mp3: Sun May 05 19:55:58 GMT+02:00 2019
/storage/02CB-10E4/Music/DYTONE/Never Enough/01 DYTONE - Never Enough_2.mp3: Sun May 05 19:12:26 GMT+02:00 2019
/storage/02CB-10E4/Music/Elderbrook/Old Friend/01 Elderbrook - Old Friend.mp3: Sun May 05 19:13:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Martin Garrix/Dreamer/01 Martin Garrix; Mike  - Dreamer.mp3: Sun May 05 19:55:37 GMT+02:00 2019
/storage/02CB-10E4/Music/Lorde/Pure Heroine/03 Lorde - Royals.mp3: Sun May 05 19:48:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Es ist soweit/11 Böhse Onkelz - Leiden.mp3: Sun May 05 18:39:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Live in Vienna/13 Böhse Onkelz - Stöckel und Strapse (live).mp3: Sun May 05 18:43:41 GMT+02:00 2019
/storage/02CB-10E4/Music/Leisure/The Hype/01 Leisure - The Hype.mp3: Sun May 05 19:45:55 GMT+02:00 2019
/storage/02CB-10E4/Music/Boot Slap/Fade Into You/01 Boot Slap - Fade Into You (Original Mix).mp3: Sun May 05 18:46:48 GMT+02:00 2019
/storage/02CB-10E4/Music/Daya/Insomnia/01 Daya - Insomnia.mp3: Sun May 05 19:06:34 GMT+02:00 2019

21:42:46: getFiles: count=0
21:42:46: syncDevice: command=GetFiles
21:42:46: getFiles: Get: Music/Bee/Playlists/,url=/storage/02CB-10E4/Music/Bee/Playlists/, inc=false
21:42:46: getFiles: /storage/02CB-10E4/Music/Feenixpawl/Blaze/01 Feenixpawl; Arensky - Blaze.mp3: Sun May 05 19:16:40 GMT+02:00 2019
/storage/02CB-10E4/Music/Little Mix/Woman Like Me/01 Little Mix; Nicki Mi - Woman Like Me.mp3: Sun May 05 19:48:07 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Nichts ist für die Ewigkeit (Live am Hockenheimring 2014)/10 Böhse Onkelz - Immer auf der Suche (Live).mp3: Sun May 05 18:44:30 GMT+02:00 2019
/storage/02CB-10E4/Music/HRVY/I Wish You Were Here (Acoustic)/01 HRVY - I Wish You Were Here (Acoustic).mp3: Sun May 05 19:29:08 GMT+02:00 2019
/storage/02CB-10E4/Music/Alan Walker/On My Way/01 Alan Walker; Sabrina - On My Way.mp3: Sun May 05 18:21:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Carlos/The Silmarillia 2019/01 Carlos - The Silmarillia 2019.mp3: Sun May 05 18:56:34 GMT+02:00 2019
/storage/02CB-10E4/Music/Aloe Blacc/I Need A Dollar/01 Aloe Blacc - I Need A Dollar.mp3: Sun May 05 18:23:52 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Memento/12 Böhse Onkelz - 52 Wochen.mp3: Sun May 05 18:44:02 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Live in Dortmund/06 Böhse Onkelz - Danket dem Herrn (Live).mp3: Sun May 05 18:42:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Alexander Alar/Bangkok/01 Alexander Alar; Marc - Bangkok.mp3: Sun May 05 18:22:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Brother Beyond/The Very Best Of Brother Beyond/01 Brother Beyond - The Harder I Try.mp3: Sun May 05 18:53:24 GMT+02:00 2019
/storage/02CB-10E4/Music/Hailee Steinfeld/Love Myself/01 Hailee Steinfeld - Love Myself.mp3: Sun May 05 19:26:56 GMT+02:00 2019
/storage/02CB-10E4/Music/Gil Sanders/Party Through The Pain/01 Gil Sanders - Party Through The Pain.mp3: Sun May 05 19:23:26 GMT+02:00 2019
/storage/02CB-10E4/Music/Don Henley/Actual Miles- Henley's Greatest Hits/06 Don Henley - The End Of The Innocence.mp3: Sun May 05 19:10:46 GMT+02:00 2019
/storage/02CB-10E4/Music/Calmani & Grey/Time of Our Lives/02 Calmani; Grey - Time of Our Lives (Club Edit).mp3: Sun May 05 18:55:12 GMT+02:00 2019
/storage/02CB-10E4/Music/Mamer/Eagle/05 Mamer - Man.mp3: Sun May 05 19:53:15 GMT+02:00 2019
/storage/02CB-10E4/Music/Hozier/Wasteland, Baby!/06 Hozier - To Noise Making (Sing).mp3: Sun May 05 19:29:12 GMT+02:00 2019
/storage/02CB-10E4/Music/Joel Corry/Fallen (feat. Hayley May)/01 Joel Corry; Hayley M - Fallen (feat. Hayley May).mp3: Sun May 05 19:35:56 GMT+02:00 2019
/storage/02CB-10E4/Music/Kris Kristofferson/The Essential Kris Kristofferson/06 Kris Kristofferson - Casey's Last Ride (Album Version).mp3: Sun May 05 19:43:00 GMT+02:00 2019
/storage/02CB-10E4/Music/Interpol/The Weekend/01 Interpol - The Weekend.mp3: Sun May 05 19:30:34 GMT+02:00 2019
/storage/02CB-10E4/Music/Billy Idol/Greatest Hits (The One & Only)/05 Billy Idol - Rebel Yell.mp3: Sun May 05 18:34:32 GMT+02:00 2019
/storage/02CB-10E4/Music/Air Supply/Collections/01 Air Supply - All Out of Love.mp3: Sun May 05 18:21:14 GMT+02:00 2019
/storage/02CB-10E4/Music/Analog Sol/Trinidad Dreams/01 Analog Sol - Trinidad Dreams.mp3: Sun May 05 18:24:48 GMT+02:00 2019
/storage/02CB-10E4/Music/Marty Robbins/Gunfighter Ballads And Trail Songs/08 Marty Robbins - The Master's Call.mp3: Sun May 05 19:55:58 GMT+02:00 2019
/storage/02CB-10E4/Music/DYTONE/Never Enough/01 DYTONE - Never Enough_2.mp3: Sun May 05 19:12:26 GMT+02:00 2019
/storage/02CB-10E4/Music/Elderbrook/Old Friend/01 Elderbrook - Old Friend.mp3: Sun May 05 19:13:36 GMT+02:00 2019
/storage/02CB-10E4/Music/Martin Garrix/Dreamer/01 Martin Garrix; Mike  - Dreamer.mp3: Sun May 05 19:55:37 GMT+02:00 2019
/storage/02CB-10E4/Music/Lorde/Pure Heroine/03 Lorde - Royals.mp3: Sun May 05 19:48:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Es ist soweit/11 Böhse Onkelz - Leiden.mp3: Sun May 05 18:39:50 GMT+02:00 2019
/storage/02CB-10E4/Music/Böhse Onkelz/Live in Vienna/13 Böhse Onkelz - Stöckel und Strapse (live).mp3: Sun May 05 18:43:41 GMT+02:00 2019
/storage/02CB-10E4/Music/Leisure/The Hype/01 Leisure - The Hype.mp3: Sun May 05 19:45:55 GMT+02:00 2019
/storage/02CB-10E4/Music/Boot Slap/Fade Into You/01 Boot Slap - Fade Into You (Original Mix).mp3: Sun May 05 18:46:48 GMT+02:00 2019
/storage/02CB-10E4/Music/Daya/Insomnia/01 Daya - Insomnia.mp3: Sun May 05 19:06:34 GMT+02:00 2019

21:42:46: getFiles: count=1
21:42:56: syncDevice: command=ReceiveFile
21:42:56: receiveFile: Receive: Music/Bee/Marshmello/Happier (Remixes)/1-01 - Happier (Frank Walker Remix).mp3
21:42:57: syncDevice: command=ReceiveFile
21:42:57: receiveFile: Receive: Music/Bee/Shawn Mendes/Lost In Japan (Remix)/1-01 - Lost In Japan (Remix).mp3
21:42:58: syncDevice: command=ReceiveFile
21:42:58: receiveFile: Receive: Music/Bee/CHVRCHES/Graffiti (M-22 Remix)/1-01 - Graffiti (M-22 Remix).mp3
21:43:02: syncDevice: command=ReceiveFile
21:43:02: receiveFile: Receive: Music/Bee/Gilligan Moss/Want U So Bad (Myd Remix)/1-01 - Want U So Bad (Myd Remix).mp3
21:43:03: syncDevice: command=ReceiveFile
21:43:03: receiveFile: Receive: Music/Bee/Playlists/test.m3u
21:43:03: syncDevice: command=Exit
21:43:03: exitSync: fails=0
21:43:04: syncDevice: exit
Title: Re: Wifi android device synching
Post by: Steven on May 06, 2019, 08:59:36 PM
for an unknown reason, the mediastore database is not being updated. For now you will need to stick with wired sync
Title: Re: Wifi android device synching
Post by: Babydoll32 on May 06, 2019, 09:07:34 PM
for an unknown reason, the mediastore database is not being updated. For now you will need to stick with wired sync

No good news. Will wired sync also sync playcount from GMMP?
Title: Re: Wifi android device synching
Post by: Steven on May 06, 2019, 09:19:40 PM
you should be able to do a Wired sync from MB and a Wifi reverse sync from the app - just don't tick the "sync from MusicBee" option and do the reverse sync before you do the wired sync from musicbee.

However I am going to look at whether the app could update the mediastore database itself
Title: Re: Wifi android device synching
Post by: SkyZippr on May 06, 2019, 11:43:39 PM
This should fix the unwanted folder clean up

https://getmusicbee.com/patches/MusicBee33_Patched.zip
unzip and replace the existing musicbee files
Thanks Steven, that solved my issue.
Title: Re: Wifi android device synching
Post by: EuroMIX on May 08, 2019, 05:36:03 AM
Any chance 2-way syncing could be made to work with MediaMonkey on android? It's probably the only music app I've found that actually handles delimiters for artists/genres/etc as well as MusicBee does, but I prefer to use your program on my PC.
If I understand correctly, you want the developer of MusicBee to create something that will work with MediaMonkey??? Please tell me you're not serious. If you are, you need to understand that the MB developer does this in his spare time, for no compensation other than a small pittance in donations, and has more than he can handle dealing with his own application. I suggest you talk with the paid staff at MediaMonkey.

I'm deeply confused. You understand that I meant MediaMonkey on Android, like I said in my previous post, and not the PC version of MediaMonkey? If that truly is where the confusion lies than you could have simply asked for clarification. That's why I said "MediaMonkey on Android" specifically to be clear what I meant.

I thought this was a topic made to gauge interest in, and receive feedback on, people wanting an app to sync between MusicBee and Android music players, which is why I asked if getting the 2-way sync to work with MediaMonkey on Android would be possible. If the answer is no, that's fine.

I'm also not entirely sure why you have framed my question with an uncharitably ungrateful implication as I even offered thanks twice, at the beginning and the end of my post, which you didn't include when you quoted me.

I honestly had no idea a harmless question would instigate such a negative response, and had I known, I simply wouldn't have asked. Previously my questions have been received pretty well.

Edit: Also, Steven literally asked for the exact type of feedback I gave in his original post:

I am doing some research into Wifi synching with android devices and also want to investigate the possibility of 2-way synching with some of the popular android players. Not promising anything but what I want to know is for the people interested in this, which android player do you use?
Title: Re: Wifi android device synching
Post by: Steven on May 08, 2019, 07:11:16 AM
Any chance 2-way syncing could be made to work with MediaMonkey on android?
No - MMA does not provide an API to extract the required data for play counts, rating, etc
Title: Re: Wifi android device synching
Post by: EuroMIX on May 08, 2019, 07:26:33 AM
Any chance 2-way syncing could be made to work with MediaMonkey on android?
No - MMA does not provide an API to extract the required data for play counts, rating, etc

That's disappointing, but thank you for looking into it. Hopefully a better Android player compatible with many of MusicBee's features will come along one day.
Title: Re: Wifi android device synching
Post by: klint on May 12, 2019, 06:14:29 PM
Hi Steven
Do you have any plans to support the 2way sync with Rocket Player at some point in time?
Thanks
Title: Re: Wifi android device synching
Post by: Steven on May 12, 2019, 06:21:50 PM
Do you have any plans to support the 2way sync with Rocket Player at some point in time?
No - there is no API that I can find
Title: Re: Wifi android device synching
Post by: Steven on May 18, 2019, 03:23:50 PM
I am not planning to make any further changes to the app for now. However please report any issues with the existing app to see if I can fix them

Re: Apple devices. I expect 2 way Wifi Synching could also work on iPhones, but its not something I will do. If anyone is interested to write an app, I can share the protocol MusicBee uses when wifi synching
Title: Re: Wifi android device synching
Post by: phred on May 19, 2019, 01:02:27 PM
I am not planning to make any further changes to the app for now. However please report any issues with the existing app to see if I can fix them
Not something that needs to be fixed, but a slight change to the UI.

When a sync is completed, the app shows "Sync More" at the bottom. That statement -sort of- implies that not everything has been synced. Perhaps changing "Sync More" to "Return" or "Return to Start" or something similar. I admit I'm not that happy with either of my two suggestions, but I feel it's better than what shows now.
Title: Re: Wifi android device synching
Post by: MCDoubleDefDP on May 19, 2019, 04:08:23 PM
However please report any issues with the existing app to see if I can fix them

1. I think an error message should show when trying to reverse sync using GoneMAD's trial (non-paid) version because backup isn't available in that. I switched ROMs last week and MB would attempt to sync indefinitely without showing any of pending tracks or anything. It wasn't until I disabled reverse sync that it worked, and then I noticed I didn't reinstall GoneMAD's pro key. Reverse sync worked fine after that.

2. The confirmation message that appears at the bottom of the screen when a sync finishes cuts off most of the Sync More button. I either have to wait a few seconds for it to disappear or press the very top of the button. Could you move the notification or Sync More button to a higher location so it'll be easier to press?
Title: Re: Wifi android device synching
Post by: Steven on May 19, 2019, 05:26:42 PM
1. I think an error message should show when trying to reverse sync using GoneMAD's trial (non-paid) version because backup isn't available in that. I switched ROMs last week and MB would attempt to sync indefinitely without showing any of pending tracks or anything. It wasn't until I disabled reverse sync that it worked, and then I noticed I didn't reinstall GoneMAD's pro key. Reverse sync worked fine after that.
i dont think there is a way to tell but as it stands the sync app should have timed out after 60 seconds - did you wait that long?
I think its way to high so i will reduce that
Title: Re: Wifi android device synching
Post by: MCDoubleDefDP on May 19, 2019, 05:36:58 PM
I'm not home to test, but I don't think I waited a full minute. Maybe close to it, but I stopped it once I figured something was up and never saw a message.
Title: Re: Wifi android device synching
Post by: Steven on May 19, 2019, 06:43:53 PM
the next version will detect no stats file has been generated and will alert after 15 secs with a specific message
Title: Re: Wifi android device synching
Post by: Steven on May 19, 2019, 07:04:23 PM
v0.8.2
https://play.google.com/apps/internaltest/4700978781087552506

snackbar message at completion of sync has been moved up so the button is not covered
Title: Re: Wifi android device synching
Post by: Babydoll32 on May 19, 2019, 07:46:31 PM
Hi, Steven.
Any news about the existing files, but still new copying problem?
Syncing with wire and backsync playcount didn't work.
Title: Re: Wifi android device synching
Post by: Steven on May 19, 2019, 07:52:38 PM
Any news about the existing files, but still new copying problem?
No, i wont be able to help in the current release

Syncing with wire and backsync playcount didn't work.
you need to reverse sync first and then do the wired sync. If you already did that, then you will need to be a little bit more specific than "it didnt work"

Title: Re: Wifi android device synching
Post by: Joker73R on May 21, 2019, 02:06:19 PM
I'm testing Android sync via WiFi an it works fine and fast but I'm having troubles to see the rating from a song on my PC on my Android device. I set a rating to a song on MusicBee on my PC and that rating is set on the properties of the file. But after syncing my library my phone doesn't seem to "see" the rating.
Also, could you add reverse sync from BlackPlayer app?
Title: Re: Wifi android device synching
Post by: frankz on May 21, 2019, 02:33:16 PM
Make sure Edit->Edit Preferences->Tags(1)...tag storage...'store ratings in the music file' is checked.  Otherwise the rating is only stored in the MB library database and not in the file's tags.

If the ratings are stored in your files tags already, then it's a problem with your player that it's not displaying them.  They're in the file in that case.
Title: Re: Wifi android device synching
Post by: Joker73R on May 21, 2019, 03:06:31 PM
Make sure Edit->Edit Preferences->Tags(1)...tag storage...'store ratings in the music file' is checked.  Otherwise the rating is only stored in the MB library database and not in the file's tags.

If the ratings are stored in your files tags already, then it's a problem with your player that it's not displaying them.  They're in the file in that case.

Thaks for answering so fast. The issue is that some ratings are not read by the phone even though they're embedded on the mp3 file.
Title: Re: Wifi android device synching
Post by: Joker73R on May 21, 2019, 03:08:43 PM
Also, may I suggest adding a shortcut so we can launch the sync activity by just touching a shortcut instead of entering the app?
Title: Re: Wifi android device synching
Post by: frankz on May 21, 2019, 05:00:21 PM
Make sure Edit->Edit Preferences->Tags(1)...tag storage...'store ratings in the music file' is checked.  Otherwise the rating is only stored in the MB library database and not in the file's tags.

If the ratings are stored in your files tags already, then it's a problem with your player that it's not displaying them.  They're in the file in that case.

Thaks for answering so fast. The issue is that some ratings are not read by the phone even though they're embedded on the mp3 file.
If they're embedded in the file but not showing on the phone, that's a problem with the player on the phone. MB has done its job by embedding the rating in the file.
Title: Re: Wifi android device synching
Post by: christmw2503 on May 21, 2019, 08:28:32 PM
Play count syncing from Poweramp is acting strange. It's syncing partially. Like in Poweramp, in the Most played tab, I have tracks that have been played 12, 9, etc. times. However, after syncing, Musicbee is not showing tracks with play counts greater than 5. For tracks with lower play counts, Musicbee is only showing only those I listened recently. Meaning tracks I listened to before reverse syncing was implemented, their play counts are not being synced. Also, reverse sync option is disabled for my device. I tried deleting the device and syncing again, same thing.
Do I have to send a log?
Title: Re: Wifi android device synching
Post by: Steven on May 21, 2019, 10:05:41 PM
can you do a simple test of playing a track, doing a sync preview and then checking in MB if the play count has incremented by 1
Title: Re: Wifi android device synching
Post by: chrisdivine on May 22, 2019, 09:23:34 AM
Hi! Maybe this information helps someone:
I had problems, that were caused by the different wifi bands of my router. It sends with the same ssid in the 2,4- und 5-GHz bands. If android phone and my notebook are in different bands (but the same network), I get an connection error trying to sync.
Title: Re: Wifi android device synching
Post by: Steven on May 22, 2019, 09:06:02 PM
what did you do to resolve the issue?
Title: Re: Wifi android device synching
Post by: chrisdivine on May 23, 2019, 07:42:48 AM
what did you do to resolve the issue?

I switched the 2,4 band off.  ;D
Title: Re: Wifi android device synching
Post by: christmw2503 on May 23, 2019, 09:34:15 AM
can you do a simple test of playing a track, doing a sync preview and then checking in MB if the play count has incremented by 1

All play counts are synced successfully. It's only tracks I played before that aren't synced.
Title: Re: Wifi android device synching
Post by: Steven on May 23, 2019, 10:47:22 AM
if you are referring to the tracks played on the device, the reverse sync is incremental.
So on the very first reverse sync, the full play count should have been sync'ed back to your musicbee library. And afterwards, only the change in play count.
If you want, you could delete the sync state file from the device by clearing the storage used by the app. However it would mean you also lose the settings
Title: Re: Wifi android device synching
Post by: vpsaxman on May 24, 2019, 05:07:54 AM
Hi! Maybe this information helps someone:
I had problems, that were caused by the different wifi bands of my router. It sends with the same ssid in the 2,4- und 5-GHz bands. If android phone and my notebook are in different bands (but the same network), I get an connection error trying to sync.

I'm experiencing the same issue. If my phone and PC are on different bands, the sync notification appears and hangs forever. The app's activity doesn't update and nothing gets synced.

I can also confirm that using the same band on both devices fixes the issue.

This does NOT happen for Playlist Sync by the way, just regular ("Full"?) sync.
Title: Re: Wifi android device synching
Post by: Joker73R on May 24, 2019, 07:56:17 AM
What does the MusicBee app "files as configured in MusicBee" option stand for?
Title: Re: Wifi android device synching
Post by: chrisdivine on May 24, 2019, 08:04:41 AM
I want to report an other issue. Sync with mp3-files works quite well, but not reliable, when I sync flac files converting to mp3.
I have a lot of flacs and use the option to convert it on the fly to mp3. In the playlists are 30 - 600 files. The short ones are transferred, but syncing hangs with the longer.
Title: Re: Wifi android device synching
Post by: phred on May 24, 2019, 12:30:36 PM
What does the MusicBee app "files as configured in MusicBee" option stand for?
It means that the parameters for the sync are those as specified for the device under Preferences > Devices
Title: Re: Wifi android device synching
Post by: Joker73R on May 24, 2019, 03:28:16 PM
What does the MusicBee app "files as configured in MusicBee" option stand for?
It means that the parameters for the sync are those as specified for the device under Preferences > Devices

Thanks for the clarification. One thing that I don't understand: All my mp3 files have their album covers embedded, but if I don't check to embed them during the transfer to the device the songs don't have their covers even though those covers are embedded on the file apart from MusicBee.
Title: Re: Wifi android device synching
Post by: frankz on May 24, 2019, 05:25:53 PM
Thanks for the clarification. One thing that I don't understand: All my mp3 files have their album covers embedded, but if I don't check to embed them during the transfer to the device the songs don't have their covers even though those covers are embedded on the file apart from MusicBee.
Why would you tell it not to embed them on the device if you want them embedded on the device?
Title: Re: Wifi android device synching
Post by: Joker73R on May 24, 2019, 07:02:34 PM
Thanks for the clarification. One thing that I don't understand: All my mp3 files have their album covers embedded, but if I don't check to embed them during the transfer to the device the songs don't have their covers even though those covers are embedded on the file apart from MusicBee.
Why would you tell it not to embed them on the device if you want them embedded on the device?

Because those files already have the covers embedded before being added to the MusicBee library.
Title: Re: Wifi android device synching
Post by: frankz on May 24, 2019, 10:26:43 PM
What I'm getting at is that you're telling it to erase that embedded art on transfer by doing that.
Title: Re: Wifi android device synching
Post by: Joker73R on May 25, 2019, 08:14:51 AM
What I'm getting at is that you're telling it to erase that embedded art on transfer by doing that.

Ah, understood. Thanks for the clarification. I also have lyrics embedded in the mp3 files and even though I don't select the option to embed them during the transfer to my device they still keep inside the mp3 file. I thought album covers would have the same behaviour. Apart from that misunderstanding, syncing works great. I've two suggestions:
- Add a shortcut to launch the syncing without opening the app via Tasker, for example.
- After syncing is finished, we should return to the main window by pressing "back" button on the phone instead of the "sync more" button.
- If I stop the syncing, the persistent notification gets stuck and I can only get rid of it when forcing its close.
- I love that the MusicBee computer program shows you the syncing percentage but, could you add the estimated remaining time? Or the songs that are being copied to the device.
- Touching the syncing notification should open the app.
Title: Re: Wifi android device synching
Post by: phred on May 25, 2019, 01:10:29 PM
@Steven-

Yesterday I had completed a wholesale tag change on a large percentage of my tracks. I also changed parameters on a good number of my playlists. I started a wired sync with my FiiO, which I knew would take hours. At some point during the sync I wanted to WiFi sync my phone, but thought it best to wait.

The questions is: can MB do a WiFi sync while it's doing a wired sync?

Thanks.
Title: Re: Wifi android device synching
Post by: zkhcohen on May 26, 2019, 01:39:06 PM
I just tried to sync and it's trying to connect to "10.3.15.29:27304".

Why? The network I'm on uses the 192.168.0.0/16 subnet.
Title: Re: Wifi android device synching
Post by: Steven on May 26, 2019, 02:48:27 PM
I just tried to sync and it's trying to connect to "10.3.15.29:27304".
Why? The network I'm on uses the 192.168.0.0/16 subnet.
MB will try using the last sucessfull connection and only if it fails will it retry scanning using the subnet that the phone is on at the time.
Title: Re: Wifi android device synching
Post by: Steven on May 26, 2019, 02:49:55 PM
The questions is: can MB do a WiFi sync while it's doing a wired sync?
I wouldnt advise it unless you restrict the wifi sync to a reverse sync only. Otherwise its likely to try and sync the same files with inveitable conflict. Even if you restrict it to reverse sync only, I cant be sure there wouldnt be some unexpected behaviour but that statement is not based on any thing I can definitively think of.
Title: Re: Wifi android device synching
Post by: phred on May 26, 2019, 05:26:05 PM
I wouldnt advise it unless you restrict the wifi sync to a reverse sync only. Otherwise its likely to try and sync the same files with inveitable conflict. Even if you restrict it to reverse sync only, I cant be sure there wouldnt be some unexpected behaviour but that statement is not based on any thing I can definitively think of.
That's pretty much what I was thinking. Which is why I didn't do it until I heard back from you. Thanks.
Title: Re: Wifi android device synching
Post by: zkhcohen on May 27, 2019, 11:36:22 PM
I just tried to sync and it's trying to connect to "10.3.15.29:27304".
Why? The network I'm on uses the 192.168.0.0/16 subnet.
MB will try using the last sucessfull connection and only if it fails will it retry scanning using the subnet that the phone is on at the time.

Deja Vu.

I've asked and you've answered this question before....

Thanks.
Title: Re: Wifi android device synching
Post by: Joker73R on May 31, 2019, 07:31:28 AM
I deleted some songs from both my Musicbee library and my computer storage but they are not deleted on my phone when syncing. What I'm doing wrong?
Title: Re: Wifi android device synching
Post by: Steven on May 31, 2019, 06:03:00 PM
are the songs still referenced (as dead links) on one or more of the playlists you are synching
Title: Re: Wifi android device synching
Post by: zkhcohen on May 31, 2019, 07:21:26 PM
What are the potential causes of duplicate synching? I have about 700 files which were synched two days ago, and are trying to be synched again.

What changes made to a file would cause it to be re-synched? Any changes at all?
Title: Re: Wifi android device synching
Post by: christmw2503 on May 31, 2019, 08:22:48 PM
Need help. So Poweramp was behaving and I had to reset it. I restored from a recent backup I made and everything was restored except the ratings. Is there a way Poweramp can read again those ratings when syncing from Musicbee?
Title: Re: Wifi android device synching
Post by: Steven on June 02, 2019, 02:35:49 PM
i will look into these issues but for now the priority is the MusicBee release itself
Title: Re: Wifi android device synching
Post by: Babydoll32 on June 02, 2019, 04:37:28 PM
Any news about the existing files, but still new copying problem?
No, i wont be able to help in the current release

Syncing with wire and backsync playcount didn't work.
you need to reverse sync first and then do the wired sync. If you already did that, then you will need to be a little bit more specific than "it didnt work"



Hi, Steven.
Sorry for late answer, but my 13mo. old son is involving me most time. I had the problem, when syncing back playcount, app showed me, that it couldn't match the songs with MB database or something. Today I had a little time, and wanted to explain this issue with screenshots etc. I made a new MB database, with a few songs, synced them wireless to my phone. Synced playcount back to MB worked fine. Added a few songs more to MB database, synced them with wire. Played some with GMP. Synced back playcount once again wireless and it worked now (no unmatching message). And now it's getting chrious. I turned on syncing MB->Phone, started a wireless sync and now the app detects the existing files and copies only the newer ones. So, skip existing files worked now for me.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on June 03, 2019, 05:38:01 AM
I hadn't synced my phone in a few weeks and now I want do but keep getting the message that it can't connect to MB .   It says "server not found.  Ensure MusicBee is running..... etc etc"  I updated my MB on my computer thinking I need the newest version but that didn't help.   I have newest as found on the Newest Version thread in the forum.    I closed out and re-opened the app and the program several times.    Even double checked my port settings on the router.   
Title: Re: Wifi android device synching
Post by: psychoadept on June 03, 2019, 06:24:03 AM
I hadn't synced my phone in a few weeks and now I want do but keep getting the message that it can't connect to MB .   It says "server not found.  Ensure MusicBee is running..... etc etc"  I updated my MB on my computer thinking I need the newest version but that didn't help.   I have newest as found on the Newest Version thread in the forum.    I closed out and re-opened the app and the program several times.    Even double checked my port settings on the router.

Have you actually gone in through Apps and force stopped it? I've found that sometimes after I do that it picks up again.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on June 03, 2019, 06:41:52 AM
I hadn't synced my phone in a few weeks and now I want do but keep getting the message that it can't connect to MB .   It says "server not found.  Ensure MusicBee is running..... etc etc"  I updated my MB on my computer thinking I need the newest version but that didn't help.   I have newest as found on the Newest Version thread in the forum.    I closed out and re-opened the app and the program several times.    Even double checked my port settings on the router.

Have you actually gone in through Apps and force stopped it? I've found that sometimes after I do that it picks up again.
I went in task switcher and closed it out several times.   No good.   I ran out of ideas and options.
Update:  I tried syncing but just realized that it's syncing as seen in the notification bar and drop down list.   And MB program shows it's syncing at the bottom of the window.   But I have no way of seeing what it's syncing.   It's weird.   The app itself doesn't even show it syncing.  Still has the message saying it can't find the server.
Title: Re: Wifi android device synching
Post by: psychoadept on June 03, 2019, 06:47:55 AM
Have you actually gone in through Apps and force stopped it? I've found that sometimes after I do that it picks up again.
I went in task switcher and closed it out several times.   No good.   I ran out of ideas and options.

Yeah, it doesn't work for me if I just do task switcher.  You have to actually go into Apps the long way and use the Force Stop button.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on June 03, 2019, 07:25:38 AM
Have you actually gone in through Apps and force stopped it? I've found that sometimes after I do that it picks up again.
I went in task switcher and closed it out several times.   No good.   I ran out of ideas and options.

Yeah, it doesn't work for me if I just do task switcher.  You have to actually go into Apps the long way and use the Force Stop button.
I just tried it.   Still the same.   "server not found" yada yada yada.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on June 03, 2019, 09:38:40 PM
Have you actually gone in through Apps and force stopped it? I've found that sometimes after I do that it picks up again.
I went in task switcher and closed it out several times.   No good.   I ran out of ideas and options.

Yeah, it doesn't work for me if I just do task switcher.  You have to actually go into Apps the long way and use the Force Stop button.
I just tried it.   Still the same.   "server not found" yada yada yada.

Anyone?  I'm getting anxious to get more music on my devices.  thanks.
Title: Re: Wifi android device synching
Post by: Haljeff on June 03, 2019, 10:37:48 PM
You need to go through apps select storage and clear data and cache
Title: Re: Wifi android device synching
Post by: SkyZippr on June 03, 2019, 10:40:21 PM
Does error log indicate anything?
In my case, it was dynamic IP that messed it up. Wifi app was keep looking for an IP that was no longer that of the PC. I manually set the PC to the specific static IP that Wifi app was looking for, and the problem was solved.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on June 03, 2019, 11:57:50 PM
You need to go through apps select storage and clear data and cache
Thanks.   That did the trick.   Now I'm am trying to see what it's syncing from as i used the settings on the main window.   In the program settings it has two entries for my phone.   Is one from a wired connection and one from the wifi sync?   But I'm not sure if it's using the first one or the second one.   Thanks. 
Title: Re: Wifi android device synching
Post by: Haljeff on June 04, 2019, 01:27:45 AM
One is probably internal storage and the other SD storage
Title: Re: Wifi android device synching
Post by: railfan-eric28 on June 04, 2019, 04:00:18 AM
One is probably internal storage and the other SD storage
I looked and they're both for the SD card.   Usually one is for the internal storage like you say.
Title: Re: Wifi android device synching
Post by: amrhachicho on June 05, 2019, 07:35:36 AM
Been using the Android wifi sync, and it's been working great here. My only issue is that each track's artwork is being placed in a separate album on my Samsung's image gallery. I am able to go to my gallery and choose to hide the albums, but that would mean having to go through hundreds of files and check them off one by one.

Has anyone else faced this issue? and are there any methods to resolve it?
Title: Re: Wifi android device synching
Post by: Freddy Barker on June 05, 2019, 09:47:12 AM
Been using the Android wifi sync, and it's been working great here. My only issue is that each track's artwork is being placed in a separate album on my Samsung's image gallery. I am able to go to my gallery and choose to hide the albums, but that would mean having to go through hundreds of files and check them off one by one.

Has anyone else faced this issue? and are there any methods to resolve it?


Not actually used this method myself but am assured it works..
By simply placing a file;  ".nomedia" (without the quotes), in the folder you wish to be ignored by Andriod gallery...see here..

https://fileinfo.com/extension/nomedia
Title: Re: Wifi android device synching
Post by: frankz on June 05, 2019, 12:19:00 PM
Yes, if you put the .nomedia file in the top-level folder in your music organization structure (for example "Music"  if you're syncing to "Music\<Album Artist>\<Album>\...etc") it will ignore images in ever folder under that.
Title: Re: Wifi android device synching
Post by: amrhachicho on June 05, 2019, 04:09:37 PM

Not actually used this method myself but am assured it works..
By simply placing a file;  ".nomedia" (without the quotes), in the folder you wish to be ignored by Andriod gallery...see here..

https://fileinfo.com/extension/nomedia

Thanks freddy & frankz, it worked.

Would be nice for musicbee to generate the .nomedia file when first installing the app. Unless users want to have all their album covers accessible...

In any case, this was a simple and quick workaround. Thanks again :)
Title: Re: Wifi android device synching
Post by: StormofThunder on June 06, 2019, 01:03:13 AM
I got one question. Does MB check for existing files on Android or will it copy everything again with a new sync? The reason why I ask is, that it seems to me, that it copy files again, with every new sync, insteed skipping already existing files. And that waste a lot of time, with a lot of songs. Maybe my settings are wrong?!

This is also happening to me. After just having synced on wired, Wifi Sync tries to sync a ton of already existing tracks (9.4k when I have 17k tracks synced). I followed the situation and how the mediastore wasn't updating, and I reset mine as well and it still happens. This basically makes wifi sync useless unfortunately with the exception of reverse sync.

Any word on the likelyhood of trying to fix this next?
Title: Re: Wifi android device synching
Post by: railfan-eric28 on June 06, 2019, 03:56:58 PM
Been using the Android wifi sync, and it's been working great here. My only issue is that each track's artwork is being placed in a separate album on my Samsung's image gallery. I am able to go to my gallery and choose to hide the albums, but that would mean having to go through hundreds of files and check them off one by one.

Has anyone else faced this issue? and are there any methods to resolve it?

I've been having this problem for awhile.   I think it started when using the Musicbee to sync.   But I'm not sure how musicbee is any different then isyncr in that respect.   Unless it's because MB uses the Music folder instead of it's own folder.   
Title: Re: Wifi android device synching
Post by: railfan-eric28 on June 06, 2019, 03:58:17 PM
Been using the Android wifi sync, and it's been working great here. My only issue is that each track's artwork is being placed in a separate album on my Samsung's image gallery. I am able to go to my gallery and choose to hide the albums, but that would mean having to go through hundreds of files and check them off one by one.

Has anyone else faced this issue? and are there any methods to resolve it?


Not actually used this method myself but am assured it works..
By simply placing a file;  ".nomedia" (without the quotes), in the folder you wish to be ignored by Andriod gallery...see here..

https://fileinfo.com/extension/nomedia

I've been having this problem and read up on it a few weeks ago.   If you use the nomedia file then most players will not read the music because mediastore will ignore the music in the same folder as well. 
Title: Re: Wifi android device synching
Post by: Steven on June 06, 2019, 04:38:47 PM
To the people reporting sync issues (same files synch'ed multiple times or not deleting), can you PM me your google play store login email if you have not done so already so I can add you to the alpha release channel.
I will spend time on the issues from this weekend
Title: Re: Wifi android device synching
Post by: SkyZippr on June 07, 2019, 01:39:58 AM
Been using the Android wifi sync, and it's been working great here. My only issue is that each track's artwork is being placed in a separate album on my Samsung's image gallery. I am able to go to my gallery and choose to hide the albums, but that would mean having to go through hundreds of files and check them off one by one.

Has anyone else faced this issue? and are there any methods to resolve it?

Another likely workaround would be embedding the artwork into the music file.
Title: Re: Wifi android device synching
Post by: Babydoll32 on June 07, 2019, 05:50:24 AM
To the people reporting sync issues (same files synch'ed multiple times or not deleting), can you PM me your google play store login email if you have not done so already so I can add you to the alpha release channel.
I will spend time on the issues from this weekend

Hi, Steven.
My post a few days ago was a fail alert. The next syncs got still same problem. But I think it's a handling problem of SD card by the Nokia phone. Cause GMMP had also problems with scanning medias on my SD, whatever I done. However I buyed a Motorola One Vision now and till yet it works fine. It only want's to sync one song again and again. Maybe because I convert all my FLACs to OGG while syncing and this is a MP3, which I leave as MP3?!
Title: Re: Wifi android device synching
Post by: Steven on June 08, 2019, 11:01:56 AM
To the people reporting sync issues (same files synch'ed multiple times or not deleting), can you PM me your google play store login email if you have not done so already so I can add you to the alpha release channel.
I will spend time on the issues from this weekend
to start with could anyone participating run this debug version which will give me some more info
https://www.mediafire.com/file/dd95fba3vgn8q8u/MusicBeeDebugSync.zip/file
unzip and replace musicbee.exe

It will potentially log a lot of info to the error log - could you send me a zip of the error log after running the sync (help/ support/ view error log)
Also let me know the filename for a couple of the files that should not have beeen re-copied
Title: Re: Wifi android device synching
Post by: christmw2503 on June 08, 2019, 01:08:45 PM
I'm a bit confused. Does what I earlier reported fall under bug or feature not yet implemented category? Basically, if I uninstall/reinstall Poweramp, and sync, all my Musicbee ratings won't be recognized in Poweramp. I ask this so that I can know if I too have to install the debug version and send logs.
Title: Re: Wifi android device synching
Post by: fabiorfreitas on June 10, 2019, 04:01:28 AM
Hi, Steven, thanks for working on this as well!

I'm joining now in this feature, so I'll be PMing you my google email to be added to the alpha channel as well as my ErrorLog.dat.
I'm using the latest app I could get from the Play Store, as well as MB 3.3.7098 with this debug .exe you provided.

BTW, the issues I'm facing is that my GMMP library indicates that it has 30 tracks less than my MB library. Also, MB doesn't seem to be exporting the playcounts, every file has a playcount of 0 on GMMP

Also, here is the debug log from within the app:

https://pastebin.com/ZuUpRCvg (Its on pastebin because my post seemed to exceed 20000 characters)

(https://i.imgur.com/uZwlMMK.png)
Title: Re: Wifi android device synching
Post by: Babydoll32 on June 10, 2019, 08:00:52 AM
Also, MB doesn't seem to be exporting the playcounts, every file has a playcount of 0 on GMMP

MB won't sync playcount to GMMP. Only from GMMP to MB. Steven answered a similar question of me before.
Title: Re: Wifi android device synching
Post by: SkyZippr on June 10, 2019, 12:33:04 PM
BTW, the issues I'm facing is that my GMMP library indicates that it has 30 tracks less than my MB library.

Does it happen only with Wifi sync, or does it happen with wired sync as well? Are you missing, like, a whole album or are they totally random?
One thing you may want to check is if you've accidentally 'unticked' some of the tracks.
Title: Re: Wifi android device synching
Post by: Steven on June 11, 2019, 06:15:32 PM
to start with could anyone participating run this debug version which will give me some more info
https://www.mediafire.com/file/dd95fba3vgn8q8u/MusicBeeDebugSync.zip/file
unzip and replace musicbee.exe

It will potentially log a lot of info to the error log - could you send me a zip of the error log after running the sync (help/ support/ view error log)
Also let me know the filename for a couple of the files that should not have beeen re-copied
I havent had any feedback on this - I am getting close to the final release for v3.3, and it would be good to close out this issue
Title: Re: Wifi android device synching
Post by: psychoadept on June 11, 2019, 06:21:12 PM
I don't think that was a problem I ran into.
Title: Re: Wifi android device synching
Post by: Freddy Barker on June 11, 2019, 06:34:13 PM
I havent had any feedback on this - I am getting close to the final release for v3.3, and it would be good to close out this issue

Do I have to be using the GMMP Android player to test??
Freddy
Title: Re: Wifi android device synching
Post by: Steven on June 11, 2019, 06:47:42 PM
I havent had any feedback on this - I am getting close to the final release for v3.3, and it would be good to close out this issue
Do I have to be using the GMMP Android player to test??
Freddy
I very much doubt it has anything to do with the android player you use, and you would know if you had the issue so no need to test for something that is not affecting you
Title: Re: Wifi android device synching
Post by: fabiorfreitas on June 12, 2019, 02:23:09 AM
Also, MB doesn't seem to be exporting the playcounts, every file has a playcount of 0 on GMMP

MB won't sync playcount to GMMP. Only from GMMP to MB. Steven answered a similar question of me before.

Oh, I see. I've tryed to read some of the previous discussion, but 550 post was just too much! Anyway, does it work with PowerAmp? If not, did you find a way around to export playcounts? Perhaps something via iTunes and then another syncer...


BTW, the issues I'm facing is that my GMMP library indicates that it has 30 tracks less than my MB library.

Does it happen only with Wifi sync, or does it happen with wired sync as well? Are you missing, like, a whole album or are they totally random?
One thing you may want to check is if you've accidentally 'unticked' some of the tracks.

I don't really know which tracks are these, but it happened only via wifi. Also, it only happened once, I didn't try purging the device and resyncing to see if it was solved. Oh, and I was syncing my whole library, so no Unticked tracks : p
Title: Re: Wifi android device synching
Post by: Babydoll32 on June 12, 2019, 07:56:51 PM
I got a little problem. I sync my music to a SD card in my phone. When I create a playlist in GMMP and want to sync it back to MB, I'll get a non-recoverable error while syncing. I didn't change the standard settings.
Title: Re: Wifi android device synching
Post by: phred on June 13, 2019, 02:06:39 PM
It would be helpful if you pasted the sections of both MB's error log and the WiFi app's error log so we can see what's going on. No need for the entire log - just the section from the time the error occurred.
Title: Re: Wifi android device synching
Post by: Babydoll32 on June 13, 2019, 09:59:30 PM
It would be helpful if you pasted the sections of both MB's error log and the WiFi app's error log so we can see what's going on. No need for the entire log - just the section from the time the error occurred.

I tried to replicate the error again. But it doesn't happened again. Playlist synced back, but empty. I checked out the logs. But there's nothing. No error appears in the logs.
Title: Re: Wifi android device synching
Post by: StormofThunder on June 14, 2019, 02:31:43 AM
To the people reporting sync issues (same files synch'ed multiple times or not deleting), can you PM me your google play store login email if you have not done so already so I can add you to the alpha release channel.
I will spend time on the issues from this weekend
to start with could anyone participating run this debug version which will give me some more info
https://www.mediafire.com/file/dd95fba3vgn8q8u/MusicBeeDebugSync.zip/file
unzip and replace musicbee.exe

It will potentially log a lot of info to the error log - could you send me a zip of the error log after running the sync (help/ support/ view error log)
Also let me know the filename for a couple of the files that should not have beeen re-copied

error logs (https://drive.google.com/file/d/1VjcOdS0vD0X9_BCHoTQehh565yo7pkzj/view?usp=sharing)

I chose to sync only a playlist, otherwise there would be too many files. Up to line line 8368, Musicbee scanned a ton of files irrelevant to the playlist sync, since the playlist is only comprised of 95 files. All of the 95 files that synced were already in the phone.

In Musicbee, the device fullsync is comprised of 18,054 files, so I don't know why it just scanned 8.3k files even if I only chose Playlist Sync, adding a ton of waiting time for the sync to start.
Title: Re: Wifi android device synching
Post by: Steven on June 15, 2019, 02:36:26 PM
thanks for the logs.
So according to the log, all the .opus files would have been synched because MB could not find them on the device.
All the other files in the playlist were skipped because the dates matched.

So can you confirm whether the .opus files were actually already on the device?
If you think they were on the device, can you confirm that using the Android file explorer, navigating via the Storage node rather than the Audio node, making sure you are using the path from the error log?
I understand Android devices dont index .opus files in the media store, so that would likely explain why they keep getting synched.

i dont think this is directly related, but your wifi connection seems quite bad, and i noticed MB is having to do a lot of retries before it succeeds
Title: Re: Wifi android device synching
Post by: StormofThunder on June 16, 2019, 05:09:57 PM
thanks for the logs.
So according to the log, all the .opus files would have been synched because MB could not find them on the device.
All the other files in the playlist were skipped because the dates matched.

So can you confirm whether the .opus files were actually already on the device?
If you think they were on the device, can you confirm that using the Android file explorer, navigating via the Storage node rather than the Audio node, making sure you are using the path from the error log?
I understand Android devices dont index .opus files in the media store, so that would likely explain why they keep getting synched.

i dont think this is directly related, but your wifi connection seems quite bad, and i noticed MB is having to do a lot of retries before it succeeds

The playlist only had 95 files, the tracks that were skipped had nothing to do with the playlist. The reason the wifi sync app kept timing out/retrying was because Musicbee was busy, for some reason, scanning other thousands of tracks not relevant to the playlist that was selected to sync. My wifi is fine (https://www.speedtest.net/result/a/5034626734), my router is in my room as well.

I've synced with wired multiple times in the last few days to make sure I already had those files, and I certainly did. The music players I use play opus files fine, but android doesn't seem to detect them (such as google play music), so I'm converting my library to ogg and will report again when I do another test.
Title: Re: Wifi android device synching
Post by: StormofThunder on June 17, 2019, 12:56:45 AM
So after converting my opus files to ogg and resyncing wired, completely replacing all opus files, and then syncing wirelessly, the files are properly detected and synced. Sometimes, though, I get "Sync Preview failed: Object reference not set to an instance of an object.", and every time, Musicbee spends a ton of time scanning through thousands of files that aren't in the single playlist I select to sync. This makes wireless sync take forever to even start up, while the android app is timing out and retrying. Can't it just scan through the files in the playlist and not through a big part of my library?
Title: Re: Wifi android device synching
Post by: Steven on June 20, 2019, 07:40:46 PM
Sometimes, though, I get "Sync Preview failed: Object reference not set to an instance of an object."
v0.9 will probably fix the issue - its available on the internal test channel

https://play.google.com/apps/internaltest/4700978781087552506
Title: Re: Wifi android device synching
Post by: StormofThunder on June 20, 2019, 07:52:40 PM
Sometimes, though, I get "Sync Preview failed: Object reference not set to an instance of an object."
v0.9 will probably fix the issue - its available on the internal test channel

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

I thought I had already sent the login e-mail, seems that I didn't. I've sent it now, thanks, I'll resync when I get the update and see if anything's changed.
Title: Re: Wifi android device synching
Post by: sasukedll7170 on June 24, 2019, 04:27:27 PM
hi steven, first of all thank you soooo much for this amazing app, you are truly amazing <3, no i would like to see if you could help me with this problem i have, i´ve been using your app for like two months and it was working flawlesly, but now for some reason like 2 weeks ago it stoped working completly, i dont know why, i havent installed anything or somehting neither on my computer or my phone, but now for some reason i'm getting this "server not found" error, what file should i send so i can get some help with this? thanks in advance ^_^
Title: Re: Wifi android device synching
Post by: psychoadept on June 24, 2019, 06:35:26 PM
hi steven, first of all thank you soooo much for this amazing app, you are truly amazing <3, no i would like to see if you could help me with this problem i have, i´ve been using your app for like two months and it was working flawlesly, but now for some reason like 2 weeks ago it stoped working completly, i dont know why, i havent installed anything or somehting neither on my computer or my phone, but now for some reason i'm getting this "server not found" error, what file should i send so i can get some help with this? thanks in advance ^_^

I suggest to start by making sure that your MusicBee pc is still connected on a private network. A couple of times Windows has switched mine to public for no obvious reason.

Have you restarted both the device and the computer? I also find that sometimes it helps to force kill the app (from the apps section in Android), not just close it from the app switcher.
Title: Re: Wifi android device synching
Post by: sasukedll7170 on June 25, 2019, 12:00:52 AM
hi steven, first of all thank you soooo much for this amazing app, you are truly amazing <3, no i would like to see if you could help me with this problem i have, i´ve been using your app for like two months and it was working flawlesly, but now for some reason like 2 weeks ago it stoped working completly, i dont know why, i havent installed anything or somehting neither on my computer or my phone, but now for some reason i'm getting this "server not found" error, what file should i send so i can get some help with this? thanks in advance ^_^

I suggest to start by making sure that your MusicBee pc is still connected on a private network. A couple of times Windows has switched mine to public for no obvious reason.

Have you restarted both the device and the computer? I also find that sometimes it helps to force kill the app (from the apps section in Android), not just close it from the app switcher.

hello psychoadept, thanks for the replay, unfortunately i already tried all of what you said, killing the app on android, restart both the phone and my computer, switching to private and public network, but nothing has solve the problem so far, still get the same error :(
Title: Re: Wifi android device synching
Post by: phred on June 25, 2019, 02:58:06 AM
@sasukedll7170 -

- What version number of MB are you using?
- Which install version did you use? (Installer, portable, Windows Store?)
- Which version of the WiFi app are you using? (You can find the version # by going to Settings > Apps on the device.
- Have you checked both MB's error log and the app's error log to see if there are entries from around the time of the error? If there's something there from the right time, please copy and paste it here.
Title: Re: Wifi android device synching
Post by: sasukedll7170 on June 25, 2019, 12:55:48 PM
@sasukedll7170 -

- What version number of MB are you using?
- Which install version did you use? (Installer, portable, Windows Store?)
- Which version of the WiFi app are you using? (You can find the version # by going to Settings > Apps on the device.
- Have you checked both MB's error log and the app's error log to see if there are entries from around the time of the error? If there's something there from the right time, please copy and paste it here.

- MusicBee V3.3.7112
- portable
- Wifi Sync V0.9
-Wifi SYnc error log:
Code
2019-06-01: Vivo ONE;  7.1.1;  0.8.3
09:22:34: locate: search=192.168.137.
09:22:34: locate: exclude=58
09:22:34: ping: socket ok=/192.168.137.96
09:22:34: ping: hello=MusicBeeWifiSyncServer/1.0
09:22:34: ping: matched=/192.168.137.96,status=OK
09:22:35: ping: socket ok=/192.168.137.96
09:22:35: ping: hello=MusicBeeWifiSyncServer/1.0
09:22:35: ping: matched=/192.168.137.96,status=OK
Title: Re: Wifi android device synching
Post by: Steven on June 25, 2019, 05:18:27 PM
according to that log, the server was located
Title: Re: Wifi android device synching
Post by: sasukedll7170 on June 25, 2019, 07:22:35 PM
according to that log, the server was located

it doesn't have any sense then, because if i press "sync now" it says "Error Server not found. Ensure MusicBee is running and Windows firewall is not blocking MusicBee" and i have completely disable my firewall, my antivirus, everything that could be "blocking" anything :(
Title: Re: Wifi android device synching
Post by: rufus00g on June 26, 2019, 09:38:19 AM
@Steven first of all thanks for all the hard work on this great software!

I'm trying out the WiFi syncing between Android and MusicBee and experiencing issues that seem to be related to changing the "media storage" -> "storage path" in the device settings from the default.  For example I currently have the storage path set to "Nokia 8\SD card\MusicBee\" and this path is respected when performing the initial wired sync.  Everything is copied properly into "Nokia 8\SD card\MusicBee\Music\".  However when using the MusicBee Wifi Sync app thereafter, everything seems to be recopied into the default "Nokia\SD card\Music" directory and my storage path configuration is ignored.  From there it sometimes throws the "File not matched in MusicBee..." error or it keeps recopying the same files from the Desktop app to my phone as it doesn't seem to determine both devices as matching.  I can provide more info to reproduce or understand the issue if necessary.
Title: Re: Wifi android device synching
Post by: christmw2503 on July 01, 2019, 08:46:29 AM
I also have a Nokia 8 on Android Pie. The initial wired sync works flawlessly. But when I want to do the wifi sync, the app says "Musicbee can't match the device name...". I then type "Nokia 8" (the device name appearing in Musicbee) and try to locate the server but I'm taken back to the same  error screen. Btw, TA-1004 is the specific model of my Nokia 8.
The issue must be related to how Nokia phones handle media storage, because my Motorola phone doesn't have this issue

https://imgur.com/fQzhazD
Title: Re: Wifi android device synching
Post by: Babydoll32 on July 01, 2019, 04:43:25 PM
I also have a Nokia 8 on Android Pie. The initial wired sync works flawlessly. But when I want to do the wifi sync, the app says "Musicbee can't match the device name...". I then type "Nokia 8" (the device name appearing in Musicbee) and try to locate the server but I'm taken back to the same  error screen. Btw, TA-1004 is the specific model of my Nokia 8.
The issue must be related to how Nokia phones handle media storage, because my Motorola phone doesn't have this issue

https://imgur.com/fQzhazD

That's why I was fed up with my Nokia 8. See a few posts before. Also GMMP had several times problems with scanning media. After a camera issue I bought a Motorola OneVision now and have no big problems with sync WiFi and wireless.
Title: Re: Wifi android device synching
Post by: christmw2503 on July 02, 2019, 03:55:00 PM


That's why I was fed up with my Nokia 8. See a few posts before. Also GMMP had several times problems with scanning media. After a camera issue I bought a Motorola OneVision now and have no big problems with sync WiFi and wireless.
[/quote]

I've just returned the phone. I've never seen a phone with so many bugs.
Title: Re: Wifi android device synching
Post by: StephDesire on July 04, 2019, 02:42:49 PM
Hi everyone, I have got a FiiO m6 with 400gb to replace my iPod Classic, it's a pretty good device but this device with android have a fu***** limited white list of apps.

I find a way to install any app by changing the package name for a white listed one.

Firstly my objectif was to sync this device with iTunes with the play counts, so I tried Doubletwist, it works but I have more than 10k tracks and after that limit the desktop app of DT make an infinite loop of verification and it stops working, and the reverse syncing doesn't work at all.

Now I discover Musicbee and I'm quite amaze compared to iTunes.

So I dream about sync MB with my device, but I don't know how to convince FiiO to use your app and changing the package name could cause other problems, and I already lost more than a month to try with doubleTwist.
Title: Re: Wifi android device synching
Post by: frankz on July 04, 2019, 03:20:25 PM
Hi everyone, I have got a FiiO m6 with 400gb to replace my iPod Classic, it's a pretty good device but this device with android have a fu***** limited white list of apps.

I find a way to install any app by changing the package name for a white listed one.

Firstly my objectif was to sync this device with iTunes with the play counts, so I tried Doubletwist, it works but I have more than 10k tracks and after that limit the desktop app of DT make an infinite loop of verification and it stops working, and the reverse syncing doesn't work at all.

Now I discover Musicbee and I'm quite amaze compared to iTunes.

So I dream about sync MB with my device, but I don't know how to convince FiiO to use your app and changing the package name could cause other problems, and I already lost more than a month to try with doubleTwist.
Use wired sync you don't need an app for that.
Title: Re: Wifi android device synching
Post by: Haljeff on July 06, 2019, 03:58:50 PM
Having problem with syncing play counts with gonemad
Keep getting need unlocked version which i have
Syncs playlists ok. Having same problem on 2 devices
Any help would be great
Title: Re: Wifi android device synching
Post by: Steven on July 06, 2019, 05:18:59 PM
do you see the file using android file explorer? gmmp/stats.xml

it might be that you need a more recent version of gonemad
Title: Re: Wifi android device synching
Post by: frankz on July 06, 2019, 06:25:13 PM
FYI, this same thing (no reverse sync and "you need the unlocked version" when I have the unlocked version) happens to me.  I do have the file (/storage/emulated/0/gmmp/stats.xml) and can see/open it. 

I figured it was something specific to my phone and didn't really have time to trouble-shoot and was only going to sync back infrequent ratings anyway so I never brought it up.  But @Haljeff is not alone in this.
Title: Re: Wifi android device synching
Post by: Steven on July 06, 2019, 07:15:09 PM
could you both send me your google play email address so i can add you to the alpha track and i will create a debug version to see whats going on
Title: Re: Wifi android device synching
Post by: Steven on July 07, 2019, 02:37:25 PM
@frankz, thanks for sending the stats.xml file
its fine, so corrupted file is not the reason.
Given what you said about the last modified date being a few months old, that leads me to believe it might be a permissioning issue when invoking the generation of that file. I will need to take that up with the GoneMad developer

@Haljeff, could you also confirm whether the last modified date is today/ yesterday ?

Both - what is the device and android version you are using?
Title: Re: Wifi android device synching
Post by: Steven on July 07, 2019, 03:48:32 PM
I have created a debug version for the android app v1.0.1
Its available here:
https://play.google.com/apps/internaltest/4700978781087552506

after running the reverse sync, can you send me the contents of the Error Log (click the action bar button on the right/ Error Log)
Title: Re: Wifi android device synching
Post by: frankz on July 07, 2019, 04:21:43 PM
Thanks, I'm awaiting install of the test version now.

I'm on a Galaxy S8 and the android version on it says 9.
Title: Re: Wifi android device synching
Post by: frankz on July 07, 2019, 04:29:14 PM
Ok I installed the test version and did a preview and got the "need unlocked" error right away. Here's what was in the log.

2019-07-07: SM-G950U;  9;  1.0.1
11:22:48: loadStats: /storage/emulated/0/gmmp/stats.xmlexists
11:22:48: loadStats: before start observer
11:22:48: loadStats: after start observer
11:22:58: loadStats: return null
11:22:58: sendStats: Unable to retrieve stats for player: 1
11:22:58: loadStats: event=32768
Title: Re: Wifi android device synching
Post by: frankz on July 07, 2019, 04:32:45 PM
I have a feeling I was supposed to enable the debugging log after seeing that option, so I tried it again after doing that.  This is probably more what you were looking for:

2019-07-07: SM-G950U;  9;  1.0.1
11:22:48: loadStats: /storage/emulated/0/gmmp/stats.xmlexists
11:22:48: loadStats: before start observer
11:22:48: loadStats: after start observer
11:22:58: loadStats: return null
11:22:58: sendStats: Unable to retrieve stats for player: 1
11:22:58: loadStats: event=32768
11:31:19: startSync: preview=true,iteration=0
11:31:19: command: action=SYNC_START
11:31:19: tryStart: connecting /192.168.1.2, attempt=0
11:31:19: tryStart: connected
11:31:19: tryStart: hello=true,fromMB=true,custfiles=false,preview=true,dev=SM-G950U,2
11:31:19: storage: path=/storage/0000-0000,root=0000-0000:,uri=content://com.android.externalstorage.documents/tree/0000-0000%3A
11:31:19: syncDevice: root=/storage/0000-0000,ignoreErrors=false,playlists=false,ratings=true,playcount=false
11:31:20: syncDevice: command=SendStats
11:31:20: loadStats: /storage/emulated/0/gmmp/stats.xmlexists
11:31:20: loadStats: before start observer
11:31:20: loadStats: after start observer
11:31:30: loadStats: return null
11:31:30: loadStats: event=32768
11:31:30: sendStats: Unable to retrieve stats for player: 1
11:31:31: syncDevice: command=GetFiles
11:31:31: getFiles: Get: Music/,url=/storage/0000-0000/Music/, inc=true
11:31:32: getFiles: count=14962
11:31:32: syncDevice: command=GetFiles
11:31:32: getFiles: Get: Music/Podcasts/,url=/storage/0000-0000/Music/Podcasts/, inc=true
11:31:32: getFiles: count=0
11:31:32: syncDevice: command=GetFiles
11:31:32: getFiles: Get: Playlists/,url=/storage/0000-0000/Playlists/, inc=false
11:31:32: getFiles: count=0
11:31:33: syncDevice: command=ShowPreviewResults
11:31:33: syncDevice: exit
Title: Re: Wifi android device synching
Post by: Steven on July 07, 2019, 04:47:12 PM
thanks. I will need to contact the GoneMad developer for his comments
Title: Re: Wifi android device synching
Post by: Steven on July 07, 2019, 05:24:44 PM
I have sent a message to the developer, but looking at the settings there are a couple of things I can see that might help.

In the GoneMad Settings/ General panel, do you have "Broadcast MetaData" ticked?
And further down, if you click on the Debug Error Log link, does the error log show anything around the sync time?
Title: Re: Wifi android device synching
Post by: frankz on July 07, 2019, 05:32:27 PM
I have sent a message to the developer, but looking at the settings there are a couple of things I can see that might help.

In the GoneMad Settings/ General panel, do you have "Broadcast MetaData" ticked?

I do.  I think I need this for metadata to show in the car.


And further down, if you click on the Debug Error Log link, does the error log show anything around the sync time?

Actually, yes. There are two identical entries that match the two timestamps of my attempted syncs

TrackStatMgr - Illegal character (U+ffff)
Title: Re: Wifi android device synching
Post by: Steven on July 08, 2019, 07:05:38 PM
Actually, yes. There are two identical entries that match the two timestamps of my attempted syncs

TrackStatMgr - Illegal character (U+ffff)
I got a response from the GoneMad developer - he thinks its probably one of your filenames in GoneMad library has an invalid unicode character.
I guess there isnt an easy way to find the offending filename and making some correction - maybe narrow down for files added to GoneMad around the last file modification date of the stats.xml file.
If you do find it, let me know so i can pass the info to the GoneMad developer in case he is willing to put in some handling
Title: Re: Wifi android device synching
Post by: frankz on July 08, 2019, 07:55:26 PM
Actually, yes. There are two identical entries that match the two timestamps of my attempted syncs

TrackStatMgr - Illegal character (U+ffff)
I got a response from the GoneMad developer - he thinks its probably one of your filenames in GoneMad library has an invalid unicode character.
I guess there isnt an easy way to find the offending filename and making some correction - maybe narrow down for files added to GoneMad around the last file modification date of the stats.xml file.
If you do find it, let me know so i can pass the info to the GoneMad developer in case he is willing to put in some handling
I've got files going on and off my phone all the time and it would probably be impossible to find the offending file at this point if it's even still on the phone.

I know that I do have artists with non-ASCII characters in their names, and that I use artist names in my template (Album Artist/Album/Disc-Track  and then the first few characters of the track name), so I'm guessing it's one of those artists creating the problem.

I think I remember that there's not, but is there a way to sanitize the path/filename to only ASCII characters?  Maybe I can think of some alternate template that would prevent duplicate filenames while avoiding artist names in the path entirely.

I'm not very familiar with the file naming rules on Android devices, but how are file names with invalid characters being saved to the phone?  If the character is invalid, wouldn't it fail trying to write the file to the phone with that name in the first place?
Title: Re: Wifi android device synching
Post by: Steven on July 08, 2019, 08:07:54 PM
If I take what the GoneMad developer says at face value, one of the filenames contains the unicode character (U+ffff) which is an invalid unicode character. Other non-ascii characters are fine.
I don't see how Android would allow such a character in the filename so I am bit sceptical about what he said.
Unless he is willing to create a debug version you might be out of luck unless you are prepared to wipe and reload your GoneMad library (maybe starting with a smaller sub-set and building it up)
Title: Re: Wifi android device synching
Post by: frankz on July 08, 2019, 08:16:23 PM
If it's not an easy fix or workaround, I'm good letting it go.  I was prepared to just chalk it up to something weird about my library from the outset until I saw Haljeff's post and thought I might be doing a disservice to the app by letting it go unreported.  But, if it actually is just something about my library that doesn't agree with GMMP or Android in general, that's on me and I'll work it out myself.  You and the GMMP dev have enough to do without worrying about accounting for my issues.

Thanks for looking into it. Hopefully this answers Haljeff's issue too.
Title: Re: Wifi android device synching
Post by: Haljeff on July 08, 2019, 08:28:47 PM
Wiped my Library on my phone, Loaded 10 Tracks, changed a rating and played a song and Sync worked. Going to Load album at time, This Could take a while to find offending filename
Title: Re: Wifi android device synching
Post by: frankz on July 08, 2019, 10:16:42 PM
Wiped my Library on my phone, Loaded 10 Tracks, changed a rating and played a song and Sync worked. Going to Load album at time, This Could take a while to find offending filename
Did you have the same error in your GMMP error log? You may have an unrelated problem.
Title: Re: Wifi android device synching
Post by: Haljeff on July 09, 2019, 01:57:54 AM
It Appears that Musicbranz replaces "-" with "–". After Adding tracks with this character it fails. After search and replace all seems to working correctly.
Title: Re: Wifi android device synching
Post by: Haljeff on July 10, 2019, 10:46:10 AM
It Appears that Musicbranz replaces "-" with "–". After Adding tracks with this character it fails. After search and replace all seems to working correctly.
Tried duplicating fix on my second device without success. It seems something else maybe going on. Have exact same library on phone and tablet. Phone works Tablet doesn't. Not Sure if fix on phone was a fluke or there are more than one issue
Title: Re: Wifi android device synching
Post by: Steven on July 10, 2019, 06:54:13 PM
It Appears that Musicbranz replaces "-" with "–". After Adding tracks with this character it fails. After search and replace all seems to working correctly.
Tried duplicating fix on my second device without success. It seems something else maybe going on. Have exact same library on phone and tablet. Phone works Tablet doesn't. Not Sure if fix on phone was a fluke or there are more than one issue
can you be specific with the error message you see in the GoneMad error log?
Title: Re: Wifi android device synching
Post by: TeutonJon78 on July 10, 2019, 07:28:47 PM
I just got a new phone and new SD card, but I'm having problems syncing two tracks to the phone (I had this on my old phone sometimes as well). Every time I sync, it copies those two files and then deletes them right afterwards.
MusicBee 3.3.7115

MusicBee Error Log:
Quote
2019-07-10 10:38:12 AM - Copy D:\Music\Music Library\Odyssey\Alive & Kicking 1980 (2 of 2)\07 Use It Up And Wear It Out (Long).mp3 to SM-G970U1\Card\Music\Odyssey\Alive & Kicking 1980 (2 of 2)\07 Use It Up And Wear It Out (Long).mp3
2019-07-10 10:38:12 AM - Copy D:\Music\Music Library\Eric Himan\All For Show\01 One Night Stands.mp3 to SM-G970U1\Card\Music\Eric Himan\All For Show\01 One Night Stands.mp3


Wifi Sync Debug Log:
Quote
2019-07-10: SM-G970U1;  9;  0.9
10:38:07: startSync: preview=false,iteration=0
10:38:07: command: action=SYNC_START
10:38:07: tryStart: connecting /192.168.1.xx, attempt=0
10:38:07: tryStart: connected
10:38:07: tryStart: hello=true,fromMB=true,custfiles=false,preview=false,dev=SM-G970U1,2
10:38:07: storage: path=/storage/F15E-8225,root=F15E-8225:,uri=content://com.android.externalstorage.documents/tree/F15E-8225%3A
10:38:07: syncDevice: root=/storage/F15E-8225,ignoreErrors=false,playlists=false,ratings=false,playcount=false
10:38:09: syncDevice: command=ShowResults
10:38:10: syncDevice: command=GetFiles
10:38:10: getFiles: Get: Music/,url=/storage/F15E-8225/Music/, inc=true
10:38:11: getFiles: count=13428
10:38:11: syncDevice: command=GetFiles
10:38:11: getFiles: Get: Podcasts/,url=/storage/F15E-8225/Podcasts/, inc=true
10:38:11: getFiles: count=0
10:38:11: syncDevice: command=GetFiles
10:38:11: getFiles: Get: Playlists/,url=/storage/F15E-8225/Playlists/, inc=false
10:38:11: getFiles: count=0
10:38:11: syncDevice: command=ReceiveFile
10:38:11: receiveFile: Receive: Music/Odyssey/Alive & Kicking 1980 (2 of 2)/07 Use It Up And Wear It Out (Long).mp3
10:38:12: syncDevice: command=DeleteFiles
10:38:12: deleteFiles: Delete: Music/Odyssey/Alive & Kicking 1980 (2 of 2)/07 Use It Up And Wear It Out (Long).mp3
10:38:12: syncDevice: command=ReceiveFile
10:38:12: receiveFile: Receive: Music/Eric Himan/All For Show/01 One Night Stands.mp3
10:38:12: syncDevice: command=DeleteFiles
10:38:12: deleteFiles: Delete: Music/Eric Himan/All For Show/01 One Night Stands.mp3

... [playlists syncing correctly]

10:38:13: syncDevice: command=Exit
10:38:13: exitSync: fails=0
10:38:15: syncDevice: exit
Title: Re: Wifi android device synching
Post by: Steven on July 10, 2019, 10:02:39 PM
I just got a new phone and new SD card, but I'm having problems syncing two tracks to the phone (I had this on my old phone sometimes as well). Every time I sync, it copies those two files and then deletes them right afterwards.
MusicBee 3.3.7115
it does that if the copy to the device fails, however i am not clear why the error is not logged on the device side.
To start with could you run this version of musicbee which will log some extra info on the musicbee side:
https://www.mediafire.com/file/tly2lv3qvnk53q9/MusicBeeDebugSync.zip/file
unzip and replace the existing musicbee.exe
Title: Re: Wifi android device synching
Post by: TeutonJon78 on July 11, 2019, 12:49:43 AM
Quote
2019-07-10 4:49:02 PM - Copy D:\Music\Music Library\Odyssey\Alive & Kicking 1980 (2 of 2)\07 Use It Up And Wear It Out (Long).mp3 to SM-G970U1\Card\Music\Odyssey\Alive & Kicking 1980 (2 of 2)\07 Use It Up And Wear It Out (Long).mp3
2019-07-10 4:49:02 PM - 10.0.18362.0 - 3.3.7130.39546 - System.ArgumentNullException: Buffer cannot be null.
Parameter name: buffer
   at System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable)
   at System.IO.MemoryStream..ctor(Byte[] buffer)
   at #=z1kw$Q2I5fagnGEYvo9ThOBTL0a_D.#=zaF1xDbcG0flJ(#=zAFNcLg$q8q6FJDZ$0oDUiIN6eMiX #=zUi36UbI=, #=zfrsbaS6Z6o8f8mw32wq_ktI= #=zhmCiLPQ=, #=zTzue99Yc12m3D5fJQw== #=zN3Uu7l93cs6$)
   at #=z1kw$Q2I5fagnGEYvo9ThOBTL0a_D.#=zp7cMDow=(#=zAFNcLg$q8q6FJDZ$0oDUiIN6eMiX #=zUi36UbI=, #=zw7I0qMf5yaqW4I$KVm58Iuo= #=zQqrwyWQ=, #=zTzue99Yc12m3D5fJQw== #=zvpLJDLD_ostL, Boolean #=zRwd5GikeIC1O, List`1 #=zuduLsTkydH3OhvG7yg==)
   at #=zRVrQFUsnRHtcH_96829hTYs=.#=ztRoayWhefKhUdwtCAdx1xNxhE$yz(#=zAFNcLg$q8q6FJDZ$0oDUiIN6eMiX #=zUi36UbI=, #=zw7I0qMf5yaqW4I$KVm58Iuo= #=z5F_oRT4=, #=zTzue99Yc12m3D5fJQw== #=zDJEWjspDb3S$d79kEg==, #=zTzue99Yc12m3D5fJQw== #=z679wGTI=, Boolean #=zwryeYSBxWaSjvLbI_5IJtbo=, Object #=zfRIIzEfLQ4bM)

2019-07-10 4:49:03 PM - Copy D:\Music\Music Library\Eric Himan\All For Show\01 One Night Stands.mp3 to SM-G970U1\Card\Music\Eric Himan\All For Show\01 One Night Stands.mp3
2019-07-10 4:49:03 PM - 10.0.18362.0 - 3.3.7130.39546 - System.ArgumentNullException: Buffer cannot be null.
Parameter name: buffer
   at System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable)
   at System.IO.MemoryStream..ctor(Byte[] buffer)
   at #=z1kw$Q2I5fagnGEYvo9ThOBTL0a_D.#=zaF1xDbcG0flJ(#=zAFNcLg$q8q6FJDZ$0oDUiIN6eMiX #=zUi36UbI=, #=zfrsbaS6Z6o8f8mw32wq_ktI= #=zhmCiLPQ=, #=zTzue99Yc12m3D5fJQw== #=zN3Uu7l93cs6$)
   at #=z1kw$Q2I5fagnGEYvo9ThOBTL0a_D.#=zp7cMDow=(#=zAFNcLg$q8q6FJDZ$0oDUiIN6eMiX #=zUi36UbI=, #=zw7I0qMf5yaqW4I$KVm58Iuo= #=zQqrwyWQ=, #=zTzue99Yc12m3D5fJQw== #=zvpLJDLD_ostL, Boolean #=zRwd5GikeIC1O, List`1 #=zuduLsTkydH3OhvG7yg==)
   at #=zRVrQFUsnRHtcH_96829hTYs=.#=ztRoayWhefKhUdwtCAdx1xNxhE$yz(#=zAFNcLg$q8q6FJDZ$0oDUiIN6eMiX #=zUi36UbI=, #=zw7I0qMf5yaqW4I$KVm58Iuo= #=z5F_oRT4=, #=zTzue99Yc12m3D5fJQw== #=zDJEWjspDb3S$d79kEg==, #=zTzue99Yc12m3D5fJQw== #=z679wGTI=, Boolean #=zwryeYSBxWaSjvLbI_5IJtbo=, Object #=zfRIIzEfLQ4bM)

Title: Re: Wifi android device synching
Post by: Steven on July 11, 2019, 07:49:43 AM
@TeutonJon78,
try this version which should address the issue:
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: Haljeff on July 11, 2019, 02:23:16 PM
It Appears that Musicbranz replaces "-" with "–". After Adding tracks with this character it fails. After search and replace all seems to working correctly.
Tried duplicating fix on my second device without success. It seems something else maybe going on. Have exact same library on phone and tablet. Phone works Tablet doesn't. Not Sure if fix on phone was a fluke or there are more than one issue
can you be specific with the error message you see in the GoneMad error log?
GoneMad wasn't logging any errors. Did factory reset on Device reloaed library and after several atemps at sync on fourth or fifth try it starting syncing properly. Thanks for the help. 
Title: Re: Wifi android device synching
Post by: TeutonJon78 on July 11, 2019, 05:54:01 PM
@TeutonJon78,
try this version which should address the issue:
https://getmusicbee.com/patches/MusicBee33_Patched.zip

That fixed one of them -- Eric Himan. The Odyssey track is still failing.
Title: Re: Wifi android device synching
Post by: Steven on July 11, 2019, 06:03:41 PM
in that case run this version and send me the new info in the error log
http://www.mediafire.com/file/tly2lv3qvnk53q9/MusicBeeDebugSync.zip/file
Title: Re: Wifi android device synching
Post by: TeutonJon78 on July 11, 2019, 06:10:49 PM
in that case run this version and send me the new info in the error log
http://www.mediafire.com/file/tly2lv3qvnk53q9/MusicBeeDebugSync.zip/file

Quote
2019-07-11 10:10:33 AM - Copy D:\Music\Music Library\Odyssey\Alive & Kicking 1980 (2 of 2)\07 Use It Up And Wear It Out (Long).mp3 to SM-G970U1\Card\Music\Odyssey\Alive & Kicking 1980 (2 of 2)\07 Use It Up And Wear It Out (Long).mp3
2019-07-11 10:10:33 AM - 10.0.18362.0 - 3.3.7131.32395 - System.ArgumentNullException: Buffer cannot be null.
Parameter name: buffer
   at System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable)
   at System.IO.MemoryStream..ctor(Byte[] buffer)
   at #=zR$HPsi3iaMeQ1Wl6Np$qkFWH97qK.#=zfz1VFYtm$7QY(#=zlExCBWDIEwp0z9O_vgD8RULvs0T0 #=zB$nPRe4=, #=zwb_hwenhYPXEPUcG2WQwCUo= #=zwYZM$p0=, #=z6HnZ1kWEuOAZAYzFlQ== #=z1xpxfBXtndX7)
   at #=zR$HPsi3iaMeQ1Wl6Np$qkFWH97qK.#=zS855_8w=(#=zlExCBWDIEwp0z9O_vgD8RULvs0T0 #=zB$nPRe4=, #=z$e1KWX4Y8GAWY9$9SvCEtFU= #=zVdQAJIM=, #=z6HnZ1kWEuOAZAYzFlQ== #=zFbbD$H1G_igM, Boolean #=zZs2esPnVYQs0, List`1 #=zUYlwaZyyD1Gyl04oGg==)
   at #=zOSDPn5bfAAx8tjbDknu_xE4=.#=z8b7otlC_X1CoumQAoq6$xlw6ubk8(#=zlExCBWDIEwp0z9O_vgD8RULvs0T0 #=zB$nPRe4=, #=z$e1KWX4Y8GAWY9$9SvCEtFU= #=zdbJxnhI=, #=z6HnZ1kWEuOAZAYzFlQ== #=zt5QLcH94WFQPI4Udgw==, #=z6HnZ1kWEuOAZAYzFlQ== #=zSj381YQ=, Boolean #=zihK1gYRflH4ZCBBPF4QySvc=, Object #=zHjstKKLDEEVn)

I'm curious is it's just a bug, or if it's some problem with the file/tag.
Title: Re: Wifi android device synching
Post by: Steven on July 11, 2019, 06:25:47 PM
there is an issue with the artwork that was not being handled
this should work now:
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: TeutonJon78 on July 11, 2019, 06:51:17 PM
there is an issue with the artwork that was not being handled
this should work now:
https://getmusicbee.com/patches/MusicBee33_Patched.zip

The file still did not copy. I didn't think either of those files actually had any artwork associated with them, but when I go into the tag editor, the Odyssey file shows up as "Invalid Picture" but the artwork browser in the left column shows it and mouse over tooltip shows it as embedded.

Same for the Eric Himan track, but when I go to the tag's artwork tab, it gives a popup about "The image is corrupted, no longer exists or is inaccessible." And the artwork also still shows in the artwork in column with the mouse over saying it's embedded. There is also a second track by this artist with the same issue, but it sync'ed correctly originally even with the corruption issue.

Also, a feature that might be nice to add to the android app might be deleting empty directories that get left over when items move around.

I'll probably just delete the tags and recreate them to fix it, but I'll leave them until you're done having me debug the sync code.
Title: Re: Wifi android device synching
Post by: Steven on July 11, 2019, 07:12:47 PM
i have re-uploaded: https://getmusicbee.com/patches/MusicBee33_Patched.zip
could you try again and check the error log
Title: Re: Wifi android device synching
Post by: TeutonJon78 on July 11, 2019, 07:16:13 PM
i have re-uploaded: https://getmusicbee.com/patches/MusicBee33_Patched.zip
could you try again and check the error log

The error log has no additional entries and the file copied over. Thanks!!

However, that brings me back to a bigger question, is there a way in MB to find these files with corrupt embedded artwork images in any way?
Title: Re: Wifi android device synching
Post by: Steven on July 11, 2019, 07:30:51 PM
However, that brings me back to a bigger question, is there a way in MB to find these files with corrupt embedded artwork images in any way?
afraid not
Title: Re: Wifi android device synching
Post by: TeutonJon78 on July 11, 2019, 07:35:35 PM
However, that brings me back to a bigger question, is there a way in MB to find these files with corrupt embedded artwork images in any way?
afraid not

Didn't think so, but since only those two files triggered the error, I hopefully don't have any others. Removing and recreating the tags in MP3tag fixed any of the artwork errors in the desktop version.

As always, thanks for the program and quick debugging.
Title: Re: Wifi android device synching
Post by: frankz on July 14, 2019, 06:24:03 PM
Actually, yes. There are two identical entries that match the two timestamps of my attempted syncs

TrackStatMgr - Illegal character (U+ffff)
I got a response from the GoneMad developer - he thinks its probably one of your filenames in GoneMad library has an invalid unicode character.
I guess there isnt an easy way to find the offending filename and making some correction - maybe narrow down for files added to GoneMad around the last file modification date of the stats.xml file.
If you do find it, let me know so i can pass the info to the GoneMad developer in case he is willing to put in some handling
I just want to give a quick update to this issue. I got the idea to go into GMMP Settings->General->Backup->Backup Stats for some reason. Did it, my stats.xml was updated with today's date, tried Reverse Sync, and no error message anywhere.  I guess the offending character was no longer in my library.

I don't know under what conditions stats.xml is created or updated, but refreshing it solved the problem for me.

@Haljeff, I'd be interested to see if this would solve your issue as well.
Title: Re: Wifi android device synching
Post by: Steven on July 14, 2019, 06:30:07 PM
I don't know under what conditions stats.xml is created or updated, but refreshing it solved the problem for me.
The refresh should be automatically triggered when MB runs the reverse sync. In your case that step was previously failing with that GoneMad error
Title: Re: Wifi android device synching
Post by: SkyZippr on July 18, 2019, 03:59:20 PM
I got stupid and accidentally deleted the data of wifi sync app on my phone, and can't get it to work again.

I've successfully run a wired sync, but when I open the wifi sync app and tap 'Locate Server', it shows 'Server not found'.
I'm pretty sure that the firewall is off, and 'enable Wifi transfer' has been ticked.
Since I can't even get past this initial set up screen, I don't have access to the error log.
Is there any way that I can view the error log? MusicBee on PC has no error log recorded for this.
Title: Re: Wifi android device synching
Post by: Steven on July 18, 2019, 06:43:55 PM
v1.1 on the alpha channel
https://play.google.com/apps/internaltest/4700978781087552506

- the error log can now be viewed via the action bar in the Locate Server activity
Title: Re: Wifi android device synching
Post by: Babydoll32 on July 19, 2019, 06:48:40 AM
Hi. Can it be, that MB does not sync with GMMP 3.0 alpha yet? I get a message, that unlocked version is needed. But unlocked version is installed.
Title: Re: Wifi android device synching
Post by: SkyZippr on July 19, 2019, 01:13:38 PM
Steve, thank you so much. That was really fast.
I just got back from work, started my PC, and installed v1.1 of wifi sync app.
And then, before I even plug my phone to do a wired sync, the wifi sync app located the server.

This is kind of embarrassing, but I'm happy that my problem is gone, at least for now.
I'll be sure to check out the error log in case it happens again.
Title: Re: Wifi android device synching
Post by: Freddy Barker on July 20, 2019, 12:35:29 PM
v1.1 on the alpha channel
https://play.google.com/apps/internaltest/4700978781087552506

- the error log can now be viewed via the action bar in the Locate Server activity

Was having a few intermittent issues with thè 'Server not found' error and this version fixed it!
Freddy
Title: Re: Wifi android device synching
Post by: Steven on July 20, 2019, 02:41:09 PM
v1.1 on the alpha channel
https://play.google.com/apps/internaltest/4700978781087552506

- the error log can now be viewed via the action bar in the Locate Server activity

Was having a few intermittent issues with thè 'Server not found' error and this version fixed it!
Freddy
nothing was changed in that regard
Title: Re: Wifi android device synching
Post by: Freddy Barker on July 20, 2019, 04:39:23 PM
v1.1 on the alpha channel
https://play.google.com/apps/internaltest/4700978781087552506

- the error log can now be viewed via the action bar in the Locate Server activity

Was having a few intermittent issues with thè 'Server not found' error and this version fixed it!
Freddy

FYI - I had to FORCE STOP and uninstall older version and then install v1.1 before all was ok, as just installing new version over old version still displayed the 'Server not found' error.
Hope this helps!
Title: Re: Wifi android device synching
Post by: Babydoll32 on July 23, 2019, 06:38:16 AM
Hi, Steven.
I got 2 questions.
1.) Syncing with GoneMad 3.0 alpha currently not working or am I wrong?
2.) When I rate a song with 0,5 star in GoneMad, MB doesn't sync rating. All other ratings are syncing correctly to MB database, but 0,5 left song unrated within Musicbee. Is it an issue, while syncing or is it only on my own?
Title: Re: Wifi android device synching
Post by: SkyZippr on July 23, 2019, 04:03:42 PM
I think it's best to ask GoneMad developer for the syncing issue.
The latest public release 2.2.21 is syncing without any visible issue for me.
Title: Re: Wifi android device synching
Post by: Babydoll32 on July 23, 2019, 05:38:12 PM
I think it's best to ask GoneMad developer for the syncing issue.
The latest public release 2.2.21 is syncing without any visible issue for me.

Public release also works for me, but with 3.0 alpha MB sync shows an error, that it needs unlocked version, which it is. But 3.0 is interesting, cause it has skip count Implementation.
Title: Re: Wifi android device synching
Post by: Steven on July 23, 2019, 05:40:23 PM
But 3.0 is interesting, cause it has skip count Implementation.
you might ask the developer to include the skip count in the stats file and if he agrees let me know what it will be named as in the file
Title: Re: Wifi android device synching
Post by: Babydoll32 on July 23, 2019, 06:38:31 PM
But 3.0 is interesting, cause it has skip count Implementation.
you might ask the developer to include the skip count in the stats file and if he agrees let me know what it will be named as in the file

I wrote the GoneMad dev. Hope it will be possible.

But whats with the half star rating? Is it a sync issue or a GoneMad thing? Other half star ratings sync correctly e.g. 1.5, 3.5 etc.
Title: Re: Wifi android device synching
Post by: Steven on July 23, 2019, 07:21:01 PM
But whats with the half star rating? Is it a sync issue or a GoneMad thing? Other half star ratings sync correctly e.g. 1.5, 3.5 etc.
no idea
Title: Re: Wifi android device synching
Post by: Babydoll32 on July 23, 2019, 07:25:41 PM
But whats with the half star rating? Is it a sync issue or a GoneMad thing? Other half star ratings sync correctly e.g. 1.5, 3.5 etc.
no idea

Now it worked with another song. My fault maybe. GoneMad dev will contact you for implement of skip count!
Title: Re: Wifi android device synching
Post by: TeutonJon78 on July 25, 2019, 06:47:57 PM
A question/idea about the sync:

1) features request for desktop -- a way to watch the progress from there like you would with the wired sync

2) question: I had everything synced and when I would start a sync, only the changes would be send down. But yesterday when I went to sync, it seems to want to resync the whole library again. The only two operations I did on the desktop was rescan the library to make sure it picked up some tag changes and change the autoorganization rules (which only affected like 200/14k files). Do either of these cause the program to lose the previously synced status? It seems like neither should, but something did.
Title: Re: Wifi android device synching
Post by: Steven on July 25, 2019, 07:35:29 PM
for 2, i dont think either of those things would affect all files ie. only the files rescanned.
Its just the last modified date of the file compared to the date modified on the device or if the target filename changed due to file naming tags changing
Title: Re: Wifi android device synching
Post by: phred on July 25, 2019, 09:11:06 PM
1) features request for desktop -- a way to watch the progress from there like you would with the wired sync
Isn't there a percentage showing in the status bar on a wifi sync? I seem to recall that there is.
Title: Re: Wifi android device synching
Post by: TeutonJon78 on July 25, 2019, 10:35:03 PM
for 2, i dont think either of those things would affect all files ie. only the files rescanned.
Its just the last modified date of the file compared to the date modified on the device or if the target filename changed due to file naming tags changing

Weird, I changed some things, but definitely not that much that it's trying to sync again.

1) features request for desktop -- a way to watch the progress from there like you would with the wired sync
Isn't there a percentage showing in the status bar on a wifi sync? I seem to recall that there is.

Yes there is, but you can't see what songs are transferring on the computer like you can on the phone. It can be nice to see if it's still actually transferring or if it got stalled on something. It's a minor concern.
Title: Re: Wifi android device synching
Post by: frankz on July 25, 2019, 10:41:32 PM
Yes there is, but you can't see what songs are transferring on the computer like you can on the phone. It can be nice to see if it's still actually transferring or if it got stalled on something. It's a minor concern.
Since we're down this road, I'm always a fan of more data.  A summary of X files deleted, X files sent, X files updated (or any other related information) would be welcome, too.  It's not critical, but I like knowing those things.
Title: Re: Wifi android device synching
Post by: Joker73R on July 26, 2019, 10:41:42 AM
On Android 9 I can't run a WiFi sync even though I've ran before a wired one, MusicBee is allowed to run over Microsoft Firewall and I've set everything up on the program settings. Also, I've tried to clear cache and data from the app but this doesn't solve anything. Any solution? It worked fine on an older phone running Oreo 8.1.
Title: Re: Wifi android device synching
Post by: SkyZippr on July 26, 2019, 02:25:04 PM
My wifi sync is doing fine on Android 9.
I suspect you are having a "Server not found" issue, is that the case?
Title: Re: Wifi android device synching
Post by: Joker73R on July 26, 2019, 02:51:47 PM
My wifi sync is doing fine on Android 9.
I suspect you are having a "Server not found" issue, is that the case?

Yes. But I've done the wired sync as the first step and opened the firewall and clicked on "allow Wifi sync" on MusicBee settings.
Title: Re: Wifi android device synching
Post by: SkyZippr on July 26, 2019, 04:30:42 PM
Joker73R, have you tried this?

v1.1 on the alpha channel
https://play.google.com/apps/internaltest/4700978781087552506

- the error log can now be viewed via the action bar in the Locate Server activity

Was having a few intermittent issues with thè 'Server not found' error and this version fixed it!
Freddy

FYI - I had to FORCE STOP and uninstall older version and then install v1.1 before all was ok, as just installing new version over old version still displayed the 'Server not found' error.
Hope this helps!
Title: Re: Wifi android device synching
Post by: Joker73R on July 26, 2019, 05:00:04 PM
Joker73R, have you tried this?

v1.1 on the alpha channel
https://play.google.com/apps/internaltest/4700978781087552506

- the error log can now be viewed via the action bar in the Locate Server activity

Was having a few intermittent issues with thè 'Server not found' error and this version fixed it!
Freddy

FYI - I had to FORCE STOP and uninstall older version and then install v1.1 before all was ok, as just installing new version over old version still displayed the 'Server not found' error.
Hope this helps!

I'm unable to sign up for the alpha version. It says I haven't received any invitation at all.
Title: Re: Wifi android device synching
Post by: phred on July 26, 2019, 05:43:35 PM
I'm unable to sign up for the alpha version. It says I haven't received any invitation at all.
You need to PM Steven with your gmail address.
Title: Re: Wifi android device synching
Post by: Joker73R on July 26, 2019, 05:47:45 PM
I'm unable to sign up for the alpha version. It says I haven't received any invitation at all.
You need to PM Steven with your gmail address.

Done, thanks!
Title: Re: Wifi android device synching
Post by: Joker73R on July 26, 2019, 06:21:50 PM
After testing 1.1.2 alpha version I still get this screen when trying to sync with MusicBee on Windows via WiFi.

(https://i.imgur.com/cCUnZ5h.jpg)

And I get this error log:

(https://i.imgur.com/34D3KOY.jpg)
Title: Re: Wifi android device synching
Post by: phred on July 26, 2019, 06:55:11 PM
This is probably the problem. In the second and fourth lines of your error log screen shot, the IP is showing as "192.168.1." You're missing a complete IP. There should be a fourth group of numbers at the end.
Title: Re: Wifi android device synching
Post by: Joker73R on July 26, 2019, 07:46:46 PM
This is probably the problem. In the second and fourth lines of your error log screen shot, the IP is showing as "192.168.1." You're missing a complete IP. There should be a fourth group of numbers at the end.

That's weird because I didn't change anything neither on the program nor the app. Is there anything I can do to solve this issue?
Title: Re: Wifi android device synching
Post by: StephDesire on July 26, 2019, 09:04:58 PM
Hi Steven,

I have a Fiio M6 with the last update, I'm happy to freshly use Poweramp but I need so much the reverse syncing for the playcounts.

Can you create for me and for every Fiio users a custom version of your app with a different package name (pick a name of this white list : https://www.fiio.com/newsinfo/275335.html)?

This is the only way for us to test your app..

Thanks in advance.


Stéphane
Title: Re: Wifi android device synching
Post by: Steven on July 26, 2019, 09:36:55 PM
This is probably the problem. In the second and fourth lines of your error log screen shot, the IP is showing as "192.168.1." You're missing a complete IP. There should be a fourth group of numbers at the end.

That's weird because I didn't change anything neither on the program nor the app. Is there anything I can do to solve this issue?
No, that looks ok - its searching the 192.168.1 subnet.
So there are no errors logged. Is your computer on the same subnet?
If you search this thread, i recall someone saying they had to switch off one of the bands on a dual-band wifi for it to work. Also check psychoadept's posts as he also had some weird windows behaviour that needed to be corrected
Title: Re: Wifi android device synching
Post by: phred on July 26, 2019, 10:59:33 PM
I have a Fiio M6 with the last update, I'm happy to freshly use Poweramp but I need so much the reverse syncing for the playcounts.

Can you create for me and for every Fiio users a custom version of your app with a different package name (pick a name of this white list : https://www.fiio.com/newsinfo/275335.html)?
Your link goes to a 404 error and then to a generic FiiO home page.

If the M6 is a DAP that has an Android mode and WiFi then you should be able to test MB and its WiFi sync right now. That's what I did with my X5.

And do you realize MB is a one-person operation? And Steven is that one person, who works on MB as a hobby in his spare time, for no financial compensation. I don't speak for Steven, but personally I think it's rather rude to ask him to create a special version. Especially for what is likely a very small number of users.
Title: Re: Wifi android device synching
Post by: SkyZippr on July 27, 2019, 01:18:17 AM
Fiio M series run a highly customized version of Android and does not come with Play Store. Only the apps in the whitelist can be installed.
I'm surprised to see Poweramp in the list btw.

StephDesire, if I remember correctly, some people managed to install apps that are not whitelisted by manually renaming the apk.
You may have to do a little googling to find out the exact way to do so.
Title: Re: Wifi android device synching
Post by: StephDesire on July 27, 2019, 02:49:40 AM
I didn't want to be rude and I do realize his work, 2 months ago I didn't know anything about MusicBee and I think this is absolutely amazing, it's worth millions to my eyes.

I would like to see a team with him, it could be amazing as a start up that develops modern software and hardware.


Yes I already install apps by renaming myself the package name, but I'm not a developer and mostly it doesn't work for different reasons, but I will definitely test for his app.

Thanks for your feedback, I excepted simply "no"
Title: Re: Wifi android device synching
Post by: Joker73R on July 27, 2019, 08:04:43 AM
This is probably the problem. In the second and fourth lines of your error log screen shot, the IP is showing as "192.168.1." You're missing a complete IP. There should be a fourth group of numbers at the end.

That's weird because I didn't change anything neither on the program nor the app. Is there anything I can do to solve this issue?
No, that looks ok - its searching the 192.168.1 subnet.
So there are no errors logged. Is your computer on the same subnet?
If you search this thread, i recall someone saying they had to switch off one of the bands on a dual-band wifi for it to work. Also check psychoadept's posts as he also had some weird windows behaviour that needed to be corrected

Nothing has changed neither on my WiFi network, nor on my firewall, nor on my music library, nor on my MusicBee settings. The only thing that changed is that I've swtiched to an OnePlus 6T with Android 9 phone from a 8.1 one and, even though I follow the steps on the app (first run a wired wync), I still get this error.
Title: Re: Wifi android device synching
Post by: Steven on July 27, 2019, 08:43:05 AM
Nothing has changed neither on my WiFi network, nor on my firewall, nor on my music library, nor on my MusicBee settings. The only thing that changed is that I've swtiched to an OnePlus 6T with Android 9 phone from a 8.1 one and, even though I follow the steps on the app (first run a wired wync), I still get this error.
I wont be able to help further. I use Android 9 myself, so its not directly to do with that
Title: Re: Wifi android device synching
Post by: Joker73R on July 27, 2019, 12:02:37 PM
Nothing has changed neither on my WiFi network, nor on my firewall, nor on my music library, nor on my MusicBee settings. The only thing that changed is that I've swtiched to an OnePlus 6T with Android 9 phone from a 8.1 one and, even though I follow the steps on the app (first run a wired wync), I still get this error.
I wont be able to help further. I use Android 9 myself, so its not directly to do with that

Finally I solved it by deleting the program from the firewall and adding it back again. Thanks for the patience.
Title: Re: Wifi android device synching
Post by: JCS on July 29, 2019, 12:14:40 AM
Hi,
Thanks for MB and for this wi-fy sync feature.
When trying "Locate Server" I get the message: Music Bee can't match the device name to an existing configuration. Enter the device name that is displayed in MusicBee:"
Issue being that I can't see the device in MusicBee... (Android HTC 10 device) :(
Would you be so nice as ti try to help me with this, please?
TY
Title: Re: Wifi android device synching
Post by: phred on July 29, 2019, 04:32:51 AM

When trying "Locate Server" I get the message: Music Bee can't match the device name to an existing configuration. Enter the device name that is displayed in MusicBee:"
Have you tried a wired sync first per Steven's instructions? You shouldn't need to actually do the sync - just the preview. But wired. Once the preview is finished, try the WiFi sync.
Title: Re: Wifi android device synching
Post by: phoresy on July 30, 2019, 06:28:23 AM
I signed up as a beta tester and have been testing Wifi syncing with MusicBee and GoneMad. Last week I had syncing working well. I did the initial sync and was able to test changes from MusicBee to GoneMad successfully.

Today I cannot get the WIFI app working, I am getting the following error message:

Server not found. Ensure MusicBee is running and Window firewall is not blocking MusicBee.

1. I have turned windows firewall off to troubleshoot.
2. I have verified 'Enable Wifi transfer with Android devices' is still checked in settings.
3. Both the phone and computer are on the same SSID and subnet. Nothing has changed network wise:
    gateway 192.168.1.1
    computer: 192.168.1.10
    phone: 192.168.1.11

I am using the following:
- Android App: MusicBee Wifi Sync version 0.9 from the play store, June 20, 2019
- Windows App: MusicBee 3.3.7141 P
- Phone: Samsung Galaxy S9+
- Phone Software: Android 9, Security patch level: July 1, 2019

The only difference I can think of is that the phone got the latest Android July 1 patch last night. I have not been able to get the app working since then. The error comes up even before I can press the Preview or Sync Now buttons.

I am also using the MusicBee Remote app which has always worked well and continues to work after the Android software update.
Title: Re: Wifi android device synching
Post by: phred on July 30, 2019, 10:51:18 AM
- Android App: MusicBee Wifi Sync version 0.9 from the play store, June 20, 2019
Current version is at least 1.1
Steven has made some fixes which may include your issue.
Title: Re: Wifi android device synching
Post by: phoresy on July 30, 2019, 05:25:18 PM
How can I get the latest version? I used the link from this post:

https://play.google.com/apps/testing/com.getmusicbee.musicbeewifisync

and the webpage says:

Welcome to the testing program.
You are a tester.

but 0.9 is the only version I get from the playstore. I tried uninstalling and reinstalling a few times.
Title: Re: Wifi android device synching
Post by: Steven on July 30, 2019, 05:49:52 PM
0.9 on the beta is the same as 1.0 on the production. There is a more recent version on the alpha channel that includes some extra error logging but you would need to send me your gmail store account

But first try clearing the application data for the app and re-running it
Title: Re: Wifi android device synching
Post by: Babydoll32 on July 30, 2019, 06:24:00 PM
I signed up as a beta tester and have been testing Wifi syncing with MusicBee and GoneMad. Last week I had syncing working well. I did the initial sync and was able to test changes from MusicBee to GoneMad successfully.

Today I cannot get the WIFI app working, I am getting the following error message:

Server not found. Ensure MusicBee is running and Window firewall is not blocking MusicBee.

Take a look at your Wi-Fi settings. Maybe one device is running with 2,4GHz and other device with 5GHz. I think I remember, that another user had this issue. And I mean, that I had same problem a few weeks before. Try to set both devices to 2,4 or 5GHz.
Title: Re: Wifi android device synching
Post by: phoresy on July 30, 2019, 09:33:08 PM
Okay, I followed Steven's advice. I cleared the application data for the app and re-ran the app and this worked. One thing I just learned- uninstalling an Android app doesn't appear to clear the all app data. I thought uninstalling an Android app deleted all associated data. Before this, I uninstalled and reinstalled a few times and noticed that the error log still had entries from last week even after uninstalling and reinstalling.

So I think what happened is my WIFI router is a DHCP server and is configured for 1 week leases (I don't have access to it but this is my guess). The IP address on either the phone or computer changed but perhaps the app was still looking for the old address? When I looked at the old log there were entries referencing the old address of 192.168.1.13 and the current computer address was 192.168.1.10. Clearing the data worked.

Next, I tried a Reverse Sync to computer. Here is the test:

1. I rated a track in GoneMad.
2. I exported a stats.xml file using the 'Backup Stats function' (going to : gmmp\stats.xml).
3. I opened the stats.xml file on my computer and verified that the song I rated is there:

<File>
<Uri>/storage/9C33-6BBD/.../Song.mp3</Uri>
<Rating>1.0</Rating>
<Playcount>0</Playcount>
<LastPlayed>0</LastPlayed>
<DateAdded>1563758947089</DateAdded>
</File>
4. I verified that MusicBee does not have this track rated in the database.

Result: It takes a while as it scans though the files but it returns "No changes detected".

Looking in the wifi sync log, I can see it setting up the paths correctly, it counts the correct number of files, communicates with the server, ratings=true, etc. I don't see any errors.

On the other hand, when I do the reverse test- 'Sync from computer' it is very reliable and seems to always work as expected, all tracks that were rated or played in MusicBee are copied over to the phone. I have tested this several times and it always seems to work.

Is the Reverse Sync to computer working yet? This last function is like the holy grail for me. I have been missing this feature since I abandoned itunes and my 3rd gen ipod 8 years ago. This is an exciting project. Thank you Steven for your awesome software development efforts.
Title: Re: Wifi android device synching
Post by: Steven on July 30, 2019, 09:54:08 PM
The app does automatically re-attempt locating the musicbee computer if it fails. There is something odd going on with android upgrades as i once had the same issue and could only solve by clearing the app data.

see my notes earlier in the thread re: handling for the initial reverse sync
Title: Re: Wifi android device synching
Post by: phoresy on July 31, 2019, 12:58:44 AM
Quote
see my notes earlier in the thread re: handling for the initial reverse sync

I think the initial sync might be done because I am able to successfully sync the playcounts back to musicbee. The error log has the correct number of tracks and I do not see any errors in the log or when I click preview. For example I can do this:

1. Play a track in MusicBee
2. In MusicBee Wifi Sync, I select playcounts from GoneMad.
3. If I click Preview it detects the track I just played- "Update Playcount +1 play, last played -> 7/30/2019".
4. Click Sync Now and I get "MusicBee syncronization successfully completed".
5. In MusicBee I can confirm that playcount value has been updated.
6. If I go back and click Preview again it tells me - No changes detected which would be correct.

Does this test indicate that my initial reverse sync is setup correctly? If so then then I will try to repeat my test to reverse the ratings.
Title: Re: Wifi android device synching
Post by: TeutonJon78 on August 01, 2019, 06:23:40 AM
0.9 on the beta is the same as 1.0 on the production. There is a more recent version on the alpha channel that includes some extra error logging but you would need to send me your gmail store account

But first try clearing the application data for the app and re-running it

So, the beta channel is running an older version than the released channel and the alpha channel is running a new one?
Title: Re: Wifi android device synching
Post by: JCS on August 01, 2019, 09:02:48 PM

When trying "Locate Server" I get the message: Music Bee can't match the device name to an existing configuration. Enter the device name that is displayed in MusicBee:"
Have you tried a wired sync first per Steven's instructions? You shouldn't need to actually do the sync - just the preview. But wired. Once the preview is finished, try the WiFi sync.

Thank you for your help.
I'm not quite sure what I was missing but have just repeated the sequence and it worked out fine.

Title: Re: Wifi android device synching
Post by: phred on August 02, 2019, 03:09:37 AM
I'm not quite sure what I was missing but have just repeated the sequence and it worked out fine.
Glad to hear you've got it working.
Title: Re: Wifi android device synching
Post by: phred on August 04, 2019, 11:04:46 PM
@Steven...

Since I made a good number of changes to my tracks, I decided to wipe my 512gb card clean and do a wired sync.

According to the sync window, at file 766 of 28,189 the sync halted with this notation in the status bar of MB:
(http://i.imgur.com/e3i0SErl.jpg) (https://i.imgur.com/e3i0SEr.jpg)
In case the image is difficult to read, "Synchronization has temporarily stalled for 2-5 minutes while the device processes current file operations. For the next sync, moving the Playlists folder to Music\Playlist in the setting tab will help."

I've always had the Playlists folder off the root of the card. Same as I have always had the Music folder at the root of the card.
This message implies I should change it to Music\Playlists. Does this really make a difference?

Meanwhile the sync has not restarted after 15 minutes.
Title: Re: Wifi android device synching
Post by: phred on August 05, 2019, 01:33:46 PM
Update to previous issue...

I moved the Playlists directory to be a sub of Music and ran into the same error. I finally pulled the card from the phone and performed a sync directly to the card in the PC.

The card is now back in the V20 and when I add one track to my library, the preview shows that all all 28k tracks need to be copied, which simply isn't correct. I really don't want to have to pull the card every time I need to sync.

Suggestions?
Title: Re: Wifi android device synching
Post by: Steven on August 05, 2019, 06:00:30 PM
Its an informational message not an error - for wired sync there isnt anything i can do about the stalling and i might change the message about moving the playlists as i later found it doesnt really make any difference
If 28K tracks need to be copied that probably means the file date/time was not set by your other copy method.
Wifi Sync shouldnt have the stalling issue
Title: Re: Wifi android device synching
Post by: phred on August 05, 2019, 07:56:48 PM
Its an informational message not an error - for wired sync there isnt anything i can do about the stalling and i might change the message about moving the playlists as i later found it doesnt really make any difference
If 28K tracks need to be copied that probably means the file date/time was not set by your other copy method.
Wifi Sync shouldnt have the stalling issue
Thanks Steven. I did reluctantly moved the Playlists folder to be under Music, and after a sync directly to the card in the PC, it completed successfully. I put the card back in the phone and a wired preview showed only the playlists, which was correct. I added a CD, did a WiFi sync and everything appears to be working as expected.

I think changing the informational message is a good idea. And maybe not making it red. The red made me think it was a BIG error.
Title: Re: Wifi android device synching
Post by: Steven on August 11, 2019, 09:27:32 AM
for the record, there was a bug with wired sync when switching between internal memory and an sd card in the device settings wasnt being immediately recognised ie. you would have needed to restart MB for the switch to take effect, and could be one reason people saw unexpected resync of files.
Thats fixed in the patch version and i will update the pending full release build later
Title: Re: Wifi android device synching
Post by: Cloudrider on August 20, 2019, 02:29:18 PM
Hi Steve,

Apologies if this is answered elsewhere, I couldn't find anything.
I created a new playlist on my Android and hoped to do a reverse wifi sync to my PC, of that Playlist, but the option is greyed out. Can you advise please?

Cracking software btw. Really brilliant  ;)

Nige
Title: Re: Wifi android device synching
Post by: phred on August 20, 2019, 09:23:40 PM
I created a new playlist on my Android and hoped to do a reverse wifi sync to my PC, of that Playlist, but the option is greyed out. Can you advise please?
Have you been able to reverse sync before?
Have you done a wired sync first?
Version of MB please? Version of WiFi Sync app please?
Are you using PowerAmp or GoneMad on the Android? Those are It is the only two apps app that can reverse sync playlists with MB.

See Steven's comments below.
Title: Re: Wifi android device synching
Post by: Steven on August 20, 2019, 09:34:09 PM
for reverse playlist sync, only GoneMad is supported
Title: Re: Wifi android device synching
Post by: phred on August 20, 2019, 10:01:36 PM
for reverse playlist sync, only GoneMad is supported
Thanks for the correction, Steven. I have corrected my initial statement.
Title: Re: Wifi android device synching
Post by: Steven on August 20, 2019, 10:03:46 PM
you were mostly right the first time - the app can also reverse sync ratings and playcounts from PowerAmp, but not playlists
For Gonemad all are supported
Title: Re: Wifi android device synching
Post by: SkyZippr on August 21, 2019, 01:12:08 PM
The app does automatically re-attempt locating the musicbee computer if it fails. There is something odd going on with android upgrades as i once had the same issue and could only solve by clearing the app data.

see my notes earlier in the thread re: handling for the initial reverse sync

Hi Steve, I'm afraid that I'm running into this issue again. I used to set my PC on static IP and the Wifi sync ran with no problem, but today it seems someone in the mansion occupied that IP by DHCP. So I had to set my PC to DHCP as well in order to get internet connection. Then Wifi app started to display "Server not found" error again.
I know that clearing the app data might solve the issue, but before doing so I need to check one thing: is it normal that no error log is recorded for this occasion?

Also, I'm ashamed to say that I couldn't find your "notes earlier in the thread re: handling for the initial reverse sync". Can you point me where it is, if it's related to the issue I'm having?
Title: Re: Wifi android device synching
Post by: Babydoll32 on August 24, 2019, 10:59:26 AM
Hi, Steven. I don't want to annoy you, but anything new bout syncing with GoneMad 3 and skip count?
Title: Re: Wifi android device synching
Post by: phred on August 24, 2019, 01:14:51 PM
Hi, Steven. I don't want to annoy you, but anything new bout syncing with GoneMad 3 and skip count?
GMMP isn't even out of Alpha at this point. Which I'm sure you know. So I wouldn't expect Steven to do anything about it until it is closer to a real release. Besides, Steven is currently working on MB 3.4, which I would think has a higher priority due to a larger number of users.
Title: Re: Wifi android device synching
Post by: tanstaafl on August 26, 2019, 12:19:55 AM
I upgraded to from MB 3.3.7162 MB 3.3.7165 and now I can't WiFi sync it all. The Android app tells me it can't find the MB server. WiFi sync is enabled in MB preferences. I rebooted my PC, rebooted my phone, disabled my firewall. I did a manual USB sync. The Android app cannot locate the server.
Title: Re: Wifi android device synching
Post by: phred on August 26, 2019, 01:14:00 AM
If you go back to .7162 does the sync work?
Title: Re: Wifi android device synching
Post by: tanstaafl on August 26, 2019, 01:34:11 AM
If you go back to .7162 does the sync work?

How do I do that?
Title: Re: Wifi android device synching
Post by: phred on August 26, 2019, 02:38:34 AM
How did you update from .7162 to .7165?

You would get the patch that contains .7162 and unzip it and overwrite the existing files. If there's no change you can either leave it or update to the current patch.

I try to keep an archive of every patch I download and I just checked - and I don't have .7162, so I guess you can't try it. Sorry.
Title: Re: Wifi android device synching
Post by: tanstaafl on August 26, 2019, 02:52:37 AM
I downloaded 3.3.7162 installer a week or so ago, and then the 3.3.7165 installer this weekend, from the download page.

If there any way to diagnose the problem? All I get is "Server not found. Ensure MusicBee is running and Windows firewall is not blocking MusicBee" from the Android app.

Hmmm. It just dawned on me to try nuking all data for the MusicBee app (not just cache). That seems to have made it connect again.

It didn't fix the problem of being unable to reverse-sync from GMMP (see my other thread).
Title: Re: Wifi android device synching
Post by: phred on August 26, 2019, 12:28:24 PM
If there any way to diagnose the problem? All I get is "Server not found. Ensure MusicBee is running and Windows firewall is not blocking MusicBee" from the Android app.
This issue has come up before, so I suggest reading this current thread - probably go back about 15 pages or so - and if you can't find it search the entire forum using the term "server not found"
Title: Re: Wifi android device synching
Post by: viktorrko on September 05, 2019, 01:20:50 PM
Really nice feature, I personally use BlackPlayerEX with it's custom library.
Title: Re: Wifi android device synching
Post by: christmw2503 on September 06, 2019, 09:47:28 AM
I upgraded to from MB 3.3.7162 MB 3.3.7165 and now I can't WiFi sync it all. The Android app tells me it can't find the MB server. WiFi sync is enabled in MB preferences. I rebooted my PC, rebooted my phone, disabled my firewall. I did a manual USB sync. The Android app cannot locate the server.

I'm having a similar issue. I'm on 7162. I'm suspecting a firewall related issue.
I'm using a temporary fix by: 1. Saving Musicbee snapshot. 2. Uninstall Musicbee (on PC). 3. Reset the Android sync app 4. Reinstall Musicbee and do wired sync using cable (Not necessary to finish the sync). 5. Go to settings/device and enable wifi sync. 6. Reboot the PC 7. Upon reboot, Windows firewall will prompt you to add Musicbee. 8. Do a wifi sync with the Android app. Syncing should now work. 9. Now restore the snapshot and do another sync and it'll still work.
Title: Re: Wifi android device synching
Post by: Steven on September 07, 2019, 10:36:14 AM
I believe clearing the app settings can also solve this type of issue, but I have no idea why it would matter
Title: Re: Wifi android device synching
Post by: chrisdivine on September 10, 2019, 08:24:58 AM
I have troubles with the app, too, when I try to re-setup the connection after a crash. Please tell me how to clean and complete deinstall the app! ThanX!!
Title: Re: Wifi android device synching
Post by: phred on September 10, 2019, 11:31:15 AM
From your device's setttings go to apps then MB then clear data then uninstall
Title: Re: Wifi android device synching
Post by: chrisdivine on September 10, 2019, 04:37:27 PM
From your device's setttings go to apps then MB then clear data then uninstall
phred, thanks, I did so. But after reinstalling I didn´t get the "Locate Server" message and every attempt to sync failed.
Title: Re: Wifi android device synching
Post by: Steven on September 10, 2019, 05:54:11 PM
if you dont see the Locate button then the app settings were not cleared
Title: Re: Wifi android device synching
Post by: Babydoll32 on September 14, 2019, 10:58:21 AM
Hi Steven,
I got a little issue. Not a big thing, but maybe interesting. Yesterday or day before, I don't know exactly, I listened to a song. After syncing, last played shows year 1972. But I don't believe that I listened in 1972  ;D It's the second time, that this happened. Happened a few weeks before with another song. Stats.xml shows <LastPlayed>1568399940373</LastPlayed>.

(https://i.ibb.co/c3sGFFr/001.jpg)
Title: Re: Wifi android device synching
Post by: Babydoll32 on September 17, 2019, 12:15:14 PM
Got another one with wrong date. Played today.
(https://i.ibb.co/3rxVQcp/002.jpg)
Title: Re: Wifi android device synching
Post by: Freddy Barker on September 17, 2019, 01:05:35 PM
Got another one with wrong date. Played today.
https://i.ibb.co/3rxVQcp/002.jpg

That is odd!?
That is the date that computer chip clocks start from when calculating the current date and time.
Can't see it being an issue with MB as it must get that info from your PC's system clock...

However, from you previous post

<LastPlayed>1568399940373</LastPlayed>.

...is the number of seconds since 1st Jan 1970 and, when you played that track.

Regards: Freddy
Title: Re: Wifi android device synching
Post by: Babydoll32 on September 17, 2019, 01:16:45 PM
Got another one with wrong date. Played today.
https://i.ibb.co/3rxVQcp/002.jpg

That is the date that computer chip clocks start from when calculating the current date and time.
Can't see it being an issue with MB as it must get that info from your PC's system clock...


Thanks for answer. Any Idea how to fix it?
Title: Re: Wifi android device synching
Post by: Freddy Barker on September 17, 2019, 01:31:39 PM
Thanks for answer. Any Idea how to fix it?

Probably best to see if it's something Steven needs to look at later, as may want to do test(s).
Freddy
Title: Re: Wifi android device synching
Post by: Steven on September 17, 2019, 03:19:22 PM
The number is 1000 x too large ie. it appears to be milliseconds rather than seconds. I suggest you check with the GoneMad developer if he has changed anything intentionally
Title: Re: Wifi android device synching
Post by: SkyZippr on September 17, 2019, 11:12:52 PM
My GoneMad is working fine. Which version are you using?
Title: Re: Wifi android device synching
Post by: Babydoll32 on September 18, 2019, 08:02:41 AM
My GoneMad is working fine. Which version are you using?

Mine works also fine, but from time to time, some songs have wrong last played date.
I'm using GoneMad 2.2.21.
Title: Re: Wifi android device synching
Post by: Babydoll32 on September 18, 2019, 02:59:51 PM
The number is 1000 x too large ie. it appears to be milliseconds rather than seconds. I suggest you check with the GoneMad developer if he has changed anything intentionally

Hi Steven.
Did it and get this answer by GoneMad dev.

Quote
That date is the equivalent to 0 in "computer time" which is the default value in gmmp for songs not ever played. Musicbee should be ignoring 0s for last played when syncing

edit: looking further, when updating the last played time its using the current time

values.put(DBConstants.TRACK_LAST_PLAYED, new Date().getTime());
The other call that updates the field in the database wont update it back to 0 either:

if (lastPlayed != 0)
    values.put(DBConstants.TRACK_LAST_PLAYED, lastPlayed);
So the only way it could be 0 in the database would be if was never played. I dont speak what appears to be german, so i dont know all the fields in that screenshot.. but im guessing the column with all the 1s is playcount? I guess theoretically the playcount could have been synced back to gmmp with a 0 last played, so the restore updated the playcount but not the last played.

If you can find a way to reproduce this i can certainly look into it more
Title: Re: Wifi android device synching
Post by: Steven on September 18, 2019, 06:13:16 PM
what does any of this have to do with:
The number is 1000 x too large ie. it appears to be milliseconds rather than seconds. I suggest you check with the GoneMad developer if he has changed anything intentionally
the example you provided from the GoneMad stats.xml <LastPlayed>1568399940373</LastPlayed> must be milliseconds and not seconds ie. if its divided by 1000 a sensible date is derived. Normally the GoneMad values are expressed as seconds. Because the value is in milliseconds it is overflowing when converted to a windows date/time so you get stupid values for the date
Title: Re: Wifi android device synching
Post by: Babydoll32 on September 20, 2019, 08:05:53 AM
Normally the GoneMad values are expressed as seconds. Because the value is in milliseconds it is overflowing when converted to a windows date/time so you get stupid values for the date

That's what GoneMad dev wrote Back:
Quote
correct, gmmp stores anything time related in milliseconds since that works best with the java Date class:

https://docs.oracle.com/javase/8/docs/api/java/util/Date.html#Date-long-

https://docs.oracle.com/javase/8/docs/api/java/util/Date.html#setTime-long-

https://docs.oracle.com/javase/8/docs/api/java/util/Date.html#getTime--

edit: lastPlayed, dateAdded, and dateUpdated(gmmp 3.0 alpha) are all in milliseconds. I think thats the only time related fields that backup/restore deal with
Title: Re: Wifi android device synching
Post by: Steven on September 20, 2019, 08:22:26 AM
the point is usually the timestamps are expressed as seconds from 1970 but in some cases they are being expressed as milliseconds from 1970
Title: Re: Wifi android device synching
Post by: Babydoll32 on September 20, 2019, 08:55:06 AM
the point is usually the timestamps are expressed as seconds from 1970 but in some cases they are being expressed as milliseconds from 1970

Yes. Seems so. But not a big thing, like I said, as long as playcount syncs correctly. Thanks for good work!
Title: Re: Wifi android device synching
Post by: vpsaxman on September 25, 2019, 05:02:50 AM
I'm getting some "Files not matched in MusicBee. Playcount not changed" errors when I try sync them from within the Android app recently.


- MusicBee version 3.3.7165
- MusicBee Wifi Sync version 0.9
- Android 10 on a Pixel 3
- Poweramp version 3 Build 841

I've tried deleting the Android app and re-synching to no avail. How can I further investigate what's causing the issue? Thanks!
Title: Re: Wifi android device synching
Post by: splatt on October 19, 2019, 05:11:52 AM
I'm not sure if it's too late to say this, or if this is still the right place but I know that there's a number of people using an Android app called Black Player (and Black Player Ex) by FifthSource that use musicbee on their computers -- enough that the developers have been trying to make changes to the playlist formats to make syncing easier for musicbee.

Also, BlackPlayer has a free version, whereas the current options seem to only have free trials. (Not trying to say we shouldn't pay for apps, but it seemed like it might be something to consider).
Title: Re: Wifi android device synching
Post by: Phil Lloyd on November 20, 2019, 03:33:38 AM
I'm getting some "Files not matched in MusicBee. Playcount not changed" errors when I try sync them from within the Android app recently.


- MusicBee version 3.3.7165
- MusicBee Wifi Sync version 0.9
- Android 10 on a Pixel 3
- Poweramp version 3 Build 841

I've tried deleting the Android app and re-synching to no avail. How can I further investigate what's causing the issue? Thanks!

I got the error warnings, but the files are there ok - have not checked the actual playcounts.

- MusicBee version 3.3.7149P (older)
- MusicBee Wifi Sync version 0.9 (same)
- Android 8.0.0 on Moto Z2 Play  (older)
- PowerAmp 3 Version 3 build 853 (newer)

But if I just sync my playlists I get no error.
Playlists are found and play in PowerAmp fine, too.
Title: Re: Wifi android device synching
Post by: psychoadept on November 20, 2019, 04:58:01 AM
I'm getting some "Files not matched in MusicBee. Playcount not changed" errors when I try sync them from within the Android app recently.

I'm getting this message, too, and I don't think the file paths have changed in MusicBee or anything like that. It's ~30 tracks out of probably <300 that have played since my last sync so it's a pretty big percentage. Maybe we could get a list of tracks that didn't sync correctly that we can save as a text file at the end?
Title: Re: Wifi android device synching
Post by: Steven on November 20, 2019, 05:50:40 PM
reverse sync matches files using the expected filename that a MusicBee library file would expect to sync to on the device based on the naming template used.
If a file was renamed directly on the device; or a change was made to the naming tags on the MusicBee library side and that change didnt get synched for some reason then there will be unmatched files residing on the device that cant be matched to the MusicBee library
Title: Re: Wifi android device synching
Post by: psychoadept on November 20, 2019, 06:07:44 PM
Nothing should be changing on my device, MusicBee is the only program that changes those files. But digging deeper, I did find out that I had two extra profiles under "Devices", both with generic settings. I deleted those, hopefully that will help. (Not even sure how they were created in the first place!)
Title: Re: Wifi android device synching
Post by: SkyZippr on November 23, 2019, 03:06:37 AM
I had to do a fresh install of Wifi app, and it fails to locate the server.
I installed the Wifi app, did a wired sync, disconnected the phone from PC, then ran the Wifi app. The error log goes:
Quote
2019-11-23: MHA-L29; 9; 1.1.2
11:56:31: locate: search=10.165.1.
11:56:31: locate: exclude=228
My phone's IP is 10.165.1.229 and my PC is currently 10.165.2.98. Both are on DHCP so may change periodically, which I'm unable to control.
Are there any workaround?
Title: Re: Wifi android device synching
Post by: Steven on November 23, 2019, 06:06:43 PM
Are there any workaround?
I dont have enough knowledge of socket handling in network environments to help so you are probably best using another app.

Any developer reading this and wants to help, I am very happy to make the plugin code available
Title: Re: Wifi android device synching
Post by: SkyZippr on November 24, 2019, 12:07:54 AM
Steven, thank you for all the efforts. As a temporary solution, I'll probably wait a few days till both are on the same subnet.
Title: Re: Wifi android device synching
Post by: Steven on November 24, 2019, 11:19:40 AM
I dont have enough knowledge of socket handling in network environments to help so you are probably best using another app.

Any developer reading this and wants to help, I am very happy to make the plugin code available
I have added the Android app code to github

https://github.com/mayallst/MusicBeeWifiSync
Title: Re: Wifi android device synching
Post by: vpsaxman on November 29, 2019, 05:56:52 AM
Nothing should be changing on my device, MusicBee is the only program that changes those files. But digging deeper, I did find out that I had two extra profiles under "Devices", both with generic settings. I deleted those, hopefully that will help. (Not even sure how they were created in the first place!)


reverse sync matches files using the expected filename that a MusicBee library file would expect to sync to on the device based on the naming template used.
If a file was renamed directly on the device; or a change was made to the naming tags on the MusicBee library side and that change didnt get synched for some reason then there will be unmatched files residing on the device that cant be matched to the MusicBee library

Just like psychoadept said, nothing should be changed on the device. And the mismatch issues happen right after I finish syncing so it's not related to a change in musicbee either. Could it be related to the "Scoped storage" feature of Android 10? Filename length maybe?

I tried a few sync options including "preserve folders and filenames", no conversion, no artwork or lyrics embedding, and all of these at the same time to no avail. It seems like not all files are mismatched but I can't decipher a pattern.

Also @psychoadept: I too had duplicate profiles in Edit -> Edit preferences -> Devices but unfortunately deleting them did not fix the issue.
Title: Re: Wifi android device synching
Post by: Steven on December 01, 2019, 03:58:58 PM
could you both run this debug version and send me a zip of the error log file from musicbee itself after attempting a sync - it might be quite large

https://www.mediafire.com/file/v67ib99g10r4g27/MusicBeeDebugReverseSync.zip/file
unzip and replace musicbee.exe
Title: Wifi sync tags issue
Post by: Cameron on December 10, 2019, 06:35:25 PM
I am having an issue using wifi sync where new files are added without tags to my phone, but if I connect it via USB, remove the file and run the sync from my PC, the file transfers correctly, with tags. Is anyone else experiencing this issue?

Thanks

Cameron
Title: Re: Wifi android device synching
Post by: vpsaxman on December 11, 2019, 09:24:17 AM
could you both run this debug version and send me a zip of the error log file from musicbee itself after attempting a sync - it might be quite large

https://www.mediafire.com/file/v67ib99g10r4g27/MusicBeeDebugReverseSync.zip/file
unzip and replace musicbee.exe

Sent you a PM with the debug log. Sorry it took so long. Thanks!
Title: Re: Wifi android device synching
Post by: SkyZippr on December 19, 2019, 01:58:57 PM
I'm running Musicbee Wifi app on a SONY ZX507 (an Android DAP), and I'd get this error:
Quote
Unable to retrieve statistics from GoneMad player. The unlocked version of GoneMad is required, otherwise the the GoneMad error log.
I do have unlocked version of GoneMad, and there's nothing recorded on GoneMad's error log.

Strangely though, if I restart the device and immediately run Wifi app, it would sync normally.
I play music on flight mode when I'm out in order to save battery, then come home to connect to Wifi before attempting a sync. Not sure if this has anything to do with the error though...

It's more likely that the problem is on DAP's side, but in case anyone else is having the same problem (I remember seeing one in this thread), try again after restarting your device.
Title: Re: Wifi android device synching
Post by: Steven on December 23, 2019, 09:24:26 PM
I'm running Musicbee Wifi app on a SONY ZX507 (an Android DAP), and I'd get this error:
Quote
Unable to retrieve statistics from GoneMad player. The unlocked version of GoneMad is required, otherwise the the GoneMad error log.
I do have unlocked version of GoneMad, and there's nothing recorded on GoneMad's error log.
That error can occur when GoneMad fails to generate the stats.xml file. It can happen when one of the filenames has an invalid character in it. It has been reported to the GoneMad developer but he didnt seem to be interested to look into it further.
Title: Re: Wifi android device synching
Post by: Steven on December 24, 2019, 06:06:44 PM
Sent you a PM with the debug log. Sorry it took so long. Thanks!
In your case, some of the filesnames gonemad is returning include an extra "primary/" prefix and hence not matched in MB. Can you confirm you whether you have given me your google play email so you can be added to the alpha track for the android app and that you are happy to run a debug version so i can confirm what is going on
Title: Re: Wifi android device synching
Post by: SkyZippr on December 25, 2019, 02:09:57 PM
I'm running Musicbee Wifi app on a SONY ZX507 (an Android DAP), and I'd get this error:
Quote
Unable to retrieve statistics from GoneMad player. The unlocked version of GoneMad is required, otherwise the the GoneMad error log.
I do have unlocked version of GoneMad, and there's nothing recorded on GoneMad's error log.
That error can occur when GoneMad fails to generate the stats.xml file. It can happen when one of the filenames has an invalid character in it. It has been reported to the GoneMad developer but he didnt seem to be interested to look into it further.
Thanks Steven, but I think the issue I'm having is more complicated. The stats.xml file is indeed in the gmmp folder.
I've also noticed that, somehow GMMP is unable to read the tags of the files transferred via wifi sync, and they all show up as 'Unknown Artist' with empty tags. What's even stranger is, the stock player app of SONY ZX507 (aka Walkman app) reads the tags of those files without any problem. Files transferred via wired sync seem to be handled with no problem by both apps mentioned.
I suspect that maybe there are some hidden restriction of storage handling or something in SONY ZX507, although it's supposed to be pure Android unlike Fiio's. Maybe wifi app is unable to properly write something, or maybe GMMP is unable to properly read something.

I've never experienced anything like this with my smartphone, so I guess this is a device-specific issue. I'll try contacting SONY's customer support.
Title: Re: Wifi android device synching
Post by: HerrMerkt on December 30, 2019, 09:39:38 PM
In the last few days, I was unable to start MusicBee Wifi Sync on my Galaxy S10. That's a bit puzzling because Wifi Sync works on my Galaxy Tab without any problems. Are there any known issues with Wifi Sync and the Galaxy S10?

I have already deleted the profile of the Galaxy S10 in my MusicBee settings as well as the appdata on the Galaxy S10 several times. Nothing helped.

Some more information for troubleshooting:
- I want to sync to a micro SD card in the Galaxy S10 (400GB). I have tested syncing the files to the phone storage and this seemed to work. However, this is not an option because I do not have enough storage on the phone.
- When I want to start syncing in the app and hit the sync button, nothing happens. There is no error message or whatsoever; however, the syncing process doesn't start.
Title: Re: Wifi android device synching
Post by: phred on December 30, 2019, 09:55:51 PM
You don't state if this is the first time you're using WiFi Sync to the S10, but if it is, you need to one wired sync first. Not even a full sync, but complete a preview. Once that's done, try a WiFi Sync.
Title: Re: Wifi android device synching
Post by: HerrMerkt on December 30, 2019, 11:02:55 PM
I ran the wired sync twice. I still cannot hit the Preview or Sync Buttons in the app, if I want to sync to the SD card.
I have granted the app the necessary access to the SD card, of course.

Interestingly, Wifi Sync works with a Galaxy Tab A, using a SD card.

Another piece of information that may be interesting:
Wifi Sync on the S10 used to work until 1-2 weeks ago. Then, I deleted the profiles of the devices and recreated them, because there were some issues with the device names that I wanted to resolve. However, these deletions also coincided with a firmware update for the S10.
Title: Re: Wifi android device synching
Post by: vpsaxman on January 01, 2020, 10:26:49 PM
Sent you a PM with the debug log. Sorry it took so long. Thanks!
In your case, some of the filesnames gonemad is returning include an extra "primary/" prefix and hence not matched in MB. Can you confirm you whether you have given me your google play email so you can be added to the alpha track for the android app and that you are happy to run a debug version so i can confirm what is going on

Glad you found what was causing the error. FWIW, I'm using poweramp, not gonemad.

I have no issue running a debug version. I'll pm you my google play email. Thanks!
Title: Re: Wifi android device synching
Post by: Roger M on January 02, 2020, 12:43:33 PM
I am also trying to set up Wifi synching on a Samsung S10. Although I have selected SD card in the app, the S10 App settings do not give me the option of the SD card as storage for the App - is this the problem? I get no reaction on the "preview" or "synch" buttons. How do I run a wired synch?
Title: Re: Wifi android device synching
Post by: phred on January 02, 2020, 01:02:53 PM
How do I run a wired synch?
Preferences > Devices > [select device] > Configure > Settings
Once the wired preview successfully completes you should be able to do a WiFi sync.
Title: Re: Wifi android device synching
Post by: Roger M on January 02, 2020, 02:56:51 PM
Thanks phred, but maybe I asked the wrong question - how do I run a wired preview? I'm generally pretty good at "intuitive" operation, but I can't see this one!
Title: Re: Wifi android device synching
Post by: phred on January 02, 2020, 04:38:11 PM
how do I run a wired preview?
Once you've got the device configured as I stated previously, save the configuration and you should see the device under Devices in the left side panel. Select it and in the mail panel you'll see Synchronize and Preview. Click Preview
Title: Re: Wifi android device synching
Post by: Steven on January 03, 2020, 05:54:06 PM
@vpsaxman and psychoadept,
could you try this patch version of musicbee:
https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Wifi android device synching
Post by: psychoadept on January 04, 2020, 07:32:04 PM
I just tried it, so far so good. Will let you know if anything comes up.
Title: Re: Wifi android device synching
Post by: vpsaxman on January 05, 2020, 05:41:46 AM
@vpsaxman and psychoadept,
could you try this patch version of musicbee:
https://getmusicbee.com/patches/MusicBee33_Patched.zip

I just tried it, so far so good. Will let you know if anything comes up.

Same here!! Sync count is getting updated. No more mismatched tracks. If anything comes up I'll post here as well. Thanks!
Title: Re: Wifi android device synching
Post by: kid on January 07, 2020, 05:50:27 PM
Hi all,
I'm a little behind on you all, and I might have overlooked a part of the topic so forgive me if there is a solution in the previous 50 pages.
TL;DR. I keep getting the Server not found error.

I cant get wifi sync to work (reliably, or at all).
I have been trying for a while and on occasions it has worked;
So I've tried the latest release from the site (3.3.7261) and also the latest release from the forums (3.3.7310)
I have used the Android app in both the release channel and the beta channel. All of them no luck.

I had everything working a week before christmas, however after pressing sync in the app it started syncing my entire collection even though I already did a full sync over USB (its about 60gb worth of music). I reset the app on the phone and couldn't get a connection anymore after, no matter what I tried. Gave up, I hardly have any additions to my collection and the playcount sync is nice to have but not a dealbreaker.

Yesterday I got an upgrade to Android 10. Did a hard reset on my phone, and after setting it up from scratch I though, lets give it another try. I also formatted my SD card btw.
I ran the app and tried to connect, and I got the "you have to do a wired sync first" error. Great news! that means it can connect to MB at least!.
I plugged in the USB cable, did a wired sync (remeber, wiped the card) so another 60gb of music and about 2 hours later tried the sync app again;
Server not found.

So maybe my firewall changed itself? so I installed the MusicBee Remote plugin, and didn't change my firewall settings. Works like a charm.
So the remote app can connect fine, and the windows firewall allows any incoming connection to MB over both UDP and TCP.

What am I doing wrong?.

p.s. I cant seem to figure out how to get a log out of the android app.

I've asked steven to add me to the alpha, as that seems to be able to output a log before connecting to the server.
Title: Re: Wifi android device synching
Post by: Cameron on January 07, 2020, 05:58:37 PM
Just to update this slightly, I rolled back to the first Musicbee with wifi syncing (7056) and the same thing happens, however I have recently bought a new phone so I think this is probably causing the problem somehow.
Title: Re: Wifi android device synching
Post by: psychoadept on January 11, 2020, 05:21:35 AM
So this doesn't explain why I was getting duplicate phone profiles in one version of MusicBee, but I often run two instances lately, one the regular install and one a portable version that I use specifically to manage my NAS.  At one point I tried to start a sync and suddenly the phone was giving me a message about needing to do a wired sync first (this is while the phone was plugged into the computer). Well, of course, it was trying to sync to the portable version instead of the regular, where the profile already exists.  I don't know if there's anything you can do about that. I'll just have to close one while I start the sync if it gets confused, I guess.
Title: Re: Wifi android device synching
Post by: SkyZippr on January 12, 2020, 10:47:33 AM
EDIT: Wifi sync issue disappeared after restarting the device. Editing my original post since my reply would be on another page.


I was having issue with GMMP not automatically scanning the library, so I formatted my SD card to see if it would fix it. Not only did formatting not fix the GMMP issue, but also Wifi Sync app is acting weird now. When I hit preview button it lists my entire library that's already been synched to the SD card. Wired sync works just fine.
Here's Wifi Sync app's error log:
Quote
2020-01-12: NW-ZX500Series;  9;  1.1.2
19:32:07: startSync: preview=true,iteration=0
19:32:08: command: action=SYNC_START
19:32:08: tryStart: connecting /10.165.2.114, attempt=0
19:32:08: tryStart: connected
19:32:08: tryStart: hello=true,fromMB=true,custfiles=false,preview=true,dev=NW-ZX500Series,2
19:32:08: storage: path=/storage/A3D2-0D51,root=A3D2-0D51:,uri=content://com.android.externalstorage.documents/tree/A3D2-0D51%3A
19:32:08: syncDevice: root=/storage/A3D2-0D51,ignoreErrors=false,playlists=false,ratings=true,playcount=true
19:32:08: syncDevice: command=SendStats
19:32:10: syncDevice: command=ShowResults
19:32:10: syncDevice: command=GetFiles
19:32:10: getFiles: Get: Music/,url=/storage/A3D2-0D51/Music/, inc=true
19:32:10: getFiles: count=4
19:32:10: syncDevice: command=GetFiles
19:32:10: getFiles: Get: Podcasts/,url=/storage/A3D2-0D51/Podcasts/, inc=true
19:32:10: getFiles: count=0
19:32:10: syncDevice: command=GetFiles
19:32:10: getFiles: Get: Music/Playlists/,url=/storage/A3D2-0D51/Music/Playlists/, inc=false
19:32:10: getFiles: count=0
19:32:10: syncDevice: command=ShowPreviewResults
19:32:10: syncDevice: exit

And here's my device setting from MB (installed ver 3.3.7310):
(https://i.imgur.com/f2Ypf5Z.png)
Title: Re: Wifi android device synching
Post by: Steven on January 12, 2020, 11:16:11 AM
I was having issue with GMMP not automatically scanning the library, so I formatted my SD card to see if it would fix it. Not only did formatting not fix the GMMP issue, but also Wifi Sync app is acting weird now. When I hit preview button it lists my entire library that's already been synched to the SD card. Wired sync works just fine.
i wont be able to help
Title: Re: Wifi android device synching
Post by: kid on January 12, 2020, 01:18:53 PM
Ok, small update on my connection issues.

If I connect through USB while connected to WIFI, I can get the sync app to connect.
immediately after the USB sync completes the WIFI sync app connects.
However it does nothing after that. The SYNC NOW and PREVIEW buttons seem unresponsive, and there are no additional entries in the log.

Quote
2020-01-12: H9436;  10;  0.9
13:22:42: locate: search=10.0.0.
13:22:42: locate: exclude=11
13:22:44: locate: search=10.170.143.
13:22:44: locate: exclude=183
13:23:58: locate: search=10.0.0.
13:23:58: locate: exclude=11
13:23:58: ping: socket ok=/10.0.0.10
13:24:02: ping: hello=MusicBeeWifiSyncServer/1.0
13:24:02: ping: matched=/10.0.0.10,status=OK
13:24:02: locate: search=10.170.143.
13:24:02: locate: exclude=183
13:24:04: ping: socket ok=/10.0.0.10
13:24:04: ping: hello=MusicBeeWifiSyncServer/1.0
13:24:04: ping: matched=/10.0.0.10,status=OK

When I close the sync app, and restart it, I get the connection errors again, however I am now inside the app and the logs are available.

There are no new entries in the log, even though the app gives an error. Enabling debug logging results in the buttons not responding again. Force closing the app clears the debug logging flag, and the loop starts again.

Both the "beta" and the normal release path are at version 0.9, so I assume they are both the same.
Title: Re: Wifi android device synching
Post by: SkyZippr on January 12, 2020, 03:19:27 PM
I was having issue with GMMP not automatically scanning the library, so I formatted my SD card to see if it would fix it. Not only did formatting not fix the GMMP issue, but also Wifi Sync app is acting weird now. When I hit preview button it lists my entire library that's already been synched to the SD card. Wired sync works just fine.
i wont be able to help

This is really embarrassing because the Wifi sync issue disappeared after restarting the device. Since this reply would be on another page, I'm editing my original post to make it easier to trace.
Title: Re: Wifi android device synching
Post by: kid on January 13, 2020, 09:30:12 PM
Ok, small update on my connection issues.

If I connect through USB while connected to WIFI, I can get the sync app to connect.
immediately after the USB sync completes the WIFI sync app connects.
However it does nothing after that. The SYNC NOW and PREVIEW buttons seem unresponsive, and there are no additional entries in the log.

Quote
...

When I close the sync app, and restart it, I get the connection errors again, however I am now inside the app and the logs are available.

There are no new entries in the log, even though the app gives an error. Enabling debug logging results in the buttons not responding again. Force closing the app clears the debug logging flag, and the loop starts again.

Both the "beta" and the normal release path are at version 0.9, so I assume they are both the same.

Update; I just tried it with an old (chinese, offbrand, Umidigi) android 6.0.1 phone I have laying around, and it works like a charm.
Though maybe it was an Android 10 issue, so I begged my better half to hold her phone (Xiaomi) for a sec, and it works fine too.

Seems to be an issue with my Sony phone then? Any one else experiencing issues with Sony Xperia devices? (XZ2 or XZ3 in particular).

Edit: There seems to be a connection between the phone and MB, when I select playlist sync and I add a new playlist in MB it immediately shows up in the android app. But for some reason the sync or preview buttons are non-responsive.
I think there might be an issue with read/write rights on the phone? There have been some changes in Android 10, however since it works on the Xiaomi phone with A10 that doesn't explain it.

Any of you guys know how I can do some more diagnostic?
Here is what I found on "scoped storage" on android 10
https://developer.android.com/training/data-storage#scoped-storage (https://developer.android.com/training/data-storage#scoped-storage)
Title: Re: Wifi android device synching
Post by: Madmaxneo on January 16, 2020, 01:24:04 AM
Wifi Syncing has stopped entirely for me now. The "Sync Now" button is grayed out and does not do anything at all, neither does the "Preview" button. I started having this issue a few days ago but then this morning I got an update for my phone and had hopes itt would fix the issue with the wifi sync and the other issue I have, but it did not. I even restarted my phone a few times (to no success) hoping that would help resolve the issue. This is compounds on top of the other issue that none of my playlists sync anymore from MusicBee to my phone.
Title: Re: Wifi android device synching
Post by: kid on January 16, 2020, 06:04:58 PM
Wifi Syncing has stopped entirely for me now. The "Sync Now" button is grayed out and does not do anything at all, neither does the "Preview" button. I started having this issue a few days ago but then this morning I got an update for my phone and had hopes itt would fix the issue with the wifi sync and the other issue I have, but it did not. I even restarted my phone a few times (to no success) hoping that would help resolve the issue. This is compounds on top of the other issue that none of my playlists sync anymore from MusicBee to my phone.
Did you try to clear app data and setup sync again? Anything in the log?
What device are you using? android 10?
Title: Re: Wifi android device synching
Post by: Madmaxneo on January 17, 2020, 12:43:09 AM
Wifi Syncing has stopped entirely for me now. The "Sync Now" button is grayed out and does not do anything at all, neither does the "Preview" button. I started having this issue a few days ago but then this morning I got an update for my phone and had hopes itt would fix the issue with the wifi sync and the other issue I have, but it did not. I even restarted my phone a few times (to no success) hoping that would help resolve the issue. This is compounds on top of the other issue that none of my playlists sync anymore from MusicBee to my phone.
Did you try to clear app data and setup sync again? Anything in the log?
What device are you using? android 10?
Yes, that was one of the first things I tried. I have also uninstalled and reinstalled the wifi sync program on my phone a few times and the wifi sync still does not work at all on my phone.

I have a Galaxy Note 10 + and I am on Android version 10.
Title: Re: Wifi android device synching
Post by: frankz on January 17, 2020, 06:22:50 AM
Yes, Galaxy S10 and Android 10 here, and Wifi Sync recently started spectacularly failing for me too. This was weeks after the Android 10 update.  Now MB Wifi Sync acts like it can't access the SD card although permissions are granted and double-checked. Cleared data for the app to no effect, uninstalled the app rebooted the phone and reinstalled to no effect.  Deleted the device profile and recreated it to no effect.

Buttons are not even clickable in the app for me. I can press them all day and nothing happens. Only when I change to "Internal Storage," run a preview, and then go back to "SD Card" can I click anything. But then I get the errors like it has no access to the SD card.

This started mid-sync for me.  It partially sync'd, then the errors started and now I can't do anything.  I don't know if it's an Android issue or an issue with an overnight Windows update or what, but it worked one day and then not the next.

Back to wired sync for me.  It takes 45 minutes to scan, but at least it works.
Title: Re: Wifi android device synching
Post by: kid on January 17, 2020, 06:01:17 PM
Yes, Galaxy S10 and Android 10 here, and Wifi Sync recently started spectacularly failing for me too. This was weeks after the Android 10 update.  Now MB Wifi Sync acts like it can't access the SD card although permissions are granted and double-checked. Cleared data for the app to no effect, uninstalled the app rebooted the phone and reinstalled to no effect.  Deleted the device profile and recreated it to no effect.

Buttons are not even clickable in the app for me. I can press them all day and nothing happens. Only when I change to "Internal Storage," run a preview, and then go back to "SD Card" can I click anything. But then I get the errors like it has no access to the SD card.

This started mid-sync for me.  It partially sync'd, then the errors started and now I can't do anything.  I don't know if it's an Android issue or an issue with an overnight Windows update or what, but it worked one day and then not the next.

Back to wired sync for me.  It takes 45 minutes to scan, but at least it works.

just checked again after I read your post.
Cleared app storage, so I could start from a "blank slate".
Selected "internal storage" from the start (even though I have hardly any space left on internal and want to keep my music on SD).
BAM!

Worked like a charm. Didn't even do a wired sync or selected internal storage in MB on my PC, Just changed my sync settings from a configured device to include only the single playlist, did a preview and synced it to the internal storage with no problems

Cleared app storage again, started anew, selected "removable SD card", and preview/sync buttons stopped working again.
repeated steps to sync internal storage, worked again.
Tried back and forth about five times. Now going to see if it still works after rebooting PC and Phone

I'm willing to place a small bet there is some sort of issue with SD card acces in Android 10.

Edit: Confirm it still works like described above after rebooting several times and setting up the app. also reinstalling has the same effect as clearing app storage.
Reverse sync doesn't work due to the GMMP unlocked version error (even though I have it unlocked) but that seems like something else entirely so don't care bout that now at all.

I would like to carefully draw two conclusions;

1. I think the issue exists on the phone side of syncing. Nothing to do with network or MB on the desktop.
2. The issue only seems to manifest when syncing to SD card for me

I can vaguely find something about storage acces being a little bit different in Android 10, so that might also be something to look at, although I have several other old apps, some not updated for over a year, that can read/write to SD card just fine.
Title: Re: Wifi android device synching
Post by: Madmaxneo on January 17, 2020, 06:34:53 PM

just checked again after I read your post.
Cleared app storage, so I could start from a "blank slate".
Selected "internal storage" from the start (even though I have hardly any space left on internal and want to keep my music on SD).
BAM!

Worked like a charm. Didn't even do a wired sync or selected internal storage in MB on my PC, Just changed my sync settings from a configured device to include only the single playlist, did a preview and synced it to the internal storage with no problems

Cleared app storage again, started anew, selected "removable SD card", and preview/sync buttons stopped working again.
repeated steps to sync internal storage, worked again.
Tried back and forth about five times. Now going to see if it still works after rebooting PC and Phone

I'm willing to place a small bet there is some sort of issue with SD card acces in Android 10.

Edit: Confirm it still works like described above after rebooting several times and setting up the app. also reinstalling has the same effect as clearing app storage.
Reverse sync doesn't work due to the GMMP unlocked version error (even though I have it unlocked) but that seems like something else entirely so don't care bout that now at all.

I would like to carefully draw two conclusions;

1. I think the issue exists on the phone side of syncing. Nothing to do with network or MB on the desktop.
2. The issue only seems to manifest when syncing to SD card for me

I can vaguely find something about storage acces being a little bit different in Android 10, so that might also be something to look at, although I have several other old apps, some not updated for over a year, that can read/write to SD card just fine.
That makes sense. I do have a decent sized storage for my Note 10 + but I know in the future when I get a new phone I would rather just transfer my SD card then have to resync everything.... maybe they will figure out how to get this to work....
Title: Re: Wifi android device synching
Post by: HerrMerkt on January 19, 2020, 11:46:23 AM
I came to the same conclusion as Kid after trying everything to make Wifi Sync to SD work again. I hope that this issue can be fixed in the next version of the Android app. Cable sync is much slower for me.
Title: Re: Wifi android device synching
Post by: skeevesmith on January 22, 2020, 06:57:44 PM

just checked again after I read your post.
Cleared app storage, so I could start from a "blank slate".
Selected "internal storage" from the start (even though I have hardly any space left on internal and want to keep my music on SD).
BAM!

Worked like a charm. Didn't even do a wired sync or selected internal storage in MB on my PC, Just changed my sync settings from a configured device to include only the single playlist, did a preview and synced it to the internal storage with no problems

Cleared app storage again, started anew, selected "removable SD card", and preview/sync buttons stopped working again.
repeated steps to sync internal storage, worked again.
Tried back and forth about five times. Now going to see if it still works after rebooting PC and Phone

I'm willing to place a small bet there is some sort of issue with SD card acces in Android 10.

Edit: Confirm it still works like described above after rebooting several times and setting up the app. also reinstalling has the same effect as clearing app storage.
Reverse sync doesn't work due to the GMMP unlocked version error (even though I have it unlocked) but that seems like something else entirely so don't care bout that now at all.

I would like to carefully draw two conclusions;

1. I think the issue exists on the phone side of syncing. Nothing to do with network or MB on the desktop.
2. The issue only seems to manifest when syncing to SD card for me

I can vaguely find something about storage acces being a little bit different in Android 10, so that might also be something to look at, although I have several other old apps, some not updated for over a year, that can read/write to SD card just fine.
That makes sense. I do have a decent sized storage for my Note 10 + but I know in the future when I get a new phone I would rather just transfer my SD card then have to resync everything.... maybe they will figure out how to get this to work....


I have the same issue with my s10 / android 10 update.  Seems to be several large threads on reddit along the same subject:

https://www.reddit.com/r/galaxys10/comments/eakikd/cant_import_playlists_in_samsung_music_player/

Title: Re: Wifi android device synching
Post by: Madmaxneo on January 24, 2020, 02:11:59 AM


I have the same issue with my s10 / android 10 update.  Seems to be several large threads on reddit along the same subject:

https://www.reddit.com/r/galaxys10/comments/eakikd/cant_import_playlists_in_samsung_music_player/

There is fix someone listed. But it takes time as you have to manually create every playlist in a text editor like Notepad++. I wonder if the fix is something that the developer can implement into the MusicBee Program.
Title: Re: Wifi android device synching
Post by: skeevesmith on January 24, 2020, 01:30:45 PM


I have the same issue with my s10 / android 10 update.  Seems to be several large threads on reddit along the same subject:

https://www.reddit.com/r/galaxys10/comments/eakikd/cant_import_playlists_in_samsung_music_player/

There is fix someone listed. But it takes time as you have to manually create every playlist in a text editor like Notepad++. I wonder if the fix is something that the developer can implement into the MusicBee Program.

That would be great!  *bump* for an update?
Title: Re: Wifi android device synching
Post by: phred on January 24, 2020, 01:54:03 PM
That would be great!  *bump* for an update?
https://getmusicbee.com/forum/index.php?topic=30597.0
Title: Re: Wifi android device synching
Post by: skeevesmith on January 24, 2020, 04:20:32 PM
That would be great!  *bump* for an update?
https://getmusicbee.com/forum/index.php?topic=30597.0

Thank you for sharing.
Title: Re: Wifi android device synching
Post by: funcat on February 02, 2020, 02:50:45 PM
Hi all,
I am a long time user of MB (great job) and all kind of hack to sync my phones with it.
The latest wifi official sync app was working well, but as other, it does not handle correctly android 10 with sd card (and i guess that every one put pusic on sd card if they have so ...).
SD card permissions have changed for android 10, i guess that the app has to be updated/upgraded also.
Just my  two cents  :)
Have fun dear coder for your new life !
Title: Re: Wifi android device synching
Post by: Steven on March 02, 2020, 07:58:47 AM
fix for Android 10 not working. Also for older android versions, this release should improve the success of the initial server connection when you click "Locate Server"

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

If you are not on the internal test track, you will need to send me your google play email so I can add you
Title: Re: Wifi android device synching
Post by: kid on March 02, 2020, 05:49:12 PM
Just checking in to let everyone know that the new version solves the issues I was having.
Wifi syncing works perfectly on Android 10 using an external SD card for music storage.

Didn't have to reconfigure anything.

GMMP error still exists, but this is a GMMP issue, it also throws an error in the GMMP log about the unlocker.
Title: Re: Wifi android device synching
Post by: Steven on March 03, 2020, 07:26:09 AM
v2.0 now released to beta where anyone can try this - not sure how long it takes before its actually available so make sure you check the version number

https://play.google.com/apps/testing/com.getmusicbee.musicbeewifisync
Title: Re: Wifi android device synching
Post by: frankz on March 03, 2020, 12:30:41 PM
It didn't seem to have any effect on the final result of the sync, but the error log showed this after I ran it this morning:

Code
2020-03-03: SM-G973U;  10;  2.0.0
07:20:42: waitScan: java.lang.IllegalArgumentException: Invalid column count(*)
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/Galaxy.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/Galaxy.m3u8,path=/storage/4159-E797/Playlists/file=null
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/Safe.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/Safe.m3u8,path=/storage/4159-E797/Playlists/file=null
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/This Week.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/This Week.m3u8,path=/storage/4159-E797/Playlists/file=null
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/All.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/All.m3u8,path=/storage/4159-E797/Playlists/file=null
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/Beatles.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/Beatles.m3u8,path=/storage/4159-E797/Playlists/file=null
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/Beatles + Paul.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/Beatles + Paul.m3u8,path=/storage/4159-E797/Playlists/file=null
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/Classical.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/Classical.m3u8,path=/storage/4159-E797/Playlists/file=null
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/Tops.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/Tops.m3u8,path=/storage/4159-E797/Playlists/file=null
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/Vinyl.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/Vinyl.m3u8,path=/storage/4159-E797/Playlists/file=null

/storage/4159-E797/Playlists/ is the correct location for my playlists.
Title: Re: Wifi android device synching
Post by: kid on March 03, 2020, 12:53:01 PM
It didn't seem to have any effect on the final result of the sync, but the error log showed this after I ran it this morning:

Code
2020-03-03: SM-G973U;  10;  2.0.0
07:20:42: waitScan: java.lang.IllegalArgumentException: Invalid column count(*)
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/Galaxy.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/Galaxy.m3u8,path=/storage/4159-E797/Playlists/file=null
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/Safe.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/Safe.m3u8,path=/storage/4159-E797/Playlists/file=null
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/This Week.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/This Week.m3u8,path=/storage/4159-E797/Playlists/file=null
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/All.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/All.m3u8,path=/storage/4159-E797/Playlists/file=null
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/Beatles.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/Beatles.m3u8,path=/storage/4159-E797/Playlists/file=null
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/Beatles + Paul.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/Beatles + Paul.m3u8,path=/storage/4159-E797/Playlists/file=null
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/Classical.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/Classical.m3u8,path=/storage/4159-E797/Playlists/file=null
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/Tops.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/Tops.m3u8,path=/storage/4159-E797/Playlists/file=null
07:20:43: scanPlaylists: java.lang.IllegalArgumentException: Requested path /storage/4159-E797/Playlists/Vinyl.m3u8 doesn't appear under [/storage/emulated/0, /data/sec]: playlist=/storage/4159-E797/Playlists/Vinyl.m3u8,path=/storage/4159-E797/Playlists/file=null

/storage/4159-E797/Playlists/ is the correct location for my playlists.


Had similar issues, cant remember the error log. Will try again this afternoon. It stopped throwing the errors after I changed the sync settings in MB to not sync playlist, and then back to syncing playlists.
Title: Re: Wifi android device synching
Post by: Steven on March 04, 2020, 08:16:29 AM
Yes i see the same. I have resolved the first and most important issue but the second, I wont be able to resolve where playlists are scanned and loaded into the android media database. For Android 10+ the playlist file scan/load is now skipped, and that means that players that depend on the media database for playlist storage will be affected but i think the major media players all use their own methods for storing playlists, so shouldn't be a problem for the majority of people.

The change is available now on the internal test channel
https://play.google.com/apps/internaltest/4700978781087552506

and has been uploaded for beta which i think takes some time to update
https://play.google.com/apps/testing/com.getmusicbee.musicbeewifisync
Title: Re: Wifi android device synching
Post by: funcat on March 14, 2020, 05:12:49 PM
Hi all
Just an update i test the new version and all went fine for sync with android 10 and external sdcard.
Just now a bug with gmmp rating sync :  sendStats: Unable to retrieve stats for player: 1

I bought gmmp only for this feature it is sad =)
Any workarround or fix ?
Thx
Title: Re: Wifi android device synching
Post by: phred on March 14, 2020, 06:53:11 PM
Just now a bug with gmmp rating sync :  sendStats: Unable to retrieve stats for player: 1
Perhaps you should also check in with GMMP's forum to see if this is an error on the GMMP side. And to make sure it can read the ratings that MB sends over.
Title: Re: Wifi android device synching
Post by: Babydoll32 on April 05, 2020, 12:09:47 PM
Hi all
Just an update i test the new version and all went fine for sync with android 10 and external sdcard.
Just now a bug with gmmp rating sync :  sendStats: Unable to retrieve stats for player: 1

Have the same error on Huawei P30 with Android 10.
Can't sync with Gonemad 2.2.23. I can't do playlist sync also, only full sync. If I try it shows no playlists, only red server not running error, but full sync works.
With Poweramp it's fine. I've also the following issue. When I create an autoplaylist, limit tracks, random list, play or rate one of this songs in poweramp and sync back to musicbee, it shows that files not match. But files exist on Android and within Musicbee library.
Title: Re: Wifi android device synching
Post by: phred on April 05, 2020, 01:33:04 PM
Hi all
Just an update i test the new version and all went fine for sync with android 10 and external sdcard.
Just now a bug with gmmp rating sync :  sendStats: Unable to retrieve stats for player: 1

Have the same error on Huawei P30 with Android 10.Can't sync with Gonemad 2.2.23.

Perhaps you should also check in with GMMP's forum to see if this is an error on the GMMP side. And to make sure it can read the ratings that MB sends over.
Title: Re: Wifi android device synching
Post by: Babydoll32 on April 05, 2020, 04:20:57 PM
Perhaps you should also check in with GMMP's forum to see if this is an error on the GMMP side. And to make sure it can read the ratings that MB sends over.

I can sync to phone, when I choose Poweramp and when I scan with Gonemad, Gonemad reads ratings. But when I choose Gonemad for sync I get an error.
Title: Re: Wifi android device synching
Post by: Anti on April 11, 2020, 03:57:33 AM
Just a thank you. This is great.

Is the 'full sync' or 'playlist sync' setting supposed to be remembered, though? It defaults to full sync every time I open the app, even though I would never want to full sync (because my Musicbee library is way bigger than my SD Card, and it would take 12 hours to copy to the phone).
Title: Re: Wifi android device synching
Post by: Steven on April 11, 2020, 05:34:51 AM
Is the 'full sync' or 'playlist sync' setting supposed to be remembered, though? It defaults to full sync every time I open the app, even though I would never want to full sync (because my Musicbee library is way bigger than my SD Card, and it would take 12 hours to copy to the phone).
yes thats the way its been implemented. An option for you might be to configure a full sync to specific playlists only - what goes in a full sync is configured in MusicBee
Title: Re: Wifi android device synching
Post by: railfan-eric28 on April 12, 2020, 04:10:31 AM
Once again today and a week or so ago I had to clear data.   Is there something that can be done so it doesn't have to be cleared so much?  I hate that it resets the settings.   Since i got my new (refurbished) desktop tower I have been having issues with the computer getting a new ip address and having multiple times to fix it in my firewall settings for my programs such as musicbee.   then that causes musicbee wifi app to act up and then I have to clear data.   I turned off the wifi to the desktop since i plugged it in wired to the router for faster speeds but does the app still work with a computer that is wired to the router?  Or do i need to keep the wifi on at the same time on the desktop?
Title: Re: Wifi android device synching
Post by: frankz on April 12, 2020, 04:20:44 AM
It works just fine here with a desktop wired connection to the router.

You can set a static IP address for your computer either in your computer's network settings or your router's DHCP reservation settings.
Title: Re: Wifi android device synching
Post by: Steven on April 12, 2020, 04:32:43 AM
Once again today and a week or so ago I had to clear data.   Is there something that can be done so it doesn't have to be cleared so much?
Did you update the Android app when it was updated last month? I was hoping that would be more robust in re-connecting when the ip address changes
Title: Re: Wifi android device synching
Post by: railfan-eric28 on April 12, 2020, 08:11:29 AM
I haven't noticed if it updated or not.   Usually it's automatic.   Last updated on March 4th. I'm on the beta testing. 
Title: Re: Wifi android device synching
Post by: Madmaxneo on April 13, 2020, 02:59:53 AM
FYI, the wired syncing is not working anymore either.
Title: Re: Wifi android device synching
Post by: thed0g195 on April 13, 2020, 10:07:35 AM
Hello,

I'm in the final stage to switch from iTunes/iSyncr to MusicBee since Wi-Fi syncing is important to me. Device is Samsung Galaxy A50, Android 9, I sync to internal storage.

I sync selected playlists. The tracks are synced fine, also changes to the playlists, but I noticed that when I uncheck a certain playlist (so it'll get deleted from device), the tracks are deleted but not the playlist file. That means that an empty playlist gets displayed in the music player (Poweramp in my case). Am I doing something wrong or is there a setting for that? Tracks are put into /Internal storage/Music then respective folders based on Artist, Playlists are put into Music/ but I also tried making a separate folder like Playlists with no change regarding deletion.

Here's a screenshot of my Devices/Configure/Settings configuration : https://imgur.com/a/ikoTw0E

I've synced one test playlist first, then unselected it for removal and selected a 2nd playlist for syncing. The tracks of the first playlist were removed, but not the playlist file itself. The 2nd playlist tracks and playlist file was copied as expected.

Here's a Debug log of the sync:

Code
2020-04-13: SM-A505FN;  9;  2.0.0
11:14:58: ping: socket ok=/192.168.1.10
11:14:58: ping: hello=MusicBeeWifiSyncServer/1.0
11:14:58: ping: matched=/192.168.1.10,status=OK
11:15:05: startSync: preview=true,iteration=0
11:15:05: command: action=SYNC_START
11:15:05: tryStart: connecting /192.168.1.10, attempt=0
11:15:05: tryStart: connected
11:15:05: tryStart: hello=true,fromMB=false,custfiles=true,preview=true,dev=SM-A505FN,1
11:15:05: storage: path=/storage/emulated/0,root=null
11:15:05: syncDevice: root=/storage/emulated/0,ignoreErrors=false,playlists=false,ratings=false,playcount=false
11:15:05: syncDevice: command=GetFiles
11:15:05: getFiles: Get: Music/,url=/storage/emulated/0/Music/, inc=true
11:15:05: getFiles: count=2
11:15:05: syncDevice: command=GetFiles
11:15:05: getFiles: Get: Music/Podcasts/,url=/storage/emulated/0/Music/Podcasts/, inc=true
11:15:05: getFiles: count=0
11:15:05: syncDevice: command=GetFiles
11:15:05: getFiles: Get: Music/Playlists/,url=/storage/emulated/0/Music/Playlists/, inc=false
11:15:05: getFiles: count=0
11:15:05: syncDevice: command=ShowPreviewResults
11:15:05: syncDevice: exit
11:15:08: startSync: preview=false,iteration=1
11:15:08: command: action=SYNC_START
11:15:08: tryStart: connecting /192.168.1.10, attempt=0
11:15:08: tryStart: connected
11:15:08: tryStart: hello=true,fromMB=false,custfiles=true,preview=false,dev=SM-A505FN,1
11:15:08: storage: path=/storage/emulated/0,root=null
11:15:08: syncDevice: root=/storage/emulated/0,ignoreErrors=false,playlists=false,ratings=false,playcount=false
11:15:08: syncDevice: command=GetFiles
11:15:08: getFiles: Get: Music/Playlists/,url=/storage/emulated/0/Music/Playlists/, inc=false
11:15:08: getFiles: count=0
11:15:08: syncDevice: command=ShowDeleteConfirmation
11:15:10: syncDevice: command=DeleteFiles
11:15:10: deleteFiles: Delete: Music/2weiraumwohnung/Wir Werden Sehen/03 - Wir werden sehen (Paul kalkbrenner remix).mp3
11:15:10: syncDevice: command=DeleteFiles
11:15:10: deleteFiles: Delete: Music/Evanescence/Fallen (Retail)/02 - Bring Me To Life.mp3
11:15:10: syncDevice: command=ReceiveFile
11:15:10: receiveFile: Receive: Music/Evanescence/Fallen (Retail)/01 - Going Under.mp3
11:15:12: syncDevice: command=ReceiveFile
11:15:12: receiveFile: Receive: Music/Evanescence/Fallen (Retail)/Evanescence - Fallen (Retail).jpg
11:15:12: syncDevice: command=ReceiveFile
11:15:12: receiveFile: Receive: Music/Playlists/Test2.m3u
11:15:12: syncDevice: command=DeleteFolders
11:15:12: deleteFolder: Delete: Music/2weiraumwohnung/
11:15:12: syncDevice: command=Exit
11:15:12: exitSync: fails=0
11:15:12: waitScanFiles: start
11:15:13: waitScanFiles: done
11:15:13: syncDevice: exit

This part is what's odd for me:

Code
11:15:05: getFiles: Get: Music/Playlists/,url=/storage/emulated/0/Music/Playlists/, inc=false
11:15:05: getFiles: count=0

It returns count 0 despite there's a .m3u playlist file in there. Shouldn't this be detected and shown on the preview for removal and remove it after sync?

Also a feedback on the MusicBee Wifi Sync app, not such a big of a deal, but I noticed it when testing. When you want to remove a single synced playlist on the device, it won't let you if you just uncheck it, unless you sync another playlist. So if I sync Test1 to device, then want to remove it, I have to sync at least one another. I guess this doesn't matter much later on when having multiple playlists, but it kinda confused me at the beginning.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on April 16, 2020, 04:46:48 PM
This is weird but i had this problem before.  I went to sync after a few days and it was in the middle of a sync doing nothing.   so i cancelled and then it reset the settings again on it's own even though i just had to clear data the other day to get it to work.   So i had to redo the settings again.   I don't understand why it randomly does this.
edit
In addition it's not syncing my new playlist.  under devices i have a third device for the same phone.   So i have two for SD card sync.
Title: Re: Wifi android device synching
Post by: Madmaxneo on April 17, 2020, 01:54:08 AM
Yeah, I have been having the sync issue again now for more than a week. I had the issue back in Feb (I think) but an update to the Android system fixed it. For some reason the sync issue has returned yet again.
Title: Re: Wifi android device synching
Post by: thed0g195 on April 17, 2020, 09:50:57 PM
So is this topic of the possibility deleting playlists at sync (https://getmusicbee.com/forum/index.php?topic=28093.msg172945#msg172945) somehow a taboo topic or is it a choice by design ?

I've found a similar question without any answers: https://getmusicbee.com/forum/index.php?topic=25075.0
Title: Re: Wifi android device synching
Post by: railfan-eric28 on April 26, 2020, 04:40:38 AM
just did it to me again.    &gt;:(   Also it's messed up on my tablet and i couldn't get it to work and I hadn't took the time to fix it on there too now of course it just did it to my phone. 
Steven any word yet on an update to fix the app?
Title: Re: Wifi android device synching
Post by: frankz on April 26, 2020, 05:30:20 AM
I use the app every day.  I don't think the app itself is the problem.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on April 26, 2020, 05:37:30 AM
I use the app every day.  I don't think the app itself is the problem.

Does yours reset itself often?  Either mine resets itself or can't find the server and has the be reset as in clear data.   either way it sucks.  and if we were to use the playlist settings on the app itself it would be awful to have to figure out what playlists the select and which ones are on the phone since a person like me probably has a list of 50 playlists and only half of them get synced.  fortunately I have it set to sync the playlists that are selected via the computer software.  Unless i put in a new memory card and it has to be done from scratch.
Title: Re: Wifi android device synching
Post by: frankz on April 26, 2020, 06:20:34 AM
I have not reset the app or cleared data since the latest update.  I hit "sync now" and it syncs.  Don't know what to tell you. The app works. You are doing something that makes it not work.
Title: Re: Wifi android device synching
Post by: Steven on April 26, 2020, 06:52:10 AM
The source code is on github for anyone who has android experience to look at and potentially make changes. Its simply the case that I don't have enough socket or android experience to solve the more unusual cases.

https://github.com/mayallst/MusicBeeWifiSync
Title: Re: Wifi android device synching
Post by: railfan-eric28 on April 26, 2020, 08:39:53 PM
The source code is on github for anyone who has android experience to look at and potentially make changes. Its simply the case that I don't have enough socket or android experience to solve the more unusual cases.

https://github.com/mayallst/MusicBeeWifiSync

I hope someone can help you.  I don't have any experience.    It just did it again since my last sync.  What gets me is when i get done syncing I have the sync button for "sync more"  i just hit the home button or task switcher to go to something else.   then go back a day or days later and then it shows it's in the middle of a sync.   A phantom sync if you will.   I cancel it to start syncing and that's when it goes back to the settings like a fresh install and i have to do the settings again and give permissions to the memory card as if it's the first time it's run. 
Title: Re: Wifi android device synching
Post by: SkyZippr on April 27, 2020, 01:49:55 AM
I cancel it to start syncing and that's when it goes back to the settings like a fresh install and i have to do the settings again and give permissions to the memory card as if it's the first time it's run.  
Does your phone/tablet have any auto-cleanup function? For example, Huawei phones have a built-in function that periodically cleans up old cache files of any apps, and the function is on by default. As a result some of my game apps had to re-download all the data almost every time I start them, so I turned the cleaner off. Not sure about Galaxy's, though.
Also, Huawei is notorious for its aggressive battery optimization, which automatically turns off background apps. If I remember correctly, Samsung does the similar to their phones as well, so you might want to look into that as well.
Title: Re: Wifi android device synching
Post by: misterhh on May 26, 2020, 04:29:55 AM
I've been syncing my phone for a while using USB and found this wifi feature/app today. Seems to work for the most part, but doesn't detect the music already on my phone so it can skip syncing it. I only ever sync my "recently added" playlist. On the app, I chose sync playlists, and it copied everything over to my SD card. Then I added some more music to my PCs library, which got added to my recently added playlist. When I went back to the phone to sync again, it copied over the some (not all) of the new stuff, then it appeared to start to copy over the rest of the songs on the playlist, which had already been transferred previously. I don't see any duplicates on my phone, so maybe something else was going on, but either way it was taking just as long as the initial large sync was taking. Is this normal? I have reverse-sync unchecked in the app by the way.
Title: Re: Wifi android device synching
Post by: The T on June 15, 2020, 10:29:03 PM
I keep getting the error "file not matched in musicbee" when syncing... I am not sure if it is every single file or just a subset of them; I have noticed some ratings carrying over from GoneMad to MusicBee, but the playcounts are definitely not going up; so I'm honestly not sure if these are ratings I already did in MusicBee but just forgot (although I don't feel that's the case).

My first guess as to what might be causing is an issue is having "replace artist tag with Display artist", but I've noticed the issue occurring even on artists who match the display artist, so I don't think that's it.

What else should I be checking that's causing it? I looked through this thread but none of the other solutions seem to apply.
Title: Re: Wifi android device synching
Post by: The T on June 21, 2020, 04:19:05 AM
An update on above: if I choose "Sync Preview", over and over, with only 'Reverse Sync" selected, the number of files it lists that won't sync changes each time. Many files are consistently there, while some only show up sometimes.

What's the deal?
Title: Re: Wifi android device synching
Post by: The T on June 23, 2020, 03:20:27 AM
I can confirm it is completely broken.

1. Syncing issues does not occur with the files themselves, when adding or removing files.

2. I did an experiment: Rated a single file, and clicked sync preview over and over. Sometimes it would sync, sometimes it wouldn't. When it showed that it would sync, I clicked Sync, and immediately said sync failed.

Error Log:
Code
2020-06-22: SM-G950U;  9;  2.0.2
21:16:30: ping: socket ok=/192.168.1.6
21:16:30: ping: hello=MusicBeeWifiSyncServer/1.0
21:16:31: ping: matched=/192.168.1.6,status=OK
21:16:31: startSync: preview=true,iteration=0
21:16:31: command: action=SYNC_START
21:16:31: tryStart: connecting /192.168.1.6, attempt=0
21:16:31: tryStart: connected
21:16:31: tryStart: hello=true,fromMB=false,custfiles=false,preview=true,dev=SM-G950U,1
21:16:31: storage: path=/storage/emulated/0,root=null
21:16:31: syncDevice: root=/storage/emulated/0,ignoreErrors=false,playlists=false,ratings=true,playcount=true
21:16:31: syncDevice: command=SendStats
21:16:31: syncDevice: command=ShowResults
21:16:31: syncDevice: command=GetFiles
21:16:31: getFiles: Get: Music/,url=/storage/emulated/0/Music/, inc=true
21:16:31: getFiles: count=200
21:16:31: syncDevice: command=GetFiles
21:16:31: getFiles: Get: Podcasts/,url=/storage/emulated/0/Podcasts/, inc=true
21:16:31: getFiles: count=0
21:16:31: syncDevice: command=ShowPreviewResults
21:16:31: syncDevice: exit
21:16:35: startSync: preview=true,iteration=0
21:16:35: command: action=SYNC_START
21:16:35: tryStart: connecting /192.168.1.6, attempt=0
21:16:35: tryStart: connected
21:16:35: tryStart: hello=true,fromMB=false,custfiles=false,preview=true,dev=SM-G950U,1
21:16:35: storage: path=/storage/emulated/0,root=null
21:16:35: syncDevice: root=/storage/emulated/0,ignoreErrors=false,playlists=false,ratings=true,playcount=true
21:16:35: syncDevice: command=SendStats
21:16:35: syncDevice: command=ShowResults
21:16:35: syncDevice: command=GetFiles
21:16:35: getFiles: Get: Music/,url=/storage/emulated/0/Music/, inc=true
21:16:35: getFiles: count=200
21:16:35: syncDevice: command=GetFiles
21:16:35: getFiles: Get: Podcasts/,url=/storage/emulated/0/Podcasts/, inc=true
21:16:35: getFiles: count=0
21:16:36: syncDevice: command=ShowPreviewResults
21:16:36: syncDevice: exit
21:16:37: startSync: preview=true,iteration=0
21:16:37: command: action=SYNC_START
21:16:37: tryStart: connecting /192.168.1.6, attempt=0
21:16:37: tryStart: connected
21:16:37: tryStart: hello=true,fromMB=false,custfiles=false,preview=true,dev=SM-G950U,1
21:16:37: storage: path=/storage/emulated/0,root=null
21:16:37: syncDevice: root=/storage/emulated/0,ignoreErrors=false,playlists=false,ratings=true,playcount=true
21:16:37: syncDevice: command=SendStats
21:16:37: syncDevice: command=ShowResults
21:16:37: syncDevice: command=GetFiles
21:16:37: getFiles: Get: Music/,url=/storage/emulated/0/Music/, inc=true
21:16:37: getFiles: count=200
21:16:37: syncDevice: command=GetFiles
21:16:37: getFiles: Get: Podcasts/,url=/storage/emulated/0/Podcasts/, inc=true
21:16:37: getFiles: count=0
21:16:37: syncDevice: command=ShowPreviewResults
21:16:37: syncDevice: exit
21:16:38: startSync: preview=true,iteration=0
21:16:38: command: action=SYNC_START
21:16:38: tryStart: connecting /192.168.1.6, attempt=0
21:16:38: tryStart: connected
21:16:38: tryStart: hello=true,fromMB=false,custfiles=false,preview=true,dev=SM-G950U,1
21:16:38: storage: path=/storage/emulated/0,root=null
21:16:38: syncDevice: root=/storage/emulated/0,ignoreErrors=false,playlists=false,ratings=true,playcount=true
21:16:38: syncDevice: command=SendStats
21:16:38: syncDevice: command=ShowResults
21:16:38: syncDevice: command=GetFiles
21:16:38: getFiles: Get: Music/,url=/storage/emulated/0/Music/, inc=true
21:16:38: getFiles: count=200
21:16:38: syncDevice: command=GetFiles
21:16:38: getFiles: Get: Podcasts/,url=/storage/emulated/0/Podcasts/, inc=true
21:16:38: getFiles: count=0
21:16:38: syncDevice: command=ShowPreviewResults
21:16:38: syncDevice: exit
21:16:39: startSync: preview=true,iteration=0
21:16:40: command: action=SYNC_START
21:16:40: tryStart: connecting /192.168.1.6, attempt=0
21:16:40: tryStart: connected
21:16:40: tryStart: hello=true,fromMB=false,custfiles=false,preview=true,dev=SM-G950U,1
21:16:40: storage: path=/storage/emulated/0,root=null
21:16:40: syncDevice: root=/storage/emulated/0,ignoreErrors=false,playlists=false,ratings=true,playcount=true
21:16:40: syncDevice: command=SendStats
21:16:40: syncDevice: command=ShowResults
21:16:40: syncDevice: command=GetFiles
21:16:40: getFiles: Get: Music/,url=/storage/emulated/0/Music/, inc=true
21:16:40: getFiles: count=200
21:16:40: syncDevice: command=GetFiles
21:16:40: getFiles: Get: Podcasts/,url=/storage/emulated/0/Podcasts/, inc=true
21:16:40: getFiles: count=0
21:16:40: syncDevice: command=ShowPreviewResults
21:16:40: syncDevice: exit
21:16:41: startSync: preview=true,iteration=0
21:16:41: command: action=SYNC_START
21:16:41: tryStart: connecting /192.168.1.6, attempt=0
21:16:41: tryStart: connected
21:16:41: tryStart: hello=true,fromMB=false,custfiles=false,preview=true,dev=SM-G950U,1
21:16:41: storage: path=/storage/emulated/0,root=null
21:16:41: syncDevice: root=/storage/emulated/0,ignoreErrors=false,playlists=false,ratings=true,playcount=true
21:16:41: syncDevice: command=SendStats
21:16:41: syncDevice: command=ShowResults
21:16:41: syncDevice: command=GetFiles
21:16:41: getFiles: Get: Music/,url=/storage/emulated/0/Music/, inc=true
21:16:41: getFiles: count=200
21:16:41: syncDevice: command=GetFiles
21:16:41: getFiles: Get: Podcasts/,url=/storage/emulated/0/Podcasts/, inc=true
21:16:41: getFiles: count=0
21:16:41: syncDevice: command=ShowPreviewResults
21:16:41: syncDevice: exit
21:16:43: startSync: preview=false,iteration=1
21:16:43: command: action=SYNC_START
21:16:43: tryStart: connecting /192.168.1.6, attempt=0
21:16:43: tryStart: connected
21:16:43: tryStart: hello=true,fromMB=false,custfiles=false,preview=false,dev=SM-G950U,1
21:16:43: storage: path=/storage/emulated/0,root=null
21:16:43: syncDevice: root=/storage/emulated/0,ignoreErrors=false,playlists=false,ratings=true,playcount=true
21:16:43: syncDevice: command=SendStats
21:16:43: syncDevice: command=ShowResults
21:16:43: syncDevice: command=Exit
21:16:43: exitSync: fails=0
21:16:43: waitScanFiles: start
21:16:43: waitScanFiles: done
21:16:43: syncDevice: exit
21:16:45: ping: socket ok=/192.168.1.6
21:16:45: ping: hello=MusicBeeWifiSyncServer/1.0
21:16:45: ping: matched=/192.168.1.6,status=OK
21:16:46: startSync: preview=true,iteration=0
21:16:46: command: action=SYNC_START
21:16:46: tryStart: connecting /192.168.1.6, attempt=0
21:16:46: tryStart: connected
21:16:46: tryStart: hello=true,fromMB=false,custfiles=false,preview=true,dev=SM-G950U,1
21:16:46: storage: path=/storage/emulated/0,root=null
21:16:46: syncDevice: root=/storage/emulated/0,ignoreErrors=false,playlists=false,ratings=true,playcount=true
21:16:46: syncDevice: command=SendStats
21:16:46: syncDevice: command=ShowResults
21:16:46: syncDevice: command=GetFiles
21:16:46: getFiles: Get: Music/,url=/storage/emulated/0/Music/, inc=true
21:16:46: getFiles: count=200
21:16:46: syncDevice: command=GetFiles
21:16:46: getFiles: Get: Podcasts/,url=/storage/emulated/0/Podcasts/, inc=true
21:16:46: getFiles: count=0
21:16:46: syncDevice: command=ShowPreviewResults
21:16:46: syncDevice: exit
Title: Re: Wifi android device synching
Post by: Steven on June 23, 2020, 10:37:10 AM
i wont be able to help with this
Title: Re: Wifi android device synching
Post by: The T on June 23, 2020, 10:35:03 PM
i wont be able to help with this

who is responsible for this software?
Title: Re: Wifi android device synching
Post by: frankz on June 23, 2020, 10:51:26 PM
(https://qph.fs.quoracdn.net/main-qimg-cdca39eb3f778d4a6a38d2b1d8596519)
Title: Re: Wifi android device synching
Post by: hiccup on June 23, 2020, 10:58:32 PM
img

Thanks frankz, now I have beer over my keyboard.
Title: Re: Wifi android device synching
Post by: phred on June 23, 2020, 11:10:23 PM
who is responsible for this software?
Steven is responsible for the software. And he does this as a hobby, in his own spare time, and asks for nothing in return.

When he says he won't be able to help, it could be because he truly doesn't know how to fix it. Or he doesn't have the time to fix it. Or any other reason he may have for not addressing it.

Keep in mind a) how much you paid for the software, and b) no one is forcing you to continue using it.
Title: Re: Wifi android device synching
Post by: The T on June 24, 2020, 01:34:07 AM
wow frankz, you're an asshole.

I appreciate phred answering the question. I was asking because I didn't understand why Steven was responding; Steven made it sound like he wasn't the person who wrote this software (which I was already confused about), so I was trying to find out who did, if I was posting about this in the wrong place, I don't know.

I still don't understand why you advertise that you have a feature you don't have, though?

And I did have to waste money on GoneMad Music Player, so yeah, maybe update the topic post to state you aren't going to support this software anymore.
Title: Re: Wifi android device synching
Post by: frankz on June 24, 2020, 01:37:34 AM
wow frankz, you're an asshole.
Guilty as charged.
Title: Re: Wifi android device synching
Post by: Steven on June 24, 2020, 01:49:19 AM
I still don't understand why you advertise that you have a feature you don't have, though?
And I did have to waste money on GoneMad Music Player, so yeah, maybe update the topic post to state you aren't going to support this software anymore.
I believe this functionality works fine for most people so I wont be changing the status of it.
When issues arise, there are 3 parties involved - MusicBee, Gonemad and Android.
What I have found in the past is that the Gonemad developer while being a helpful person in general, I feel does tend to brush off issues with answers that dont involve any further digging on his part or willingness to investigate working around and solving an issue. Perhaps he has felt he already knows the answers and its not worth his time.
And Android itself as far as I am concerned is a complete mess for storage functionality and has poor documentation.
So unless an issue is something I feel is likely to be caused by MusicBee, I am not willing to spend time where I am banging my head against a brick wall
Title: Re: Wifi android device synching
Post by: hiccup on June 24, 2020, 07:54:11 AM
...

Some quotes from you:

Quote
I can confirm it is completely broken.
Which is an incorrect statement and it sounds accusing.
If you have read the thread which I assume you have, you know it works for others.

Quote
who is responsible for this software?
That brief post triggered me in a negative way also.
It could the very economic use of words and choosing the word 'responsible'.
If you have read the thread which I assume you have, you know who is putting his time and effort in all this.
To me it sounded accusing again, and you perhaps 'playing dumb' here.

Quote
wow frankz, you're an asshole.
He replied in a humorous way that probably saved you from some harsher replies from others who took your posts/assumed attitude in the same way.

Maybe you should read back how you may have been coming across on the forum until now.
Title: Re: Wifi android device synching
Post by: viktorrko on September 20, 2020, 08:43:28 PM
Hello,
I stopped using the Wifi sync some time ago because it was really unreliable and slow with my weak wifi signal (it worked fine when I was near the router), now my situation with that has changed and I decided to set it up again. I sucessfully did the first time setup, but it looks like my songs aren't properly scanned/the Android app doesn't use naming preset from MusicBee on PC. It always starts copying all of the songs, instead of just those that are missing. I made sure my devices are set up properly on PC. Is it broken right now, or am I just missing something?

DEVICE: COL-L29
ANDROID 10
APP VERSION: 2.0.2
Title: Re: Wifi android device synching
Post by: frankz on September 20, 2020, 10:15:54 PM
I made sure my devices are set up properly on PC. Is it broken right now, or am I just missing something?
It's not broken right now and hasn't changed for some time.  If you made sure your devices are set up properly on the PC I'm not sure what you could be missing.

Usually this would mean it's not set up properly on the PC, but you've checked.  Strange.

Is "as configured in Musicbee" checked in the app?

Title: Re: Wifi android device synching
Post by: viktorrko on October 13, 2020, 12:16:35 PM
I made sure my devices are set up properly on PC. Is it broken right now, or am I just missing something?
It's not broken right now and hasn't changed for some time.  If you made sure your devices are set up properly on the PC I'm not sure what you could be missing.

Usually this would mean it's not set up properly on the PC, but you've checked.  Strange.

Is "as configured in Musicbee" checked in the app?



Thanks for the reply. I eventually forgot about it and continued to use the wired syncing. Since then my PC have been restarted multiple times. I tried it again today and it worked straight away. Probably something with Windows and it's typical network issues  :D
Title: 2-way sync of playlists with GMMP
Post by: psychoadept on October 20, 2020, 02:34:08 AM
I know there's supposed to be 2-way sync with playlists in GMMP, but I'm not sure how this works. Will it only sync changes to a playlist that first came from MusicBee? Will it sync playlists that were created with GMMP?

I have my MusicBee files, including audio files and playlists, on the SD card, but MusicBee has the internal GMMP playlists folder by default, and if I try to change it and then do a sync preview, I get an "unrecoverable error" message. If I go straight to doing a sync, the sync works but the folder is not actually changed.
Title: Re: 2-way sync of playlists with GMMP
Post by: Steven on October 20, 2020, 08:32:07 AM
for the reverse sync action, the wifisync app will look on the device in the playlists folder path as specified in the MusicBee device sync settings and also the /gmmp/playlists folder (or as overriden in the wifi app settings panel)
So as long as the gone mad created playlist is in one of those folders, it should be considered for synching back to MusicBee (if the modification date on the playlist file is more recent or the playlist is new).

But you are saying you are doing a wired sync initiated from MusicBee?
In that case it will only consider the playlist path as specified in MusicBee. I would need more details on the "unrecoverable error" message eg. did you check the error log, can you post a screenshot
Title: Re: 2-way sync of playlists with GMMP
Post by: psychoadept on October 20, 2020, 09:10:14 AM
No, I'm not doing a wired sync, the error is in the app. But since you say that MusicBee is looking at both folders, it seems less important that I can't change that one.

I will still check the error log and see what I find
Title: Re: Wifi android device synching
Post by: frostbyte on October 24, 2020, 02:18:08 PM
Could someone give a full guide on how to use Musicbee and the app properly together to sync playlists and ratings together with gmmp pro? Either I am doing it wrong or it's broken. The only thing I managed to work is retrieving playlists and containing music from my PC with the app using "Playlist Sync".
Title: Re: 2-way sync of playlists with GMMP
Post by: psychoadept on October 26, 2020, 10:18:50 AM
On my latest sync, I had added some tracks to a playlist in GMMP that also exists in MusicBee, but the playlist on the phone was overwritten with the blank playlist from MB.
Title: Re: 2-way sync of playlists with GMMP
Post by: Steven on October 27, 2020, 08:19:39 AM
it will take a bit of time to review the code but my hunch is the playlist will be copied from musicbee as the first action, and if that is correct then it also needs to consider the modification date
edit: infact the reverse sync is done first, so as long as you have playlists ticked in the reverse sync options it should have copied the playlist over to your computer first and updated the computer playlist if the device playlist is more recent. However I had put in a 90 minute buffer in case the clock on the device is out of sync with the computer but on reflection thats not a good idea. So if the device and computer playlists were created/ updated within 90 minutes of each other, the reverse sync would not have updated the computer playlist. I will remove that buffer for the next update.

If you dont think that was the reason, what does sync preview show as the actions?
Title: Re: 2-way sync of playlists with GMMP
Post by: psychoadept on October 27, 2020, 03:03:25 PM
Yeah, 90 minutes doesn't seem like the problem. I update the playlist during the day, and then sync when I get home at night.

I'm actually getting that non-recoverable error message any time I try to do a preview with playlists, not just from changing the folder. If I turn off playlists, it's fine.
Title: Re: 2-way sync of playlists with GMMP
Post by: psychoadept on October 28, 2020, 04:47:43 AM
Oh, error message from phone (I'd been looking on the desktop, doh...)

2020-10-27: SM-G950U;  9;  2.0.2
09:01:09: 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
Title: Re: 2-way sync of playlists with GMMP
Post by: Steven on October 28, 2020, 08:34:47 AM
I wont be able to create a debug version until the weekend. If you have not already sent me your google play store email, can you do so and I will add you to the Internal testing list
Also have you recently changed the card used for the device external memory?
Title: Re: 2-way sync of playlists with GMMP
Post by: psychoadept on October 28, 2020, 10:08:37 AM
No, I've had the same card at least as long as I've had the phone, which is about two years.  I thought I was on the testing list but I'll pm you my email. Thanks.
Title: Re: Wifi android device synching
Post by: thezyth on October 29, 2020, 07:52:42 AM
Hey, I seem to having trouble with syncing my playlists back from my mobile device to the PC. I can't seem to figure out why. I will post the error log below. The playlists from musicbee are being stored in the SD card in different folder than all the music.

Path to music: /storage/9C33-6BBD/Music/
Path to playlists: /storage/9C33-6BBD/playlists/

Music Wifi Sync Url Changed to: /storage/9C33-6BBD/playlists/

Code
2020-10-28: SM-G988W;  10;  2.0.0
23:47:21: startSync: preview=true,iteration=0
23:47:21: command: action=SYNC_START
23:47:21: tryStart: connecting /192.168.0.10, attempt=0
23:47:22: tryStart: connected
23:47:22: tryStart: hello=true,fromMB=true,custfiles=false,preview=true,dev=SM-G988W,2
23:47:22: storage: path=/storage/9C33-6BBD,root=9C33-6BBD:,uri=content://com.android.externalstorage.documents/tree/9C33-6BBD%3A
23:47:22: syncDevice: root=/storage/9C33-6BBD,ignoreErrors=false,playlists=true,ratings=false,playcount=false
23:47:22: syncDevice: command=SendPlaylists
23:47:22: sendPlaylists: java.lang.IllegalArgumentException: Failed to determine if 9C33-6BBD:storage/9C33-6BBD/playlists/ is child of 9C33-6BBD:: java.io.FileNotFoundException: Missing file for 9C33-6BBD:storage/9C33-6BBD/playlists/ at /mnt/media_rw/9C33-6BBD/storage/9C33-6BBD/playlists
23:47:22: android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:170)
23:47:22: android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140)
23:47:22: android.content.ContentProviderProxy.query(ContentProviderNative.java:423)
23:47:22: android.content.ContentResolver.query(ContentResolver.java:951)
23:47:22: android.content.ContentResolver.query(ContentResolver.java:887)
23:47:22: android.content.ContentResolver.query(ContentResolver.java:843)
23:47:22: com.getmusicbee.musicbeewifisync.FileStorageAccess.getFiles(WifiSyncService.java:1720)
23:47:22: com.getmusicbee.musicbeewifisync.WifiSyncService$SynchronisationWorker.sendPlaylists(WifiSyncService.java:1056)
23:47:22: com.getmusicbee.musicbeewifisync.WifiSyncService$SynchronisationWorker.syncDevice(WifiSyncService.java:472)
23:47:22: com.getmusicbee.musicbeewifisync.WifiSyncService$SynchronisationWorker.tryStartSynchronisation(WifiSyncService.java:359)
23:47:22: com.getmusicbee.musicbeewifisync.WifiSyncService$SynchronisationWorker.run(WifiSyncService.java:245)
23:47:22: java.lang.Thread.run(Thread.java:919)
23:47:22: syncDevice: command=GetFiles
23:47:22: getFiles: Get: Music/,url=/storage/9C33-6BBD/Music/, inc=true
23:47:22: getFiles: count=14553
23:47:22: syncDevice: command=GetFiles
23:47:22: getFiles: Get: Podcasts/,url=/storage/9C33-6BBD/Podcasts/, inc=true
23:47:22: getFiles: count=0
23:47:22: syncDevice: command=GetFiles
23:47:22: getFiles: Get: playlists/,url=/storage/9C33-6BBD/playlists/, inc=false
23:47:22: getFiles: count=0
23:47:22: syncDevice: command=ShowPreviewResults
23:47:22: syncDevice: exit
Title: Re: Wifi android device synching
Post by: Steven on October 29, 2020, 08:56:56 AM
Someone else reported the same so i am going to create a debug version of the android app on the weekend. PM me your google play store email and i will add you to the distribution list if you can help out
Title: Re: Wifi android device synching
Post by: Madmaxneo on October 29, 2020, 04:52:47 PM
Someone else reported the same so i am going to create a debug version of the android app on the weekend. PM me your google play store email and i will add you to the distribution list if you can help out
I reported a similar issue awhile back but it was syncing the playlist from PC to mobile.
Title: Re: Wifi android device synching
Post by: thezyth on October 29, 2020, 08:29:43 PM
Someone else reported the same so i am going to create a debug version of the android app on the weekend. PM me your google play store email and i will add you to the distribution list if you can help out

email sent via PM :)
Title: Re: Wifi android device synching
Post by: Steven on October 31, 2020, 06:04:01 AM
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
Title: Re: Wifi android device synching
Post by: thezyth on October 31, 2020, 12:50:39 PM
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
Title: Re: Wifi android device synching
Post by: psychoadept on October 31, 2020, 02:18:52 PM
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
Title: Re: Wifi android device synching
Post by: HannibAlBundy on October 31, 2020, 10:21:44 PM
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.
Title: Re: Wifi android device synching
Post by: Steven on November 01, 2020, 12:14:20 AM
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/
Title: Re: Wifi android device synching
Post by: psychoadept on November 01, 2020, 01:49:21 AM
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.
Title: Re: Wifi android device synching
Post by: Steven on November 01, 2020, 03:41:36 AM
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
Title: Re: Wifi android device synching
Post by: psychoadept on November 01, 2020, 04:22:11 AM
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.
Title: Re: Wifi android device synching
Post by: Steven on November 01, 2020, 04:38:26 AM
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
Title: Re: Wifi android device synching
Post by: Steven on November 01, 2020, 05:11:02 AM
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
Title: Re: Wifi android device synching
Post by: psychoadept on November 01, 2020, 07:38:53 AM
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?
Title: Re: Wifi android device synching
Post by: Steven on November 01, 2020, 09:20:18 AM
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
Title: Re: Wifi android device synching
Post by: psychoadept on November 01, 2020, 07:35:40 PM
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!
Title: Re: Wifi android device synching
Post by: phred on November 01, 2020, 10:01:52 PM
v2.0.4 - internal testers only
Should those of us not experiencing those issues download this version?
Title: Re: Wifi android device synching
Post by: Steven on November 02, 2020, 08:09:27 AM
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
Title: Re: Wifi android device synching
Post by: Steven on November 02, 2020, 08:51:34 AM
v2.0.4 - internal testers only
Should those of us not experiencing those issues download this version?
I will roll it out to beta and production over the next week or so. You only need it if you reverse sync playlists from GoneMad
Title: Re: Wifi android device synching
Post by: phred on November 02, 2020, 12:40:39 PM
I will roll it out to beta and production over the next week or so. You only need it if you reverse sync playlists from GoneMad
Good to know - thanks.
Title: Re: Wifi android device synching
Post by: Terry Walker on November 04, 2020, 10:01:38 AM
Thanks, @Steven. I'm delighted to know it too.
Title: Re: Wifi android device synching
Post by: Mephisto on November 05, 2020, 02:44:03 PM
Hi everyone,

I'm posting this here just in case, but my situation is such an edge case that I don't really expect a solution.

I'm using my android phone as a wifi hotspot, and my computer running the latest portable version of MB (3.4.7586 P) is connected to said hotspot. I'm also using the beta version (2.1) of MusicBee Wifi Sync.

My problem: after going through the wired sync, the android app can't locate the MB server. Looking at the error log, it seems the app is scanning the 0.0.0.XX IP range instead of 192.168.XX.XX, where my computer IP is located. If I use another phone as my wifi hotspot, and connect both my computer and my android phone as regular wifi clients, I can get the wifi sync to work as expected, so I don't think the problem comes from the firewall or Windows.

The reason why I'm still trying despite failing miserably each and every time is that I remember getting the wifi sync working once or twice despite the hotspot, but it happened several months ago and didn't last.

Anybody got an idea on how to solve this, or a way to manually input/override the computer IP in the android app?
Title: Re: Wifi android device synching
Post by: HannibAlBundy on November 11, 2020, 04:38:51 PM
Hi,

Just wanted to say thank you as the last update of the MusicBee Wifi Sync app on the beta channel solved all my reverse sync issues with playlists!
Title: Re: Wifi android device synching
Post by: DNaz on November 18, 2020, 06:41:35 PM
Hi there,



I'm new to Musicbee and loving it. Thank you for all your work. I'm using GMMP and hoping to get access to 2-way syncing between PC and Android. Is it possible to get added on as having tester access, or should I just wait (as I think you mention, Steven) the new version gets rolled out for reals?

Thanks so much.
Title: Re: Wifi android device synching
Post by: psychoadept on November 18, 2020, 07:00:04 PM
I'm using GMMP and hoping to get access to 2-way syncing between PC and Android. Is it possible to get added on as having tester access, or should I just wait (as I think you mention, Steven) the new version gets rolled out for reals?

Howdy!

Except for playlists, all the functionality should be available in the public version. It looks like Steven hasn't updated that since the playlist fix, but I would expect it soon.
Title: Re: Wifi android device synching
Post by: loripod on November 18, 2020, 08:21:00 PM
Hi, i using musicbee+poweramp on my pc and android phone and works very well  :D
i have only one question about to playcount. On my musicbee library i have a lot of playcount on many tracks, but if i check info tag on poweramp (synced by "Musicbee Wifi Sync 2.0.0) the playcount is zero like as the screenshot (https://imgur.com/a/pXNkfDK).
Sorry for my bad english and thanks for help  ::)
Title: Re: Wifi android device synching
Post by: Maestro30k on November 18, 2020, 11:12:47 PM
Hello

Starting using musicbee and WiFi sync to replace itunes and isync.

I'm using power amp to perform 2way syncs and noticed that it very sensitive. Everything i open poweramp it starts a track which I eventually skip which then eventually registers as play via WiFi sync.

Is this a player issue or an issue with wifiapp? Power amp tag don't seem to update the playcount on there end which is weird.

Edit: just realised that playcounts from musicbee don't transfer over to the device, The plays from power amp must be from when I skipped the tracks.
Title: Re: Wifi android device synching
Post by: phred on November 19, 2020, 01:53:20 AM
Everything i open poweramp it starts a track which I eventually skip which then eventually registers as play via WiFi sync.
This is a PowerAmp issue. MB has nothing to do with creating or incrementing play counts on the device player.
Title: Re: Wifi android device synching
Post by: Maestro30k on November 20, 2020, 11:17:47 AM
Hi

I know this issue was mentioned previously but I am unsure if someone ever managed to fix it.

I decided to give Gonemad player a go. Whenever I try to sync playscount the app gives error say unable to read stats. The stats file is present and I am using the unlocked version but for some reason unknown to me it does not work.

Any help is appreciated
Title: Re: Wifi android device synching
Post by: Quwanti on November 27, 2020, 01:45:53 PM
So lately I've been having trouble syncing. The app claims the server is not found. It doesn't seem like Musicbee is blocked by my firewall. This has been happening after the most recent beta update.
Title: Re: Wifi android device synching
Post by: phred on November 27, 2020, 02:17:59 PM
This has been happening after the most recent beta update.
How are you attempting to sync? Wired (USB)? WiFi?
Beta update of what? The WiFi app? MB?
What version of MB are you using? (Help > About)
How was MB installed? (Installer, Portable, Store)
Title: Re: Wifi android device synching
Post by: Quwanti on November 27, 2020, 08:11:26 PM
How are you attempting to sync? Wired (USB)? WiFi?
Beta update of what? The WiFi app? MB?
What version of MB are you using? (Help > About)
How was MB installed? (Installer, Portable, Store)
I'm trying to sync through wifi. The Musicbee Wifi Sync's latest beta update (November 2nd), which was installed on my phone (Huawei P20 lite) a few days later. I wasn't able to synch before or after the latest Musicbee update (v3.4.7625). I just noticed there was a small update (v3.4.7628) which I installed with the .exe file in the Musicbee 3.4 thread.

I tried uninstalling and clearing the cache for the wifi app.

Trying to do just a playlist sync does give an error log, which might be useful(?).

Code
2020-11-27: ANE-LX2J;  9;  2.1
14:51:24: loadPlaylists: java.net.ConnectException: failed to connect to /192.168.1.2 (port 27304) from /192.168.1.2 (port 56022) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused)
Title: Re: Wifi android device synching
Post by: phred on November 27, 2020, 08:39:16 PM
Does a wired (USB) sync work?
In order to use the WiFi sync you must do a one-time wired preview or sync.
Has the WiFi sync ever worked for you?

From the error message you posted, I'd say it's a firewall issue as MB is refusing the connection. In your previous post you said "It doesn't seem like Musicbee is blocked by my firewall." If I'm reading the error correctly, it does seem like something is prevent the connection to be made. I suggest instead of guessing about your firewall, you actually confirm that MB is allowing connections.

Title: Re: Wifi android device synching
Post by: Quwanti on November 27, 2020, 10:51:55 PM
Does a wired (USB) sync work?
In order to use the WiFi sync you must do a one-time wired preview or sync.
Has the WiFi sync ever worked for you?

From the error message you posted, I'd say it's a firewall issue as MB is refusing the connection. In your previous post you said "It doesn't seem like Musicbee is blocked by my firewall." If I'm reading the error correctly, it does seem like something is prevent the connection to be made. I suggest instead of guessing about your firewall, you actually confirm that MB is allowing connections.



I had tried disabling the firewall, but nothing changed. I just now removed musicbee from the incoming connections so I could accept the prompt again, though nothing has changed yet. I also once again tried to re-install the Wifi Sync app. It doesn't seem like I'm getting a "locate server" prompt, although to my knowledge I removed all the files related to the app from my phone.

The IPv4 address for my computer (ether) would be 192.168.1.3, while wireless would be 192.168.1.4. I have tried switching the connection from ethernet to wireless wifi, but nothing changed.

As for wired sync: After I connected the phone to the computer, Musicbee (app) does recognize the phone. Wired syncing doesn't appear to work either, however.

EDIT: I can confirm wired syncing does in fact work. Does playcount syncing work through this as well, though?

EDIT2: Got it to work after setting a static IP for my computer.
Title: Re: Wifi android device synching
Post by: Bee-liever on December 11, 2020, 04:46:03 AM
Could Musicolet be added as a Reverse Sync player option please.

(I couldn't find an official plugin support page as yet, so unfortunately I've posted this in bug reports  :(  )
Title: Re: Wifi android device synching
Post by: Steven on December 11, 2020, 04:51:27 AM
Could Musicolet be added as a Reverse Sync player option please.
It depends if they have a way of exposing the play counts, ratings and playlists. Do they have a support forum (quick google search didnt find anything)
Title: Re: Wifi android device synching
Post by: Bee-liever on December 11, 2020, 05:51:08 AM
Do they have a support forum (quick google search didnt find anything)
Only on Facebook https://www.facebook.com/musicolet/ (https://www.facebook.com/musicolet/)
or email to the developer Maulik Raviya: [email protected]
Title: Re: Wifi android device synching
Post by: Steven on December 11, 2020, 07:01:31 AM
Unfortunately no ratings or playcount api. You could try requesting it (I think the request is better coming from a user)
Title: Re: Wifi android device synching
Post by: Bee-liever on December 12, 2020, 09:56:37 AM
Unfortunately no ratings or playcount api. You could try requesting it (I think the request is better coming from a user)
Have made the request.  Will see what the outcome is.
Title: Re: Wifi android device synching
Post by: phildg on December 31, 2020, 05:06:18 PM
I am new to MusicBee from MediaMonkey but I just can't seem to get two way sync working updating playcounts and last played

I have tried both PowerAmp and gonemad and in both cases I can sync music onto my Samsung S10 but not 2 way

I am getting an error wirh GoneMad: It looks like the file /storage/emulated/0/gmmp/stats.xml doesn't exist although the error says permission denied. I check the folder and there is no sign of it

Any Ideas?

2020-12-31: SM-G975F;  10;  2.1
17:01:10: ping: socket ok=/192.168.86.245
17:01:10: ping: hello=MusicBeeWifiSyncServer/1.0
17:01:10: ping: matched=/192.168.86.245,status=OK
17:01:14: startSync: preview=false,iteration=0
17:01:14: command: action=SYNC_START
17:01:14: tryStart: connecting /192.168.86.245, attempt=0
17:01:14: tryStart: connected
17:01:14: tryStart: hello=true,fromMB=true,custfiles=false,preview=false,dev=SM-G975F,2
17:01:14: storage: path=/storage/17DC-13B8,root=17DC-13B8:,uri=content://com.android.externalstorage.documents/tree/17DC-13B8%3A
17:01:14: syncDevice: root=/storage/17DC-13B8,ignoreErrors=false,playlists=true,ratings=true,playcount=true
17:01:14: syncDevice: command=SendPlaylists
17:01:14: syncDevice: command=SendFile
17:01:14: syncDevice: command=SendStats
17:01:14: sendStats: java.io.FileNotFoundException: /storage/emulated/0/gmmp/stats.xml: open failed: EACCES (Permission denied)
17:01:14: libcore.io.IoBridge.open(IoBridge.java:496)
17:01:14: java.io.FileOutputStream.<init>(FileOutputStream.java:235)
17:01:14: java.io.FileOutputStream.<init>(FileOutputStream.java:186)
17:01:14: com.getmusicbee.musicbeewifisync.WifiSyncService$SynchronisationWorker.loadGoneMadStats(WifiSyncService.java:1225)
17:01:14: com.getmusicbee.musicbeewifisync.WifiSyncService$SynchronisationWorker.sendStats(WifiSyncService.java:1114)
17:01:14: com.getmusicbee.musicbeewifisync.WifiSyncService$SynchronisationWorker.syncDevice(WifiSyncService.java:477)
17:01:14: com.getmusicbee.musicbeewifisync.WifiSyncService$SynchronisationWorker.tryStartSynchronisation(WifiSyncService.java:361)
17:01:14: com.getmusicbee.musicbeewifisync.WifiSyncService$SynchronisationWorker.run(WifiSyncService.java:247)
17:01:14: java.lang.Thread.run(Thread.java:919)
17:01:14: syncDevice: command=GetFiles
17:01:14: getFiles: Get: Music/,url=/storage/17DC-13B8/Music/, inc=true
17:01:14: getFiles: count=25
17:01:14: syncDevice: command=GetFiles
17:01:14: getFiles: Get: Podcasts/,url=/storage/17DC-13B8/Podcasts/, inc=true
17:01:14: getFiles: count=0
17:01:14: syncDevice: command=GetFiles
17:01:14: getFiles: Get: Music/Playlists/,url=/storage/17DC-13B8/Music/Playlists/, inc=false
17:01:14: getFiles: count=1
17:01:14: syncDevice: command=ReceiveFile
17:01:14: receiveFile: Receive: Music/Pearl Jam/1994 - Vitalogy/02 Spin the Black Circle.mp3
17:01:14: syncDevice: command=ReceiveFile
17:01:14: receiveFile: Receive: Music/Pearl Jam/1994 - Vitalogy/Pearl Jam - Vitalogy.jpg
17:01:14: syncDevice: command=ReceiveFile
17:01:14: receiveFile: Receive: Music/Playlists/Top 25 Most Played.m3u
17:01:14: syncDevice: command=Exit
17:01:14: exitSync: fails=0
17:01:14: waitScanFiles: start
17:01:15: waitScanFiles: done
17:01:15: syncDevice: exit
Title: Re: Wifi android device synching
Post by: frankz on December 31, 2020, 05:31:46 PM
This is not a Musicbee issue

You need to backup your stats in GMMP and set that to happen automatically.
Title: Re: Wifi android device synching
Post by: phildg on December 31, 2020, 06:07:22 PM
Thank you - I knew someone else must have seen the issue before
Title: Re: Wifi android device synching
Post by: phildg on December 31, 2020, 06:57:30 PM
Sorry for raising another issue but I'm now getting an error saying 'Unable to retrieve statistics from GoneMad player. The unlocked version of GoneMad is required, otherwise check the GoneMad error log.'

I have nothing in the GoneMad log and I definitely have the unlocked version, and I checked. The xml file is being created and looks like a standard xml file.

I did a search and noticed this was raised about a year ago but couldn't see an answer and it seemed to be on older versions of MB.
Title: Re: Wifi android device synching
Post by: highstrung on January 01, 2021, 02:18:54 AM
I am working through a similar issue (also a recent refugee from monkey-land).  I suspect it's an Android permissions issue.  I'm running Android 10 on a Galaxy S9.

If I manually trigger a 'backup stats' from GMMP, that creates the stats.xml file; after that, attempting a reverse sync shows me the "backup stats succeeded" popup (indicating it was able to trigger GMMP's backup) but nothing is actually updated in MB.

If I go into the gmmp folder on my phone, and delete that stats.xml file, then I get the same EACCESS error as appears in your logs, and never see the "backup stats succeeded" message.  Looking at the source on github, this is because if the file doesn't exist, the app tries to create it before triggering the GMMP backup, and if the creation errors out it never gets as far as the triggering.  

So my guess is that the app can neither read nor write in the /gmmp/ folder.  App permissions shows it having permissions on "Storage" but perhaps there's some further nuance to the android permissions.
Title: Re: Wifi android device synching
Post by: phildg on January 01, 2021, 02:56:00 PM
I went back to PowerAmp and can now sync play counts and last played dates without issues. Although it seems you have to play another song before the last play gets synced back to musicbee but that could well be a PowerAmp issue.
Would be nice to find out more about the GoneMad issue but at least I have a solution and can continue my migration from media monkey
Title: Re: Wifi android device synching
Post by: phildg on January 01, 2021, 07:37:29 PM
I'm getting very inconsistent results syncing back.
First I do a preview and it tells me 4 files are not matched and then I click the back button and re-select preview and it tells me 5 files are not matched. And doing it again gives me different files that are not matched which is very odd. See the two attached screenshots.


https://i.imgur.com/89zwv7K.jpg (https://i.imgur.com/89zwv7K.jpg)

https://i.imgur.com/JMxabDj.jpg (https://i.imgur.com/JMxabDj.jpg)
Title: Re: Wifi android device synching
Post by: highstrung on January 01, 2021, 09:29:15 PM
I'm not an android dev, but it appears that android 10 introduced new limitations that prevent one app from accessing another app's files, which is what the GoneMad reverse sync does. If that's the case, the requestLegacyExternalStorage (https://developer.android.com/training/data-storage/use-cases#opt-out-scoped-storage)  option would offer a short term workaround, but for android 11+ it would require GMMP to store the stats.xml in a different location.
Title: Re: Wifi android device synching
Post by: SuperMrBlob on January 10, 2021, 05:17:39 PM
Bug report: at least for me, this feature does not work with .cue files, at least when they need to be converted to mp3. It says it works, but it only converts the first song in the cue file. The cue file is copied (so Poweramp THINKS all the songs are there) but they are not.

Otherwise really enjoying this feature. Thank-you! Hopefully you can fix this.
Title: Re: Wifi android device synching
Post by: billouparis on January 29, 2021, 05:42:28 PM
Hi guyz,
Lazy to read 58 pages of forum right now :(
Does the latest sync tool version still keep re-copying over and over files that are already on the mobile?
Also MusicBee 3.4 is recognized as a virus by Microsoft virus detection tool :(
Thank you,
Bill
Title: Re: Wifi android device synching
Post by: psychoadept on January 29, 2021, 05:53:37 PM
Lazy to read 58 pages of forum right now :(

A simple forum search for "virus" would get you a whole list of threads on false positive virus reports.

Regarding your sync question, that's not what's supposed to happen, no.
Title: Re: Wifi android device synching
Post by: derTyp on February 02, 2021, 10:17:42 PM
Hi,

I tried to setup wifi sync today but I can't get it to work.
My guess is that it doesn't work because I have different IP ranges for wifi and cable, at least the app log shows its scanning only the wifi range.
Is there any way to manually input the IP of the PC running musicbee or change the range of IPs to scan? If not I think that would be a feature that might help some people with more complex network environments.

Title: Re: Wifi android device synching
Post by: Steven on February 03, 2021, 08:12:04 AM
I am not expert enough in networking to know how to deal with issues with wifi connectivity. If you can read java and have some knowledge of socket programming then i am happy to make proposed changes or could be done yourself
https://github.com/mayallst/MusicBeeWifiSync
Title: Re: Wifi android device synching
Post by: highstrung on February 03, 2021, 10:49:48 PM
Is the github repo current?  I see references in the forum to a version 2.0.4 but the version in the repo is 2.0.0 (in app/buid.gradle).
Title: Re: Wifi android device synching
Post by: derTyp on February 03, 2021, 10:55:09 PM
I am not expert enough in networking to know how to deal with issues with wifi connectivity. If you can read java and have some knowledge of socket programming then i am happy to make proposed changes or could be done yourself
https://github.com/mayallst/MusicBeeWifiSync

Thanks I will try to put something together and send a pull request.

Is the github repo current?  I see references in the forum to a version 2.0.4 but the version in the repo is 2.0.0 (in app/buid.gradle).

I have already done some changes so it would be nice if master would be the current version so I can rebase.
Title: Re: Wifi android device synching
Post by: Steven on February 04, 2021, 06:56:34 AM
i have uploaded the latest files
Title: Re: Wifi android device synching
Post by: Calabrel on February 04, 2021, 08:16:03 PM
Does this still work with the new version of gmmp (3.x).

I asked about syncing play counts and last played with last.fm, and he mentioned that MusicBee already did that and there was a sync with gmmp.  As I already use MusicBee on my desktop and gmmp on my phone, I hope this is still true.

https://gonemadmusicplayer.proboards.com/post/7284
Title: Re: Wifi android device synching
Post by: psychoadept on February 04, 2021, 09:21:03 PM
It was working fine for me with the 3.0 beta. I'm having issues right now but it's because I switched computers, not because of GMMP (as far as I know).
Title: Re: Wifi android device synching
Post by: phred on February 04, 2021, 10:16:59 PM
Using GMMP 3.0.3 syncing works fine. I can't confirm playcount syncing as I don't care about them and therefore don't sync them.
Title: Re: Wifi android device synching
Post by: derTyp on February 04, 2021, 10:55:44 PM
i have uploaded the latest files

Thanks I sent you a pull request https://github.com/mayallst/MusicBeeWifiSync/pull/5
Title: Re: Wifi android device synching
Post by: Calabrel on February 05, 2021, 02:05:44 PM
It was working fine for me with the 3.0 beta. I'm having issues right now but it's because I switched computers, not because of GMMP (as far as I know).

Ah, that's good news.  I guess I just have to figure out where to get it and how to use it now.
Title: Re: Wifi android device synching
Post by: SkyZippr on February 05, 2021, 02:49:35 PM
Reverse syncing of playcounts from GMMP doesn't work for me. It manages to trigger the generation of stats.xml, but then it throws me an 'unable to retrieve statistics' error. I suspect this to be an Android 10 issue, as mentioned a while back:
I'm not an android dev, but it appears that android 10 introduced new limitations that prevent one app from accessing another app's files, which is what the GoneMad reverse sync does. If that's the case, the requestLegacyExternalStorage (https://developer.android.com/training/data-storage/use-cases#opt-out-scoped-storage)  option would offer a short term workaround, but for android 11+ it would require GMMP to store the stats.xml in a different location.
I wonder if anybody managed to get it working on an Android 10 device?
Title: Re: Wifi android device synching
Post by: Steven on February 05, 2021, 10:58:19 PM
Thanks I sent you a pull request https://github.com/mayallst/MusicBeeWifiSync/pull/5
Thanks - I have sent you a PM as having some issues with the build
Title: Re: Wifi android device synching
Post by: ucynml on March 14, 2021, 03:49:03 PM
I recently started using musicbee wifi sync. It does a great work for transferring songs from MB. But reverse syncing of playcounts and ratings doesn't seem to work. I've tried it on two devices, Android 8 and Android 10, so the problem isn't an OS-dependent issue. These are error logs. Any help appreciated.

Code
2021-03-14: SOV33;  8.0.0;  2.1
21:35:21: startSync: preview=true,iteration=0
21:35:21: command: action=SYNC_START
21:35:21: tryStart: connecting /192.168.0.7, attempt=0
21:35:21: tryStart: connected
21:35:21: tryStart: hello=true,fromMB=false,custfiles=false,preview=true,dev=SOV33,2
21:35:21: storage: path=/storage/0123-4567,root=0123-4567:,uri=content://com.android.externalstorage.documents/tree/0123-4567%3A
21:35:21: syncDevice: root=/storage/0123-4567,ignoreErrors=false,playlists=false,ratings=true,playcount=false
21:35:21: syncDevice: command=SendStats
21:35:21: sendStats: Unable to retrieve stats for player: 1
21:35:21: syncDevice: command=GetFiles
21:35:21: getFiles: Get: Music/,url=/storage/0123-4567/Music/, inc=true
21:35:21: getFiles: count=542
21:35:21: syncDevice: command=GetFiles
21:35:21: getFiles: Get: Music/Podcasts/,url=/storage/0123-4567/Music/Podcasts/, inc=true
21:35:21: getFiles: count=0
21:35:21: syncDevice: command=ShowPreviewResults
21:35:21: syncDevice: exit

Code
2021-03-14: SOV43;  10;  2.0.0
23:15:27: startSync: preview=true,iteration=0
23:15:27: command: action=SYNC_START
23:15:27: tryStart: connecting /192.168.0.7, attempt=0
23:15:28: tryStart: connected
23:15:28: tryStart: hello=true,fromMB=false,custfiles=false,preview=true,dev=SOV43,2
23:15:28: storage: path=/storage/6665-3663,root=6665-3663:,uri=content://com.android.externalstorage.documents/tree/6665-3663%3A
23:15:28: syncDevice: root=/storage/6665-3663,ignoreErrors=false,playlists=false,ratings=true,playcount=false
23:15:28: syncDevice: command=SendStats
23:15:38: sendStats: Unable to retrieve stats for player: 1
23:15:38: syncDevice: command=GetFiles
23:15:38: getFiles: Get: Music/,url=/storage/6665-3663/Music/, inc=true
23:15:38: getFiles: count=1817
23:15:38: syncDevice: command=GetFiles
23:15:38: getFiles: Get: Music/Podcasts/,url=/storage/6665-3663/Music/Podcasts/, inc=true
23:15:38: getFiles: count=0
23:15:38: syncDevice: command=ShowPreviewResults
23:15:38: syncDevice: exit

(https://i.imgur.com/u26rWg9.jpg)

I have the unlocked version of GoneMad and stats.xml is generated(/storage/emulated/0/gmmp/stats.xml). I think musicbee wifi sync can't find it on certain devices. How about allowing users to specify a statistics file using the file picker?
Title: Re: Wifi android device synching
Post by: frankz on March 20, 2021, 07:34:40 PM
Something I noticed that started recently (I think when I got upgraded to Android 11).

When an album with a folder.jpg is completely removed from sync and therefore deleted from the device, the music files get deleted OK at the beginning of the sync process but at the end, when MB Wifi Sync goes to delete the folder, the sync hangs and needs to be stopped with the stop button.  This leaves a folder with just a folder.jpg on the device.  I'm pretty sure, also that playlists get synched after the folder deletion, so that doesn't happen when you stop the sync with the stop button. 

Maybe a check for album art or other files in folders that are set to be deleted so they can be deleted first would solve this? It seems Android (11 at least) is preventing non-empty folders from being deleted.
Title: Re: Wifi android device synching
Post by: gvps1580 on March 30, 2021, 08:53:07 PM
Hi,

Does anyone know how to unsync a playlist from updating onto an android? I made a few playlists and had already set up the wireless sync to my phone from my PC. I've since decided I don't want some playlists automatically syncing...how do I go about removing this sync function from my phone? I've checked both PC and phone app settings (musicbee and Poweramp). Any help or feedback would be appreciated.

Thanks!
Title: Re: Wifi android device synching
Post by: phred on March 30, 2021, 09:35:31 PM
I'm a little confused. First you say you want to unsync the playlist. Then you say you want to remove the sync function from the phone.
Which is it?
If you want to remove the sync function from the phone, uninstall the app.
If you want to remove the playlist from being synced, uncheck the box next to the playlist in MB's device properties.
Title: Re: Wifi android device synching
Post by: Kenda81 on April 03, 2021, 10:05:21 AM
Hi,
I'm trying to use the MusicBee Wifi Sync (Beta) App on Android. My problem is that I can only select between internal or SD card storage. However, I need to specify a specific subfolder on the SD card which is not possible. The result is that the sync is assuming all folders and playlists are residing in the root of the SD card which is not the case, so a sync is of no use this way.

When using the app the first time, I thought I had seen the option to specify a subfolder, but currently there is no option for that. I cleared the app's data and cache which didn't help.

Thanks for looking into this or any hints.
Title: Re: Wifi android device synching
Post by: Steven on April 03, 2021, 11:28:31 AM
in the device settings you can set a sub-folder in each of the music files, audiobook files, etc
eg. music files defaults to: Music\<Album Artist>\<Album>\<Artist> - <Title>
but could be changed to: Music\folder\<Album Artist>\<Album>\<Artist> - <Title>
Title: Re: Wifi android device synching
Post by: Kenda81 on April 05, 2021, 09:47:44 AM
Hi Steven,
thanks for the quick reply. That worked! The problem was, that the storage path already contained the mentioned subfolder G8231\SD card\Music, however it must be G8231\SD card\ whereas the folder Music has to be contained in music files (Music\<Playlist>\...). Nonetheless, problem solved.

Now that it's working, I encountered two more problems.
1. When syncing playcount and rating from GoneMAD music player, I get the message that the unlocked version of GoneMAD is needed to access these. I definitely have the unlocked version and can't find any hint in the GoneMAD log as mentioned in the message. Do you have any idea?

2. When syncing playlists changed in GoneMAD back to MusicBee I get the following errors. It seems to work, as the changed playlist appears in MusicBee, however something must be not right.
Code
createFile: Invalid filename: World Music.m3u
reveiveFile: java.io.InvalidObjectExeption: Invalid filename: World Music.m3u: file=World Music.m3u
Title: Re: Wifi android device synching
Post by: phred on April 05, 2021, 01:14:56 PM
1. When syncing playcount and rating from GoneMAD music player, I get the message that the unlocked version of GoneMAD is needed to access these. I definitely have the unlocked version and can't find any hint in the GoneMAD log as mentioned in the message. Do you have any idea?
This sounds like something you should bring to GoneMad's developer.

Quote
2. When syncing playlists changed in GoneMAD back to MusicBee I get the following errors. It seems to work, as the changed playlist appears in MusicBee, however something must be not right.
Code
createFile: Invalid filename: World Music.m3u
reveiveFile: java.io.InvalidObjectExeption: Invalid filename: World Music.m3u: file=World Music.m3u
Might there be an accent or other character in the file name that's not showing here when you copied over the error message?
Title: Re: Wifi android device synching
Post by: Kenda81 on April 05, 2021, 02:54:21 PM
1. When syncing playcount and rating from GoneMAD music player, I get the message that the unlocked version of GoneMAD is needed to access these. I definitely have the unlocked version and can't find any hint in the GoneMAD log as mentioned in the message. Do you have any idea?
This sounds like something you should bring to GoneMad's developer.

If nothing helps, sure, however it's an option of the app, so I wanted to ask here first, maybe it's a general problem which looks more like it to me.

2. When syncing playlists changed in GoneMAD back to MusicBee I get the following errors. It seems to work, as the changed playlist appears in MusicBee, however something must be not right.
Code
createFile: Invalid filename: World Music.m3u
reveiveFile: java.io.InvalidObjectExeption: Invalid filename: World Music.m3u: file=World Music.m3u
Might there be an accent or other character in the file name that's not showing here when you copied over the error message?

I just typed the error message and didn't copy it. However I just double-checked that it's the exact text from the app's error log.

Thanks so far!
Title: Re: Wifi android device synching
Post by: frankz on April 05, 2021, 03:09:29 PM
1. When syncing playcount and rating from GoneMAD music player, I get the message that the unlocked version of GoneMAD is needed to access these. I definitely have the unlocked version and can't find any hint in the GoneMAD log as mentioned in the message. Do you have any idea?
This sounds like something you should bring to GoneMad's developer.
It apparently is: https://getmusicbee.com/forum/index.php?topic=28093.msg185756#msg185756

If nothing helps, sure, however it's an option of the app, so I wanted to ask here first, maybe it's a general problem which looks more like it to me.

If you search the thread for "unlocked," you'll see that the first suggestion is to manually trigger the backup to stats.xml from within GoneMAD.  This will create the file that android permissions are preventing MB from creating on its own.  However, it seems that on Android 11+ this won't matter because MB won't even be allowed to read the file in the location where GMMP wants to put it.

That's my interpretation anyway, coming to it as someone who uses PowerAmp and isn't interested in reverse sync so hasn't been following the matter too closely.

Searching for the issue in the thread might bring more info but that's what I remember.
Title: Re: Wifi android device synching
Post by: phred on April 05, 2021, 03:21:35 PM
I just typed the error message and didn't copy it. However I just double-checked that it's the exact text from the app's error log.
In the future you'd be better off using copy/paste for error messages. It eliminates the possibility of creating a typo. Or using a O when it should be a 0. Which would then send someone on a wild goose chase.
Title: Re: Wifi android device synching
Post by: Kenda81 on April 05, 2021, 05:54:43 PM
1. When syncing playcount and rating from GoneMAD music player, I get the message that the unlocked version of GoneMAD is needed to access these. I definitely have the unlocked version and can't find any hint in the GoneMAD log as mentioned in the message. Do you have any idea?
This sounds like something you should bring to GoneMad's developer.
It apparently is: https://getmusicbee.com/forum/index.php?topic=28093.msg185756#msg185756

If nothing helps, sure, however it's an option of the app, so I wanted to ask here first, maybe it's a general problem which looks more like it to me.

If you search the thread for "unlocked," you'll see that the first suggestion is to manually trigger the backup to stats.xml from within GoneMAD.  This will create the file that android permissions are preventing MB from creating on its own.  However, it seems that on Android 11+ this won't matter because MB won't even be allowed to read the file in the location where GMMP wants to put it.

That's my interpretation anyway, coming to it as someone who uses PowerAmp and isn't interested in reverse sync so hasn't been following the matter too closely.

Searching for the issue in the thread might bring more info but that's what I remember.

Thanks, I should have searched myself in the first place. :-X The post https://getmusicbee.com/forum/index.php?topic=28093.msg188582#msg188582 shows exactly my problem. Seems there is nothing more I can do at the moment than just to wait if the MusicBee app get's a fix or workaround for reading the stats.xml from GoneMAD.

If it's not possible due to Android permissions, a workaround could be to load the file from another folder when copied there.
Title: Re: Wifi android device synching
Post by: bkev on April 15, 2021, 10:03:39 AM
Yes, I'm gutted about this. I love the fact I can listen to songs on my phone and then sync the ratings and play counts back to my computer.

I've recently got an Android 11 phone and I get an error about "sendStats: java.io.FileNotFoundException: /storage/emulated/0/gmmp/stats.xml: open failed: EEXIST (File exists)"

Or  "sendStats: java.io.FileNotFoundException: /storage/emulated/0/gmmp/stats.xml: open failed: EEXIST (Permission denied)" if I manually do a backup of the stats from GoneMad player.

I've tried deleting the file, manually creating a backup but it just doesn't seem to work.

I'd really like to sync my ratings and play counts back to MusicBee from my phone.

Is there any workaround for this?
Title: Re: Wifi android device synching
Post by: bkev on April 21, 2021, 01:24:24 PM
I've checked on Google Play and the sync tool hasn't been updated for over a year - I'm not sure if it's still supported or not?

Other than the options that have already been discussed (file picker - manually move the stats.xml on the phone to a different folder and select it from there), another option is to manually copy the stats.xml to the computer where MusicBee is.

But, I don't know what the sync tool does to actually import or update the stats from the file into MusicBee.

I'd be happy ,as a work around, to copy the stats.xml to my computer but what do I need to do in MusicBee to import or update the information in the MusicBee database from the stats.xml file (play count/ratings)?
Title: Re: Wifi android device synching
Post by: phred on April 21, 2021, 08:19:22 PM
The WiFi Sync app does playcount and ratings syncing to MB on the PC only when using GoneMad Media Player or PowerAmp. If you're using a different Android player, you'll need to figure out you're own work-around.
Title: Re: Wifi android device synching
Post by: bkev on April 22, 2021, 08:20:50 AM
I'm using Gone Mad player but the WiFi sync app no longer works as it doesn't have access to the stats.xml file on my phone due to restrictions in Android 11.

I was wondering until (if?) the app is fixed if I can manually do something with the stats.xml to import the ratings and play counts into MusicBee.
Title: Re: Wifi android device synching
Post by: mgray on May 22, 2021, 11:31:52 PM
I agree with bkev. A way to directly use the stats.xml file would be ideal.
Title: Re: Wifi android device synching
Post by: Steven on May 23, 2021, 12:01:32 AM
I dont have time to look at it for quite a while, but the source code is here:
https://github.com/mayallst/MusicBeeWifiSync
if anyone with java development skills can add support for reading the stats.xml file from an additional configurable location
Title: Re: Wifi android device synching
Post by: foxgguy2001 on May 23, 2021, 04:19:12 PM
I don't have any coding experience, but I have created an issue that outlines the Android 11 permission issue.  Hopefully someone can help!  
https://github.com/mayallst/MusicBeeWifiSync/issues/6

It appears permissions for MANAGE_EXTERNAL_STORAGE is needed
https://developer.android.com/training/data-storage/manage-all-files

However, looks like that may be difficult given restrictions on apps requesting these elevated permissions:
"You should request the MANAGE_EXTERNAL_STORAGE permission only when your app cannot effectively make use of the more privacy-friendly APIs, such as Storage Access Framework or the Media Store API. Additionally, the app's usage of the permission must fall within permitted uses, and must be directly tied to the core functionality of the app. If your app includes a use case that's similar to the following examples, it's likely to be allowed to request the MANAGE_EXTERNAL_STORAGE permission:

File managers
Backup and restore apps
Anti-virus apps
Document management apps
On-device file search
Disk and file encryption
Device-to-device data migration"

I don't think it'd be feasible to ask the Gonemad dev to save the backups to the shared media locations since that information is not media, and this would fall under the 'Device-to-device data migration' use case mentioned in the list above.  May just be as 'simple' as a little permissions tweak.  I put that in quotes only because I'm not sure what that entails...
Title: Re: Wifi android device synching
Post by: thed0g195 on June 08, 2021, 09:16:12 PM
Is it normal that the App keeps syncing same files over and over, despite they've just been synced already? Are there any file changes being done when you play music in musicbee and it registers that as a file change so it wants to sync it?

Or I'll ask like this: how does Musicbee Wifi Sync know which file was synced or not, or if there are changes?
Title: Re: Wifi android device synching
Post by: frankz on June 08, 2021, 10:28:45 PM
Is it normal that the App keeps syncing same files over and over, despite they've just been synced already? Are there any file changes being done when you play music in musicbee and it registers that as a file change so it wants to sync it?

Or I'll ask like this: how does Musicbee Wifi Sync know which file was synced or not, or if there are changes?

There are files in your MB AppData folder for each device.  One of these is a MBL file - MusicBee Library.  This keeps track of what's been put on the device and when the version on the device was updated.

Each time you change a file in any way - change a tag, add or edit artwork, add or edit lyrics,etc (even automatically if your settings do this)  - it updates the "Date Modified" date of the file in Windows.  MB compares the "Date Modified" of the file on your computer to the date of the version on the device.  If the "Date Modified" on your computer is more recent than the version on the device, the file will be resynched.
Title: Re: Wifi android device synching
Post by: phred on June 08, 2021, 11:28:05 PM
Excellent explanation, frankz.
Title: Re: Wifi android device synching
Post by: frankz on June 08, 2021, 11:31:25 PM
Why thank you!
Title: Re: Wifi android device synching
Post by: SkyZippr on June 10, 2021, 01:43:27 AM
Are there any file changes being done when you play music in musicbee and it registers that as a file change so it wants to sync it?
Play count and Last played are updated when you play it in MB. In my case, anything I play on my PC gets re-synced onto my Android.
And yes, since Play count and Last played are updated, Last modified is also updated in Windows.
Title: Re: Wifi android device synching
Post by: frankz on June 10, 2021, 01:50:11 AM
And yes, since Play count and Last played are updated, Last modified is also updated in Windows.
Unless you're specifically writing these to a tag, I don't see why this would be the case.  In general those are database fields, not tagged to the file.  Nothing I listened to today that wasn't updated in some other way has today as date modified either in MB or in Windows.

Auto-tagging ratings, lyrics, artwork - these things are generally the reason a file will get modified just from being played.
Title: Re: Wifi android device synching
Post by: SkyZippr on June 11, 2021, 04:05:11 AM
Unless you're specifically writing these to a tag, I don't see why this would be the case.  In general those are database fields, not tagged to the file.
My bad. I must have altered something then, hopefully on purpose.
Title: Re: Wifi android device synching
Post by: bkev on June 16, 2021, 11:53:18 AM
The guy that maintains GoneMad said this about the sync not working:

"The legacy storage option works up to and including android 11 as long as the app targets android 10. Once targeting 11 it stops working for Android 11+

It's a simple flag in the manifest and what gmmp currently is using for storage access"

Hopefully it seems like it can be fixed by someone that understand the current code and how to add in this flag.
Title: Re: Wifi android device synching
Post by: christmw2503 on June 22, 2021, 02:16:57 PM
Just need a clarification. Wifi sync doesn't work if my PC is connected to my phone's wifi hotspot? Because sharing my phone internet to my PC, I get the error "Server Not Found". But if I connect both PC and phone to the same router, the sync works fine.
Title: Re: Wifi android device synching
Post by: phred on June 22, 2021, 08:09:02 PM
That's correct.

The PC with MB, and the portable device with the MB Sync App have to be on the same (WiFi) network.  Connecting to a hot spot is not the same as being on your own network.
Title: Re: Wifi android device synching
Post by: christmw2503 on June 23, 2021, 08:39:14 AM
Something must've changed. Earlier when the app launched, syncing with mobile Hotspot worked. I used it multiple times, even when mobile data was off on the phone. I think it was using Wi-Fi direct protocol.
Title: Re: Wifi android device synching
Post by: phred on June 23, 2021, 12:15:48 PM
Something must've changed. Earlier when the app launched, syncing with mobile Hotspot worked. I used it multiple times, even when mobile data was off on the phone. I think it was using Wi-Fi direct protocol.
From the very first post in the thread:
Instructions:
- only connections from your private network are supported

Hotspots are not part of your local (private) network.
Title: Re: Wifi android device synching
Post by: thed0g195 on June 26, 2021, 09:46:19 PM
Is it normal that the App keeps syncing same files over and over, despite they've just been synced already? Are there any file changes being done when you play music in musicbee and it registers that as a file change so it wants to sync it?

Or I'll ask like this: how does Musicbee Wifi Sync know which file was synced or not, or if there are changes?

There are files in your MB AppData folder for each device.  One of these is a MBL file - MusicBee Library.  This keeps track of what's been put on the device and when the version on the device was updated.

Each time you change a file in any way - change a tag, add or edit artwork, add or edit lyrics,etc (even automatically if your settings do this)  - it updates the "Date Modified" date of the file in Windows.  MB compares the "Date Modified" of the file on your computer to the date of the version on the device.  If the "Date Modified" on your computer is more recent than the version on the device, the file will be resynched.

Thank you, I've thought about that being the case, but the thing is I don't edit ID3 tags of those files, nor even play them. The "modified date" hasn't been changed for over a year. And yet they're always resynced. I've also tried unsyncing (deleting) all playlists from the phone (samsung a50) and then trying to sync playlists one by one. It doesn't happen with all playlists, just specific ones, but have no idea why.
Title: Re: Wifi android device synching
Post by: frankz on June 26, 2021, 10:56:24 PM
The only other thing I can think of is a change that would alter the file names for those files on the device then.  

For this to be the case only with certain playlists, you'd have to have "create a sub-folder for each playlist and its tracks" selected under the device's playlist storage settings on the settings tab of the device page.  When a playlist changes, the file names on the device will be different because they are in numbered order (to avoid duplicate file names when there are intentional duplicates in the list).  This will be the case for shuffled playlists always because the order of the tracks is different each time.

The only way to avoid this would be to not set that or to not change the playlist between synchs (using the shuffle scenario, you'd have to shuffle play on the device rather than send the device a pre-shuffled playlist).

Other than that I'm out of ideas.
Title: Re: Wifi android device synching
Post by: bkev on June 29, 2021, 08:46:06 AM
I dont have time to look at it for quite a while, but the source code is here:
https://github.com/mayallst/MusicBeeWifiSync
if anyone with java development skills can add support for reading the stats.xml file from an additional configurable location

It looks like someone has tried to add the code to at least be able to access the original file location for gmmp:. https://github.com/mayallst/MusicBeeWifiSync/pull/7
Title: Re: Wifi android device synching
Post by: Hiphopopotamus on July 07, 2021, 02:19:41 PM
Hi all. How do I get reverse sync working when using the GoneMad app on my phone? When I remove a song from a playlist in my GoneMad app and reverse sync it (checking the 'playlists' box under 'Reverse Sync to computer') to my MusicBee app on my laptop - the song is not removed.. Then, if I sync my music from my laptop to my phone - the song I removed from GoneMad reappears on my GoneMad app..

Any idea how to fix this? Ideally, the song I remove from my phone playlist is also removed from my laptop playlist.
Title: Re: Wifi android device synching
Post by: phred on July 07, 2021, 02:38:59 PM
What version of MB are you using? (Help > About)
How was MB installed? (Store, Installer, Portable)
What version of the WiFi Sync app are you using?
Title: Re: Wifi android device synching
Post by: Hiphopopotamus on July 07, 2021, 03:55:50 PM
Hi Phred :)

What version of MB are you using? 3.4.7805 Store
How was MB installed? It says 'store' next to the version number, so I guess it's that?
What version of the WiFi Sync app are you using? 2.0.0
Title: Re: Wifi android device synching
Post by: phred on July 07, 2021, 04:06:11 PM
Hmmm ... you might try updating the WiFi Sync to the latest - 2.1 although I'm not sure what changed since 2.0.
Also you might try the Portable installation and ditch the Store version. The Portable gets updated quite frequently via patches and is much easier to move should you get a new PC. Backups are very easy as you just copy the entire MB directory to a backup destination. Be sure to place the Portable in a non-Windows controlled directory. Use something like C:\MusicBee.

No guarantee that either of my suggested changes will fix your issue, but the first step in troubleshooting is to always make sure you're on the latest versions.
Title: Re: Wifi android device synching
Post by: frankz on July 07, 2021, 05:48:12 PM
In Android 11+ (is there a plus, I don't know), the MB app cannot get the necessary permissions to read the stats.xml file from GoneMad that it would need to reverse sync.  Therefore, this will not work.

https://getmusicbee.com/forum/index.php?topic=28093.msg189673#msg189673
Title: Re: Wifi android device synching
Post by: phred on July 07, 2021, 06:28:38 PM
In Android 11+ (is there a plus, I don't know)
Ahhh - that's correct. I had forgotten about the OS 11 issue. And not, there's no plus.
Title: Re: Wifi android device synching
Post by: Hiphopopotamus on July 07, 2021, 08:20:20 PM
Cheers frankz. I only have the Android OS S9 -   does that have the same problem?
Title: Re: Wifi android device synching
Post by: phred on July 07, 2021, 08:25:39 PM
Cheers frankz. I only have the Android OS S9 -   does that have the same problem?
OS 9 presents no issues. That's what I'm using.
Title: Re: Wifi android device synching
Post by: Kanobis on July 08, 2021, 09:44:26 AM
I just tried the sync app for the first time (into GoneMad). Brand new device (FiiiO M11) and brand new downloads of MB, GoneMad, and the Sync App. Did a test run of 2GB before I put my (massive) music collection on my device. The 2GB took nearly 30 minutes to transfer. That seems very slow to me, but not having done this before, I don't know. Is that a normal speed for wifi? I tried a wired sync first, and while it was much, much faster, half of my metadata didn't copy over within the files (or at least it didn't show up in GoneMad) and my music library in GoneMad was a mess as a result, so I deleted everything and did a new sync with the wifi app. I read somewhere that wifi sync is more reliable in that regard and indeed it was and my GoneMad library is nice and clean now. But at this speed, it's going to take me a year to transfer a couple terabytes.
Title: Re: Wifi android device synching
Post by: phred on July 08, 2021, 12:15:47 PM
Just about every report I've read states that WiFi sync is substantially faster than a USB sync. I too find it to be much faster.

If I recall correctly, my last 'full' sync of about 140gb took about six hours.
Title: Re: Wifi android device synching
Post by: Hiphopopotamus on July 08, 2021, 08:46:33 PM
Hi Phred. Looks like reverse sync could work on my current phone then (using the portable version) as I have OS 9, but not on the phone I'll be getting next week as it'll be the Galaxy S10 and from what I can see it'll have OS 11  :'(
Title: Re: Wifi android device synching
Post by: phred on July 08, 2021, 09:01:10 PM
Hi Phred. Looks like reverse sync could work on my current phone then (using the portable version) as I have OS 9, but not on the phone I'll be getting next week as it'll be the Galaxy S10 and from what I can see it'll have OS 11  :'(
You have my sympathy. I'm heading in the same direction. My Galaxy isn't holding its charge as well as it used to. I will keep it going as long as I possibly can as I don't want to use OS11 and be forced back to a USB sync.
Title: Re: Wifi android device synching
Post by: Hiphopopotamus on July 08, 2021, 09:04:26 PM
OMG..  : ??? We will also lose WIFI sync..  :o   :-[  :'(

Sympathies all round..
Title: Re: Wifi android device synching
Post by: frankz on July 08, 2021, 10:37:47 PM
You have my sympathy. I'm heading in the same direction. My Galaxy isn't holding its charge as well as it used to. I will keep it going as long as I possibly can as I don't want to use OS11 and be forced back to a USB sync.
I use wifi sync on Android 11 every day.  It's only reverse sync to GoneMad (that I don't use) that doesn't work.

BTW What's with this OS9/OS11 talk? These aren't mac computers  ::)
Title: Re: Wifi android device synching
Post by: phred on July 08, 2021, 10:41:12 PM
BTW What's with this OS9/OS11 talk? These aren't mac computers  ::)
HOT DAMN!!! I'm good to go to 11 as I don't reverse sync.
Title: Re: Wifi android device synching
Post by: Hiphopopotamus on July 08, 2021, 10:43:41 PM
WIFI sync works with OS / Android 11 .. ?? Woohoo !!

I'll now stop trying to work out (and failing) how to USB sync  ;D
Title: Re: Wifi android device synching
Post by: bkev on July 09, 2021, 07:21:54 AM
Yep. I can confirm that syncing FROM PC to Android 11 does work. If songs are added or removed that sync to Android (I use a smart playlist) it works.

The thing that doesn't work is if you wanted ratings or playcounts syncing BACK to the PC as the WiFi app is unable to read the Gonemad stats.xml file due to Android file permissions.

Having said that, I have somehow managed to compile the app myself with the patch that has been submitted on GitHub and this does fix the issue for me so I'm pretty happy!
Title: Musicbee Sync Mobile (Android)
Post by: DruZilla219 on July 16, 2021, 06:50:52 PM
The one thing I'd want to be able to do is have the app sync music and such to a specific sub folder on my microSD Card, because I have a large handful of other things saved there that are organized in their own respective folders that I don't need the app to worry about.
Title: Re: Musicbee Sync Mobile (Android)
Post by: Steven on July 17, 2021, 01:38:06 AM
The one thing I'd want to be able to do is have the app sync music and such to a specific sub folder on my microSD Card, because I have a large handful of other things saved there that are organized in their own respective folders that I don't need the app to worry about.
you can specify the folder name in the naming template. By default its Music\ but can be changed
Title: Re: Wifi android device synching
Post by: MCDoubleDefDP on August 14, 2021, 10:45:21 PM
WARNING: If you are running Android 12 Beta 4, DO NOT not clear the MusicBee Wifi Sync app's data or you will lock yourself out of using it. The app will ask you to select the root folder of your SD card in order to sync, but Android will prevent you due to a '"Can't use this folder: To protect your privacy, choose another folder" message. If you try to grant access to a subfolder, the MusicBee app will then tell you that you can't use a subfolder. As long as you set up wifi sync before Beta 4, you will be fine.

Here are some screenshots: https://imgur.com/a/Uh9ttZ5 (http://https://imgur.com/a/Uh9ttZ5).

Right before posting this comment, I stumbled upon this Reddit post (https://www.reddit.com/r/android_beta/comments/p38ety/granting_access_to_android_folder_is_impossible/) where someone is having the exact same issue, but with a different app, so it seems something changed in Beta 4. The user created an request in Google's issue tracker, so please consider starring it so they will hopefully revert the change: https://issuetracker.google.com/issues/196422354. Thank you in advance.
Title: Re: Wifi android device synching
Post by: Blackened on September 20, 2021, 03:50:32 PM
Request, can I make a request where there's an option of the file transfer would automatically convert into High Quality conversion on either playlist or regular transfer? Most of my songs are on 320kbps so I need to be conservative on the quality size below 320kbps or lossless.
Title: Re: Wifi android device synching
Post by: Morrisonville on October 07, 2021, 04:33:25 PM
Any tips on how to QA issues? I've got an old phone (LG V30) that I use for music and backup sim card - i.e. its on old version of Android and won't get update. Wifi Sync worked fine before I took a trip. Came back home and I can't get anything except the "Server not found. Ensure MusicBee is running and Windows Firewall is not blocking MusicBee". I did nothing to either the phone or the laptop on my trip, home internet is the same as before i left, etc. No change and I'm stuck on how to QA to fix.
Title: Re: Wifi android device synching
Post by: phred on October 07, 2021, 04:51:37 PM
Request, can I make a request where there's an option of the file transfer would automatically convert into High Quality conversion on either playlist or regular transfer? Most of my songs are on 320kbps so I need to be conservative on the quality size below 320kbps or lossless.
I'm not sure I understand what you're trying to do. I read it as you want to automatically convert a low(er) quality file into a high quality. That's a big mistake as once a file is low quality, converting it to high quality doesn't really do anything to improve the quality. The only way to get high quality would be to re-rip from the original source.

But if you want to do it anyway, there are 'on-the-fly' conversion options in the config settings for the device.
Preferences > Devices > [choose device] > settings > on-the-fly conversion
Title: Re: Wifi android device synching
Post by: phred on October 07, 2021, 04:59:47 PM
Any tips on how to QA issues? I've got an old phone (LG V30) that I use for music and backup sim card
I'm using an LG V20 running Android OS v8 with a 512gb sd card and having no issues. I'd suggest uninstalling the WiFi app from the phone, restarting the phone, and then reinstalling the app. If that doesn't solve the issue, you may have to turn on the app's logging feature, but I'd wait until Steven weighs in on this.
Title: Re: Wifi android device synching
Post by: Morrisonville on October 08, 2021, 02:41:49 AM
Any tips on how to QA issues? I've got an old phone (LG V30) that I use for music and backup sim card
I'm using an LG V20 running Android OS v8 with a 512gb sd card and having no issues. I'd suggest uninstalling the WiFi app from the phone, restarting the phone, and then reinstalling the app. If that doesn't solve the issue, you may have to turn on the app's logging feature, but I'd wait until Steven weighs in on this.

Thanks - I did just try this now and still no luck. I've restarted phone and laptop, used VPN, turned off VPN, tried wired sync to see if it work after ... nothing seems to work.
Title: Re: Wifi android device synching
Post by: phred on October 08, 2021, 03:20:06 AM
tried wired sync to see if it work after ... nothing seems to work.
If wired sync isn't working, you've got something else going on. Is the phone unlocked when you connect it to USB? Make sure it is. And if you haven't done a wired sync before, you need to do one (or at least a wired preview) before the WiFi sync will work.
Title: Re: Wifi android device synching
Post by: Morrisonville on October 08, 2021, 04:50:55 AM
tried wired sync to see if it work after ... nothing seems to work.
If wired sync isn't working, you've got something else going on. Is the phone unlocked when you connect it to USB? Make sure it is. And if you haven't done a wired sync before, you need to do one (or at least a wired preview) before the WiFi sync will work.

Wired sync works now and worked before. When wifi sync wouldn't work, I tried everything I could think of - one of which was to sync wired once and hope wifi would work after. Wifi still didn't work after that though. I've tried everything I can think of and still can't get it to work. It's just odd that it worked fine before my two week trip, but when I came back it won't.
Title: WiFi Wants to Resync All Selected Files
Post by: phred on November 02, 2021, 04:01:53 AM
Using 3.4.7970 P

Last week I got a new 1tb SD Card for my Samsung A42. I did a wired sync preview first and then performed a sync via WiFi. I was syncing approximately 34,000 files along with 90 playlists. The sync took 12-14 hours to complete.

Yesterday I added a new album to my library and when I did a sync preview (using the WiFi Sync app) it showed in excess of 33j, 000 files to be copied. The only change made to the library was the addition of 12 tracks. I went ahead with the sync and it took about an hour. Today I added another album (27 tracks) and again did a WiFi sync preview. It again showed in excess of 33,000 files to be copied. I went ahead with the sync and after three hours it was only at 6%, so I aborted it.

Looking at the date/time stamp for some of the files that did sync, it appears as today's date and time. So existing files are being overwritten. As I said at the beginning, nothing has changed in these files, they are already on the SD card, so they should not be syncing again.

Why is it doing this and how can it be prevented? This is a huge waste of time.

Thanks.

(http://i.imgur.com/LcNM4bIl.jpg) (https://i.imgur.com/LcNM4bI.jpg)
Title: Re: Wifi android device synching
Post by: klint on November 02, 2021, 08:14:32 AM
This has been happening to me all the time for some months with USB sync (I'm not using wifi sync). Maybe it is related though?
Anyway, it seems some change done (done by windows 10?) is detected by musicbee on the fly. But the rescan feature does not detect these changes.
So, the workaround for me is to rescan all the files with a recent last update timestamp according to musicbee. Then the date is set back to the real last update and most of the files will not be synced. Until next time
Title: Re: Wifi android device synching
Post by: Steven on November 02, 2021, 09:57:24 AM
could you run this debug version and send me the new info (approx 100 lines) at the end of the error log

https://www.mediafire.com/file/t064z5t1tm7eepp/MusicBeeDebugSync.zip/file
Title: Re: Wifi android device synching
Post by: phred on November 02, 2021, 01:37:09 PM
could you run this debug version and send me the new info (approx 100 lines) at the end of the error log
Thanks for taking a look at this, Steven.

Rather than give up 12-14 hours for a complete sync with the debug version, I ran a preview and before going ahead I looked at the error log. Here are the 110 entries from today's test, but when I tried to post them here, SMF said I exceeded the maximum limit. I have zipped them and uploaded to mediafire and sent the link to you via PM.
Title: Re: Wifi android device synching
Post by: frankz on November 02, 2021, 02:09:11 PM
FYI I've had this happen before when changing storage, and the reason has been having two identically named device profiles (the second created automatically when the new storage replaced the old storage).  Something to consider.
Title: Re: Wifi android device synching
Post by: phred on November 02, 2021, 02:14:48 PM
FYI I've had this happen before when changing storage, and the reason has been having two identically named device profiles (the second created automatically when the new storage replaced the old storage).  Something to consider.
I appreciate the suggestion but there is only one profile for the device I'm using.
(http://i.imgur.com/6LycIWCl.jpg) (https://i.imgur.com/6LycIWC.jpg)
Title: Re: Wifi android device synching
Post by: Steven on November 02, 2021, 09:53:29 PM
can you let me know the naming template used in the device settings for the music files
Title: Re: Wifi android device synching
Post by: phred on November 02, 2021, 09:59:29 PM
can you let me know the naming template used in the device settings for the music files
Code
Music\<Album Artist>\<Album>\<Disc-Track#> - <Title>
(http://i.imgur.com/572qOmZl.jpg) (https://i.imgur.com/572qOmZ.jpg)
Title: Re: Wifi android device synching
Post by: Steven on November 02, 2021, 10:23:50 PM
could you use this one and repeat - the error log file produced will be very large
https://www.mediafire.com/file/kmh3r14eqin8tcf/MusicBeeDebugSync.zip/file
Title: Re: Wifi android device synching
Post by: phred on November 02, 2021, 11:07:09 PM
could you use this one and repeat - the error log file produced will be very large
PM with link sent
Title: Re: Wifi android device synching
Post by: Fivda on November 08, 2021, 01:02:53 AM
Tried to do it, and I did manage to get a few files ported over to my phone but it didn't take long for it to give me an error.

Code
2021-11-08: LG-H840;  6.0.1;  2.0.0
01:47:50: locate: search=192.168.1., exclude==16
01:47:50: ping: socket ok=/192.168.1.13
01:47:50: ping: hello=MusicBeeWifiSyncServer/1.0
01:47:50: ping: matched=/192.168.1.13,status=FAIL
01:49:12: locate: search=192.168.1., exclude==16
01:49:12: ping: socket ok=/192.168.1.13
01:49:12: ping: hello=MusicBeeWifiSyncServer/1.0
01:49:12: ping: matched=/192.168.1.13,status=FAIL
01:50:05: locate: search=192.168.1., exclude==16
01:50:05: ping: socket ok=/192.168.1.13
01:50:05: ping: hello=MusicBeeWifiSyncServer/1.0
01:50:05: ping: matched=/192.168.1.13,status=OK
01:50:05: ping: socket ok=/192.168.1.13
01:50:06: ping: hello=MusicBeeWifiSyncServer/1.0
01:50:06: ping: matched=/192.168.1.13,status=OK
01:53:24: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/Philips/Tetris CD-i (Gamerip)/1-05 - Level 4.mp3
01:53:26: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/Philips/Tetris CD-i (Gamerip)/1-06 - Level 5.mp3
01:53:28: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/Philips/Tetris CD-i (Gamerip)/1-07 - Level 6.mp3
01:53:30: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/Philips/Tetris CD-i (Gamerip)/1-08 - Level 7.mp3
01:53:32: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/Philips/Tetris CD-i (Gamerip)/1-09 - Level 8.mp3
01:53:33: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/Philips/Tetris CD-i (Gamerip)/1-10 - Level 9.mp3
01:53:35: createFile: Music/Various Artists/Crayon Physics Deluxe/1-01 - Lullaby.mp3: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference, folder=null
01:53:35: receiveFile: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference: file=Music/Various Artists/Crayon Physics Deluxe/1-01 - Lullaby.mp3
01:53:36: createFile: Music/Various Artists/Crayon Physics Deluxe/1-02 - Afternoon Snooze.mp3: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference, folder=null
01:53:36: receiveFile: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference: file=Music/Various Artists/Crayon Physics Deluxe/1-02 - Afternoon Snooze.mp3
01:53:37: createFile: Music/Various Artists/Crayon Physics Deluxe/1-03 - Crayon Dreams.mp3: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference, folder=null
01:53:37: receiveFile: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference: file=Music/Various Artists/Crayon Physics Deluxe/1-03 - Crayon Dreams.mp3
01:53:38: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/INTELLIGENT SYSTEMS/Fire Emblem Echoes꞉ Shadows of Valentia Original Soundtrack/5-01 - Stairway of Delight.mp3
01:53:45: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/INTELLIGENT SYSTEMS/Fire Emblem Echoes꞉ Shadows of Valentia Original Soundtrack/5-12 - Mystery of the Divine Realm.mp3
01:53:51: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/INTELLIGENT SYSTEMS/Fire Emblem Echoes꞉ Shadows of Valentia Original Soundtrack/5-13 - Eternal Glory.mp3
01:53:56: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/INTELLIGENT SYSTEMS/Fire Emblem Echoes꞉ Shadows of Valentia Original Soundtrack/5-16 - The Borders of Justice.mp3
01:54:00: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/INTELLIGENT SYSTEMS/Fire Emblem Echoes꞉ Shadows of Valentia Original Soundtrack/5-19 - The Heritors of Arcadia [English version].mp3
01:54:06: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/INTELLIGENT SYSTEMS/Fire Emblem Echoes꞉ Shadows of Valentia Original Soundtrack/5-32 - The Ark of Dawn (Classic).mp3
01:54:09: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/INTELLIGENT SYSTEMS/Fire Emblem Echoes꞉ Shadows of Valentia Original Soundtrack/5-33 - Undiscovered Horizons (Classic).mp3
01:54:13: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/INTELLIGENT SYSTEMS/Fire Emblem Echoes꞉ Shadows of Valentia Original Soundtrack/5-40 - Twilight of the Gods (Classic).mp3
01:54:16: createFile: Music/TWOFIVE/Paca Paca Passion 2/1-01 - PRIVATE SERVICE.mp3: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference, folder=null
01:54:16: receiveFile: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference: file=Music/TWOFIVE/Paca Paca Passion 2/1-01 - PRIVATE SERVICE.mp3
01:54:17: createFile: Music/TWOFIVE/Paca Paca Passion 2/1-02 - Mask of Guilty.mp3: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference, folder=null
01:54:17: receiveFile: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference: file=Music/TWOFIVE/Paca Paca Passion 2/1-02 - Mask of Guilty.mp3
01:54:17: createFile: Music/TWOFIVE/Paca Paca Passion 2/1-03 - NO!gen-AK.mp3: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference, folder=null
01:54:17: receiveFile: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference: file=Music/TWOFIVE/Paca Paca Passion 2/1-03 - NO!gen-AK.mp3
01:54:18: createFile: Music/TWOFIVE/Paca Paca Passion 2/1-05 - Navigator.mp3: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference, folder=null
01:54:18: receiveFile: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference: file=Music/TWOFIVE/Paca Paca Passion 2/1-05 - Navigator.mp3
01:54:19: createFile: Music/TWOFIVE/Paca Paca Passion 2/1-06 - Quender Oui.mp3: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference, folder=null
01:54:19: receiveFile: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference: file=Music/TWOFIVE/Paca Paca Passion 2/1-06 - Quender Oui.mp3
01:54:19: createFile: Music/TWOFIVE/Paca Paca Passion 2/1-07 - Blue Noise 2.mp3: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference, folder=null
01:54:19: receiveFile: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference: file=Music/TWOFIVE/Paca Paca Passion 2/1-07 - Blue Noise 2.mp3
01:54:20: createFile: Music/TWOFIVE/Paca Paca Passion 2/1-08 - Nathasia ’99.mp3: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference, folder=null
01:54:20: receiveFile: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference: file=Music/TWOFIVE/Paca Paca Passion 2/1-08 - Nathasia ’99.mp3
01:54:21: createFile: Music/TWOFIVE/Paca Paca Passion 2/1-09 - Subconsious Asian Soul.mp3: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference, folder=null
01:54:21: receiveFile: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference: file=Music/TWOFIVE/Paca Paca Passion 2/1-09 - Subconsious Asian Soul.mp3
01:54:22: createFile: Music/TWOFIVE/Paca Paca Passion 2/1-10 - NO!gen-AK<״Take me higher״> ״Classical house ver״.mp3: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference, folder=null
01:54:22: receiveFile: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference: file=Music/TWOFIVE/Paca Paca Passion 2/1-10 - NO!gen-AK<״Take me higher״> ״Classical house ver״.mp3
01:54:22: createFile: Music/TWOFIVE/Paca Paca Passion 2/1-11 - Quender Oui<״I just feel it״> ״Soft touch house ver״.mp3: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference, folder=null
01:54:22: receiveFile: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference: file=Music/TWOFIVE/Paca Paca Passion 2/1-11 - Quender Oui<״I just feel it״> ״Soft touch house ver״.mp3
01:54:23: createFile: Music/TWOFIVE/Paca Paca Passion 2/1-12 - Mask of Guilty<״Spread wings break free״> ״Another night groove ver״.mp3: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference, folder=null
01:54:23: receiveFile: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference: file=Music/TWOFIVE/Paca Paca Passion 2/1-12 - Mask of Guilty<״Spread wings break free״> ״Another night groove ver״.mp3
01:54:25: createFile: Music/TWOFIVE/Paca Paca Passion 2/1-13 - Remix Tracks.mp3: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference, folder=null
01:54:25: receiveFile: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getAuthority()' on a null object reference: file=Music/TWOFIVE/Paca Paca Passion 2/1-13 - Remix Tracks.mp3
01:54:25: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/Toshihiko Sahashi/Kamen Rider AGITO MUSIC & SONG COLLECTION/1-01 - Unending Deathmatch.mp3
01:54:29: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/Toshihiko Sahashi/Kamen Rider AGITO MUSIC & SONG COLLECTION/1-04 - Opposition.mp3
01:54:33: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/Toshihiko Sahashi/Kamen Rider AGITO MUSIC & SONG COLLECTION/1-05 - Conflict.mp3
01:54:38: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/Toshihiko Sahashi/Kamen Rider AGITO MUSIC & SONG COLLECTION/1-06 - Unknown.mp3
01:54:42: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/Toshihiko Sahashi/Kamen Rider AGITO MUSIC & SONG COLLECTION/1-07 - G3-X & Agito!.mp3
01:54:48: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/Toshihiko Sahashi/Kamen Rider AGITO MUSIC & SONG COLLECTION/1-08 - Agito VS Gills!!.mp3
01:54:55: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/Toshihiko Sahashi/Kamen Rider AGITO MUSIC & SONG COLLECTION/1-14 - G3-X Mobilize!.mp3
01:54:57: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/Toshihiko Sahashi/Kamen Rider AGITO MUSIC & SONG COLLECTION/1-18 - Transform!.mp3
01:55:01: receiveFile: java.io.IOException: write failed: EIO (I/O error): file=Music/Toshihiko Sahashi/Kamen Rider AGITO MUSIC & SONG COLLECTION/1-24 - It's Trouble!.mp3
01:58:38: tryStart0: java.net.SocketException: java.net.SocketTimeoutException
01:59:10: tryStart1: java.net.SocketException: java.net.SocketTimeoutException
Title: Re: Wifi android device synching
Post by: frankz on November 08, 2021, 01:26:57 AM
Tried to do it, and I did manage to get a few files ported over to my phone but it didn't take long for it to give me an error.

Is that going to a card? Personally I'd be worried that my storage was going bad. 
Title: Re: Wifi android device synching
Post by: Fivda on November 08, 2021, 03:57:51 PM
Tried to do it, and I did manage to get a few files ported over to my phone but it didn't take long for it to give me an error.

Is that going to a card? Personally I'd be worried that my storage was going bad.  
It is, but it's got 100+gb of free space and i'm auto-converting my music into mp3 so it shouldn't be a problem, but it is weird.
Ever since i posted, i retried it multiple times, and i got it to work up until 20% were it just stopped working. So i did a wired transfer to retry, and it got to 50% until it stopped working giving me the usual error i've had for a while now (https://getmusicbee.com/forum/index.php?topic=35726.msg195404#msg195404). And now i can't locate the server again when doing it wireless, it just gives me statut=failed despite finding the IP and everything.
Title: Re: Wifi android device synching
Post by: HerrMerkt on November 13, 2021, 01:12:21 AM
I am using a Pixel 6 Pro and want to sync MusicBee to the internal storage.

I have already run a successful wired sync.

If I try to run WiFi sync, the app asks for permission to access the storage. I cannot select the internal storage root folder because Android 12 won't let me, but I also cannot access any other folder because WiFi Sync wants access to an SD card root folder. This is strange, because I selected internal storage and you can' insert an SD card into the phone.

Is there any fix for this issue?
I run Windows 11 on my laptop, but the laptop setup worked with the old phone just yesterday. So it's probably Android 12.
Title: Re: Wifi android device synching
Post by: phred on November 13, 2021, 03:05:41 AM
If I try to run WiFi sync, the app asks for permission to access the storage. I cannot select the internal storage root folder because Android 12 won't let me, but I also cannot access any other folder because WiFi Sync wants access to an SD card root folder. This is strange, because I selected internal storage and you can' insert an SD card into the phone.
Please post a screenshot of MB's device settings for the Pixel.

Also, the issue may very well be related (or due) to Android 12. I can't recall anyone here mentioning that they're using it.
Title: Re: Wifi android device synching
Post by: HerrMerkt on November 13, 2021, 09:17:44 AM
(https://i.imgur.com/5TM8LGi.png)

Here's a screenshot. Thank you for taking a look into this.

For your convenience, I have copied the original post:

Quote
I am using a Pixel 6 Pro and want to sync MusicBee to the internal storage.

I have already run a successful wired sync.

If I try to run WiFi sync, the app asks for permission to access the storage. I cannot select the internal storage root folder because Android 12 won't let me, but I also cannot access any other folder because WiFi Sync wants access to an SD card root folder. This is strange, because I selected internal storage and you can' insert an SD card into the phone.

Is there any fix for this issue?
I run Windows 11 on my laptop, but the laptop setup worked with the old phone just yesterday. So it's probably Android 12.
Title: Re: Wifi android device synching
Post by: phred on November 13, 2021, 01:49:54 PM
For storage path - does the drop-down to the right of the field show any other option?

Google Translate shows "Speicher" as "Storage" but I don't know if that refers to internal storage or the card. On my devices (neither running OS 12) it offers the option "SD Card."
Title: Re: Wifi android device synching
Post by: HerrMerkt on November 13, 2021, 02:08:08 PM
This is the only option and it's also the name that the Windows file explorer shows. It must be the internal storage because the phone does not have an SD slot.
Title: Re: Wifi android device synching
Post by: phred on November 13, 2021, 02:27:15 PM
This is the only option and it's also the name that the Windows file explorer shows. It must be the internal storage because the phone does not have an SD slot.
Let's see if I have this correct... the path is set for internal storage. You try a WiFi sync and the device asks for permission to access the SD card even though you don't have an SD card. Is that correct?

What happens if you grant permission for the card and then try to sync? Does it sync to the internal storage path as configured in the settings? Or does it show an error?
Title: Re: Wifi android device synching
Post by: HerrMerkt on November 13, 2021, 02:57:43 PM
Not exactly. Sorry for being ambiguous yesterday.

If I click on sync now button in WiFi Sync, the app asks for the permission to access the storage. In this dialog, I see all the folders that are saved on the internal storage, so everything is fine.
However, the "use this folder" button is greyed out when I'm on the "root directory" level, according to Android 12, this is due to security reasons.
If I now try to select the "Musik" folder in that the music is stored, the app tells me that this is an invalid folder. The verbatim error message is:

Quote
"Folder "Musik" is not valid.
You must select the SD card root folder and note one of it's subfolder.

As I have already mentioned, the folder "Musik" is stored on the internal storage and the button to select the internal storage root folder is greyed out.
I have tried deleting all the app data and re-installed the app, but the result is still the same.
Title: Re: Wifi android device synching
Post by: phred on November 13, 2021, 04:03:57 PM
Well ... you started out saying "this is strange" and at this point I have to agree. I'm out of ideas, so you'll have to wait to see if someone else comes up with a suggestion or two. I still go back to my comment that the issue is very likely to be Android 12's "new" permissions.

Sorry I couldn't be more helpful.
Title: Re: Wifi android device synching
Post by: HerrMerkt on November 13, 2021, 04:23:58 PM
Thank you anyways.
Title: Re: Wifi android device synching
Post by: MCDoubleDefDP on November 13, 2021, 05:05:33 PM
Thank you anyways.

I just want to confirm that what you are experiencing is in fact due to Android 12. I first reported this back in August when I was part of the beta: https://getmusicbee.com/forum/index.php?topic=28093.msg193643#msg193643 (https://getmusicbee.com/forum/index.php?topic=28093.msg193643#msg193643).

The workaround I found was to set up the app in Android 11 before upgrading, but I know that's not an option on the Pixel 6 since it ships with 12. Anyway, my permissions unexpectedly got reset a couple weeks ago, so I'm right back to being locked out of the app like you are. Please star the issue with Google so they might consider giving users an option to grant the necessary access anyway: https://issuetracker.google.com/issues/196422354 (https://issuetracker.google.com/issues/196422354).

Other than that, the only fix would be if someone could modify the app to allow users to select any folder on their phone rather than just the root it currently requires.
Title: Re: Wifi android device synching
Post by: phred on November 13, 2021, 05:52:24 PM
Thanks for confirming it's an issue brought on with v12.

As is often the case, Google knows what is better for us, whether it is or isn't. And whether we like it or not.
Title: Re: Wifi android device synching
Post by: HerrMerkt on November 13, 2021, 08:19:09 PM
Thank you anyways.

I just want to confirm that what you are experiencing is in fact due to Android 12. I first reported this back in August when I was part of the beta: https://getmusicbee.com/forum/index.php?topic=28093.msg193643#msg193643 (https://getmusicbee.com/forum/index.php?topic=28093.msg193643#msg193643).

The workaround I found was to set up the app in Android 11 before upgrading, but I know that's not an option on the Pixel 6 since it ships with 12. Anyway, my permissions unexpectedly got reset a couple weeks ago, so I'm right back to being locked out of the app like you are. Please star the issue with Google so they might consider giving users an option to grant the necessary access anyway: https://issuetracker.google.com/issues/196422354 (https://issuetracker.google.com/issues/196422354).

Other than that, the only fix would be if someone could modify the app to allow users to select any folder on their phone rather than just the root it currently requires.

Thank you for this information. Looks like all I can do is wait.
Hopefully Google will change this or the WiFi sync app will be updated to allow to select any folder and not just the root folder.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on November 30, 2021, 07:42:30 AM
Ok so i reset my phone a week after getting android 12 and now I'm having problems with Musicbee Wifi Sync.  Android won't let me select the music folder.   It won't let me select anything.   So now i have a phone with no music.    Sucks these Galaxy 21's don't have a SD card slot.   So now i lost all my music doing a full reset instead of having it nice and safe on the SD card.  Wonderful progress.   Is there going to be an update soon to fix this?   

Btw i forgot to report in July of 2020 i figured a workaround to the bug in the app where it has to be reset.  To keep the app from messing up i always click sync more to go back to the main screen.
Title: Re: Wifi android device synching
Post by: Steven on November 30, 2021, 09:18:53 AM
Is there going to be an update soon to fix this?  
No there is no pending fix. Your best bet is to try another application like media monkey for example
Title: Re: Wifi android device synching
Post by: railfan-eric28 on December 01, 2021, 04:47:39 AM
Is there going to be an update soon to fix this?   
No there is no pending fix. Your best bet is to try another application like media monkey for example
Thanks for the reply.   Oh darn.  I really love Musicbee.   I really hope you can figure out a fix.   Have you not had any luck with it yet?  Google is really being a pain in the butt for everyone.  I read a year ago that the new android 12 will have even more strict permissions on top of what already changed on version 11. 
Title: Re: Wifi android device synching
Post by: frankz on December 01, 2021, 05:52:13 AM
Your best bet is to add your voice to the linked thread on Google's issue tracker (https://issuetracker.google.com/issues/196422354).  If they're going insist on locking the permissions, it is not something that can be figured out. 
Title: Re: Wifi android device synching
Post by: railfan-eric28 on December 01, 2021, 06:28:34 AM
Your best bet is to add your voice to the linked thread on Google's issue tracker (https://issuetracker.google.com/issues/196422354).  If they're going insist on locking the permissions, it is not something that can be figured out. 
Thanks.  I did it.  I really hope our complaints make a difference.  I hate seeing android getting more and more like iOS as time goes on. 
Title: Re: Wifi android device synching
Post by: railfan-eric28 on December 02, 2021, 03:21:59 AM
Your best bet is to add your voice to the linked thread on Google's issue tracker (https://issuetracker.google.com/issues/196422354).  If they're going insist on locking the permissions, it is not something that can be figured out. 
I went to setup Poweramp and selected the music folder in the same file explorer window as Musicbee WIFI and I selected it and it accepted it.   How is it that it works for Poweramp but not Musicbee Wifi? 
Title: Re: Wifi android device synching
Post by: frankz on December 02, 2021, 06:07:55 AM
How am I supposed to know that?

My GUESS would be that PowerAmp is READING the music folder and MB is WRITING TO the music folder.  But why are you addressing this to me?  Seems to me you already got an answer from the guy who wrote the program.
Title: Re: Wifi android device synching
Post by: railfan-eric28 on December 03, 2021, 05:23:49 AM
How am I supposed to know that?

My GUESS would be that PowerAmp is READING the music folder and MB is WRITING TO the music folder.  But why are you addressing this to me?  Seems to me you already got an answer from the guy who wrote the program.
Sorry I was just wondering and didn't know if you knew.   ;) Just having conversation.   Your speculation makes sense.  Musicbee could be asking for read and write permissions.   Perhaps Steven has some insight on it.   ;)
Title: Re: Wifi android device synching
Post by: BoringName on May 30, 2022, 03:00:47 AM
For those having the SD card root error message on android 12 I may have got it working.

Disclaimer - I've never touched Android Studio before so I am totally winging it so everything is at your own risk. My partner was using iSyncr with iTunes but the developer sold it and the new owners have screwed it up and are charging $44 a month subscription (WTF!!). So I convinced them to move away from iTunes and now I've spent the last 2 days trying to get this working because there doesn't appear to be any other options to sync playcounts from android.... tried Media Monkey first as I used that 20 years ago but it's just rubbish now, multiple crashes and buggy UI behaviour turned me off very quickly. So here I am re-compiling an app, that's what it's come to. It make me think there is a big gap in the market right now.....

This might work on android 11 but I haven't tested that yet. I will go into another option below so if you're on 11 read the whole thing.

Install Android Studio (AS). Easy to do, there are plenty of guides on the net for this.
Download the code for musicbee wifi on github and extracted it to a folder.
Inside that folder delete .idea\vcs.xml - it causes an error when importing it into AS if you don't.
I opened the folder in AS. It will take a while to build gradle, whatever that means, just be patient.
It prompted me to upgrade gradle to version 7 or something like that. I opted to do that. Again you have to wait a little while.
Once it's loaded you will have a list of files on the left. Under Manifests, drag AndroidManifest.xml onto the right of the screen and it will display the contents.
Add the following line above line 5 in this file. It should be obvious where to put it.
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />

On the left of the screen under the Java folder, drag WifiSyncBaseActivity to the right of the screen.
Change line 115 from this -
if ((Build.VERSION.SDK_INT < Build.VERSION_CODES.N || Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) && !PermissionsHandler.isUserSelectedPermissionsPathValid(WifiSyncServiceSettings.accessPermissionsUri.get())) {

To this -
if ((Build.VERSION.SDK_INT < Build.VERSION_CODES.N || Build.VERSION.SDK_INT >= 32) && !PermissionsHandler.isUserSelectedPermissionsPathValid(WifiSyncServiceSettings.accessPermissionsUri.get())) {

This change just stops it checking if it actually has permission to the folder you select. The code to check permissions has changed and I haven't got my head around how to implement this yet so I chose to skip the check. Obviously not the best option but like I said, I'm just winging it.

I don't know if this matters but I also set a different version number
Right click "app" in the left window and select Open Module Settings
I changed the version code to 75 (was 74) and Version number to 2.2 (was 2.1)

Now just build the APK.
From the menus at the top of the screen, selection Build->Build Bundle(s)/APK(s)->Build APK(s)
This will create the following APK in the original folder
app\build\outputs\apk\debug\app-debug.apk

Copy this file to your phone.
Use a file browser to find the file on your phone and run it. It will state something about not being from the Play Store and it's unsigned, just install anyway.
Once you open it you will get a dialog to allow it to manage all files on the phone, click allow.
Before you do anything else, go out of the app and go to permission settings on the phone.
On mine I had to go to settings->apps->special app access->All files Access (This was on a redmi note 10 pro running a custom A12 AOSP rom)
Even though I had given it permission earlier, I found MusicBee Wifi Sync was set to "Not Allowed" in this menu. I changed it to Allowed. I did find code on how to approve this from within the app but haven't got my head around doing that yet.
Go back into the musicbee app and you should be able to select a folder now without it popping up an error.

I was able to wifi sync new playlists and the music files appeared on the phone in my selected folder so it has write access. There was one error I noticed initially. If your selected folder doesn't have a subfolder called Playlists, the app will still sync but state it was with errors. When you check the error log it says it can't determine if "Playlists" is a child of the folder you selected. There is 2 ways to deal with this.
1. Ignore it and hit sync more, you will see it still wants to sync playlists, just select sync now and this time it will sync without error.
2. Create a folder called "Playlists" inside your selected folder before you do a sync.

But thinking about it now, this is probably only an issue I'm facing in testing because I keep deleting the files to retest, normal users would have done a wired sync first so the "Playlist" folder would get created during this process before you attempt a wifi sync.

I haven't tested 2 way sync with GoneMad yet because the unlocked version needs to be installed. I'm doing all this to get it working on my partners phone so once I get my hands on that I'll pay for the app on their phone and give it a go and update this post, at this stage I can't see why it wouldn't work.

I'm fairly sure this will work on Android 11 but if it doesn't you could also try the following.
In the AndroidManifest.xml file, change the following code -
android:allowBackup="true"
android:theme="@style/AppTheme">

To this -
android:allowBackup="true"
android:theme="@style/AppTheme"
android:requestLegacyExternalStorage="true">

This is the pull request change listed on github. Android 12 ignores the requestLegacyExternalStorage but for android 11 it allows storage access to work like it did in android 10.

The problem with the file permission changes for the creator of this app is google won't just allow any app to use the "MANAGE_EXTERNAL_STORAGE" permission. You have to justify it's usage. So if they made the changes I suggested and uploaded it to the play store, google will probably reject it. So we are stuck with installing the APK manually to bypass this problem.
Title: Re: Wifi android device synching
Post by: Steven on May 30, 2022, 09:10:40 AM
thanks BoringName.
This is directed to anyone, if you want to take full control of this plugin including publishing to the store then please contact me. I really dont want to maintain it anymore
Title: Re: Wifi android device synching
Post by: BoringName on May 31, 2022, 01:35:51 AM
This is directed to anyone, if you want to take full control of this plugin including publishing to the store then please contact me. I really dont want to maintain it anymore

Flying by the seat of my pants at the moment. I just wanted to get it working. I'd consider it if I actually knew what I was doing.

It's currently targeting SDK 29 and needs to target SDK 30 for the app store to accept it. I'll probably see what I can do about making it compliant with SDK 30 without the hack jobs I've currently used. I went down a big rabbit hole reading about scoped storage yesterday. If I can do that I will see if I can figure out how to do a pull request on github. And that will end it for me until google breaks something else. I can usually figure out other peoples code, not great at writing it and zero experience with java.

I suppose I could put a link up to my compiled APK but didn't want to encourage people to install things linked by strangers on the internet.

I forgot my partners phone is Android 11. Everything installed and syncing perfectly with GoneMad, play counts and ratings are syncing back to the PC. Happy days. On my phone (android 12) sync works. I just can't test play counts and ratings syncing back from GoneMad because you need the unlocked version and I don't want to pay for it a second time. I don't use my phone for music.

Went from -
iTunes<--iSyncr-->Rocket Player
To -
MusicBee<--MusicBee Wifi Sync-->GoneMad

It's a vast improvement. I hate itunes and have been trying to convince my partner to replace it for years. Just playing around with MB over the last few days while fixing up this app and I really like it. Plus the sync is 100x better. I was always baffled by how unbelievably slow isyncr was but it worked (most of the time) so we put up with it. Same goes for GoneMad, Rocket Player would constantly be scanning for new music, it would take hours and kill the battery anytime new music was added. GoneMad seems to handle this a lot better although I probably won't know until all the music is on there.

She has about 50k songs. I've synced all her playlists and just doing a full music sync now. She likes ALL her music on the phone. Another improvement over iSyncr is I can see on MB it is up to 18%. iSyncr had no progress bar.
Title: Re: Wifi android device synching
Post by: Haljeff on June 04, 2022, 01:44:32 AM
FYI: 2 way sync does work on android 12. you will have to set permissions in app settings to allow full acces to files
Title: Re: Wifi android device synching
Post by: BoringName on June 04, 2022, 04:17:31 AM
FYI: 2 way sync does work on android 12. you will have to set permissions in app settings to allow full acces to files

The app doesn't ask for that permission so you can't set it. Maybe it's something you can do on a rooted device?

It only asks for permission to media files not all files.

In any case, the way the app checks to see if it has permission to the folder you select is incorrect for newer versions of android which is why it always pops up a message to select the root folder because it thinks it doesn't have permission even if it does.

My previous posts detail how you can modify the source code and compile your own APK for it to work on android 11+ devices.
Title: Re: Wifi android device synching
Post by: Haljeff on June 04, 2022, 11:23:59 AM
settings>apps>musicbee wifi sync>permissions>tap files and media >allow management of all files
Title: Re: Wifi android device synching
Post by: Shougun on June 04, 2022, 03:47:59 PM
settings>apps>musicbee wifi sync>permissions>tap files and media >allow management of all files

For me with a samsung android 12 the app will ask permission to use files, you give it, and if you do what you said the app will only have what appear to be standard files permission and there will be no section to add anything beyond what it has asked for and been given permission for already.

Without having a tweaked wifi sync app, for me at least, the app will refuse to work with GMMP stats.xml (it can create them via the intent thing, but just wont be able to read them). Weirdly it works with poweramp without the modifications.
Title: Re: Wifi android device synching
Post by: Haljeff on June 04, 2022, 04:04:36 PM
You have to manually go through android settings and change allow only media files to allow all files.
This worked for me with modified wifi app
Settings
Apps
Musicbee wifi sync
Permissions
Files and settings
Title: Re: Wifi android device synching
Post by: frankz on June 05, 2022, 06:22:21 AM
For those having the SD card root error message on android 12 I may have got it working.
Thank you so much for this. Now I can get a new phone.
Title: Re: Wifi android device synching
Post by: Nandra on June 06, 2022, 04:41:41 AM
Could I get a clarification on reverse synching? If I...
1. create a playlist in musicbee
2. modify the playlist on-device in goneMAD
3. sync again with reverse sync enabled for playlists
...should I expect the changes to the playlist to show up in musicbee? Or is it the intended behavior for the goneMAD playlist's changes to get erased?

Thanks for everything you've done on this, Steven!
Title: Re: Wifi android device synching
Post by: voNQ4UU2NV8qw0Ij on June 16, 2022, 04:41:38 PM
thanks BoringName.
This is directed to anyone, if you want to take full control of this plugin including publishing to the store then please contact me. I really dont want to maintain it anymore
Is the Musicbee side of the connection documented anywhere? While I am not in a position to update the existing app, I would like to try to get the reverse syncing working as a learning project.
Title: Re: Wifi android device synching
Post by: BoringName on June 17, 2022, 02:24:59 PM
I'll probably see what I can do about making it compliant with SDK 30 without the hack jobs I've currently used.

I've successfully compiled an APK targetting API level 30 and it appears to work on my Android 12 phone. It prompts for permission when required. I haven't tested it on Android 11 yet as it's hard to do through the emulator and I'm not going to risk messing with my partners phone in case it wants to resync the whole library again. For some reason the emulator just won't see my comp to connect to MusicBee, i'm using 10.0.2.2 which is supposed to work.... firewall is set.

I had an old phone running android 9 and it still works on that although it did freeze for a few seconds before loading up the permission prompt, I'll probably grab my friends phone tomorrow (android 11) and give that a test.

This is still using MANAGE_EXTERNAL_STORAGE, it's just a bit better with permissions than my previous effort and could be submitted to the play store. Good chance they will reject it though. I noticed GoneMad is using MANAGE_EXTERNAL_STORAGE also but that app was last updated before the API 30 cutoff on the Play Store.

I don't think scoped storage is as bad as I initially thought as I think you can add persistent permissions to folders so you don't have to bug the user every time you want to delete a file but it's still going to take a decent re-write of the code that is beyond me at this point.

Let me know if you want to do anything with the code, I have no idea how to do a pull request on github but I'll give it a shot if requested. Also my main goal was making it work and I'm sure what I've done isn't best practice, some of it might be outright bad...
Title: Re: Wifi android device synching
Post by: kro4k on June 21, 2022, 11:33:33 PM
I'm having an issue where changes (to ratings) aren't being pushed back from GMMP via MusicBee Wifi Sync to MB (from an Android 12 device).

That is, the sync seems to "work" in that I am able to run it and get a "Musicbee synchronization successfully completed" on the app - it's just that Musicbee doesn't pick up any changes.

WiFi sync WILL push changes from MB to GMMP. So if I change ratings, delete songs in MB and WiFi Sync it will show up in GMMP. But I cannot get reverse sync to show up, it seems to "work" in that it runs without issues, its just that the changes never show up in MB.

Perhaps this is the same issue everyone is having with Android 12? Or no.
Title: Re: Wifi android device synching
Post by: BoringName on July 03, 2022, 05:24:53 AM
I'm having an issue where changes (to ratings) aren't being pushed back from GMMP via MusicBee Wifi Sync to MB (from an Android 12 device).

You need to have the paid version of GMMP for it to do any reverse syncing.

It also could be a permissions issue with Android 12. I'm surprised you were able to get it to sync in the first place as most people get stuck in the loop of selecting the sync folder and it popping up an error about it not being the root directory. There is a solution to that on previous pages of this thread.
Title: Re: Wifi android device synching
Post by: Kanobis on July 03, 2022, 02:57:56 PM
My reverse sync has worked perfectly since install. But suddenly, something's wrong. I randomly thought to "preview" in the Wifi Sync app prior to syncing (which I normally don't do) and everything I've listened to on my device (via GoneMad) since the last time I performed a sync is returning an error: "File not matched in MusicBee. Playcount not chan..." (the screen cuts off at that point, so I'm not sure what the error message says in its entirety). I haven't changed any files on my hard drive, I've not changed anything within MusicBee (aside from adding some new additional music to the library), and nothing on my device has been touched aside from listening to the 60+ tunes that are now giving the error.

The only thing I can think of is that there was a power blackout in my building while MusicBee was open yesterday, so the program (as well as my computer itself) got shut off without properly exiting. Maybe that glitched something? But as far as I can tell, nothing seems different in my sync settings within MusicBee. Does anyone have an idea what the problem could be and how to fix it?

UPDATE:
I went ahead with the reverse sync and, as it had foretold, all the songs were unsuccessful with "File Not Matched" error messages. I went into the GoneMad stats file and checked the time codes against all the songs that failed to sync. Oddly, several of them had already been updated last time I did the reverse sync. The time codes were in the same order as listed in the "last updated" column in MusicBee, so I know it was trying to re-sync something it had already done and not something I've listened to a 2nd time since. And of the songs it was trying to re-sync a second time, 2 or 3 of them were out of order. There was also one song the Wifi Sync app tried to sync that I've never listed to on my device at all (I confirmed and went into GoneMad and checked and there was indeed no playcount listed). So I have no idea how that even got on the reverse sync list.

Since the failed sync attempt, I've tried syncing from MusicBee to my device (which works fine) and also have played a couple more songs on my device and tried reverse syncing again and it still glitches with new songs. I don't know what the issue is. I'd try clearing the cache if the Wifi Sync app and/or the GoneMad app, but I'm afraid what that might do. My only other thoughts is to wipe the device clean, reinstall the apps and reload my entire music library. Hopefully someone has an easier fix?
Title: Re: Wifi android device synching
Post by: BoringName on July 03, 2022, 10:46:19 PM
"File not matched in MusicBee. Playcount not chan..."

Is that the exact message? I can't find it in the source code. It may be a message Musicbee on your PC is sending the App.

What version of android are you using?
Check what permissions MusicBee has, some versions of android will disable app permissions if you don't use them for a while.

I would clear the app data on the Musicbee app first, do a full sync then try a reverse sync. If that fails then reset GoneMad as well.

Title: Re: Wifi android device synching
Post by: Kanobis on July 04, 2022, 05:36:47 PM

Is that the exact message?

What version of android are you using?

Check what permissions MusicBee has.

I would clear the app data on the Musicbee app first, do a full sync then try a reverse sync. If that fails then reset GoneMad as well.

That's the exact message as far as what I can see of it (as stated, the display reaches the edge of the screen half-way through what I obviously assume is the word "changed," so if there's more to the error message, I can't see it). I  did a Google search for the first part of the phrase and there were only 2 results, both of which led to prior messages within this board's thread.

Android is v.7.0. I don't think permissions would have been reset, I have used all of the involved devices and applications quite recently with no issues up until now. Regardless, I tried clearing the MusicBee sync app data, no luck. I then Cleaned out GoneMad as well (unfortunately, I didn't think to write down or backup all my settings, so that was fun reconfiguring it.  :-\  ). After redoing everything, I tried the forward sync through the MusicBee wifi app and it worked great. However, the reverse sync is once again giving that same error message.

In addition to forward syncing through the wifi app (again, worked perfect), I've also tried syncing some new songs via my MusicBee program (desktop version, not the app). Twice out of 3 attempts, it stalled and gave an error saying that it failed to sync one of the songs. I also tried syncing just a couple playlists and a window popped up saying "aborted" with an error message stating "Shutdown was already called on this object that owns it. (Exception from HRESULT: 0x802A0002)".

So perhaps the issue is with the main desktop program and not anything on my device? As stated in my prior message, there was a blackout in my building a couple days ago while running the program that crashed my computer (and thus the program as well), so perhaps, that corrupted something? Everything was working fine before that crash and all these problems have arisen immediately following it.

I suppose my next step is to reinstall (unless there's a repair function) the program on my desktop. Can someone please lead me through how to backup both my library (including playcounts, etc.) and the UI interface that I've customized (as well as any sync settings, etc.), assuming all that can be backed up. I think I probably could try and figure it out, but I really don't want to make any mistakes and do anything that accidentally obliterates any data or settings in my library that I've put together over the last couple years of using the program.
Title: Re: Wifi android device synching
Post by: phred on July 04, 2022, 05:59:41 PM
Is there anything in MB's Error Log from the time of the error? (Help > Support > Show Error Log.) If so, please copy/paste it here. DO NOT provide a screenshot.

What about the Error Log from the WiFi app?
Title: Re: Wifi android device synching
Post by: Kanobis on July 04, 2022, 09:36:42 PM
Is there anything in MB's Error Log from the time of the error? (Help > Support > Show Error Log.) If so, please copy/paste it here. DO NOT provide a screenshot.

What about the Error Log from the WiFi app?

error log from desktop program:
1st error just says: "Copy [hard drive file path] to [device file path]"
2nd error - "The system cannot find the file specified. [file path of a temp file on my hard drive's temp folder]"
3rd error - (same as 1st, with different file paths corresponding to the respective songs)
4th error (when trying to copy a playlist) - "The requested value cannot be determined. (Exception from HRESULT: 0x802A0006)"

error log from wifi sync app:
Quote
2022-07-04: FiiO M1 Pro; 7.0; 2.0.0
07:43:05: locate: search=10.0.0., exclude==158
07:43:06: ping: socket ok=/10.0.0.226
07:43:06: ping: hello=MusicBeeWifiSyncServer/1.0
07:43:06: ping: matched=/10.0.0.226,status=OK
07:43:06: ping: socket ok=/10.0.0.226
07:43:06: ping: hello=MusicBeeWifiSyncServer/1.0
07:43:06: ping: matched=/10.0.0.226,status=OK
Title: Re: Wifi android device synching
Post by: phred on July 04, 2022, 10:34:52 PM
Those are the complete lines from the Error Log? There's nothing that looks like this?
Code
   at #=zTEwx3emvZD$skojOThTRKNc=.#=z_MDR3J1lSN5Oy38qdw==(IList`1 #=zBtevVO8STRCL)
   at #=zkSMQduDFRrt84h14l53BO$iu2A00.#=zWHevWwnx6kNJ.Invoke(IList`1 #=zBtevVO8STRCL)
   at #=zkSMQduDFRrt84h14l53BO$iu2A00.#=qdUlSkv0FgdQdcRQbo9Ey8Y4JfSbLMBzJk3uhTxYgS3A=._Lambda$__0()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
   at #=zTEwx3emvZD$skojOThTRKNc=.#=z_MDR3J1lSN5Oy38qdw==(IList`1 #=zBtevVO8STRCL)
   at #=zkSMQduDFRrt84h14l53BO$iu2A00.#=zWHevWwnx6kNJ.Invoke(IList`1 #=zBtevVO8STRCL)
   at #=zkSMQduDFRrt84h14l53BO$iu2A00.#=qdUlSkv0FgdQdcRQbo9Ey8Y4JfSbLMBzJk3uhTxYgS3A=._Lambda$__0()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()<---

If so, COPY AND PASTE it here.
Title: Re: Wifi android device synching
Post by: Kanobis on July 05, 2022, 01:04:27 PM
If so, COPY AND PASTE it here.

Thanks for pointing that out. These were the previous two entries. I hadn't thought to go further back than the past few days, so I didn't notice these since they were a few weeks prior, but now that you point it out, I do believe these did indeed happen after my last successful sync, so they would apply after all. (These are from the desktop program, not the device's wifi app, in case that's not obvious.)

Code
6/16/2022 3:33:36 AM - 6.1.7601.65536 - 3.4.7805.33439D - System.IO.DirectoryNotFoundException: The system cannot find the path specified.
[J:\FiiO Library\FiiO Library\MusicBeeLibrarySettings.ini]
   at #=z4$ucNWNbXnMtRdEYGQBqltI=.#=zBYIlgI4h7iyM.#=ziVp1Mjw=.#=zSuxpBZKM79Rl(#=zVzsNxnIpA1tczBaJkA== #=zkGydwco=, FileMode #=z$z3Glao=, FileAccess #=zLKtqWYc=, FileShare #=zsMm6EkM=, Int32 #=zXYKgrpQ=, Boolean #=z24QwvVhfD4XK)
   at #=zIeOuUduDwrGsZkw6p2fDQSozxfSd.#=zSuxpBZKM79Rl(#=zVzsNxnIpA1tczBaJkA== #=zkGydwco=, FileMode #=z$z3Glao=, FileAccess #=zLKtqWYc=, Int32 #=zXYKgrpQ=)
   at #=zjsdVjkTpZ3Go$iKRt1PP6Wc=..ctor(#=zVzsNxnIpA1tczBaJkA== #=zkGydwco=)
   at #=z$HIGIKSwwUCXV2RRHwXoHoU=.#=zkYY5Z4c=.#=zsmYANNc=()

Code
6/16/2022 3:33:36 AM - 6.1.7601.65536 - 3.4.7805.33439D - System.IO.DirectoryNotFoundException: The system cannot find the path specified.
[J:\FiiO Library\FiiO Library\MusicBeeLibrary.mbl]
   at #=z4$ucNWNbXnMtRdEYGQBqltI=.#=zBYIlgI4h7iyM.#=ziVp1Mjw=.#=zSuxpBZKM79Rl(#=zVzsNxnIpA1tczBaJkA== #=zkGydwco=, FileMode #=z$z3Glao=, FileAccess #=zLKtqWYc=, FileShare #=zsMm6EkM=, Int32 #=zXYKgrpQ=, Boolean #=z24QwvVhfD4XK)
   at #=zIeOuUduDwrGsZkw6p2fDQSozxfSd.#=zSuxpBZKM79Rl(#=zVzsNxnIpA1tczBaJkA== #=zkGydwco=, FileMode #=z$z3Glao=, FileAccess #=zLKtqWYc=, Int32 #=zXYKgrpQ=)
   at #=zQPpRPdsWyhIujNTeqzRV6GM=.#=z5L5fXSqGQwGD.#=zM1iYx3ISZM7Y(Boolean #=zk9xZk50nVLuOXZv1qA==)
   at #=zQPpRPdsWyhIujNTeqzRV6GM=.#=z5L5fXSqGQwGD.#=zTp6BLEy5oIt$()
   at #=z$HIGIKSwwUCXV2RRHwXoHoU=.#=zUIrS26RPV9bq()
   at #=zsSqWEB_uCfYs1RIo5gmlWEiXxs7c.#=zfySyFcA=.#=zid33hpw=(CloseReason #=zRsgN2eE=, Boolean #=ze6IW_8waWXyw)

I'm not sure what all the code means, but the two files that it says it cannot find are indeed right where they should be. I keep my music library on a portable hard drive, which I occasionally forget to plug in before attempting to load MusicBee. So perhaps that's all the issue was with these errors. Or perhaps the files are corrupted?
Title: Re: Wifi android device synching
Post by: phred on July 05, 2022, 01:22:11 PM
I'm not sure what all the code means, but the two files that it says it cannot find are indeed right where they should be. I keep my music library on a portable hard drive, which I occasionally forget to plug in before attempting to load MusicBee. So perhaps that's all the issue was with these errors. Or perhaps the files are corrupted?
The code can be deciphered by Steven.

Are you keeping MB's library file  (*.mbl) on your portable drive, or are you keeping your music collection (files) on the portable?

I suspect this has something to do with MB not finding the path...
Each time you plug in the portable, does the same drive letter get applied? And if so, then you need to make sure it's plugged in BEFORE you start MB otherwise it's not going to see it.
Title: Re: Wifi android device synching
Post by: Kanobis on July 05, 2022, 06:08:25 PM
Are you keeping MB's library file  (*.mbl) on your portable drive, or are you keeping your music collection (files) on the portable?

I suspect this has something to do with MB not finding the path...
Each time you plug in the portable, does the same drive letter get applied? And if so, then you need to make sure it's plugged in BEFORE you start MB otherwise it's not going to see it.

Both the music files and the program's library files are kept on the portable. I usually remember, but every once in a blue moon I'll forget to plug it in before loading up MusicBee. But on the rare occasion that happens, it just gives me an error message saying it can't open the library, so I close it out, plug the drive in, reopen, and everything's fine. But if that's all this error code refers to, then it shouldn't have anything to do with the wifi app not reverse syncing, because it's not the first time that has happened and I've never had problems until a couple days ago with the sync app.
Title: Re: Wifi android device synching
Post by: phred on July 05, 2022, 07:23:02 PM
The code can be deciphered by Steven.

Quote
Each time you plug in the portable, does the same drive letter get applied?
Title: Re: Wifi android device synching
Post by: Kanobis on July 05, 2022, 10:29:36 PM
Each time you plug in the portable, does the same drive letter get applied?

Yes. Same drive letter every time.
Title: Re: Wifi android device synching
Post by: phred on July 05, 2022, 10:36:01 PM
Yes. Same drive letter every time.
Good.

Then you'll just have to wait for Steven to take a look at the error dump .
Title: Re: Wifi android device synching
Post by: Kanobis on July 06, 2022, 05:39:57 PM
Then you'll just have to wait for Steven to take a look at the error dump .

Ok. Thanks!
Title: Re: Wifi android device synching
Post by: kro4k on July 08, 2022, 03:18:52 AM
I'm having an issue where changes (to ratings) aren't being pushed back from GMMP via MusicBee Wifi Sync to MB (from an Android 12 device).

You need to have the paid version of GMMP for it to do any reverse syncing.

It also could be a permissions issue with Android 12. I'm surprised you were able to get it to sync in the first place as most people get stuck in the loop of selecting the sync folder and it popping up an error about it not being the root directory. There is a solution to that on previous pages of this thread.

It might be a permission issue. I've got the paid GMMP and can sync files, but just not reverse sync ratings. So far haven't found anything on this thread (but might have mixed it).

I'll see if I can reproduce what I did to avoid that permission issue.
Title: Re: Wifi android device synching
Post by: BoringName on July 08, 2022, 08:52:50 AM
So far haven't found anything on this threadit).

On page 66 I detailed how to get the source code from github, make some changes and compile it in android studio. Obviously that requires installing android studio but there is plenty of guides for that and it's not that complicated.

I've also compiled another version that handles permissions requests a bit better for the user.

I could just provide a download link to my apk I guess, if Steven is ok with it. But it would be at your own risk, I'm not a developer and no idea if what I've done is a security risk etc...
Title: Re: Wifi android device synching
Post by: Kanobis on July 18, 2022, 05:18:28 AM
sync is returning an error: "File not matched in MusicBee. Playcount not chan..."

Not having gotten a response from Steven yet, I decided to play around with my sync app and GoneMad. Previously, upon suggestions from those in this thread, I cleared caches and then subsequently data from both apps, neither of which fixed the issue. Today, I tried two new actions. I completely uninstalled then reinstalled the wifi sync app. And in GoneMad, I deleted then rebuilt the program's database from within the app (without clearing app data). My wifi sync app now works perfectly once again. I unfortunately did not separate those two steps before trying the sync app again between the two actions, so I can't say which of the two actions corrected the error. Anyway, I just thought I should post that the issue is fixed so that a potential remedy for anyone who may come across the issue down the road is available on record (and so that when Steven comes across this thread, he doesn't need to worry about responding).
Title: Re: Wifi android device synching
Post by: BoringName on July 23, 2022, 03:23:40 AM
GoneMad has just updated. Interestingly they went the "all files permission" route and I guess google play said that was ok.

The other half has just gone for a walk listening to music on her phone. I'll get her to do a sync when she gets home and make sure it all still works.
Title: Re: Wifi android device synching
Post by: BoringName on July 24, 2022, 04:08:54 AM
Reverse syncing still works with the new version of GoneMad, for play counts anyway.
Title: Re: Wifi android device synching
Post by: mtnagel on August 05, 2022, 10:43:01 PM
For those having the SD card root error message on android 12 I may have got it working.

Disclaimer - I've never touched Android Studio before so I am totally winging it so everything is at your own risk. My partner was using iSyncr with iTunes but the developer sold it and the new owners have screwed it up and are charging $44 a month subscription (WTF!!). So I convinced them to move away from iTunes and now I've spent the last 2 days trying to get this working because there doesn't appear to be any other options to sync playcounts from android.... tried Media Monkey first as I used that 20 years ago but it's just rubbish now, multiple crashes and buggy UI behaviour turned me off very quickly. So here I am re-compiling an app, that's what it's come to. It make me think there is a big gap in the market right now.....

I joined just to say thank you so much for doing this and posting the instructions. This solved my play count/ratings syncing issue with Music Bee and  GoneMad.  This post should be bumped every new page so new users coming here to figure out why syncing isn't working can see it.  The one tip I might add that might be obvious to others is that I had to uninstall the unmodified MusicBee Wifi Sync app before installing this modified version worked.  Thanks again!!
Title: Re: Wifi android device synching
Post by: BoringName on August 06, 2022, 07:15:48 AM
I joined just to say thank you so much for doing this and posting the instructions.

I'm not really a fan of how this forums software does quoting. It would be great if you could highlight part of someone's post and that is the only part quoted when you click the insert quote button.... maybe I'm doing something wrong. I just manually edit the quote at the moment.

With that out of the way.... you're welcome.

I'm currently working on a cover flow plugin that's really monopolizing my time. If I ever get that sorted out (that's a big if) I might look at taking this over so it can be updated on the apps store. At the moment I'm not confident enough with Java to take it on. But I will always be ready to do a hack job if something else breaks as the alternatives to syncing to android are rubbish compared to this one.
Title: Re: Wifi android device synching
Post by: mtnagel on August 06, 2022, 02:11:08 PM
I joined just to say thank you so much for doing this and posting the instructions.

I'm not really a fan of how this forums software does quoting. It would be great if you could highlight part of someone's post and that is the only part quoted when you click the insert quote button.... maybe I'm doing something wrong. I just manually edit the quote at the moment.

With that out of the way.... you're welcome.

I'm currently working on a cover flow plugin that's really monopolizing my time. If I ever get that sorted out (that's a big if) I might look at taking this over so it can be updated on the apps store. At the moment I'm not confident enough with Java to take it on. But I will always be ready to do a hack job if something else breaks as the alternatives to syncing to android are rubbish compared to this one.
I attempted to edit my message to shorten the quote and I ended up deleting my message.  Oops :)  I tried to recreate it, but if it looks different, that's why.

Anyway, it would be awesome if you could pick up maintaining this as who knows if Android 13 and above will break something else? 
Title: Re: Wifi android device synching
Post by: Kartoffelbrei on August 10, 2022, 09:52:15 PM
I noticed that the app scans the IPs 192.168.1.?. Is it possible to implement that the IP is set manually because my IP space is 192 178.100.?
Title: Re: Wifi android device synching
Post by: SkyZippr on August 13, 2022, 10:58:28 AM
In case anyone is using Android based Huawei smartphones like P30, and can't get reverse sync from GMMP to work, follow BoringName's instruction on page 66. Be sure to do everything especially the last part, which I quoted as below. If you omit the last part, it will still show the 'paid version needed' error when you  attempt reverse sync, even if you do have to paid version of GMMP.

I'm fairly sure this will work on Android 11 but if it doesn't you could also try the following.
In the AndroidManifest.xml file, change the following code -
android:allowBackup="true"
android:theme="@style/AppTheme">

To this -
android:allowBackup="true"
android:theme="@style/AppTheme"
android:requestLegacyExternalStorage="true">

A huge thanks to BoringName! I never managed to get reverse sync working ever since I got this phone (Huawei P30). Now I think it's finally syncing 2 years' worth of playcount back to my PC!
Title: Re: Wifi android device synching
Post by: oneformula on August 15, 2022, 04:01:20 AM
so i have a new PC. it was a bear to get the wired sync up, but that seems to be resolved.

ISSUE: i want a way to sync my play counts from my android (samsung galaxy S22 Ultra using Poweramp) back to my PC. i can't. wired sync doesn't update my play counts, and wifi sync (how i used to do it w/ old pc) won't work.

after doing a wired sync, "Server not found. Ensure MusicBee is running and Windows firewall..." message.

i have MusicBee set in Windows Defender to allow MusicBee for private and public access.

tried rebooting everything. all latest software versions.

help???!!! thanks!!!
Title: Re: Wifi android device synching
Post by: BoringName on August 15, 2022, 08:51:53 AM
It looks like the S22 launched with android 12. I could be wrong but I don't think the MB wifi app will be able to reverse sync with PowerAmp in android 12 in it's current state. 2 things need to happen before that can work.
1. PowerAmp needs to change it's code so that the playcount data is not stored in it's own data folder. These folders are completely off limits to other apps in android 12 no matter what file permissions are granted. A rooted device might be able to bypass it.
2. If point 1 happens, the MB wifi app will need to be modified to look in whatever folder poweramp chooses to store its playcount data

Currently the MB wifi app you download from the play store will not work on android 12 for reverse syncing.

There are instructions a couple of pages back in this thread on how to get it work by downloading the code, making some changes and building your own app package. But this will only allow reverse syncing to work with the paid version of GoneMad.

As for your issues with the server not showing up, I have replied to you in the other thread.
Title: Re: Wifi android device synching
Post by: mtnagel on August 18, 2022, 02:49:38 PM
Has anyone updated to Android 13 and tested reverse syncing with BoringName's APK? 
Title: Re: Wifi android device synching
Post by: NighTeagle on August 18, 2022, 03:10:13 PM
It looks like the S22 launched with android 12. I could be wrong but I don't think the MB wifi app will be able to reverse sync with PowerAmp in android 12 in it's current state. 2 things need to happen before that can work.
1. PowerAmp needs to change it's code so that the playcount data is not stored in it's own data folder. These folders are completely off limits to other apps in android 12 no matter what file permissions are granted. A rooted device might be able to bypass it.
2. If point 1 happens, the MB wifi app will need to be modified to look in whatever folder poweramp chooses to store its playcount data

Currently the MB wifi app you download from the play store will not work on android 12 for reverse syncing.

I have a Samsung Galaxy A52s 5G with Android 12, MusicBee Wifi Sync App v2.0.0 and the latest Poweramp version (build-939-bundle-play).
Up till now I've always been able to reverse sync my playcounts with MusicBee.

I've had some occasional troubles during the sync, which I believe were related to a bad wifi connection and not related to Android 12.

In short, reverse sync does work for me with Poweramp on Android 12.

after doing a wired sync, "Server not found. Ensure MusicBee is running and Windows firewall..." message.

i have MusicBee set in Windows Defender to allow MusicBee for private and public access.

help???!!! thanks!!!

I had to set my laptop's IP address to static for the wifi sync to work. Don't remember exactly how I did this a few months ago. I believe I found some comments on this forum which helped me to get it working.

I sometimes still struggle to get a connection even with static IP, but then I try restarting Musicbee and the wifi sync app or even the laptop & smarthphone itself. That has always fixed any remaining connection issues.
Title: Re: Wifi android device synching
Post by: BoringName on August 18, 2022, 11:28:03 PM
In short, reverse sync does work for me with Poweramp on Android 12.

Well that's good to know. Here are the 2 lines of code that grab the sync info
Code
String[] projection = {"folders.path", "folder_files.name", "folder_files.rating", "folder_files.played_times", "folder_files.played_at"};
            try (Cursor cursor = contentResolver.query(Uri.parse("content://com.maxmpz.audioplayer.data/files"), projection, null, null, null))

The next few lines of code iterate through the cursor variable to extract the ratings and play counts. I think I misunderstood the code, I thought content://com.maxmpz.audioplayer.data/files was attempting to access PowerAmps data folder but I think that is actually a URL that tells PowerAmp to supply the stats data when queried. That makes a lot more sense.

I assume you have the paid version? Pretty sure I tested the trial version and reverse syncing didn't work.

I might have to edit a few posts I've made on here implying it might not work.

Title: Re: Wifi android device synching
Post by: NighTeagle on August 19, 2022, 09:14:16 AM
I assume you have the paid version? Pretty sure I tested the trial version and reverse syncing didn't work.

I might have to edit a few posts I've made on here implying it might not work.

Yes I have the paid version. It would surprise me that the trial version wouldn't work, since it is basically the same app, with the same functionality, just with a license of 14(?) days.

Just to be sure: how exactly did you notice reverse syncing didn't work? Did you receive some kind of error message or did you check your MB library after syncing where you noticed playcounts weren't incrementally increased?

I remember I manually checked some playcounts after my first wifi sync a few months ago, which indeed confirmed that the playcounts were succesfully incremented. Ratings however did not reverse sync.
I'll verify this once more this weekend, to be sure I'm not spreading false information :)

Edit: A new test this weekend indeed confirms that the playcounts from the paid Poweramp version were reverse synced to MusicBee on android 12.
Title: Re: Wifi android device synching
Post by: BoringName on August 19, 2022, 11:57:32 PM

Yes I have the paid version. It would surprise me that the trial version wouldn't work, since it is basically the same app, with the same functionality, just with a license of 14(?) days.

Just to be sure: how exactly did you notice reverse syncing didn't work? Did you receive some kind of error message or did you check your MB library after syncing where you noticed playcounts weren't incrementally increased?

Only the paid version of GoneMad allows reverse syncing. I think it even pops up an error if you have reverse syncing options ticked and try a sync with the trial version.

For poweramp I just installed the trial version, played a few songs and then did a sync. None of the songs I played had their play counts updated in musicbee, it didn't show any errors. I only tried it once so maybe I did something wrong. Looking into the differences between trial and full for poweramp does say the trial is a full featured version.

edit: Gave it another shot and I can't get reverse sync to work with PowerAmp trial version. Maybe I'm missing a setting or something. No errors pop up. It just says no changes detected. If I look at the song info in PowerAmp, it lists the play counts for the songs I played as a test.
Title: Re: Wifi android device synching
Post by: PD on August 20, 2022, 01:02:21 AM
So I never had any issues with the Musicbee Wifi Sync app from the Play Store, even on Android 12. Reverse sync worked great with Poweramp, including play counts and ratings. I updated to Android 13 several days ago did several syncs with no issues -- until today.

Did a sync this morning and everything was fine. Tried another sync this afternoon and it was broken. I get the "Folder 'Music" is not valid" and "You must select the SD card root folder and not one of it's sub-folder" error (I'm using a Pixel 5, so it's internal storage, not SD). I can't select any folder on my phone that doesn't give that error now in the app. A wired sync still works fine from Musicbee on my desktop.

So, I go back and follow BoringName's steps and create the new apk that will hopefully give the app the right permissions. I created the apk and installed it just fine, including changing the settings in app permissions to allow all files,  but when I try to sync in the wifi app, I still get the same error message about the folder not being valid and am still unable to select a folder on my phone.

Anybody have any suggestions on what I try to fix this? Or is this something Android 13 broke and I'm powerless to fix? It's just so weird to me that I was still using the app just fine even after installing Android 13, and then for some reason, it just stopped working today.

Any help or suggestions would be greatly appreciated!
Title: Re: Wifi android device synching
Post by: BoringName on August 20, 2022, 03:01:21 AM
So, I go back and follow BoringName's steps

I'm kind of amazed you were able to use it on android 12 with the app store version... anyway. Try putting 33 in this line of code instead of 32
if ((Build.VERSION.SDK_INT < Build.VERSION_CODES.N || Build.VERSION.SDK_INT >= 32) &&

If it still gives you the root error try 34.
Title: Re: Wifi android device synching
Post by: PD on August 20, 2022, 05:52:39 AM
So, I go back and follow BoringName's steps

I'm kind of amazed you were able to use it on android 12 with the app store version... anyway. Try putting 33 in this line of code instead of 32
if ((Build.VERSION.SDK_INT < Build.VERSION_CODES.N || Build.VERSION.SDK_INT >= 32) &&

If it still gives you the root error try 34.

Changing to 34 fixed it! Thanks so much!

In reading through this thread, I'm also amazed it continued to work for me on Android 12. I had installed and started using the app awhile ago (for sure when I was still on Android 11), but I only started using it again earlier this year, so maybe that somehow played a part in it? Regardless, I'm glad to get it's back working again. Thanks again for the help.
Title: Re: Wifi android device synching
Post by: BoringName on August 20, 2022, 07:19:27 AM
I had installed and started using the app awhile ago (for sure when I was still on Android 11)

That might explain it. If you installed it on android 11 and your phone did an OTA update to android 12, it might have done some finicky things with permissions during the upgrade that allowed it to work.

My partners phone still hasn't updated to android 12 yet (it should be soon) so I don't have to worry about android 13 compliance for a good while yet. But at least we know it works.
Title: Re: Wifi android device synching
Post by: NighTeagle on August 21, 2022, 08:32:06 AM
Looking into the differences between trial and full for poweramp does say the trial is a full featured version.

The trial app and the full app are exactly the same app actually. You first install the trial version and additionally install the 'full version' unlocker app. This changes the temporary license of the base (trial) app to an undefinite license. You can even uninstall this unlocker app after this action (which I did) leaving only the base app, i.e. the original trial app.

edit: Gave it another shot and I can't get reverse sync to work with PowerAmp trial version. Maybe I'm missing a setting or something. No errors pop up. It just says no changes detected. If I look at the song info in PowerAmp, it lists the play counts for the songs I played as a test.

No idea why it doesn't work for you then... I just did a reverse sync today with my Android 12 smartphone. The MB wifi sync app said sync completed succesfully and I verified that the playcounts were indeed incremented correctly in Musicbee.

I've had this phone for about 6 months and believe it had Android 12 from the start, but I'm not 100% sure.
Title: Re: Wifi android device synching
Post by: BoringName on August 21, 2022, 10:54:42 AM
The trial app and the full app are exactly the same app actually. You first install the trial version and additionally install the 'full version' unlocker app.

I think that is how a lot of the music players do it. GoneMad has a separate unlocker app and so does Rocket Player but they have limitations on the free versions. PowerAmp seems to be the exception with no limitations. But the other apps will work as free apps (with limitations) whereas PowerAmp is not usable beyond the 15 day trial as far as I am aware.

No idea why it doesn't work for you then... I just did a reverse sync today with my Android 12 smartphone. The MB wifi sync app said sync completed succesfully and I verified that the playcounts were indeed incremented correctly in Musicbee.

I don't know either but I'm assuming it was unlocked on that device?

What's interesting is if I select gonemad without gonemad installed, I get an error message. If I select PowerAmp without Poweramp installed I don't get an error message.

I might have to go through the code a bit, maybe I changed something on my version that just completely bypassed the check for sync data when poweramp is selected.

edit: The app is coded to generate a message about gonemad if it can't get the stats file. For poweramp it just dumps a message in the error log. So it does know poweramp isnt installed. When I installed it again and played a few songs, I don't get any errors in the error log but it also says there is nothing to sync.
Title: Re: Wifi android device synching
Post by: NighTeagle on August 21, 2022, 09:05:21 PM
I don't know either but I'm assuming it was unlocked on that device?

Yes, I've always synced with the unlocked Poweramp version, never with the trial version.
Title: Re: Wifi android device synching
Post by: mtnagel on September 05, 2022, 05:19:10 PM
So, I go back and follow BoringName's steps

I'm kind of amazed you were able to use it on android 12 with the app store version... anyway. Try putting 33 in this line of code instead of 32
if ((Build.VERSION.SDK_INT < Build.VERSION_CODES.N || Build.VERSION.SDK_INT >= 32) &&

If it still gives you the root error try 34.
Thanks again for keeping up on this!  After updating to Android 13, the modified apk kept working, but I had to reinstall it and then it didn't until I made this change.
Title: Re: Wifi android device synching
Post by: roth377 on September 17, 2022, 05:05:10 PM
I'm getting a "package not valid" error when trying to install my own custom apk (from BoringName's steps)

So I just recently started to get the 'root folder' issue in my wifi sync app.

Don't quite understand as I haven't had a security update for a few weeks, but oh well.  So due to another issue I've had (where wifi sync app stopped seeing 'server' on my desktop), I would have a workaround where I'd clear app data/cache, and it would start working again.  Never found root cause, but workaround was fine.

This last time I did it, when I walked through initial setup (which I had to do with wiping data), it would now no longer allow me to use the folder I had been using for months.  Again, no recent security update on my phone that I installed, so I have no idea what changed.

So I attempted BoringName's apk process, and am pretty certain I followed it to the letter.  I've triple-checked myself, and I think I did it all correctly.  But when I take the apk I outputted and send it to my phone, it says the package is not valid -- "App not installed as package appears to be invalid".  This is different from the installing from unknown locations -- other apk's in this directory install fine.

Any thoughts on what's making the package invalid?  I've tried SDK versions 32,33,34 to see if any would work ... none do.
Title: Re: Wifi android device synching
Post by: BoringName on September 18, 2022, 12:24:35 AM
I'm getting a "package not valid" error when trying to install my own custom apk (from BoringName's steps)

Not sure what the issue is there sorry. Maybe just delete that project out of android studio and start again from the beginning?

Or try Build - > Clean Project.
Then Build APK's

No idea what that actually does but I found a few references to it with invalid APK errors.
Title: Re: Wifi android device synching
Post by: roth377 on September 18, 2022, 05:02:23 AM
I think I got it to work -- I went into the java items that I modified (WifiSyncBaseActivity) and chose to recompile it in the build menu.  From there, the build seems to have allowed me to install it.  Seems to work "fine" now (quite a few warnings from Google play protect, but I guess that's to be expected).  Seems I'm able to use the folder as needed.

Thanks, BoringName for the writeup.  Hopefully the community can find a maintainer of the app, but you stepping up to assist Steven and the community is much appreciated!
Title: Re: Wifi android device synching
Post by: phred on September 18, 2022, 02:25:20 PM
@BoringName- since a number of users have found and used your suggestion for getting syncing to work with Android 12 and 13, I'd like to suggest you put together a 'how to' in the Tips & Tricks section. This should help folks who are getting updated devices to find the 'fix' more easily than going through this entire thread.

You might also consider adding it to the Wiki. If you have questions or need help with the Wiki, I suggest reaching out to psychoadept, who is very familiar with it.

Thanks.
Title: Re: Wifi android device synching
Post by: Kothra on September 19, 2022, 03:49:40 AM
I managed to get music sync working but it won't copy playlists. I use the sync by playlist function.

The error given is this:

java.lang.SecurityException: Document 9C33-6BBD: is not a descendant of 9C33-6BBD:Music

9C33-6BBD is the SD card.

Edit: The problem could be that I didn't adjust the device's profile in MusicBee before syncing. I will try that.

Yeah, the problem was that I didn't change the Playlist filepath the Music/Playlists to work with the new Android permissions restriction.
Title: Re: Wifi android device synching
Post by: BoringName on September 20, 2022, 02:21:11 AM
I'd like to suggest you put together a 'how to' in the Tips & Tricks section. This should help folks who are getting updated devices to find the 'fix' more easily than going through this entire thread.

Probably a good idea. I'll get to it at some stage if I can shake off this procrastination phase I seem to be going through. My default response to pretty much everything at the moment is I will do it tomorrow... I didn't test positive for covid but I was sick with something a couple of weeks ago and it's just sucked the life out of me.
Title: Re: Wifi android device synching
Post by: phred on September 20, 2022, 04:13:56 AM
I didn't test positive for covid but I was sick with something a couple of weeks ago and it's just sucked the life out of me.
Feel better.
Title: Re: Wifi android device synching
Post by: Bougicien on September 20, 2022, 06:00:50 PM
I've been using Wifi Sync with my S22 Ultra since release and had no issues. Today all of a sudden, without any system updates I got the error "To protect your privacy, please choose another folder". I don't know what to do. Should wired syncing still work (logically won't but I cannot try right now). Do I have any other alternative? Any solution incoming?
Title: Re: Wifi android device synching
Post by: phred on September 20, 2022, 06:24:34 PM
Today all of a sudden, without any system updates I got the error "To protect your privacy, please choose another folder".
Obviously something has changed on your phone.
Could there have been a silent update?
Could you have enabled automatic updates?
What Android OS do you have?
Have you changed to  another folder?
Wired sync will probably still work, but I can't be certain.
Title: Re: Wifi android device synching
Post by: Bougicien on September 20, 2022, 06:50:12 PM
Today all of a sudden, without any system updates I got the error "To protect your privacy, please choose another folder".
Obviously something has changed on your phone.
Could there have been a silent update?
Could you have enabled automatic updates?
What Android OS do you have?
Have you changed to  another folder?
Wired sync will probably still work, but I can't be certain.
Nothing major. Android 12 and One UI 4.1 since I got the phone. The usual Play Store and Galaxy Store app updates only.
Title: Re: Wifi android device synching
Post by: HannibAlBundy on September 21, 2022, 08:52:52 PM
@BoringName- since a number of users have found and used your suggestion for getting syncing to work with Android 12 and 13, I'd like to suggest you put together a 'how to' in the Tips & Tricks section. This should help folks who are getting updated devices to find the 'fix' more easily than going through this entire thread.

You might also consider adding it to the Wiki. If you have questions or need help with the Wiki, I suggest reaching out to psychoadept, who is very familiar with it.

Thanks.
I don't know if it is possible or not for Steven, but hosting BoringName's apk somewhere and link it in the forum and/or in the wiki would much easier for everybody I believe.

Edit: Or I can provide the APK I built, this not a problem at all.
Title: Re: Wifi android device synching
Post by: boroda on September 22, 2022, 08:14:10 PM
I don't know if it is possible or not for Steven, but hosting BoringName's apk somewhere and link it in the forum and/or in the wiki would much easier for everybody I believe.

Edit: Or I can provide the APK I built, this not a problem at all.
+1. i think this topic (with apk download link) must be pinned on this board.
Title: Re: Wifi android device synching
Post by: phred on September 22, 2022, 09:16:49 PM
+1. i think this topic (with apk download link) must be pinned on this board.
Unfortunately this thread is about 70 pages long and there's no point to making it sticky. I have asked BoringName to recreate his "fix" in the Tips & Tricks section. And to the Wiki.
Title: Re: Wifi android device synching
Post by: boroda on September 23, 2022, 01:12:17 PM
i meant to pin new topic with download link to apk file at first post. and, yes, it may be placed to "tips & tricks" board instead of this board.
Title: Re: Wifi android device synching
Post by: phred on September 23, 2022, 01:20:21 PM
i meant to pin new topic with download link to apk file at first post
Ahh, yes. But again, that would be on BoringName to create it and then notify the moderators and one of us will make it sticky.
Title: Re: Wifi android device synching
Post by: BoringName on September 23, 2022, 10:15:41 PM
I'll get that tips and tricks post done in the next couple of days.

I was a bit reluctant to add a direct link to an APK.
1. I thought it was good for people to do it themselves as they can see the original code and know what changes had been made,  even if they didn't fully understand them, I think it's fairly clear none of the changes are malicious.
2. Linking APK's could lead to a situation where a bunch of people start linking their "version" and I don't like the idea of people getting in the habit of just installing things from random people on the internet. Once you have a bunch of unofficial versions floating around it would be easy for someone to take advantage of that.
3. I didn't want to do it unless Steven was ok with it. While he has said he wants someone else to take it over, he hasn't said he was ok with linking to a custom APK. I haven't messaged him directly, I'm sure he gets hassled enough.

That being said, linking to an APK would be the best option for most people. I doubt a lot of people want to mess around with android studio and coding.
Title: Re: Wifi android device synching
Post by: phred on September 23, 2022, 10:44:24 PM
All good points. I look forward to seeing the write up in Tips & Tricks when you get to it.
Title: Re: Wifi android device synching
Post by: mtnagel on September 27, 2022, 02:01:38 AM
Normally syncing works just fine, but every once and awhile I get the "Server not found. Ensure MusicBee is running and Windows firewall is not blocking MusicBee." error.  This is what the error log says:

2022-09-26: SM-S901U1;  12;  2.2
20:38:46: loadPlaylists: java.net.ConnectException: failed to connect to /192.168.86.21 (port 27304) from /192.168.86.34 (port 42834) after 10000ms: isConnected failed: EHOSTUNREACH (No route to host)

I've tried closing and relaunching everything, restarting both phone and computer and turning off my firewall and I still get the error.  It seems if I just try again later it will usually work again at some point but I don't know what's changed.  Any thoughts on what's happening with I get this error randomly? 

So digging around in the Google Home app, I see that my phone's IP address is 192.168.86.34 (like the error says), but my computer's address isn't 192.168.86.21 like it says in the error (it's 33).  So assuming that's the problem, how can I get the sync app to see that my computer's IP address has changed?   Sorry if I said something stupid.  I don't know much about networking :)
Title: Re: Wifi android device synching
Post by: phred on September 27, 2022, 02:28:08 AM
Not sure, but you can try a force stop on the WiFi app and then going to storage and clear data and clear cache. Depending on your phone, this would be done from settings > apps > MusicBee WiFi Sync storage. Then I'd uninstall and reinstall. No guaranty, but it's worth trying. Remember than the first sync should be a wired preview - no need to complete the sync. After the wired preview, then try the WiFi app.
Title: Re: Wifi android device synching
Post by: mtnagel on September 27, 2022, 03:12:57 AM
Not sure, but you can try a force stop on the WiFi app and then going to storage and clear data and clear cache. Depending on your phone, this would be done from settings > apps > MusicBee WiFi Sync storage. Then I'd uninstall and reinstall. No guaranty, but it's worth trying. Remember than the first sync should be a wired preview - no need to complete the sync. After the wired preview, then try the WiFi app.
I was trying to avoid that since I'd lose all the playcounts since my last sync, but I went ahead and did that and it's still not working.  After reinstalling the wifi sync app, it's weird because it doesn't start at the first screen, it immediately goes to the page asking what to sync instead of trying to find the server.  I cleared cache and storage and restarting before reinstalling, so I don't know why it's not starting from scratch.  So bizarre because it's been working perfectly fine since I got my S22 a couple week ago and then suddenly it's not :(
Title: Re: Wifi android device synching
Post by: BoringName on September 30, 2022, 12:18:26 PM
Ok, I've done a tips and tricks post, it's very similar to the post I made in this thread initially. Let me know if I should add anything else. I might add a few images later if people are finding it too difficult to navigate Android Studio.
Title: Re: Wifi android device synching
Post by: phred on September 30, 2022, 12:54:21 PM
Looks good, but I do think your suggestion about adding some screenshots will make it even more helpful. "A picture is worth a thousand words."
Title: Re: Wifi android device synching
Post by: boroda on September 30, 2022, 04:02:49 PM
I was a bit reluctant to add a direct link to an APK.
1. I thought it was good for people to do it themselves as they can see the original code and know what changes had been made,  even if they didn't fully understand them, I think it's fairly clear none of the changes are malicious.
2. Linking APK's could lead to a situation where a bunch of people start linking their "version" and I don't like the idea of people getting in the habit of just installing things from random people on the internet. Once you have a bunch of unofficial versions floating around it would be easy for someone to take advantage of that.
3. I didn't want to do it unless Steven was ok with it. While he has said he wants someone else to take it over, he hasn't said he was ok with linking to a custom APK. I haven't messaged him directly, I'm sure he gets hassled enough.

That being said, linking to an APK would be the best option for most people. I doubt a lot of people want to mess around with android studio and coding.

as the original apk is available on github as source code, maybe it's worth to fork/clone this project, change what is needed to make the project compatible with android 11/12, and make a source/binary release of apk? anyone could check modified source code and recompile it if he/she wants.
Title: Re: Wifi android device synching
Post by: BoringName on October 01, 2022, 12:22:01 PM
as the original apk is available on github as source code, maybe it's worth to fork/clone this project, change what is needed to make the project compatible with android 11/12, and make a source/binary release of apk? anyone could check modified source code and recompile it if he/she wants.

That's probably a good idea..... I'll see what I can do there.

I upgraded my phone to an Android 13 ROM today. Wiped the phone completely and installed the SDK 30 APK version I have. it prompted me to give it file permissions and off it went. The only strange thing is it didn't prompt me to select a folder on the phone, I assume it just used the sync settings in MusicBee. As it had full file access I guess it didn't need to prompt me for access to an individual folder which means I probably did something right with the code.
Title: Re: Wifi android device synching
Post by: MrVain712 on October 04, 2022, 01:59:06 PM
Hello together,

i have now the problem too that i cant more syncing between PC and my Android 12 Phone (Oppo Find X5 Pro) i get the message "To protect your privacy, please choose another folder" but i dont understand what i must do, that it work again... Can you help me please? :)
Title: Re: Wifi android device synching
Post by: oneformula on October 04, 2022, 05:42:03 PM
sadly, the APK trick w/ android studio isn't going to work for me. or anyone with google's advanced protection as only apps and APKs e pre-loaded or from the google store are allowed.

any way to have the musicbee wifi app updated in the store?????
Title: Re: Wifi android device synching
Post by: BoringName on October 05, 2022, 12:20:37 AM
sadly, the APK trick w/ android studio isn't going to work for me. or anyone with google's advanced protection as only apps and APKs e pre-loaded or from the google store are allowed.

any way to have the musicbee wifi app updated in the store?????

You could opt out of advanced protection but probably not the best idea to take advice from a stranger on the internet about your google account.

At some point an updated version might hit the play store but I wouldn't hold my breath. Steven doesn't want to support it anymore so even if I upload some of my altered code it doesn't mean he will take it and upload to the play store. Even if he did it might get rejected as google don't really like apps using the "Manage all files" permissions unless it's really necessary. I don't want to take it over, at least not yet.

To answer the query on your other post. You can sync music via USB but you can't sync play counts or rating with that method.
Title: Re: Wifi android device synching
Post by: oneformula on October 05, 2022, 10:28:38 PM
dang.... if i cannot sync my playcounts, i think MediaMonkey is my best choice.
Title: Re: Wifi android device synching
Post by: lonewolf07 on October 29, 2022, 08:34:41 AM
Try this works on me.
https://www.youtube.com/watch?v=77Jjrj8AnBs&t=4s&ab_channel=FrEaKk51
Title: Re: Wifi android device synching
Post by: Bougicien on October 30, 2022, 06:14:04 PM
Try this works on me.
https://www.youtube.com/watch?v=77Jjrj8AnBs&t=4s&ab_channel=FrEaKk51
Can anyone confirm this working? Is it safe (no malware, software bugs, battery drain,...)?
Title: Re: Wifi android device synching
Post by: BoringName on October 31, 2022, 11:29:07 PM
Can anyone confirm this working? Is it safe (no malware, software bugs, battery drain,...)?

I can't confirm if it works but that app has been around for quite a long time, it is a legitimate app. But I wouldn't be using the link in the video description. Download it from the play store.

It looks like it basically just creates a shortcut to the storage location, the app calls it a bookmark but it sounds like a shortcut. So when you select the shortcut it uses the permissions given to MiXplorer to access the folder. So this fix would probably stop working if you uninstall MiXplorer at any point.

I have no idea if that is how it's actually working, just my interpretation of what might be going on.
Title: Re: Wifi android device synching
Post by: Bougicien on November 01, 2022, 11:41:58 AM
Can anyone confirm this working? Is it safe (no malware, software bugs, battery drain,...)?

I can't confirm if it works but that app has been around for quite a long time, it is a legitimate app. But I wouldn't be using the link in the video description. Download it from the play store.

It looks like it basically just creates a shortcut to the storage location, the app calls it a bookmark but it sounds like a shortcut. So when you select the shortcut it uses the permissions given to MiXplorer to access the folder. So this fix would probably stop working if you uninstall MiXplorer at any point.

I have no idea if that is how it's actually working, just my interpretation of what might be going on.

Oh okay, thanks for the tip. Won't be buying the app now but if anyone has any safety checks on his link let me know.
Title: Re: Wifi android device synching
Post by: tomboudiboudi on November 01, 2022, 03:17:06 PM
Hi  :)

I tried to sync my Android 11with Musicbee Wifi Sync, but I get sync failure from the App and Musicbee itself every time...
Here is the message from the app : "A non-recoverable error occured during synchronization process. Restart the app and try again."

Here is my Musicbee Wifi Sync app's error log, if someone could take a look:

Code
[2022-11-01: Xperia XZ2 Compact;  11;  2.0.0
15:10:10: tryStart0: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:10:13: tryStart1: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:10:16: tryStart2: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:10:19: tryStart3: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:10:22: tryStart4: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:10:25: tryStart5: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:10:29: tryStart6: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:10:32: tryStart7: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:10:35: tryStart8: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:10:38: tryStart9: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:10:41: tryStart10: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:10:45: tryStart11: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:10:48: tryStart12: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:10:51: tryStart13: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:10:54: tryStart14: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:10:58: tryStart15: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:11:01: tryStart16: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49
15:11:04: tryStart17: java.net.SocketException: java.io.UTFDataFormatException: malformed input around byte 49

And the typicals lines according to MB error log :

Code
01.11.22 15:10:08 - Copy C:\Users\Tom\Music\Mount Kimbie\Love What Survives Remixes - Part 2\02 Mount Kimbie - Four Years and One Day (Gerd Janson Remix).mp3 to Xperia XZ2 Compact\Carte SD Samsung\Music\Mount Kimbie\Love What Survives Remixes - Part 2\02 - Four Years and One Day (Gerd Janson Remix).mp3
01.11.22 15:10:08 - 10.0.22621.0 - 3.4.8033.18564D - WifiSyncAbort: Données non valides détectées lors du décodage.

01.11.22 15:10:08 - Copy C:\Users\Tom\Music\Mount Kimbie\Maybes\01 Mount Kimbie - Maybes.mp3 to Xperia XZ2 Compact\Carte SD Samsung\Music\Mount Kimbie\Maybes\01 - Maybes.mp3
01.11.22 15:10:08 - 10.0.22621.0 - 3.4.8033.18564D - WifiSyncAbort: Données non valides détectées lors du décodage.

01.11.22 15:10:08 - Copy C:\Users\Tom\Music\Princess Nokia\1992 Deluxe\01. Bart Simpson.mp3 to Xperia XZ2 Compact\Carte SD Samsung\Music\Princess Nokia\1992 Deluxe\1-01 - Bart Simpson.mp3
01.11.22 15:10:08 - 10.0.22621.0 - 3.4.8033.18564D - WifiSyncAbort: Données non valides détectées lors du décodage.

01.11.22 15:10:08 - Copy C:\Users\Tom\Music\Princess Nokia\1992 Deluxe\04. Brujas.mp3 to Xperia XZ2 Compact\Carte SD Samsung\Music\Princess Nokia\1992 Deluxe\1-04 - Brujas.mp3
01.11.22 15:10:08 - 10.0.22621.0 - 3.4.8033.18564D - WifiSyncAbort: Impossible d'écrire les données sur la connexion de transport : Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte.

01.11.22 15:10:08 - Copy C:\Users\Tom\Music\Princess Nokia\1992 Deluxe\05. Mine.mp3 to Xperia XZ2 Compact\Carte SD Samsung\Music\Princess Nokia\1992 Deluxe\1-05 - Mine.mp3
01.11.22 15:10:08 - 10.0.22621.0 - 3.4.8033.18564D - WifiSyncAbort: Impossible d'écrire les données sur la connexion de transport : Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte.

01.11.22 15:10:08 - Copy C:\Users\Tom\Music\Princess Nokia\1992 Deluxe\06. Excellent.mp3 to Xperia XZ2 Compact\Carte SD Samsung\Music\Princess Nokia\1992 Deluxe\1-06 - Excellent.mp3
01.11.22 15:10:08 - 10.0.22621.0 - 3.4.8033.18564D - WifiSyncAbort: Impossible d'écrire les données sur la connexion de transport : Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte.

MB version : 3.4.8033
MB Wifi Sync version : 2.0.0 (69)
GMMP version : 3.2.9
Title: Re: Wifi android device synching
Post by: BoringName on November 05, 2022, 12:33:46 AM
Hi  :)

I tried to sync my Android 11with Musicbee Wifi Sync, but I get sync failure from the App and Musicbee itself every time...
Here is the message from the app : "A non-recoverable error occured during synchronization process. Restart the app and try again."

Here is my Musicbee Wifi Sync app's error log, if someone could take a look:
MB version : 3.4.8033
MB Wifi Sync version : 2.0.0 (69)
GMMP version : 3.2.9

It says something about the connection getting reset. I would make sure your firewall is setup correctly and antivirus is excluding MusicBee.
Title: Re: Wifi android device synching
Post by: Towchain on November 07, 2022, 04:42:05 PM
Try this works on me.
https://www.youtube.com/watch?v=77Jjrj8AnBs&t=4s&ab_channel=FrEaKk51
Can anyone confirm this working? Is it safe (no malware, software bugs, battery drain,...)?

I can confirm it works. I followed the instructions in the video and just successfully synched a playlist from my PC to Android 12. Cost $5 for the Mixplorer file manager app but I had a play store balance to burn.  Thanks, Lonewolf07!!!
Title: Re: Wifi android device synching
Post by: tomboudiboudi on November 07, 2022, 08:24:07 PM
Hi  :)

I tried to sync my Android 11with Musicbee Wifi Sync, but I get sync failure from the App and Musicbee itself every time...
Here is the message from the app : "A non-recoverable error occured during synchronization process. Restart the app and try again."

Here is my Musicbee Wifi Sync app's error log, if someone could take a look:
MB version : 3.4.8033
MB Wifi Sync version : 2.0.0 (69)
GMMP version : 3.2.9

It says something about the connection getting reset. I would make sure your firewall is setup correctly and antivirus is excluding MusicBee.

After checking firewall's rules, Musicbee seems authorized for either public and private network. I just added an exclusion rule for Musicbee in Windows Defender, but the issue is still, I can't wifi-sync my phone. Any ideas ? or other rules to creat in windows fire-wall ?
Title: Re: Wifi android device synching
Post by: laureltrees on November 08, 2022, 02:58:02 PM
I ran into some issues trying to sync yesterday to my phone, as there were lots of "access denied" errors when trying to copy certain albums. As it turns out, the SD card was full (and hence Android wouldn't let the app add new files, as there was no space), but this wasn't at all obvious because of the weird access denied messages, and I wasted quite a while trying to fix until I realised what was wrong.

When syncs fail / errors happen, could a check happen to make sure it isn't the storage device being full causing the fail? Alternatively, maybe always show how full the storage device has become at the start/end of every sync, with an additional warning if it's full. Would help to diagnose silly (but not obvious) issues like this one. Thanks!
Title: Re: Wifi android device synching
Post by: AlvinaBowden on November 30, 2022, 12:04:29 PM
After checking firewall's rules, Musicbee seems authorized for either public and private network. I just added an exclusion rule for Musicbee in Windows Defender, but the issue is still, I can't wifi-sync my phone. Any ideas ? or other rules to creat in windows fire-wall ?
[/quote]

Same here. Have you found the answer?
Title: Re: Wifi android device synching
Post by: Boblemagicien on November 30, 2022, 07:12:45 PM
HI guys,

I have a problem with the wifi sync. I used it from 2 years ago without any problem. Last month I bought a android 12 phone so I have to do the "boringname" trick (thanks a lot) and it worked very well. But since 2 days, I can't sync anymore, I got the "jave malformed input" problem with 2 phones, one on android 9 and the new one on android 12. I tried uninstall, delete cache, the "boringname" trick, the original app. I also reinstall java on my computer but it doesn't seem to have any effect. Yesterday I have deleted ezverything on my phone, the sync worked but at 98% it did the same error and I can't sync anymore. I tried with both gonemad player and poweramp. I realy need the 2 way sync so is there any way to solve this problem ? Or is there a way to manually sync the playcount from android to windows ?

Thanks

(Sorry for my english, french guy here  ;D )

(https://imagizer.imageshack.com/v2/640x480q90/924/Glh560.jpg)
Title: Re: Wifi android device synching
Post by: Boblemagicien on November 30, 2022, 11:37:38 PM
I just found what it was. I spotted the "javaudtformatexception" so I searched and it was just because of one my last music uses uncommon letter. I replaced it and it works !
Title: Re: Wifi android device synching
Post by: ACardAttack on December 04, 2022, 01:56:37 PM
You have to manually go through android settings and change allow only media files to allow all files.
This worked for me with modified wifi app
Settings
Apps
Musicbee wifi sync
Permissions
Files and settings

I dont seem to be able to do this in on my samsung S20 Android 12, I cant seem to get it to have all files, media is the only one I got

Anyone else been able to get around wifi sync and needing access to the root sd card folder?  It just stopped working probably a few months ago, there was no update to my phone in that time, Ive cleared all data from the app as well.  I guess it could have been a google thing that was pushed through a play store update
Title: Re: Wifi android device synching
Post by: Shougun on December 10, 2022, 10:11:40 PM
You have to manually go through android settings and change allow only media files to allow all files.
This worked for me with modified wifi app
Settings
Apps
Musicbee wifi sync
Permissions
Files and settings

I dont seem to be able to do this in on my samsung S20 Android 12, I cant seem to get it to have all files, media is the only one I got

Anyone else been able to get around wifi sync and needing access to the root sd card folder?  It just stopped working probably a few months ago, there was no update to my phone in that time, Ive cleared all data from the app as well.  I guess it could have been a google thing that was pushed through a play store update

Followed BoringName's steps, and it gave an access error-- continued to follow his steps by going to setttings (I also have a samsung, though its a 22 u) and searched for special access, selected the result, selected "all files access", and then found music bee wifi sync app and gave it access. Now it works :)

My phone is not rooted, for context.

From reading your post, and what I did initially myself lol, I imagine you're checking permissions of the app specifically-- you can't get to where you need to be by looking at the specific app's access permissions. All file access is it's own menu found in settings (that lists all the apps that have requested the permission and shows if they have it or not), so you go there first and then find the app in question from that space ^_^
Title: Re: Wifi android device synching
Post by: ACardAttack on December 11, 2022, 12:40:08 PM
You have to manually go through android settings and change allow only media files to allow all files.
This worked for me with modified wifi app
Settings
Apps
Musicbee wifi sync
Permissions
Files and settings

I dont seem to be able to do this in on my samsung S20 Android 12, I cant seem to get it to have all files, media is the only one I got

Anyone else been able to get around wifi sync and needing access to the root sd card folder?  It just stopped working probably a few months ago, there was no update to my phone in that time, Ive cleared all data from the app as well.  I guess it could have been a google thing that was pushed through a play store update

Followed BoringName's steps, and it gave an access error-- continued to follow his steps by going to setttings (I also have a samsung, though its a 22 u) and searched for special access, selected the result, selected "all files access", and then found music bee wifi sync app and gave it access. Now it works :)

My phone is not rooted, for context.

From reading your post, and what I did initially myself lol, I imagine you're checking permissions of the app specifically-- you can't get to where you need to be by looking at the specific app's access permissions. All file access is it's own menu found in settings (that lists all the apps that have requested the permission and shows if they have it or not), so you go there first and then find the app in question from that space ^_^

I tried that with no luck

From settings - apps it shows the app has files and media permission, click that it shows files and media, but if I click on files and media it shows allow access to media only.  despite it saying files and media in the screen before.  Go to the app, it stil wont let me select sd card
Title: Re: Wifi android device synching
Post by: Shougun on December 12, 2022, 12:20:31 AM
You have to manually go through android settings and change allow only media files to allow all files.
This worked for me with modified wifi app
Settings
Apps
Musicbee wifi sync
Permissions
Files and settings

I dont seem to be able to do this in on my samsung S20 Android 12, I cant seem to get it to have all files, media is the only one I got

Anyone else been able to get around wifi sync and needing access to the root sd card folder?  It just stopped working probably a few months ago, there was no update to my phone in that time, Ive cleared all data from the app as well.  I guess it could have been a google thing that was pushed through a play store update

Followed BoringName's steps, and it gave an access error-- continued to follow his steps by going to setttings (I also have a samsung, though its a 22 u) and searched for special access, selected the result, selected "all files access", and then found music bee wifi sync app and gave it access. Now it works :)

My phone is not rooted, for context.

From reading your post, and what I did initially myself lol, I imagine you're checking permissions of the app specifically-- you can't get to where you need to be by looking at the specific app's access permissions. All file access is it's own menu found in settings (that lists all the apps that have requested the permission and shows if they have it or not), so you go there first and then find the app in question from that space ^_^

I tried that with no luck

From settings - apps it shows the app has files and media permission, click that it shows files and media, but if I click on files and media it shows allow access to media only.  despite it saying files and media in the screen before.  Go to the app, it stil wont let me select sd card

Sounds like you're still going to the app and then trying to find the setting. Don't do that, find the setting and then find the app.

If I understand correctly you're doing:

Search for app -> go into app's settings -> click file permissions -> see only media options -> no profit

Which to be fair makes the most sense, but just don't because it wont work lol (I did this first too).

You need to:

Search for "all file access" in the generic settings app (I don't know if you can even find it manually, so to save time I just use the search feature) -> select this, get into a menu with a big list titled special access -> select first option "all file access" -> find the app in question (music bee in this case) -> ensure the little flip switch is blue (toggled to the right, meaning active) -> profit

 :)
Title: Re: Wifi android device synching
Post by: ACardAttack on December 23, 2022, 11:03:41 AM

Sounds like you're still going to the app and then trying to find the setting. Don't do that, find the setting and then find the app.

If I understand correctly you're doing:

Search for app -> go into app's settings -> click file permissions -> see only media options -> no profit

Which to be fair makes the most sense, but just don't because it wont work lol (I did this first too).

You need to:

Search for "all file access" in the generic settings app (I don't know if you can even find it manually, so to save time I just use the search feature) -> select this, get into a menu with a big list titled special access -> select first option "all file access" -> find the app in question (music bee in this case) -> ensure the little flip switch is blue (toggled to the right, meaning active) -> profit

 :)

Sadly Music bee is not in this list of apps under "all file access"
Title: Re: Wifi android device synching
Post by: robsonc on December 24, 2022, 10:20:32 PM
Try this works on me.
https://www.youtube.com/watch?v=77Jjrj8AnBs&t=4s&ab_channel=FrEaKk51
It worked for me and it was super easy! Thank you!
Title: Re: Wifi android device synching
Post by: ACardAttack on December 30, 2022, 12:32:20 PM
Try this works on me.
https://www.youtube.com/watch?v=77Jjrj8AnBs&t=4s&ab_channel=FrEaKk51
It worked for me and it was super easy! Thank you!

This worked for me too!  Thanks!
Title: Re: Wifi android device synching
Post by: onlikerop on February 04, 2023, 11:41:55 AM
Hi there!
I am getting an error while trying to sync my PC with Xiaomi 12 Pro. There is message "MusicBee can't match the device name to an existing configuration. Enter the device name that is displayed in MusicBee:". I think that the problem is in technical naming of my device. While MusicBee on my PC identify it as "Xiaomi 12 Pro", MusicBee Wifi Sync says that its name is "2201122G". I tried to enter "Xiaomi 12 Pro" into the input field, but it doesn't work for me. Also I already tried to reinstall both apps on PC and android device, delete device on PC and do a wire-sync again, so I have no idea what should I do next
Title: Re: Wifi android device synching
Post by: Madmaxneo on March 04, 2023, 12:37:01 AM
Hello,
I am having the issue some others seem to be having. When attempting Wifi Sync I get the error "Can't use this folder". I then go down and select the Music folder but then I get the error Folder "Music" is not valid. You must select the SD card root folder and not one of it's sub-folder. The odd thing is I am not using an SD card as my phone has enough storage on it for the playlists I listen to.

Note 10+ on Android 12.
Using GoneMad music player.
Title: Re: Wifi android device synching
Post by: robsonc on March 31, 2023, 09:57:30 PM
The MiXplorer app solution has been great to sync on my Fold 4. The change from Itunes and IPhone to android using now Music Bee couldn't be better. I now have an even better organized library and I can sync my play counts and preserve my my listening database. I'm really grateful. The wifi sync works so fast! It's amazing.

But the problem I have now is that the MusicBee Wifi Sync app refuses to delete the songs it needs to delete whenever I make any changes. It asks for confirmation, it says the synchronization was succefull, but if I go and sync again they all still shows up to be deleted. I need to go trough another app (files) and delete them manually. Anyone having this issue? Any solution?
Title: Re: Wifi android device synching
Post by: Madmaxneo on March 31, 2023, 10:11:22 PM
I have tried the various suggestions above to get wifi sync to work but nothing is working. BoringNames steps did not work and there seems to be no way to allow the MusicBee Wifi Sync app to gain all files access.
Title: Re: Wifi android device synching
Post by: DeXel on April 05, 2023, 07:01:26 AM
I forked off from the main repo and made it compatible with Android 13 if you want to try it https://github.com/mayallst/MusicBeeWifiSync/compare/master...akarabak:MusicBeeWifiSync:development.  Tested on Pixel 7 and Xperia 1 III.
Title: Re: Wifi android device synching
Post by: Madmaxneo on April 05, 2023, 11:41:44 PM
I forked off from the main repo and made it compatible with Android 13 if you want to try it https://github.com/mayallst/MusicBeeWifiSync/compare/master...akarabak:MusicBeeWifiSync:development.  Tested on Pixel 7 and Xperia 1 III.
Do I copy the full SHA or what and how do I load that onto my phone?
Title: Re: Wifi android device synching
Post by: Kartoffelbrei on April 06, 2023, 11:38:01 AM
I forked off from the main repo and made it compatible with Android 13 if you want to try it https://github.com/mayallst/MusicBeeWifiSync/compare/master...akarabak:MusicBeeWifiSync:development.  Tested on Pixel 7 and Xperia 1 III.
Do I copy the full SHA or what and how do I load that onto my phone?

Its the source code for that app. You would have to build the apk yourself with android studio and gradle. I tried to build Dexels commit yesterday but i ended up battling android studio for a bit. Might try later. Id be interested if this runs on my s23 ultra.
Title: Re: Wifi android device synching
Post by: Madmaxneo on April 06, 2023, 09:29:58 PM

Its the source code for that app. You would have to build the apk yourself with android studio and gradle. I tried to build Dexels commit yesterday but i ended up battling android studio for a bit. Might try later. Id be interested if this runs on my s23 ultra.
That seems a bit much for this. I may have dabbled in Javascript a little but I am no programmer, nor do I have the time to learn something like this.
I just hope there's an actual fix in the making that will work for us pleebs.....
Title: Re: Wifi android device synching
Post by: ScummedYou on April 15, 2023, 04:45:43 AM
Please help. Trying to get wifi sync to work. Keep getting the following errors:

2023-04-14: SM-A536U1;  13;  2.0.0
23:34:54: createFile: Music/Playlists/5 Stars.m3u: java.lang.SecurityException: Document null is not a descendant of 7C76-3EB6:, folder=content://com.mixplorer.silver.doc/tree/7C76-3EB6%3A/document/null
23:34:54: receiveFile: java.lang.SecurityException: Document null is not a descendant of 7C76-3EB6:: file=Music/Playlists/5 Stars.m3u

I really dont want to go back to using itunes/isyncr  :'(
Title: Re: Wifi android device synching
Post by: Kartoffelbrei on April 18, 2023, 03:44:57 PM
I forked off from the main repo and made it compatible with Android 13 if you want to try it https://github.com/mayallst/MusicBeeWifiSync/compare/master...akarabak:MusicBeeWifiSync:development.  Tested on Pixel 7 and Xperia 1 III.
Works beautifully on my Samsung Galaxy S23 Ultra. Thank you, well done.
Title: Re: Wifi android device synching
Post by: KenDavies on April 18, 2023, 07:37:34 PM
Is there any way of getting a "compiled" version of this? Things like "Gradle" and "forked off from the main repo" are a bit of a mystery to me. Jusding by the number of pages in this thread and page views there's an awful lot of users would like to try it.
Title: Re: Wifi android device synching
Post by: Madmaxneo on April 18, 2023, 09:13:05 PM
Is there any way of getting a "compiled" version of this? Things like "Gradle" and "forked off from the main repo" are a bit of a mystery to me. Jusding by the number of pages in this thread and page views there's an awful lot of users would like to try it.
100% agreed!
Title: Re: Wifi android device synching
Post by: TReKiE on April 18, 2023, 09:50:00 PM
I only compiled this last night, so I've only tested this on my Android 13 Pixel 4a.  It worked perfectly.

Here is my compiled APK (https://www.trekie.net/files/MusicBee%20Wifi%20Sync%20Android%2013.apk) VirusTotal Scan (https://www.virustotal.com/gui/file/b9f87afed49b003ec86307269868498121585c4791e2f5f4866f4d69cf1d6b77?nocache=1)

Instructions (on a Pixel 4a, Android 13 anyway):
Title: Re: Wifi android device synching
Post by: KenDavies on April 18, 2023, 10:26:22 PM
Brilliant! It's syncing my Pixel 7 Pro as we speak. Many thanks.
Title: Re: Wifi android device synching
Post by: Madmaxneo on April 19, 2023, 03:10:44 AM
I only compiled this last night, so I've only tested this on my Android 13 Pixel 4a.  It worked perfectly.

Here is my compiled APK (https://www.trekie.net/files/MusicBee%20Wifi%20Sync%20Android%2013.apk) VirusTotal Scan (https://www.virustotal.com/gui/file/b9f87afed49b003ec86307269868498121585c4791e2f5f4866f4d69cf1d6b77?nocache=1)

Instructions (on a Pixel 4a, Android 13 anyway):
  • Uninstall existing version of the app if installed
  • Download APK (https://www.trekie.net/files/MusicBee%20Wifi%20Sync%20Android%2013.apk) on the device
  • Open the APK, usually from the notification that the file is downloaded (might also need to give Install unknown apps permissions (https://www.androidauthority.com/how-to-install-apks-31494/#1) for your browser)
  • Select to Install from the Package Installer window
  • If you get "Unsafe app blocked" from Google Play Protect, choose More details, then choose Install Anyway
  • Once installed, choose Open
  • The "All files access permission" window should open, choose MusicBee Wifi Sync
  • Select the Allow access to manage all files toggle
  • Press the back button at the top corner
  • Press the back button at the corner again
  • You should now be in the app and can choose your server/PC
Note 10 +
That doesn't work for me. Using your method above the "All files access permission" window doesn't automatically open and I have to actually go into settings and open the "All Files Access" and MusicBee Wifi Sync is in there. I can click on it and give it access but when I try to sync I get the same error that the music folder is unusable and to choose a SD card root folder (when I am not using an SD card at all). I go back and can see that the MusicBee Wifi Sync app still has permission.
EDIT: I restarted the phone and it still does not work. When I try to sync it takes me to the folder selection and it says: "Can't use this folder. To protect your privacy choose another folder". I then click on "Use this folder" but it gives me that error message again.
Title: Re: Wifi android device synching
Post by: Kartoffelbrei on April 19, 2023, 07:28:04 AM
Note 10 +
That doesn't work for me. Using your method above the "All files access permission" window doesn't automatically open and I have to actually go into settings and open the "All Files Access" and MusicBee Wifi Sync is in there. I can click on it and give it access but when I try to sync I get the same error that the music folder is unusable and to choose a SD card root folder (when I am not using an SD card at all). I go back and can see that the MusicBee Wifi Sync app still has permission.
EDIT: I restarted the phone and it still does not work. When I try to sync it takes me to the folder selection and it says: "Can't use this folder. To protect your privacy choose another folder". I then click on "Use this folder" but it gives me that error message again.
Afaik Musicbee Wifi sync doesnt even have an option to select folders. It should just run. Android must be doing this on its own accord. This sounds like Android wont let you use its native folders. Did you chose one of the pregenerated "music" folders or even the "android" folder?
Try and create a NEW folder, from windows explorer or the android explorer and set your Musicbee to copy the files to that. Call it Music2 or something. Worked on my s23.
Title: Re: Wifi android device synching
Post by: NeutralP on April 19, 2023, 06:22:15 PM
I'm on Remi Note 11 Pro and sadly, none of the fixes above worked for me.
First I tried using MiX Explorer, it worked out until I had to choose SD card in which there's no option to choose from MiX Directories (I suspect it's problem with MIUI)
For the installing Android Studio and changing the source code, I've had better luck until I tried syncing and got this error log for each file that I tried to sync:
Quote
2023-04-20: 2201116TG;  12;  2.2
00:16:00: locate: search=192.168.137., exclude=192.168.137.71
00:16:00: ping: socket ok=/192.168.137.1
00:16:00: ping: hello=MusicBeeWifiSyncServer/1.0
00:16:00: ping: matched=/192.168.137.1,status=FAIL
00:16:39: locate: search=192.168.137., exclude=192.168.137.71
00:16:39: ping: socket ok=/192.168.137.1
00:16:39: ping: hello=MusicBeeWifiSyncServer/1.0
00:16:39: ping: matched=/192.168.137.1,status=OK
00:16:39: ping: socket ok=/192.168.137.1
00:16:39: ping: hello=MusicBeeWifiSyncServer/1.0
00:16:39: ping: matched=/192.168.137.1,status=OK
00:17:03: exists: content://com.android.externalstorage.documents/tree/0403-0201%3ASyncFolder/document/0403-0201%3AMusic: java.lang.SecurityException: Document 0403-0201:Music is not a descendant of 0403-0201:SyncFolder
00:17:03: createFolder: Music: java.lang.SecurityException: Document 0403-0201: is not a descendant of 0403-0201:SyncFolder
00:17:03: receiveFile: java.lang.SecurityException: Document 0403-0201: is not a descendant of 0403-0201:SyncFolder: file=Music/Unknown Album Artist/Unknown Album/# - 喫茶ステラと死神の蝶 OST BGM - 『残滓』-I6xdHy2YF-c.m4a
00:17:03: exists: content://com.android.externalstorage.documents/tree/0403-0201%3ASyncFolder/document/0403-0201%3AMusic: java.lang.SecurityException: Document 0403-0201:Music is not a descendant of 0403-0201:SyncFolder
00:17:03: createFolder: Music: java.lang.SecurityException: Document 0403-0201: is not a descendant of 0403-0201:SyncFolder
00:17:03: receiveFile: java.lang.SecurityException: Document 0403-0201: is not a descendant of 0403-0201:SyncFolder: file=Music/Carpenter Brut/TRILOGY/01 - Escape From Midwich Valley.flac
00:17:03: exists: content://com.android.externalstorage.documents/tree/0403-0201%3ASyncFolder/document/0403-0201%3AMusic: java.lang.SecurityException: Document 0403-0201:Music is not a descendant of 0403-0201:SyncFolder
00:17:03: createFolder: Music: java.lang.SecurityException: Document 0403-0201: is not a descendant of 0403-0201:SyncFolder
00:17:03: receiveFile: java.lang.SecurityException: Document 0403-0201: is not a descendant of 0403-0201:SyncFolder: file=Music/Carpenter Brut/TRILOGY/02 - Disco Zombi Italia.flac
00:17:03: exists: content://com.android.externalstorage.documents/tree/0403-0201%3ASyncFolder/document/0403-0201%3AMusic: java.lang.SecurityException: Document 0403-0201:Music is not a descendant of 0403-0201:SyncFolder
00:17:03: createFolder: Music: java.lang.SecurityException: Document 0403-0201: is not a descendant of 0403-0201:SyncFolder
00:17:03: receiveFile: java.lang.SecurityException: Document 0403-0201: is not a descendant of 0403-0201:SyncFolder: file=Music/Carpenter Brut/TRILOGY/05 - 347 Midnight Demons.flac
00:17:03: exists: content://com.android.externalstorage.documents/tree/0403-0201%3ASyncFolder/document/0403-0201%3AMusic: java.lang.SecurityException: Document 0403-0201:Music is not a descendant of 0403-0201:SyncFolder
00:17:03: createFolder: Music: java.lang.SecurityException: Document 0403-0201: is not a descendant of 0403-0201:SyncFolder
00:17:03: receiveFile: java.lang.SecurityException: Document 0403-0201: is not a descendant of 0403-0201:SyncFolder: file=Music/Carpenter Brut/TRILOGY/06 - Le Perv.flac
00:17:04: exists: content://com.android.externalstorage.documents/tree/0403-0201%3ASyncFolder/document/0403-0201%3AMusic: java.lang.SecurityException: Document 0403-0201:Music is not a descendant of 0403-0201:SyncFolder
00:17:04: createFolder: Music: java.lang.SecurityException: Document 0403-0201: is not a descendant of 0403-0201:SyncFolder
00:17:04: receiveFile: java.lang.SecurityException: Document 0403-0201: is not a descendant of 0403-0201:SyncFolder: file=Music/Carpenter Brut/TRILOGY/07 - Roller Mobster.flac
00:17:04: exists: content://com.android.externalstorage.documents/tree/0403-0201%3ASyncFolder/document/0403-0201%3AMusic: java.lang.SecurityException: Document 0403-0201:Music is not a descendant of 0403-0201:SyncFolder
00:17:04: createFolder: Music: java.lang.SecurityException: Document 0403-0201: is not a descendant of 0403-0201:SyncFolder
00:17:04: receiveFile: java.lang.SecurityException: Document 0403-0201: is not a descendant of 0403-0201:SyncFolder: file=Music/Carpenter Brut/TRILOGY/08 - Meet Matt Stryker.flac
00:17:04: exists: content://com.android.externalstorage.documents/tree/0403-0201%3ASyncFolder/document/0403-0201%3AMusic: java.lang.SecurityException: Document 0403-0201:Music is not a descendant of 0403-0201:SyncFolder
00:17:04: createFolder: Music: java.lang.SecurityException: Document 0403-0201: is not a descendant of 0403-0201:SyncFolder
00:17:04: receiveFile: java.lang.SecurityException: Document 0403-0201: is not a descendant of 0403-0201:SyncFolder: file=Music/Carpenter Brut/TRILOGY/09 - Obituary.flac
00:17:04: exists: content://com.android.externalstorage.documents/tree/0403-0201%3ASyncFolder/document/0403-0201%3AMusic: java.lang.SecurityException: Document 0403-0201:Music is not a descendant of 0403-0201:SyncFolder
https://i.imgur.com/MWv5iEF.jpeg (https://i.imgur.com/MWv5iEF.jpeg)
https://i.imgur.com/QA4j5nF.jpeg (https://i.imgur.com/QA4j5nF.jpeg)
Hope someone can help.
Title: Re: Wifi android device synching
Post by: Kartoffelbrei on April 19, 2023, 07:19:01 PM
Hmm one problem im still having is that after some time i get:
java.net.SocketException:java.net.SocketTimeoutException:Read timed out
after around 6000 to 10000 songs. Tried to restart reboot reinstall nothing helped.
I only compiled this last night, so I've only tested this on my Android 13 Pixel 4a.  It worked perfectly.
How many did you sync? did you run into this?
Title: Re: Wifi android device synching
Post by: Madmaxneo on April 19, 2023, 09:28:36 PM

Afaik Musicbee Wifi sync doesn't even have an option to select folders. It should just run. Android must be doing this on its own accord. This sounds like Android wont let you use its native folders. Did you chose one of the pregenerated "music" folders or even the "android" folder?
Try and create a NEW folder, from windows explorer or the android explorer and set your Musicbee to copy the files to that. Call it Music2 or something. Worked on my s23.
So move all my music to a completely new folder? Will this mess up anything else?
Title: Re: Wifi android device synching
Post by: Kartoffelbrei on April 20, 2023, 03:48:23 PM
So move all my music to a completely new folder? Will this mess up anything else?
Out of principle: always and most definitely. ;D In case the files get deleted during the process you could make a backup of the transcoded files so you dont have to sync again in case you already did a run. There is always room for fuckups.
Just fyi. in the end i ran into too many problems with the app and now i am using the alternative "indirect method" with a secondary transcoded library and resilio. So far im quite happy with this solution. https://musicbee.fandom.com/wiki/Synchronize_Android_by_Wifi
Setup was easy. Except the fact that i didnt know i had to deselct "selective sync" for resilio to do something.
Title: Re: Wifi android device synching
Post by: Madmaxneo on April 21, 2023, 01:14:30 AM
So move all my music to a completely new folder? Will this mess up anything else?
Out of principle: always and most definitely. ;D In case the files get deleted during the process you could make a backup of the transcoded files so you dont have to sync again in case you already did a run. There is always room for fuckups.
Just fyi. in the end i ran into too many problems with the app and now i am using the alternative "indirect method" with a secondary transcoded library and resilio. So far im quite happy with this solution. https://musicbee.fandom.com/wiki/Synchronize_Android_by_Wifi
Setup was easy. Except the fact that i didnt know i had to deselct "selective sync" for resilio to do something.
I'd just delete all my files then have it sync to the new folder. If this doesn't work and if I get the chance soon I will check out the method using resilio. Thanks for the info!
Title: Re: Wifi android device synching
Post by: skst on April 29, 2023, 01:28:31 AM

Sounds like you're still going to the app and then trying to find the setting. Don't do that, find the setting and then find the app.

If I understand correctly you're doing:

Search for app -> go into app's settings -> click file permissions -> see only media options -> no profit

Which to be fair makes the most sense, but just don't because it wont work lol (I did this first too).

You need to:

Search for "all file access" in the generic settings app (I don't know if you can even find it manually, so to save time I just use the search feature) -> select this, get into a menu with a big list titled special access -> select first option "all file access" -> find the app in question (music bee in this case) -> ensure the little flip switch is blue (toggled to the right, meaning active) -> profit

 :)

Sadly Music bee is not in this list of apps under "all file access"

Same problem here. When I run MusicBee WiFi Sync (MWS) for the first time, Android prompts to "Allow MWS to access photos and media on your device." This is because the app is categorized as a media app, so Android will not permit it to have access to every folder on the device (i.e., no root folder). As noted above, Android will not even let the user grant permission to MWS to access the root folder. This would not be a problem except that MWS will not allow the user to select a folder other than the root of the device.

Something has to change: Either MWS must be classified as a general "files" app (not just media) so Android will allow it to access the root, or MWS has to accept a subfolder. Personally, I prefer the latter since there is no need for MWS to access every folder and file on my phone. I'd prefer to give it a MusicBee subfolder to play with.

As a software developer, I know not everything is as simple as it seems, but it seems that it should not be too difficult to change MWS to operate in a subfolder instead of the root. Which brings me to the post below...

I forked off from the main repo and made it compatible with Android 13 if you want to try it https://github.com/mayallst/MusicBeeWifiSync/compare/master...akarabak:MusicBeeWifiSync:development.  Tested on Pixel 7 and Xperia 1 III.

Most people probably do not want to wrestle with Android Studio and gradle (which are both horrible) and build an APK to sideload on their phones, perhaps you could submit a pull request with your fix to the original repo? I'm sure the author would be ecstatic to have a fix for this and close out this thread. :)

As for Resilio, I used it a few years ago and it was a great tool. An excellent (and free) alternative is Syncthing.

Android: https://play.google.com/store/apps/details?id=com.nutomic.syncthingandroid
Windows: https://syncthing.net/
SyncTrayzor is a great Windows shell around Syncthing: https://github.com/canton7/SyncTrayzor
Title: Re: Wifi android device synching
Post by: Madmaxneo on April 29, 2023, 02:14:31 AM

Out of principle: always and most definitely. ;D In case the files get deleted during the process you could make a backup of the transcoded files so you dont have to sync again in case you already did a run. There is always room for fuckups.
Just fyi. in the end i ran into too many problems with the app and now i am using the alternative "indirect method" with a secondary transcoded library and resilio. So far im quite happy with this solution. https://musicbee.fandom.com/wiki/Synchronize_Android_by_Wifi
Setup was easy. Except the fact that i didnt know i had to deselct "selective sync" for resilio to do something.
I realized that this will not work. I don't just sync my entire library, I just sync playlists. If a song is added to a playlist or I add a new playlist then the wifi sync usually adds the missing songs onto my phone, unfortunately resilio doesn't seem to be able to sync playlists.
Title: Re: Wifi android device synching
Post by: Kartoffelbrei on May 01, 2023, 12:22:30 AM
I realized that this will not work. I don't just sync my entire library, I just sync playlists. If a song is added to a playlist or I add a new playlist then the wifi sync usually adds the missing songs onto my phone, unfortunately resilio doesn't seem to be able to sync playlists.
Ah well. Did the seperate folder fix work? Remember its just the existing folders Android doesnt want you to use. Not the ones you generate.
I dont understand why the sync cant run throught for me even with the fixed version posted here. It chokes out when i hit around 7000 to 10000 songs. Timeout errors galore.
Title: Re: Wifi android device synching
Post by: Joemd on May 11, 2023, 10:53:12 AM
Hello everyone. Just tried the wifi sync for the first time and I keep getting the error "playlist files not matched in MusicBee." What is this indicating is the issue, as both MusicBee and GoneMad have playlists of the same name. I'm not sure what I should be looking at here to try and sort the issue. Any help would be much appreciated.

P.S. I did search this issue on the forum but only found a bunch of people yelling at one another.
Title: Re: Wifi android device synching
Post by: landoooo on May 14, 2023, 05:44:51 PM
Hi there!
I am getting an error while trying to sync my PC with Xiaomi 12 Pro. There is message "MusicBee can't match the device name to an existing configuration. Enter the device name that is displayed in MusicBee:". I think that the problem is in technical naming of my device. While MusicBee on my PC identify it as "Xiaomi 12 Pro", MusicBee Wifi Sync says that its name is "2201122G". I tried to enter "Xiaomi 12 Pro" into the input field, but it doesn't work for me. Also I already tried to reinstall both apps on PC and android device, delete device on PC and do a wire-sync again, so I have no idea what should I do next

Suffering the same problem here. My "Mi 10T Pro" in windows doesnt match the "M2007J3SG" from the MB wifi app. Have you found a solution? Anyone else facing a similar issue?
Title: Re: Wifi android device synching
Post by: Lonchik on May 17, 2023, 04:28:50 AM
Hi there!
I am getting an error while trying to sync my PC with Xiaomi 12 Pro. There is message "MusicBee can't match the device name to an existing configuration. Enter the device name that is displayed in MusicBee:". I think that the problem is in technical naming of my device. While MusicBee on my PC identify it as "Xiaomi 12 Pro", MusicBee Wifi Sync says that its name is "2201122G". I tried to enter "Xiaomi 12 Pro" into the input field, but it doesn't work for me. Also I already tried to reinstall both apps on PC and android device, delete device on PC and do a wire-sync again, so I have no idea what should I do next

Suffering the same problem here. My "Mi 10T Pro" in windows doesnt match the "M2007J3SG" from the MB wifi app. Have you found a solution? Anyone else facing a similar issue?

I recently installed the app and ran into the same.  But was able to get past it.

(going by memory recall, so forgive inaccuracies)

When going through initial setup, at one point some text verbiage actually covers an input field that contains the name of the device.  The issue is that it defaults to model number, rather than device name.  But to sync it needs the actual name that you gave to the device (same one that appears when you do bluetooth sync, or network identification, etc.)

To get to the verbiage, I had to do some tricks to hide keyboard which would make it briefly appear (like half a second) and at that point tap it.  It would put cursor in there, but get covered by that verbiage, but then keyboard would come up... you then have to blindly delete name that's there and type your device name.  But trick gets harder b/c at some point cursor jumped to the front, so I wound up with proper name prepended to default wrong name.  so then I used space-slide (at least on my phone, where you tap and hold space key, and then moving left or write moves the cursor) to slide to the end, figure out how many times blindly to tap backspace, and tapped it.

Once the proper name was in there, it worked.
Title: Re: Wifi android device synching
Post by: landoooo on May 24, 2023, 12:13:59 PM
I recently installed the app and ran into the same.  But was able to get past it.

(going by memory recall, so forgive inaccuracies)

When going through initial setup, at one point some text verbiage actually covers an input field that contains the name of the device.  The issue is that it defaults to model number, rather than device name.  But to sync it needs the actual name that you gave to the device (same one that appears when you do bluetooth sync, or network identification, etc.)

To get to the verbiage, I had to do some tricks to hide keyboard which would make it briefly appear (like half a second) and at that point tap it.  It would put cursor in there, but get covered by that verbiage, but then keyboard would come up... you then have to blindly delete name that's there and type your device name.  But trick gets harder b/c at some point cursor jumped to the front, so I wound up with proper name prepended to default wrong name.  so then I used space-slide (at least on my phone, where you tap and hold space key, and then moving left or write moves the cursor) to slide to the end, figure out how many times blindly to tap backspace, and tapped it.

Once the proper name was in there, it worked.

Played a bit with the input field and it actually worked! Thanks @Lonchik! Im facing now the "next" issue. The "You cannot use this folder". I will try to free some time to dig into it :)
Title: Re: Wifi android device synching
Post by: boroda on May 25, 2023, 04:44:48 PM

Out of principle: always and most definitely. ;D In case the files get deleted during the process you could make a backup of the transcoded files so you dont have to sync again in case you already did a run. There is always room for fuckups.
Just fyi. in the end i ran into too many problems with the app and now i am using the alternative "indirect method" with a secondary transcoded library and resilio. So far im quite happy with this solution. https://musicbee.fandom.com/wiki/Synchronize_Android_by_Wifi
Setup was easy. Except the fact that i didnt know i had to deselct "selective sync" for resilio to do something.
I realized that this will not work. I don't just sync my entire library, I just sync playlists. If a song is added to a playlist or I add a new playlist then the wifi sync usually adds the missing songs onto my phone, unfortunately resilio doesn't seem to be able to sync playlists.

this plugin (https://getmusicbee.com/addons/plugins/46/sync-links/) is able to. it uses resilio as for real syncing, but also generates proper playlists for mobile devices.
Title: Re: Wifi android device synching
Post by: Shougun on May 28, 2023, 06:58:49 AM
I was wondering if anyone had any work arounds when the app can no longer find the server. Before I would simply purge the app's memory and resync to the library; however, this causes the app to stop tracking changes and so anything that happened before the last sync is not brought over after you fix the app. This can be really frustrating.. Is there a way to keep the app from forgetting the changes that have been made while reseting the rest of it?

Just timeline if it helps:

day 1- rate song 1 star
day 2- try to sync via app, app cannot find the server
day 2- reset the files in the app (by going to the app in settings)
day 2- sync, doesn't sync anything prior to day 2 as it doesn't recognize that it changed
day 3- rate song 1 star
day 3- sycn, works because it hasn't broke  yet

Not sure what causes the data reset to make it work, but I wish someone might have an idea on how to prevent the app from forgetting what changes have been made when I do that.. Or something else to do to make it work.

The error if it helps: "Server not found. Ensure MusicBee is running and Windows firewall is not blocking MusicBee".

Thank you!
Title: Re: Wifi android device synching
Post by: phred on May 28, 2023, 12:29:14 PM
IThe error if it helps: "Server not found. Ensure MusicBee is running and Windows firewall is not blocking MusicBee".
Make sure MB has been opened and finished scanning for new/changed files before opening up the WiFi app.
Title: Re: Wifi android device synching
Post by: Shougun on May 30, 2023, 07:37:45 AM
IThe error if it helps: "Server not found. Ensure MusicBee is running and Windows firewall is not blocking MusicBee".
Make sure MB has been opened and finished scanning for new/changed files before opening up the WiFi app.

I've waited a while, nothing seems to be going on in the app (not searching, etc). Just happens sometimes in the past where the fix was to clean out all the app data in the android phone, and then it'll see the server right away :(

Just wished I didn't have to lose the comparison thing it does, so it doesn't realize once it finds itself that it should grab changes prior to when it forgot who it was.
Title: Re: Wifi android device synching
Post by: Shougun on June 04, 2023, 01:11:46 AM
Removed the device from the list in the PC music bee settings, then synced and tried the app. Still says can't find server. Every time I purge the memory of the app in app settings of the phone it fixes this, but it forgets all the changes to ratings prior to that purge....

Does anyone know how the app works to preserve the memory of ratings, or any other way to sync GoneMad ratings to PC? Does that other app write ratings to file, the power something or other...?

I really want to be able to rate things on my phone and my library get it, consistently. Ready to change apps on the phone if needed, or use other solutions even if it takes more setup.
Title: Re: Wifi android device synching
Post by: Shougun on June 09, 2023, 06:24:39 AM
So I've tried Syncthing- and I can get my ratings to update from my phone to my computer, checking the metadata shows the changes in ratings.. but for some reason MusicBee does not seem to care if the file has had rating changes (no changes are represented in the program). Even if I right click send to rescan.

Any tips for that?

(noting again windows OS can see the rating under properties, so I can confirm that at least the file is being updated)


UPDATE:

I might have found out what is part of the problem but I need help to fix it lol.. Looks like all changes are getting sent to inbox as 'duplicates', there are no duplicates literally (if you go to the folder there is only one) but.. the rating changes appear to be sent there. How can I get them to pass through smoothly?

UPDATEx2:

Tried to send to library to see what happened. Apparently it sent it to a folder in my library called music library, which was organized as it's own library.. @_@

Seems like I have some setting wrong and never noticed before because I normally drop stuff into the right folder rather than using send to. Do I need to make a new library or something?

Updatex3:

I think using the relocation tool made some horrible mistakes in my library, probably at my accidental direction, that I never noticed due to the inbox system, and syncthing laid them very bare. If everything is smooth I will update again, I have a feeling syncthing will be one of the better options to update the library if the APP is having troubles. Will check if playcounts update, but I can say at least ratings do.

Updatex4: @_@

So after a lot of cleaning I believe my library has been un-fubar'd and the syncthing is working well. Probably drains a decent amount of battery, but the response time is really fast.. One caveat is to get the new ratings you have to have MusicBee rescan the file or close / open. Doesn't update playcount, could just be the GMMP doesn't write playcount tag though.

Anyway if you can't get the MusicBee app to work and want your ratings to sync, try syncthing, and if it all goes haywire it's probably because of some issues with how the library is setup.

Udpatex5: Still working so far. Definitely not getting playcount via syncthing but you can get it from last.fm / scrobbling apps if you really wanted. Used Anti-Twin to help clean up the library and then also the internal duplicate system after that.
Title: Re: Wifi android device synching
Post by: ome-reily on June 13, 2023, 12:53:24 AM
Shougun, have you tested if you can sync playlists with this setup? Also how long does the sync with syncthing take you? Thinking about using this since the wifi sync app is no longer working.
Title: Re: Wifi android device synching
Post by: Shougun on June 16, 2023, 06:51:02 AM
Sorry for late reply, seems to work rather quickly. Turn my computer on, syncthing (GUI) is autostart, phone has it running in the background, basically when I get to musicbee it's all been done.

Two way sync of files, things that are stored in the file that convince the program that something has changed. I don't think GMMP writes everything to file, so like playcount I'm fairly certain is stored just in GMMP's database, probably tag changes too, so.. do that stuff on your PC lol. Avoid conflicts by ensuring you don't change a file prior to the phone and PC match.

Have not tried playlists, but honestly I don't see why not so long as both GMMP and MusicBee agree on file type. If MusicBee stores a file then syncthing could pick it up, and if GMMP writes changes to the playlist then you'd get those back the other way. Now I've never used GMMP playlists, but a quick google makes me think it's worth a shot: https://www.reddit.com/r/gonemadmusicplayer/comments/btr3b4/playlist_options/

Only hurdle you might have is if your phone has goofy file setting permissions, may need to slap the phone a few times and tell it you're the captain. For reference my phone is not rooted, but I did have to tell it "no, I want it to access my stuff- shut up" lol.
Title: Re: Wifi android device synching
Post by: dalenyd on June 26, 2023, 03:01:59 PM
I only compiled this last night, so I've only tested this on my Android 13 Pixel 4a.  It worked perfectly.

Here is my compiled APK (https://www.trekie.net/files/MusicBee%20Wifi%20Sync%20Android%2013.apk) VirusTotal Scan (https://www.virustotal.com/gui/file/b9f87afed49b003ec86307269868498121585c4791e2f5f4866f4d69cf1d6b77?nocache=1)

Instructions (on a Pixel 4a, Android 13 anyway):
  • Uninstall existing version of the app if installed
  • Download APK (https://www.trekie.net/files/MusicBee%20Wifi%20Sync%20Android%2013.apk) on the device
  • Open the APK, usually from the notification that the file is downloaded (might also need to give Install unknown apps permissions (https://www.androidauthority.com/how-to-install-apks-31494/#1) for your browser)
  • Select to Install from the Package Installer window
  • If you get "Unsafe app blocked" from Google Play Protect, choose More details, then choose Install Anyway
  • Once installed, choose Open
  • The "All files access permission" window should open, choose MusicBee Wifi Sync
  • Select the Allow access to manage all files toggle
  • Press the back button at the top corner
  • Press the back button at the corner again
  • You should now be in the app and can choose your server/PC

Thank you for compiling and posting the APK! I tried it, and it did work (it was syncing), but I've noticed that the playcounts were not changing. Am I doing something wrong?
Title: Re: Wifi android device synching
Post by: boroda on June 26, 2023, 04:03:27 PM
@dalenyd, which android music player are you using?
Title: Re: Wifi android device synching
Post by: dalenyd on June 26, 2023, 04:15:48 PM
@dalenyd, which android music player are you using?

Hi Boroda, I am using poweramp.
Title: Re: Wifi android device synching
Post by: dalenyd on June 27, 2023, 01:04:45 AM
Update: I think I might have a solution to Andriod 13 not letting Musicbee Wifi Sync access the root folder.  And it’s still the old mixplorer solution (which you need to purchase for USD 5).  I reached out to mixplorer with my problem of not seeing the mixplorer panel giving me access when I launch Musicbee Wifi sync and Andriod telling me that “to protect your privacy, choose another folder.”  Here are the steps:
1.   Open Mixplorer
2.   Go to Settings > Components
3.   Enable Document Provider (all are enabled by default except this one)
4.   Restart phone (I don’t know if this is necessary, but the first time I did it, it was not working so I just restarted my phone).
The system file picker panel should be in Musicbee Wifi Sync (or any other app)
I was going crazy trying to figure this out because Musicbee has been my go to music library since my Ipod Classic died and I had to find an Andriod solution to sync my 80 GB music collection (with carefully crafted playlists over the years). 
Title: Re: Wifi android device synching
Post by: Kartoffelbrei on July 02, 2023, 01:13:27 AM

Out of principle: always and most definitely. ;D In case the files get deleted during the process you could make a backup of the transcoded files so you dont have to sync again in case you already did a run. There is always room for fuckups.
Just fyi. in the end i ran into too many problems with the app and now i am using the alternative "indirect method" with a secondary transcoded library and resilio. So far im quite happy with this solution. https://musicbee.fandom.com/wiki/Synchronize_Android_by_Wifi
Setup was easy. Except the fact that i didnt know i had to deselct "selective sync" for resilio to do something.
I realized that this will not work. I don't just sync my entire library, I just sync playlists. If a song is added to a playlist or I add a new playlist then the wifi sync usually adds the missing songs onto my phone, unfortunately resilio doesn't seem to be able to sync playlists.

this plugin (https://getmusicbee.com/addons/plugins/46/sync-links/) is able to. it uses resilio as for real syncing, but also generates proper playlists for mobile devices.
Hello,
I downloaded the MusicBee Plugin. When i sync to the sync links device it just copies the files. Not with links. I didnt change anything about the settings. How come?
Title: Re: Wifi android device synching
Post by: boroda on July 02, 2023, 01:31:47 AM
not sure what you mean by "links". playlists? have you set up syncing of playlists?

settings in red boxes are required, in blue box are optional:

(https://i.imgur.com/1TDLjFQ.png)
Title: Re: Wifi android device synching
Post by: Joemd on July 19, 2023, 01:32:22 PM
Is there an idiots guide to the wifi sync or something as I don't really understand what it's doing/ how it works. When I try to sync none of my playlists on my phone (using GoneMad) copy over (I receive quite a lot of "playlit files not matched in MusicBee error messages) and playlists from my computer don't seem to copy to my phone. I'm at a loss as how to have it all work.
Title: Re: Wifi android device synching
Post by: MrVain712 on August 04, 2023, 08:00:13 PM
Hello @all,

i have the problem again that i can sync between Android 13 and my Computer since i use a new Router.
I dont change settings in Musicbee but every Time i get now the message: "Server not found. Ensure MusicBee is running and Windows Firewall is not blocking MusicBee."

MusicBee IS running an Windows Firewall i OFF.

I restart my computer several times and my Smartphone (Samsung Galaxy S23+) too... What can i do? :(
What i dont understand in the MusicBee Wifi Sync App Error log is the message:
"failed to connect to 192.168.178.77 from 192.168.178.45...

But the IPs of my Computer is... 192.168.178.52 and not 192.168.178.77... Maybe i can change this?
Title: Re: Wifi android device synching
Post by: boroda on August 04, 2023, 09:59:48 PM
i vaguely recall that IP of the phone and PC must be 192.168.0.* or 192.168.1.*

try to change the IP address range on your router.
Title: Re: Wifi android device synching
Post by: glimpsefamerule on August 27, 2023, 09:17:04 AM
Just wanted to check in and mention that the Wifi Sync appears to fail if a filename contains an emoji. I was trying to sync a playlist that contained the track below, but the sync would keep failing before the filename could appear in the progress updated during the sync mode on the Wifi Sync app.

https://nmesh.bandcamp.com/album/--3

It's strange because I have a few other songs that contain emoji that seem to sync fine. Not sure if there's something in particular about this one.
Title: Re: Wifi android device synching
Post by: ome-reily on September 13, 2023, 08:10:16 PM
So has anyone compiled, or can anyone compile a set of instructions for how to get syncthing working with Android and musicbee? Since the apk for the wifi sync above no long works (as I have posted about in other threads).

I'm reading through the forum and some people seem to have this figured out but it's confusing.
Title: Re: Wifi android device synching
Post by: boroda on September 13, 2023, 08:18:38 PM
this (modified, not by me) apk version is working fine for me:

https://www.mediafire.com/file/2wr29jjboqpqjhq/MusicBee_Wifi_Sync_Android_13.apk/file

 sorry, i don't remember which form member has prepared this version and where i have downloaded it from.
Title: Re: Wifi android device synching
Post by: Dzib on September 18, 2023, 03:33:48 PM
Hi there!
I am getting an error while trying to sync my PC with Xiaomi 12 Pro. There is message "MusicBee can't match the device name to an existing configuration. Enter the device name that is displayed in MusicBee:". I think that the problem is in technical naming of my device. While MusicBee on my PC identify it as "Xiaomi 12 Pro", MusicBee Wifi Sync says that its name is "2201122G". I tried to enter "Xiaomi 12 Pro" into the input field, but it doesn't work for me. Also I already tried to reinstall both apps on PC and android device, delete device on PC and do a wire-sync again, so I have no idea what should I do next

I have the exact same error with Xiaomi Redmi Note 12S, but it was working fine with my Redmi Note 8 Pro

Edit 1: Looks like that on some phone models, the device model is used instead of the device name, so Musicbee is creating a device "profile" based on the device name while the wifi app is using the device model, so it can't work. A solution would be to be able to change de device name in Musicbee to match the one in the app, is it possible ?

Edit 2: It's working !!!! Juste changed the name of the device in MusicBee3Settings.ini (under Device - DeviceSettings) to match the model of the phone.
Title: Re: Wifi android device synching
Post by: phred on September 21, 2023, 09:07:14 PM
Using MB v3.5.8659 P

I've been using Steven's WiFi Sync app ever since it was introduced. A while ago my Galaxy  S22 updated to Android OS 13 and the WiFi sync app continued to work flawlessly.

This past weekend the phone died and I was sent I replacement. Everything is the same (including the model number (SM-S901U)) but the sync app now does not work. I get the dreaded "Can't use this folder" error. I downloaded and installed the "new" complied apk and started a sync which resulted in a lot of these in the sync error log.
Code
java.net.SocketException:java.net.SocketTimeoutException:Read timed out

In the MB error log each file that was attempted to transfer threw a "I/O error occurred. What was even weirder was the MB's status bar showed that the sync had completed successfully. Even though nothing was transferred.

Needless to say (but I'm going to say it anyway)  I'd really like to get this working and ideally using the S22's root folder.

Any ideas?
Title: Re: Wifi android device synching
Post by: Dzib on September 21, 2023, 09:33:25 PM
How did you fix the "can't use this folder" error ?
Title: Re: Wifi android device synching
Post by: phred on September 21, 2023, 09:46:56 PM
How did you fix the "can't use this folder" error ?
If I recall, using the new, compiled apk took care of that.

For the record I'm on the third day of (almost) non-stop configuring the replacement phone. With this particular issue I tried a lot of things so I may be getting mixed up in the sequence and/or results.
Title: Re: Wifi android device synching
Post by: Dzib on September 21, 2023, 10:10:19 PM
The apk on the last page? That's the one I used but without success unfortunately
Title: Re: Wifi android device synching
Post by: phred on September 22, 2023, 12:52:27 AM
https://getmusicbee.com/forum/index.php?topic=28093.msg211570#msg211570
Title: Re: Wifi android device synching
Post by: Guapdad on October 14, 2023, 07:35:54 AM
The My Files app on android won't allow me to do a two way wifi sync. Saying I need to select the SD card root folder and not one of it's sub folders. From what I've read here in the forum this doesn't look like it will be fixed anytime soon. At least until google decides to let us have write permission on our own devices.

Wondering if we could get around this by using as an alternate file management app. The wifi sync app defaults to using the android file management. Any chance we could add an option to select the file management app we want to use for wifi sync?
Title: Re: Wifi android device synching
Post by: sibilla6 on October 24, 2023, 08:58:00 AM
Seconding what Guapdad said. I have a new Samsung phone and I tried the apk from this thread and when I try to preview it asks for me to choose the root folder through the default file manager, which blocks it by saying "to protect your privacy, choose another folder". I don't want to have to root my phone for this and create all sorts of trouble, please let us use another folder or another file manager.
Title: Re: Wifi android device synching
Post by: ry49 on October 31, 2023, 01:18:16 PM
Same here on my Pixel 8 Android 14 :'(
Seconding what Guapdad said. I have a new Samsung phone and I tried the apk from this thread and when I try to preview it asks for me to choose the root folder through the default file manager, which blocks it by saying "to protect your privacy, choose another folder". I don't want to have to root my phone for this and create all sorts of trouble, please let us use another folder or another file manager.
Title: Re: Wifi android device synching
Post by: sageleader on November 01, 2023, 06:32:43 AM
Confirming as well that the Wifi Sync app isn't working on Pixel 8 Pro (Android 14). I tried the stock app as well as the APK someone modified here. Even with the All Files Access setting enabled I still am unable to select the root folder. Yes I have restarted.
Title: Re: Wifi android device synching
Post by: boroda on November 01, 2023, 09:04:10 AM
try this version (working fine for me android 13, but haven't tried it on 14):

https://www.mediafire.com/file/2wr29jjboqpqjhq/MusicBee_Wifi_Sync_Android_13.apk/file
Title: Re: Wifi android device synching
Post by: Squabsy on November 08, 2023, 09:41:18 AM
No that doesn't work on Android 14 ... was working fine with a version I built re the previous instructions but now I've upgraded to 14 I'm getting the SDcard error on all builds I've tried (knew I shouldn't have updated) I'm on a pixel 4a 5g if thats relevant
Title: Re: Wifi android device synching
Post by: bigdenver on November 17, 2023, 06:46:05 PM
Just FYI - my LG V60 is running Android 13 and the new APK does not work.  Same SD file access error.
Title: Re: Wifi android device synching
Post by: Xeknos on November 22, 2023, 05:22:03 PM
Hello,

Echoing this. With the recent Samsung Galaxy S23+ update to Android 14, the current APK no longer works. Possible to update so its compatible with 14? Are there other workarounds?
Title: Re: Wifi android device synching
Post by: MrVain712 on November 29, 2023, 06:15:56 PM
Hello,

Echoing this. With the recent Samsung Galaxy S23+ update to Android 14, the current APK no longer works. Possible to update so its compatible with 14? Are there other workarounds?

I have the same problem :( :(
Title: Re: Wifi android device synching
Post by: MrVain712 on November 29, 2023, 06:49:41 PM
Hey @all,

this Video helps me with Android 14: Youtube (https://www.youtube.com/watch?v=77Jjrj8AnBs&t=4s)

This is important:
Fix If you don't see it the miexplorer stuff when the menu opens
go to settings ->components ->scroll down ->Turn document provider on, all done.
Title: Re: Wifi android device synching
Post by: Ephoras on November 30, 2023, 08:45:46 AM
Amazingly the video provided by @MrVain712 helped, thanks for that.

But for Phones without an SD Card it's a bit more  work than in the Video.

After I installed the Mixplorer app (paid form the store, no idea about the description version) i had to do the following:
1. Turn on the Document provider from the Mixplorer settigs
2. Long click on my Music folder in Mixplorer and use the menu to add it to "Home"  and to Favorites (i think home is enough but i did both at the same time so not quite sure which one worked.)
3. restart my phone
4. start Musicbee wifi sync and klicked on sync. Now i had a menu icon on the top left (was not there before the restart and activation of document provider)
5. klick directly on music form the provided mixplorer Options and add it as a folder.

This worked on my Pixel 6A with Android 14 and the patched apk from two pages back.
Title: Re: Wifi android device synching
Post by: sibilla6 on December 11, 2023, 06:40:46 PM
Thanks for the guide, I was able to sync it but how do I sync back playcounts? I let a song play with PowerAmp, tried syncing again and my MusicBee playcount number didn't change.
Title: Re: Wifi android device synching
Post by: sibilla6 on December 13, 2023, 02:44:06 AM
I have both PowerAmp and GoneMad purchased and neither work with Wifi-Sync to update playcounts. Playing songs in PowerAmp does nothing, the app doesn't detect any changes at all. It's as if I haven't played anything.

For GoneMad, the app gives me an error message, saying "unable to retrieve statistics from GonaMad player", implying I have the non-unlocked version. The thing is, modern GoneMad doesn't use the unlocker anymore, you have to make an in-app purchase to get the full version, which makes me think that Wifi-Sync is outdated and can't work with the current GoneMad version.

I don't understand why this is so hard for MusicBee. Wired syncing for playcounts was standard in iPods in the mid 2000s, why is it so difficult for this software to do the same? I'm considering switching to MediaMonkey since they do have this feature but I'd rather stick with MB since the desktop client is near perfect. A lot of you may point out LastFM to me but that website is a while another can of worms that will reset all my MB playcounts and it has a bunch of problems if I have custom tags. I just want a proper local solution.
Title: Re: Wifi android device synching
Post by: phred on December 13, 2023, 03:09:39 AM
I don't understand why this is so hard for MusicBee.
MusicBee is developed by one person. He has a life outside of MusicBee. He doesn't get paid for anything he does with MusicBee. MediaMonkey and Apple have many people on staff to develop and maintain their products. And they get paid.

If you wanted to take over the plugin's development and maintenance, Steven would probably make the source code available.
Title: Re: Wifi android device synching
Post by: frankz on December 13, 2023, 03:13:56 AM
I don't understand why this is so hard for MusicBee.
Here's the source: Go for it sibilla6! Show us how not hard it is.
https://github.com/mayallst/MusicBeeWifiSync
Title: Re: Wifi android device synching
Post by: sibilla6 on December 13, 2023, 03:29:06 AM
Cute, but I graduated in a completely different field so it's not like I can actually contribute. All I can do is point out the flaws which have been around for 15 years so yes, it is frustrating.

I found a solution by the way, using an older version of GoneMad seems to have done the trick, but I had to buy the app twice (because the deprecated unlocker is a different purchase) so excuse me for wanting to vent.

Edit: GoneMAD version 3.3.17, just in case anyone else needs it.
Title: Re: Wifi android device synching
Post by: Xeknos on December 13, 2023, 07:02:40 AM
To be fair, this isn't really Steven's fault. His wifi program worked great when using SD cards. The issue appears to be that most modern smartphone manufacturers have decided to move away from expandable SD card storage, and that android has apparently made accessing system files an absolute nightmare - even if you grant the sync program permission to access local storage, android throws a lot about it trying to access local memory. This is an android access control problem, not a Steven problem.

The solution would appear to be to allow the user to define which folder that wifi sync will uses, as the program is hard coded to require the folder to be in the phones root folder while android throws a fit a out "protecting privacy."
Title: Re: Wifi android device synching
Post by: phred on December 13, 2023, 01:06:40 PM
Cute, but I graduated in a completely different field so it's not like I can actually contribute. All I can do is point out the flaws which have been around for 15 years so yes, it is frustrating.
There's nothing to gain by pointing out flaws that are out of Steven's control. As Xeknos, others, and myself have pointed out, the issue is because Google wants total control of where its OS can put files.
Title: Re: Wifi android device synching
Post by: sibilla6 on December 13, 2023, 02:00:57 PM
Excuse me for being skeptical, but I don't think the app being broken with the current version of GoneMAD is Google's fault, considering the old version works fine. PowerAmp's problem was also known at least since August (https://getmusicbee.com/forum/index.php?topic=39776.0) and the poor guy who reported it barely got any attention. As for the file permission thing, I don't have enough expertise to say how important the hardcoded requirement of a root folder is, but considering the fact that there is a workaround using Mixplorer I don't believe it's completely "out of Steven's control".

So I'm going to have to hard disagree on the your belief that "there is nothing to gain" from bringing these up. My suspicion is that this isn't getting much priority because the LastFM plugin exists, but please understand that that method is not a viable option for all of us.
Title: Re: Wifi android device synching
Post by: frankz on December 13, 2023, 06:33:14 PM
The Android permissions issue is different from the issue you are complaining about.

The issue isn't "getting much priority" because Steven doesn't want to deal with it, as is his right.  Having created a plug-in to Wifi Sync doesn't lock him into maintaining it through whatever changes the developers of GoneMAD and PowerAmp decide to make to their apps in perpetuity.  He made the code available to anyone who is inclined to take that on.

It's not a great situation for those who rely on that functionality, but it is what it is and complaining about it only irritates people, which I think is what phred was talking about.

Your options are to hope someone takes on maintenance of the app for free out of the goodness of their hearts, pay a coder to keep the app updated for you personally, or figure out whatever configuration you need to jerry rig to make Last.fm viable.

I use the Last.fm option.  If you don't care about last.fm stats on last.fm (matching their releases), then your tagging has nothing to do with whether it will work for you or not. MB sends the title, artist and album as you have them in your tags and then matches the plays back to those exact versions in your library (this is why I am so adamantly against the wishlist post that wants to change this - it would destroy this core functionality).  There is no issue there.

It will reset your play counts. What I did when I made the conversion was output my play history to a format Last.fm Scrubbler could read and then I used that program to upload my history to Last.fm.  I lost some play counts (each played song read "1" because MB only tracks the last play), but the last played dates stayed accurate at least within the time frame that last.fm would accept, which was all I needed. I lost some data but decided it was worth it to track my mobile plays.  Trade-off.

Everything is a trade-off.  This functionality isn't going to work for the foreseeable future, so you decide what the gimmes and gotchas are to each solution.  There are no gimmes to shouting into the wind about it or trying to figure out why it is the way it is.
Title: Re: Wifi android device synching
Post by: Xeknos on December 16, 2023, 07:39:09 AM
I have been tinkering with the process of using mixplorer to get the sync app working, and believe I have refined the process somewhat, at least for Android phones:

Required Apps: Mixplorer Silver (This is available for download from the Google Play Store for ~5 USD)
The Musicbee Wifi Sync app found in either this post (https://getmusicbee.com/forum/index.php?topic=28093.msg211570#msg211570) OR the Google Play store.

Mixplorer is essentially granting the Wifi Sync app access to the android file structure since it can't access it directly for whatever reason.

Steps:
1. Install both Mixplorer and the MusicBee Wifi Sync App.
2. Open Mixplorer. It will ask for permission to access the file system. Grant it.
3. In Mixplorer, tap on the three dots in the upper right. Then tap on settings, then tap on Components. Scroll down to the bottom of this list and turn "Document Provider" on. Once done, restart your phone.
4. When complete, you can open MusicBee Wifi Sync. The app will ask for admin access. You can go ahead and grant this.
5. The first time you open the app, it will prompt you for a folder to use. What Musicbee is looking for is for you to select the root folder of the device. This is why attempting to create a new folder and selecting that throws an error in the Wifi Sync App - it needs to use either the root device folder OR an SD card. And, of course, Android throws a fit about "privacy" if you try to use the root folder as is. But...
6. With document provider activated in Mixplorer, there will be a new sandwich menu available in the upper left of the folder select screen. Open this and select "Internal Storage", then "Use This Folder." It will ask for permission to access files again; grant it. As noted above, instead of accessing the root folder directly, we are now accessing the root folder through Mixplorer.
7. You should now be able to select either preview or sync now and sync your files.

A potential issue with Ephoras's walkthrough above is that he says you should add the music folder to home, and then select that when WifiSync asks for a folder. Depending on how you defined where MusicBee puts the files when initially syncing the phone (remember, phones need to be initially synced using a USB cable first; the default is /Music) then this can create a situation where the path to your music on your phone will be Root/Music/Music. Some users may prefer this (Root/Music/Music, Root/Music/Playlists, etc) but selecting the root folder should allow you to put your music wherever you want by manually changing the paths for the device settings in MusicBee itself. It will also allow you to use the default Playlists/Podcasts/Audiobooks folders that MusicBee assigned by default in the device settings page.

This is really two approaches to doing the same thing, but this one does not require you to add any files to home/favorites within Mixplorer itself and more closely replicates how the configuration used to be.

EDIT: after some extra testing, I've confirmed that this method actually also works with the default version of the WifiSync app available from the Google Play store. So for those of you worried about sideloading the APK, you don't have to worry anymore.
Title: Re: Wifi android device synching
Post by: phred on December 17, 2023, 02:23:21 PM
@Xeknos-

Thanks very much for this. Previously I tried the compiled APK along with the instructions for MixExplorer (and purchasing it) and I could not get it to work. I uninstalled Mix and the APK, restarted the phone, installed the original WiFi Sync app and Mix. Following your instructions I can once again sync MB with my phone via WiFi.

I'd like to suggest you repost your instructions in the Tips & Tricks section with the Subject "WiFi Sync with Android OS 13 and Above" or something similar. Once that's done, I'll make it sticky.

Thanks again.
Title: Re: Wifi android device synching
Post by: cray on December 19, 2023, 10:11:29 PM
@Xeknos-

Unfortunately, Mixplorer is able to copy files, but playcounts and ratings are not synchronized.  :'(  :'(  :'(
Please update this great app
Title: Re: Wifi android device synching
Post by: phred on December 20, 2023, 02:51:59 AM
Unfortunately, Mixplorer is able to copy files, but playcounts and ratings are not synchronized.  :'(  :'(  :'(
Please update this great app
I'm not sure which app you're requesting to be updated. If Mixplorer, then Xeknos is a user of MB who figured out a way to get MB's WiFi sync working with any folder on an Android phone. I'm pretty sure he has nothing to do with Mixplorer.

If you're referring to MB's WiFi Sync app, the same pretty much applies. Xeknos has nothing to do with it. It was developed by Steven, the  sole developer of MB, and it appears that he's not willing to fight with Google every time they change something regarding permission to use certain folders. Understand that I don't speak for him, but that's my impression.
Title: Re: Wifi android device synching
Post by: Boblemagicien on December 24, 2023, 01:10:55 PM
Using mixplorer, there's an error "Java access denied" for the stats.xml. Is there a way to by-pass that error or change the path in wifisync ?
Title: Re: Wifi android device synching
Post by: Xeknos on December 28, 2023, 12:45:28 AM
@Xeknos-

Thanks very much for this. Previously I tried the compiled APK along with the instructions for MixExplorer (and purchasing it) and I could not get it to work. I uninstalled Mix and the APK, restarted the phone, installed the original WiFi Sync app and Mix. Following your instructions I can once again sync MB with my phone via WiFi.

I'd like to suggest you repost your instructions in the Tips & Tricks section with the Subject "WiFi Sync with Android OS 13 and Above" or something similar. Once that's done, I'll make it sticky.

Thanks again.

Hi Phred,
This was just posted in the tips and tricks forum, apologies for the delay.

I'm not sure which app you're requesting to be updated. If Mixplorer, then Xeknos is a user of MB who figured out a way to get MB's WiFi sync working with any folder on an Android phone. I'm pretty sure he has nothing to do with Mixplorer.

If you're referring to MB's WiFi Sync app, the same pretty much applies. Xeknos has nothing to do with it. It was developed by Steven, the  sole developer of MB, and it appears that he's not willing to fight with Google every time they change something regarding permission to use certain folders. Understand that I don't speak for him, but that's my impression.

Phred is correct here. I have nothing to do with either Mixplorer or the Musicbee Wifi Sync app, I just helped refine how to get the two working together a little more cleanly. I use Blackplayer EX, so getting play counts to sync back and forth was never something I cared about, thus was outside the scope of my walkthrough above.
Title: Re: Wifi android device synching
Post by: Xeknos on December 28, 2023, 12:48:06 AM
Using mixplorer, there's an error "Java access denied" for the stats.xml. Is there a way to by-pass that error or change the path in wifisync ?

Have you tried using the wifisync app from the play store? As I recall, the compiled APK seemed to force the app to use certain paths in the android file structure, which could be causing your issue.
Title: Re: Wifi android device synching
Post by: phred on December 28, 2023, 02:22:46 AM
This was just posted in the tips and tricks forum, apologies for the delay.
Thank you for doing that. No need to apologize for the delay as I was only making a suggestion.

I will pin the post so it's easier to find.
Title: Re: Wifi android device synching
Post by: Boblemagicien on December 28, 2023, 11:14:29 PM
Have you tried using the wifisync app from the play store? As I recall, the compiled APK seemed to force the app to use certain paths in the android file structure, which could be causing your issue.

Yes I do. I got the same error "java.io.filenotfoundexception storage/emulated/0/gmmp/stats.xml: open failed : EACCES (Permission denied)" with the stats.xml file. Everything is working fine except reverse playcount sync.
Title: Re: Wifi android device synching
Post by: boroda on December 29, 2023, 05:56:33 PM
i haven't tried this yet, but afaik mixplorer could give mb sync app access to ANY folder, e.g. to "storage/emulated/0/gmmp/". couldn't it?
Title: Re: Wifi android device synching
Post by: Boblemagicien on January 01, 2024, 10:01:16 PM
i haven't tried this yet, but afaik mixplorer could give mb sync app access to ANY folder, e.g. to "storage/emulated/0/gmmp/". couldn't it?

That's what I tought but it don't.
It's strange but it's perfectly working with Poweramp. I just wish I could use GoneMad as I prefer this one.
Title: Re: Wifi android device synching
Post by: BoringName on January 06, 2024, 04:39:16 PM
I was a bit reluctant to share my APK previously. You shouldn't trust what random people on the internet give you!
But others have thrown theirs in here so here is mine I did a year and a half ago for android 13. Not sure why it works on my android 14 device but it does. For poweramp anyway, I can't test gonemad without paying for it and I'm not prepared to do that. GoneMad will not sync playcounts unless you have unlocked it. I haven't confirmed if playcount syncing works with poweramp, all I can confirm is I installed the app and was able to sync my music files to a folder on my device over wifi. My device is a redmi note 10 pro running a custom android 14 rom.

When you first launch this app it will ask you to grant all file permissions and open a window, you need to tap on musicbee and click allow.

https://www.mediafire.com/file/oybyrc2mp0b4l5n/MBAndroid30.apk/file
Title: Re: Wifi android device synching
Post by: MrVain712 on January 07, 2024, 12:56:11 PM
I have the problem with mixplorer and wifi sync, that every sync is a full sync... So all the files will copy again... Can someone help me? :(
Title: Re: Wifi android device synching
Post by: phred on January 07, 2024, 01:18:48 PM
every sync is a full sync...
Please post a screenshot of your sync settings.
Title: Re: Wifi android device synching
Post by: MrVain712 on January 07, 2024, 01:27:36 PM
This are my MusicBee settings:

Screenshots (https://imgur.com/a/T5jF93U)


Settings MusicBee Wifi Sync:

Sync from computer:
x as configured in MusicBee

Reverse Sync to computer:
x playcounts
x ratings

from player:
x PowerAmp



Title: Re: Wifi android device synching
Post by: phred on January 07, 2024, 01:39:40 PM
This are my MusicBee settings
Thanks. Can you also show a screenshot of the "Music" tab within MB's device settings?
Title: Re: Wifi android device synching
Post by: MrVain712 on January 07, 2024, 01:42:58 PM
This are my MusicBee settings
Thanks. Can you also show a screenshot of the "Music" tab within MB's device settings?

I have already taken 3 screenshots, one of them is of the music settings :)
Title: Re: Wifi android device synching
Post by: phred on January 07, 2024, 01:53:07 PM
I have already taken 3 screenshots, one of them is of the music settings :)
Ahhh ... yes you did. I didn't scroll down far enough to see the music configuration.

So despite the fact that you have it configured to only sync selected playlists, -everything- in your collection is being synced every time you initiate a sync? All music tracks, whether or not they're in a playlist? And -all- playlists, whether or not they're selected?

If that's the case, the only thing I can think of to suggest is deleting the current configuration and creating it again.

What version of MB are you using? And it it installer, portable, or store?
Which WiFi Sync app are you using? The original, created and posted by Steven? Or the somewhat newer APK that attempts to get around Android's restriction on what folder is used on the Android?

EDIT: Typo
Title: Re: Wifi android device synching
Post by: MrVain712 on January 07, 2024, 01:58:43 PM
Hey,

yes every time i start a new sync all the music will copy again to my smartphone and not only the new ones...

I´m using MusicBee 3.5.8732 (Win 11) Installer Version.
Now i try the Wifi Sync Version from "BoringName" with a new configuration. My Smartphone is a Samsung Galaxy S23+ with Android 14.
Title: Re: Wifi android device synching
Post by: phred on January 07, 2024, 02:40:42 PM
Before you try Boring Name's APK, try a wired sync and see if you get the same behavior. If it does, then the Boring Name APK might work better for you, but it's sole purpose is to get around Android's folder restriction. At this point you've got nothing to lose by trying it.

Maybe someone else will have a suggestion.

For the record, I'm using a Galaxy S22 with Android OS 14 and my syncs are working properly with only the selected playlists being copied over.
Title: Re: Wifi android device synching
Post by: Haljeff on February 15, 2024, 11:55:50 AM
Anybody able to get Poweramp playcounts to sync in android 13+
Title: Re: Wifi android device synching
Post by: BoringName on February 15, 2024, 11:29:32 PM
Anybody able to get Poweramp playcounts to sync in android 13+

You need the paid version of Poweramp for it to work.

If you have the paid version and it's still not working, the only thing I can suggest is changing to GoneMad as I know that works. You need the paid version for that too.