wifi sync failing

Report bugs & feature requests for MediaMonkey for Android and learn about the newest beta build.

Moderator: Gurus

bkenobi69
Posts: 412
Joined: Tue May 19, 2009 1:35 pm

Re: wifi sync failing

Post by bkenobi69 »

Upon further inspection, I realized that the 'x' is actually the down arrow. And I know that MMA is connecting to MMW just fine as it is keeping me up to date on last played times. I also found that when I go to settings in MMA and adjust which playlists I want to sync, it updates the settings in MMW correctly. I installed Tiny WiFi Analyzer and it shows that my signal strength should not be the issue.

When it fails, it usually doesn't get to the screen where it shows "External SD Card" across the top. It usually says "waiting for other processes to end", then "connecting to server", then "waiting" or something like that. Sometimes it switches to the screen where it would start showing analysis status before dying. If it starts analyzing, it almost always finishes.

I assume that since it hasn't done the analysis progress bar yet, it can't be a corrupt file or something. If I knew what it was doing during that time or could view the log file, I could probably narrow this down myself. :-?
bkenobi69
Posts: 412
Joined: Tue May 19, 2009 1:35 pm

Re: wifi sync failing

Post by bkenobi69 »

I have 3 wireless routers in the house to provide full coverage. A single router should technically be enough, but I am using one as a switch and the DSL modem also has wifi built in and turned on but isn't used. In any case, I turned wireless off on one of the 2 routers that is used.

So, my configuration is a single router with wifi enabled that I'm connecting to and a second on a different, non-interfering channel that is not used. I then restarted the PC and started MMW without admin privileges (default). I moved the phone to within 5 ft of the wifi router and could see full 4 bands on the wifi fan on the phone. I opened MMA and went to options -> wifi sync -> select sync server -> selected the server -> External SD card -> verified options -> sync now

This has been successful in the past, but it failed again this time. I can say with 99% confidence that WiFi should not be the issue. The only thing I can think of is that the settings inside the sync menu are causing the failure. In this case, I had a single playlist selected containing over 1000 tracks and I had the last 2 check boxes checked (delete tracks on the device). There are no tracks on the phone right now. The phone is basically a clean slate.

MMA v1.0.4.0121
MMW v1630
BigInJapan
Posts: 201
Joined: Mon Jan 02, 2012 10:42 pm

Re: wifi sync failing

Post by BigInJapan »

My wifi sync generally works, but on a few occasions where it did fail before it got to Analyzing..., I found I had to go into Android's running processes list and force stop MediaMonkey before I could sync again.

That hasn't been a frequent occurence, and I can't honestly remember which build I was on when it last happened. Maybe something to try though if you keep getting failures.
Remember when Last.fm had those cool imagegen charts for use in signatures?
Lowlander
Posts: 58767
Joined: Sat Sep 06, 2003 5:53 pm

Re: wifi sync failing

Post by Lowlander »

For me it seems to always fail on first attempt, second attempt works fine (other than missing files on Playlist).
bkenobi69
Posts: 412
Joined: Tue May 19, 2009 1:35 pm

Re: wifi sync failing

Post by bkenobi69 »

Interesting that the sync process was getting stuck for you. The thing I find strange is that I can sync successfully if I pick an album or certain playlists for example but then I can't select other playlists.

As an example, yesterday I tried syncing the one playlist that has never worked with wifi sync and it failed (of course). I then used MMA to select a different set of items to sync (an auto playlist containing the first song on each album) and it worked correctly. I then added to that an artist with ~10 albums and around 100 songs with full success. I turned on the original playlist and it failed. For all of this series, I had the phone located in one spot with good signal (3-4 bars) and plugged in to power with wifi set up not to disable on sleep.

As far as wifi signal goes, I noticed that with only the one router having wifi enabled, I get poor coverage upstairs. When I try to sync in a poor coverage location and it fails, there is a second dialog that tells me that wifi is not enabled and that it needs to be on in order to work. I have to believe that this is conclusive proof that wifi connectivity isn't the primary issue here (though it could potentially be a smaller component exacerbating things).

I have 2 more thoughts to this.
1) If there was a bad track in the playlist (missing/corrupt/some database error/etc), perhaps it is crashing when it reaches that point. I am going to build a few playlists and try various combinations to see if one contains a bad track.
2) I don't know how much space the converted files will take up. I have a 32GB microSD card that I'm using and the playlist size is 30GB. However, I am set up to convert these FLAC files to MP3 prior to transfer. Is it possible that MMW/MMA are calculating too large a transfer and failing ungracefully?
bkenobi69
Posts: 412
Joined: Tue May 19, 2009 1:35 pm

Re: wifi sync failing

Post by bkenobi69 »

Wow, splitting this playlist up to find the bad track(s) is a bit time consuming! I copied all tracks from the auto playlist into a manual one. That sync failed. I split it in half and the second half failed. I split the second half and the second half failed. I split that and both halves failed. I split...anyway, I did a lot of splitting. I stopped at 11:30 last night when the battery on the phone died (wasn't plugged in for testing).

It looks like I have it narrowed down to either one or more of ~150 tracks or something else completely that's just triggered by who knows what. I now know it can't be related to low storage since I have around 85% of the tracks synced and I still have 24Gb left on the card. Apparently the settings transcode the tracks WAY down from FLAC, which was expected. I'm planning on trying again this weekend to hopefully narrow it down to a list of tracks that cause issues. If there is a list, I guess the next question is why. But even then, at least I'll have the ability to wifi sync (hopefully).
bkenobi69
Posts: 412
Joined: Tue May 19, 2009 1:35 pm

Re: wifi sync failing

Post by bkenobi69 »

It appears this is not a problem with bad tracks. I got down to the last ~50 tracks by moving tracks in and out of a test playlist and syncing. When I was to that point, I could no longer get any further tracks to sync. At that point, I switched to USB and found that everything copied perfectly.

I was hoping to use wifi for my primary syncing method, but it appears to be very unreliable. I would love to provide logs and any other help to get it working better, but otherwise I guess I'll assume wifi sync is broken and just use USB.
Post Reply