locked
Synctoy 2.0 bug RRS feed

  • Question

  • I've been getting the dreaded error 0x80070005 trying to synch 'my docs' from XP SP2 to Vista (SP1), and after a marathon debugging session the problem appears to be that Synctoy is unable to write anything into the root of the 'pictures' or 'videos' or music folders. It DOES actually seem to manage to create the sub folders (eg pictures/<dateX/) when it tries to write a picture into the /dateX/ subfolder, but any file in the root folder (pictures/test.txt for instance) returns the error, and all subsequent runs return the error for creating the /dateX/ subfolder (even though it is already there and there is no need to create it at all).

    Maybe this is a feature of the folder mapping from '/my documents/my pictures/' to /pictures/, or maybe it's just broke (there seems to be no problem with the folders which are not being faked out though).

    Synctoy authors to test/comment? I do have UAC on (default settings). I did migrate my docs originally using the vista migration wizard, from the same XP system. As far as I can tell I have full permissions to do anything to/in the folders, and running synctoy as Administrator makes no difference at all - each run decides it needs to sync all the files (and sub folders too) in the root of pictures, videos, music, etc (whether they are already there or not) and then fails to do so.

    A nice tool .. if only it worked ..
    Tuesday, June 9, 2009 11:27 PM

Answers

  •  HI GSV3MiaC,


    It seems NOT a Synctoy bug, sync issue happened due to duplicate name conflict in Vista Documents folder.

     

    Because of Vista using new path for folders: My document, music, pictures and video, for improve user experience, Vista created 3 shortcuts in Documents folder by default, they are named My Music, My Pictures and My Videos, and point to the new location.

     

    Usually, the 3 shortcuts were hidden files, open Vista Documents folder, press ALT+T, click folder options ->view-> select “show hidden files and folders”-> click Ok, and you will found them.

     

    It’s no problem that copies all files in My Document from XP to Vista(Documents folder), shortcut will make a redirection and let your music, pictures and videos files copy into the new location. But Synctoy can NOT recognize them, try to overwrite but raise a ACCESS DENIED error during sync.

     

     

    How to work around this problem?

     

    If you want to sync alls in My document folder form XP to Vista(Documents folder) via Synctoy, please follow steps as below:

     

    1.       First you need to understand folder path is difference between XP and vista, the correct folder mapping from XP to Vista is:

    Folder name

    XP OS

    Vista OS

    My document               

    C:\documents and settings\<your user account name>\My Documents

    C:\Users\<your user account name>\Documents

    My pictures

    C:\documents and settings\<your user account name>\My Documents\My Pictures

    C:\Users\<your user account name>\Pictures

    My music

    C:\documents and settings\<your user account name>\My Documents\My Music

    C:\Users\<your user account name>\Music

    My video

    C:\documents and settings\<your user account name>\My Documents\My Video

    C:\Users\<your user account name>\Videos

     

     

    2.       Share out My Document folder on XP for sync purpose

    3.       Open Synctoy, Create a new folder Pair for My document sync only

    a.       Sync folders setting follow above mapping table, such as left= \\XpMachine\ <your user account name>\My Documents, right= C:\Users\<your user account name>\Documents

    b.      Select Echo or other

    c.       Folder pair named “My document” in order to distinction

    d.      Click “Change Options” in panel, and click “Select subfolder”, unselect “My pictures, My music and My video” in Left Folder, Click OK.[VERY IMPORTANT]

    e.      Select “Exclude hidden files” if you don’t want overwrite system file “desktop.ini” during sync, click Ok to finish setting.

    4.       Create a new folder Pair for My pictures sync only

    a.       Sync folders setting follow above mapping table, such as left= \\XpMachine\ <your user account name>\My Documents\My Pictures, right= C:\Users\<your user account name>\Pictures

    b.      folder pair named “My pictures”

    c.       Click Ok to finish setting.

    5.       Create a new folder Pair for My music sync only

    a.       Same setting as steps 4.

    6.       Create a new folder Pair for My videos sync only

    a.       Same setting as steps 4.

     

    7.       Select “All Folder pairs”, click run button, all files will be sync successful.

     

    Any problem will let me know, thanks.


    Joey Liang
    Your potential our passion This posting is provided "AS IS" with no warranties, and confers no rights.
    Friday, June 19, 2009 10:17 AM

