none
More than one pass to complete synchronization RRS feed

  • Question

  • I have noticed on a number of occasions that SyncToy needs to be run more than once to achieve sync.

    The most recent occurrence was when syncing my Downloads folder for the first time. It required 3 runs .

    All the 14 failures on the first run described the errors as file in use.

    6 errors after 2nd run - same error description.

    3rd run - no errors, sync complete.

    Has anybody got a view on this.

    Tuesday, March 23, 2010 11:30 AM

All replies

  • Hi -

    The error is descriptive - we found that the file is in use when trying to sync. As the files are closed/released - we sync those files.

    Thanks
    Deepa


    Deepa ( Microsoft Sync Framework)
    Tuesday, March 23, 2010 10:13 PM
    Moderator
  • Deepa

    All files were closed/released!

    All files were exe/zip/msi types.

    No other activity took place during the above described consecutive SyncToy operations.

    The basic facts are that the prog failed to sync files because it, in error, flagged these files as "in use".

    On 2nd run it flagged fewer, and on the 3rd run it successfuly completed the sync operation.

    Buggy?

    Wednesday, March 24, 2010 5:26 PM
  • Hi -

    I hesitate to call this a bug in our code because the errors are clearly FileSystem errors and the files being open could even be something like an Antivirus holding a lock on the file ( even though you do not have anything open on these).  We are basically just bubbling up the Win32 File.Open call so it could be any kind of service/application touching these files at the same time.

    Thanks
    Deepa


    Deepa ( Microsoft Sync Framework)
    Thursday, March 25, 2010 10:52 PM
    Moderator
  • Deepa

    Weak reply I'm afraid.

    Tried to sync a folder full of .jpg files, same thing happened, but only 2 passess required! And same error messages- file in use - again, they were not.

    Monday, March 29, 2010 7:03 PM
  • I've noticed similar "file open" issues with Windows 7 in other scenarios. For example, if I download a file to a usb drive using Firefox, and subsequently navigate away from that usb drive with firefox, I cannot subsequently eject that usb drive. Windows 7 complains that the usb drive is being accessed and can't be released. I've seen this scenario crop up several times after accessing various usb drives (I have several) under differing circumstances. Since SyncToy is relying on the Windows 7 file routines, I'm thinking this is likely not a SyncToy problem, but rather an underlying Windows 7 file system issue.
    Tuesday, March 30, 2010 3:25 PM
  • Hi,

    I have a similar problem except it actually does copy the files (most of the time)

    it is always error *** Error: Unknown error. The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020) 

    See this log entry.

    SYNC: 03/31/2010 11:14:41:125: SyncToy run of Desktop to laptop mapped drive (D:\Data_Data\Documents\SharedAndSynced\, S:\) completed at 31/03/2010 11:14:41 AM.

    SyncToy action was 'Synchronize'.

    SyncToy options were:

    Active for run all

    All files included

    No files excluded

    Do not check file contents

    Include read-only files

    Include hidden files

    Include system files

    Backup older files (send to Recycle Bin)

    All subfolders included

    SyncToy run took 00:00:52:953.

    Copied 2,947,643 bytes in 171 files in 00:00:52:953.

    Bytes per second 55,665.1, files per second 3.2.

    Avoided copying 233,155,389 bytes in 1,388 files that did not require action.

    Saved approximately 01:09:48:535 by not copying all files.

    Warning: 118 failures occured.

    You can retry by selecting "Run" again or select "Preview" to see

    the operations that remain to be performed.

    SYNC: 03/31/2010 11:14:41:125: *** Error: Unknown error. The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020) Copying D:\Data_Data\Documents\SharedAndSynced\JavaTraining\LogicalOpTable.java to S:\JavaTraining\LogicalOpTable.java 


    there are hundreds of these then I try again and get 


    SYNC: 03/31/2010 11:19:15:906: Started scanning directory : D:\Data_Data\Documents\SharedAndSynced\
    SYNC: 03/31/2010 11:19:15:906: Started scanning directory : S:\
    SYNC: 03/31/2010 11:19:16:562: Stopped scanning directory : D:\Data_Data\Documents\SharedAndSynced\
    SYNC: 03/31/2010 11:19:20:109: Stopped scanning directory : S:\
    SYNC: 03/31/2010 11:19:20:984: Preview of Desktop to laptop mapped drive (D:\Data_Data\Documents\SharedAndSynced\, S:\) in time 00:00:05:78.
    SyncToy action was 'Synchronize'
    Found 0 actions to perform.
    Found 1,726 files that did not require action.
    Analyzed 339.9 files per second.
    Avoided copying 237,008,474 bytes in 1,726 files.
    Saved approximately 00:07:54:00 by not copying any files.

    I tried from the other end and it found 0 changes also.  
    So when is an error not an error ?

    JC


    Wednesday, March 31, 2010 12:32 AM
  • Hi,

    I have a similar problem except it actually does copy the files (most of the time)

    it is always error *** Error: Unknown error. The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020) 

    See this log entry.

    SYNC: 03/31/2010 11:14:41:125: SyncToy run of Desktop to laptop mapped drive (D:\Data_Data\Documents\SharedAndSynced\, S:\) completed at 31/03/2010 11:14:41 AM.

    SyncToy action was 'Synchronize'.

    SyncToy options were:

    Active for run all

    All files included

    No files excluded

    Do not check file contents

    Include read-only files

    Include hidden files

    Include system files

    Backup older files (send to Recycle Bin)

    All subfolders included

    SyncToy run took 00:00:52:953.

    Copied 2,947,643 bytes in 171 files in 00:00:52:953.

    Bytes per second 55,665.1, files per second 3.2.

    Avoided copying 233,155,389 bytes in 1,388 files that did not require action.

    Saved approximately 01:09:48:535 by not copying all files.

    Warning: 118 failures occured.

    You can retry by selecting "Run" again or select "Preview" to see

    the operations that remain to be performed.

    SYNC: 03/31/2010 11:14:41:125: *** Error: Unknown error. The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020) Copying D:\Data_Data\Documents\SharedAndSynced\JavaTraining\LogicalOpTable.java to S:\JavaTraining\LogicalOpTable.java 


    there are hundreds of these then I try again and get 


    SYNC: 03/31/2010 11:19:15:906: Started scanning directory : D:\Data_Data\Documents\SharedAndSynced\
    SYNC: 03/31/2010 11:19:15:906: Started scanning directory : S:\
    SYNC: 03/31/2010 11:19:16:562: Stopped scanning directory : D:\Data_Data\Documents\SharedAndSynced\
    SYNC: 03/31/2010 11:19:20:109: Stopped scanning directory : S:\
    SYNC: 03/31/2010 11:19:20:984: Preview of Desktop to laptop mapped drive (D:\Data_Data\Documents\SharedAndSynced\, S:\) in time 00:00:05:78.
    SyncToy action was 'Synchronize'
    Found 0 actions to perform.
    Found 1,726 files that did not require action.
    Analyzed 339.9 files per second.
    Avoided copying 237,008,474 bytes in 1,726 files.
    Saved approximately 00:07:54:00 by not copying any files.

    I tried from the other end and it found 0 changes also.  
    So when is an error not an error ?

    JC


    Wednesday, March 31, 2010 12:32 AM
  • Hi JC.

    "So when is an error not an error ?"

    I agree. This app definitely has a problem which is a shame. If all you want to do is sync folders for the purpose of b/up, then SyncToy would be top of the pile if only the developers could get rid of the irritating inconsistencies.

    Wednesday, March 31, 2010 9:00 AM