View Issue Details

IDProjectCategoryView StatusLast Update
0020070MMASynchronizationpublic2023-12-18 03:40
Reporterrusty Assigned To 
PriorityurgentSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.0.0 
Target Version2.0.0Fixed in Version2.0.0 
Summary0020070: Bidi Sync fails for recovery from a device or is erratic, whenever a device with an existing profile bidi syncs to a new PC
DescriptionThere have been several reports of bidi synchronization of tracks failing, and I've been able to replicate. Strangely, on a couple of occasions, making edits to the Sync list (Device --> Library) settings resulted in Bidi synch starting to work, so I suspect that the issue is somehow related to configuration of which folders sync.

I can consistently replicate this as follows:

1 New install of MMA / delete sync profile from MMW
2 Download 3 tracks to the Android device at /Download/Music
3 In MMA Options > Library & Sync > Choose library folders, add the folder /Download/Music and then Check for new/changed media
--> the files appear in the library
4 Create a sync profile in MMA, and Initiate a WiFi sync (BiDi sync is disabled)
5 In MMW > Device Profile > Sync list (Device --> Library), 'Add folder...'\Download\Music' and disable the other folders, and Apply
6 Initiate WiFi Sync
-->Everything is in sync (i.e. nothing from the /Download/Music folder gets synced)!

I've uploaded a video + MMA log + MMW log. As I noted in the video, at step 5, the change in settings sometimes seem to commit correctly and sometimes cause the \Music folder to disappear. My suspicion is that the bug may be related in some way to these settings not saving correctly.
Additional InformationTested with Pixel 2XL (internal memory running android 11 so there shouldn't be an permission issues) MMA 2.0.1086 + MMW 5.1.2806

Reported at:
Ticket 5939
https://www.mediamonkey.com/forum/viewtopic.php?t=104360 (this user replicated with MMA 2.0 and MMW 5.4 which could imply that the issue is due to a regression in MMA).
Tagstodoc-help
Fixed in build1158

Relationships

related to 0020034 closedmartin MMA BiDi Sync: Playlist synchronization fails (regression) 
related to 0009941 assignedmartin MMA Sync with multiple MediaMonkey libraries (databases) 
parent of 0020487 closedLudek MMW 5 When MMA device profile is re-created in MMW, Playlist tracks fail to download 
related to 0020399 feedbackmartin MMA Playlists .m3u files are synced only if /Playlists directory pre-exists 

Activities

martin

2023-06-02 15:15

developer   ~0072151

Based on the log(64HV5H7WI6) and my testing, I believe that the tracks have been synced in the past because the tracks and playlists have sync id and timestamps.
There was no upload in the log.
Strange, but there is only one file in the MMA database from the download folder primary:Download/Music/voice_message_2021-09-04_20-40-31.mp3,
The other tracks from the video are no longer there.

You wrote you did a new installation of MMA, but I think the database was restored from the MediaMonkey directory and therefore the tracks and playlists were already evaluated as synchronized.
If you still suspect, I would need the database before and after the synchronization to compare.

rusty

2023-06-05 19:22

administrator   ~0072157

You're right--here's what actually occurred in the previous test:

1 New install of MMA / delete sync profile from MMW
2 Download 3 tracks to the Android device at /Download/Music
3 In MMA Options > Library & Sync > Choose library folders, add the folder /Download/Music and then Check for new/changed media
--> the files appear in the library
4 Create a sync profile in MMA, and Initiate a WiFi sync (BiDi sync is disabled)
5 In MMW > Device Profile > Sync list (Device --> Library), enable 'Auto-sync playlists from the device to the PC' and check off the pre-populated '\Download\Music' folder
6 Initiate WiFi Sync
--> MMA prompts tracks to be uploaded from /Download\Music folder to MMW
7 Cancel the sync operation
8 Add a new Playlist '3 crap songs' to the Sync list and initiate WiFi Sync
--> Tracks sync as expected
9 Delete the playlist and associated tracks '3 crap songs' from the PC, along with the Sync Profile (to simulate what happens when the user loses their PC or has a hard drive crash)
10 Initiate a new WiFi sync from the device to try to back up content and playlists from the device to the PC
-->Nothing gets backed up because bidi sync wasn't enabled
11 Configure the device profile 'Sync list (Device --> Library)' so as to enable bidi sync
--> /Downloads/Music isn't displayed as an upload path as it was at step 5
12 'Add folder...'\Download\Music' and enable it along with /Music and Apply
13 Initiate WiFi Sync
--> MMA prompts to bidi sync the tracks from /Download/Music, but not the tracks from /Music

I'm not exactly clear on why this is happening, but the net effect is that:
- users cannot recover tracks/playlists synced to MMA via MMW after having lost their MMW library
- when there's an existing profile on the device, and a new profile in MMW, bidi sync works for some folders and not others

rusty

2023-12-14 21:12

administrator   ~0073816

A) Existing text is:

Different server

This instance of MediaMonkey is configured to sync with a different server. To sync with this server, your existing sync settings/history be erased and replaced with a new sync profile.

Do you want to proceed?

[Cancel] [Proceed]

--
However, as discussed, sync settings/profiles aren't deleted in MMW, so the wording is misleading. Martin suggested:

This instance of MediaMonkey is configured to sync with a different server.
New sync settings from this server will be used.
Do you want to proceed?

I would suggest:

Sync settings not found

MediaMonkey can't find its sync configuration on this server.
Do you want to use new sync settings from this server?

[Cancel] [Proceed]


--
B) Existing text:

Verify paired files

Verifies the correctness and existence of already paired files. (This option is only active during the following synchronization).

--->

Check for missing server items

Verifies whether previously synced files or playlists have been removed from the server (Slow. Only active for this sync).


Notes/Questions:
i) This option should only be presented when bi-di sync is enabled
ii) Should it be automatically enabled the first time that bi-di sync is run?
iii) Can you explain why this option is required at all? i.e. when a sync is initiated, it always shows files being analyzed in pairs. Presumably, that's done at a performant level, so why isn't this part of that analysis?
--

Test notes:
Make sure to verify sync cases extensively (including 0020249).
Verify accessibility of Sync wizard for devices with only a single storage location (inaccessible in the past--see 0019439).

rusty

2023-12-15 16:25

administrator   ~0073836

Re. A) how about:

Sync settings

MediaMonkey is configured to sync with a different server.
Do you want to use new sync settings from this server (existing settings will be replaced)?

[Cancel] [Proceed]

Re. B) Thanks for clarifying!

martin

2023-12-15 16:28

developer   ~0073837

Fixed in build 2.0.0.1158

rusty

2023-12-18 03:10

administrator   ~0073883

Tested MMA 2.0.0.1158 against MMW 5.1.2828 and the functionality of uploading tracks from a new instance of MMA to MMW seems to be working. Leaving the issue 'resolved' for Peke to fully reverify sync scenarios.