Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jacob Polden 67 posts 177 karma points
    Mar 06, 2014 @ 11:24
    Jacob Polden
    0

    uSync recreates deleted doctypes on disk

    Hi guys,

    Having a problem with uSync where it recreates deleted document types on disk. I have tried to setup uSync so that it only copies what the Umbraco instance looks like in terms of document types. uSync doesn't ever write anything to my umbraco instance. It's almost like it can't differentiate between deleted document types and current document types. My Umbraco instance isn't bringing back old document types, it's working as expect.

    I am using the latest version of umbraco 6 and uSync 2.1.0

    Here are some lines from my uSync config file:

    <usync read="false" write="true" attach="true" folder="~/uSync/" archive="~/uSync.Archive" versions="false" preserve="false" watchFolder="false">
    
    <DocumentTypes DeletePropertyValues="true" />
    

    Cheers

    Jacob

  • Kevin Jump 2341 posts 14868 karma points MVP 8x c-trib
    Mar 06, 2014 @ 13:47
    Kevin Jump
    0

    Hi,

    I can't recreate this behaviour on umbraco 6(.1.6) and uSync 2.1 -

    just to confirm - i have done the following

    1. create a doctype in umbraco : usync then creates a folder and a def.config file on disk for this doctype
    2. add some properties and things - usync updates the file
    3. delete the doctype - usync deletes the def.config file (but it doesn't delete the folder)
    4. delete the whole usync folder, and touch web.config to force a full sync from usync
    5. usync runs - but it doesn't create the deleted doctype, or write anything out to disk for the deleted doctype

    As long as No3 works their should be no way in theory for it to recreate it.

    can you reproduce the steps above ? does it do anything different ?

    You could turn on debugging in Log4net.config and then uSync will spit out a lot more info into the umbracotracelog.txt (/app_date/logs/)

    There is a bug in the umbraco api for v6.1.x relating to doctype import which is why I reverted the default version back to 1.5.8 - but the bug is to do with exports failing when properties are assigned to the default tab (Generic properties) I am not aware of that effecting deletes.

  • Jacob Polden 67 posts 177 karma points
    Mar 06, 2014 @ 15:14
    Jacob Polden
    0

    Hi Kevin,

    Thanks for getting back to me, I will go through these steps now and see what happens.

    Jacob

  • Jacob Polden 67 posts 177 karma points
    Mar 10, 2014 @ 10:33
    Jacob Polden
    0

    Hi Kevin,

    I have just got round to trying this out and this is what I found.

    I touched the web.config many times and nothing happened. Nothing was recreated and uSync matched the document types in Umbraco. Then all of a sudden the folders were back. I can't pinpoint when they returned as I only realised as I committed my project in SVN. There are no config files inside the folders.

    I shall delete the whole uSync folder to see if forcing a complete sync will fix the issue.

    Jacob

  • Jacob Polden 67 posts 177 karma points
    Mar 12, 2014 @ 11:45
    Jacob Polden
    0

    Hi Kevin,

    I have deleted the whole uSync folder. Two things now happen.

    Not all the doctypes that are created in umbraco are present in the uSync folder. After using the project for a while the old doctypes folders with no config files appear.

    I am using this config line

    <usync read="false" write="true" attach="true" folder="~/uSync/" archive="~/uSync.Archive" versions="false" preserve="false" watchFolder="true">
    

    Really confused. Is there anything in the archive that would affect the file creation?

    Cheers

    Jacob

  • Kevin Jump 2341 posts 14868 karma points MVP 8x c-trib
    Mar 12, 2014 @ 12:17
    Kevin Jump
    0

    That is really confusing.

    The archive is a push only, so files are copied into it onSave/Delete, but nothing is ever read out of it.

    did you get anywhere with the umbraco log file in /app_data/logs ? that should be writing out when uSync saves a doctype, so you can at least see if it is picking it up from umbraco.

    and does downgrading usync make any difference? (if you down load v1.5.8.2 - extract the zip file and overwrite the jumoo.umbraco.usync.dll in the bin folder)

Please Sign in or register to post replies

Write your reply to:

Draft