All replies

  • Hi -

    I could not repro this behaviour - do you think you could send us more detailed instructions on how you repro'ed this problem?

    Thanks
    Deepa
    Deepa ( Microsoft Sync Framework)
    Wednesday, June 10, 2009 6:47 PM
  • Let me try .. I'm doing a synch of 'my documents' running on Vista home premium on a new laptop - the source is an XP Home pc on a (wired) network. I am administrator on both machines. Everything synchs OK, except I get a string of errors for all files / folders which would have been written directly into 'my pictures' 'my videos' etc on the Vista machine (where these folders are being redirected to the new structure). The sub-folders DID get created (because the contents of the sub-folders synch OK) but everytime I try to run I get the error messages (pasted below I hope).

    I do have 'show hidden files and folders' turned on on the vista machine (I hate surprises). Maybe that affects things?  I do sometimes seem to have the same problem copying files manually?! - Don't have permission to write to my own files?

    SYNC: 06/14/2009 08:45:36:874: *** Error: Cannot write to the destination file. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Copying \\QUIK6\Daves\My Music\CDPlayer.ini to C:\Users\Dave\Documents\My Music\CDPlayer.ini

    Error: Cannot write to the destination file. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Creating folder C:\Users\Dave\Documents\My Videos

    Error: Cannot write to the destination file. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Creating folder C:\Users\Dave\Documents\My Pictures

    Error: Cannot write to the destination file. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Creating folder C:\Users\Dave\Documents\My Music

    ------------ first obvious question is why it is trying to create those three folders (junction links in Vista) because they are already there .. they must be because there are 1000s of files in sub-folders under them, which the program has just scanned and decided don't need to be re-synced. ------------------------


    Error: Cannot write to the destination file. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Copying \\QUIK6\Daves\My Music\Sample Music.lnk to C:\Users\Dave\Documents\My Music\Sample Music.lnk

    Error: Cannot write to the destination file. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Creating folder C:\Users\Dave\Documents\My Pictures\Webphotos to 19 May 2008

    Error: Cannot write to the destination file. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Creating folder C:\Users\Dave\Documents\My Pictures\New Webphotos

    Error: Cannot write to the destination file. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Creating folder C:\Users\Dave\Documents\My Pictures\Walking pics

    Error: Cannot write to the destination file. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Creating folder C:\Users\Dave\Documents\My Pictures\Misty

    --------------------- So here's a bunch of sub-folders we can't create (but they are all already there, they have files in and everything)


    Error: Cannot write to the destination file. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Copying \\QUIK6\Daves\My Videos\Untitled.svc to C:\Users\Dave\Documents\My Videos\Untitled.svc

    Error: Cannot write to the destination file. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Copying \\QUIK6\Daves\My Videos\HI.wmv to C:\Users\Dave\Documents\My Videos\HI.wmv

    -------------------- nor can we create files in the root 'folders' (really junction links - 'my videos' on the target machine is actually \Dave\videos folder of course)


    fwiw  I tried this with UAC  turned off, and I tried it with a whole different pair of user profiles (although the vista one was again a 'migration' from the XP home version), and I see exatly the same problem - synctoy can't/won't write files directly into the roots of the 'pictures' 'music' or 'videos' folders on the Vista machine (although it will write into sub folders under those), and it will keep trying, and complaining, about creating subfolders (although they are created OK, since the files get put into them). Must be something to do with reading/writing the root folders 'pictures', 'videos', 'music' etc.

    There is/was a second problem where Synctoy fails to read/copy downloaded .exe files (among others) which have the 'blocked' property set .. as reported elsewhere .. however those won't open/read/copy manually either, so we'll blame vista for those. These files in the root folders WILL copy ok manually, it's only synctoy which reports errors.
    • Edited by GSV3MiaC Sunday, June 14, 2009 1:47 PM
    Sunday, June 14, 2009 7:53 AM
  •  HI GSV3MiaC,


    It seems NOT a Synctoy bug, sync issue happened due to duplicate name conflict in Vista Documents folder.

     

    Because of Vista using new path for folders: My document, music, pictures and video, for improve user experience, Vista created 3 shortcuts in Documents folder by default, they are named My Music, My Pictures and My Videos, and point to the new location.

     

    Usually, the 3 shortcuts were hidden files, open Vista Documents folder, press ALT+T, click folder options ->view-> select “show hidden files and folders”-> click Ok, and you will found them.

     

    It’s no problem that copies all files in My Document from XP to Vista(Documents folder), shortcut will make a redirection and let your music, pictures and videos files copy into the new location. But Synctoy can NOT recognize them, try to overwrite but raise a ACCESS DENIED error during sync.

     

     

    How to work around this problem?

     

    If you want to sync alls in My document folder form XP to Vista(Documents folder) via Synctoy, please follow steps as below:

     

    1.       First you need to understand folder path is difference between XP and vista, the correct folder mapping from XP to Vista is:

    Folder name

    XP OS

    Vista OS

    My document               

    C:\documents and settings\<your user account name>\My Documents

    C:\Users\<your user account name>\Documents

    My pictures

    C:\documents and settings\<your user account name>\My Documents\My Pictures

    C:\Users\<your user account name>\Pictures

    My music

    C:\documents and settings\<your user account name>\My Documents\My Music

    C:\Users\<your user account name>\Music

    My video

    C:\documents and settings\<your user account name>\My Documents\My Video

    C:\Users\<your user account name>\Videos

     

     

    2.       Share out My Document folder on XP for sync purpose

    3.       Open Synctoy, Create a new folder Pair for My document sync only

    a.       Sync folders setting follow above mapping table, such as left= \\XpMachine\ <your user account name>\My Documents, right= C:\Users\<your user account name>\Documents

    b.      Select Echo or other

    c.       Folder pair named “My document” in order to distinction

    d.      Click “Change Options” in panel, and click “Select subfolder”, unselect “My pictures, My music and My video” in Left Folder, Click OK.[VERY IMPORTANT]

    e.      Select “Exclude hidden files” if you don’t want overwrite system file “desktop.ini” during sync, click Ok to finish setting.

    4.       Create a new folder Pair for My pictures sync only

    a.       Sync folders setting follow above mapping table, such as left= \\XpMachine\ <your user account name>\My Documents\My Pictures, right= C:\Users\<your user account name>\Pictures

    b.      folder pair named “My pictures”

    c.       Click Ok to finish setting.

    5.       Create a new folder Pair for My music sync only

    a.       Same setting as steps 4.

    6.       Create a new folder Pair for My videos sync only

    a.       Same setting as steps 4.

     

    7.       Select “All Folder pairs”, click run button, all files will be sync successful.

     

    Any problem will let me know, thanks.


    Joey Liang
    Your potential our passion This posting is provided "AS IS" with no warranties, and confers no rights.
    Friday, June 19, 2009 10:17 AM
  • Yes, I figured it was something like that. Note that not only can't Synctoy WRITE those special Vista folders, it can't READ the contents in them properly either, it seems, at least I can't see any other reason why it keep trying to write (and failing to) files which are directly in the root 'folders' (...\my videos\filename.wmv, etc.).

    Thanks anyway, I guess I'll go with the work-around, and just add my curses to the 'why did they mess with it when it wasn't broken' Vista heap (moving the folder names I mean).
    Tuesday, June 23, 2009 9:14 PM