Copied to clipboard

Flag this post as spam?

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


  • organic 100 posts 149 karma points
    Jun 23, 2014 @ 18:24
    organic
    0

    Doctype property editor not syncing

    1st time using uSync. I've changed the editor type on a property of a doctype, but it's not syncing.

    Running 2 local sites on 7.1.4.  I've added the uSync package to Site#1, put the 2 uSync dlls in a /lib folder in my project and referenced them so that they get published to the 2nd site, which did not happen the 1st time I published.

    uSync setting is set to 'write=true' and the /uSync folder shows my doctype editor change.  I 'file system' publish to Site#2 and confirm that /uSync folder is published, too.  Change setting to 'read=true', and restart the site, but the editor on the doctype has not changed.

    umbracoLog table shows a 'save' to the correct contentType on Site#2 restart, but the DB column [cmsPropertyType].[dataTypeId] is unchanged for this contenttypeid.

    I tried re-Reading from the uSync dashboard.  Again, the log shows a Save to this doctype, but the DB column does not change.  I tested that I can manually change this editor value in the admin and see the DB column change.

    Any thoughts are appreciated!

  • organic 100 posts 149 karma points
    Jun 23, 2014 @ 21:22
    organic
    0

    I set log4net to 'debug' and the log looks like uSync is working, as far as I can tell.  I changed the editor of 'url' property on FeatureSlider and FeatureTop from 'UrlPicker' to 'textstring', but it's still not changing in the DB, or visible in the FeatureSlider content editor.

    2014-06-23 12:55:08,857 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Processing DocTypes Part 1 - complete (954ms)

    2014-06-23 12:55:08,859 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Second pass C:\inetpub\wwwroot\MySite\uSync\DocumentType\FeatureSlider\def.config

    2014-06-23 12:55:08,866 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Container Type

    2014-06-23 12:55:08,866 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Structure

    2014-06-23 12:55:08,868 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Missing Property Removal

    2014-06-23 12:55:08,876 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Updating prop image for FeatureSlider

    2014-06-23 12:55:08,884 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Updating prop headingOne for FeatureSlider

    2014-06-23 12:55:08,890 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Updating prop headingTwo for FeatureSlider

    2014-06-23 12:55:08,892 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Updating prop url for FeatureSlider

    2014-06-23 12:55:08,893 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Sort order

    2014-06-23 12:55:08,895 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Save

    2014-06-23 12:55:08,905 [687] DEBUG Umbraco.Core.Sync.DefaultServerMessenger - [Thread 694] Invoking refresher Umbraco.Web.Cache.ContentTypeCacheRefresher on single server instance, message type RefreshByJson

    2014-06-23 12:55:08,905 [687] DEBUG Umbraco.Core.Models.PublishedContent.PublishedContentType - [Thread 694] Clear content type w/id 1162.

    2014-06-23 12:55:08,907 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Second pass C:\inetpub\wwwroot\MySite\uSync\DocumentType\FeatureTop\def.config

    2014-06-23 12:55:08,913 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Container Type

    2014-06-23 12:55:08,913 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Structure

    2014-06-23 12:55:08,913 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Missing Property Removal

    2014-06-23 12:55:08,913 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Updating prop url for FeatureTop

    2014-06-23 12:55:08,914 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Updating prop image for FeatureTop

    2014-06-23 12:55:08,916 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Sort order

    2014-06-23 12:55:08,916 [687] DEBUG jumps.umbraco.usync.uSync - [Thread 694] Save

    2014-06-23 12:55:08,920 [687] DEBUG Umbraco.Core.Sync.DefaultServerMessenger - [Thread 694] Invoking refresher Umbraco.Web.Cache.ContentTypeCacheRefresher on single server instance, message type RefreshByJson

    2014-06-23 12:55:08,920 [687] DEBUG Umbraco.Core.Models.PublishedContent.PublishedContentType - [Thread 694] Clear content type w/id 1144.

    2014-06-23 12:55:08,922 [687] INFO  jumps.umbraco.usync.uSync - [Thread 694] Processed Doctypes [20](1019ms)

  • organic 100 posts 149 karma points
    Jun 28, 2014 @ 00:04
    organic
    0

    Sure would love some help. Anyone, Bueller?

    I confirmed uSync setting of read=true and restarted my destination site#2 again.  The UmbracoTraceLog.txt shows my doctype being updated:  Sql Profiler is not showing any DB update happening.  Ideas?

    UmbracoTraceLog --- "updating DocType FeatureTop"

  • organic 100 posts 149 karma points
    Jul 11, 2014 @ 01:00
    organic
    0
    I have figured some things out, though not clear if any were the cause of the original post about a DocType property not syncing(changing editor), but I have definitely seen some objects sync.
    1. I'm using Visual Studio to dev and publish my site.  uSync makes new folders when you create objects that it tracks, say, under /uSync/DocTypes/ or /uSync/DataTypes/.  You have to remember to include those new folders in the Visual Studio solution, otherwise they won't get published and the destination uSync won't 'read' as expected.
    2.  Keep in mind that /DocTypes/.. folders are named to match the alias of the doctype.  I had occasionally changed an alias from PascalCase to camelCase, and uSync seems to have a hard time making that change, but maybe Subversion could be to blame.
    3. I believe I read about this somewhere but can't find it now.  uSync hooks into the save event and Writes out from the DB.  I'm editing templates in VS, which I don't think update the database.  I don't know what the cmsTemplate table does because the admin editor for the template seems to use the file from disk. The cmsTemplate row is outdated. When I publish, my template file is copied, but uSync probably Write's the template from the stale DB entry, but technically, that is a valid uSync and the two environments will match.
    I wonder if anyone has thoughts on this?
  • Kevin Jump 1536 posts 9827 karma points MVP 3x c-trib
    Jul 28, 2014 @ 15:38
    Kevin Jump
    0

    uSync has an issue (which i am looking at) when the DataType of a property changes- With the version of the Core Umbraco API - there was no direct (public) method for chaining the type of an existing property. and as a result i think the uSync method isn't quite working right.

    I need to re-investigate the API since v7.1.4 to see if this is something that can now be done.

    everything else should work - bar the changing of the datatype for a property - although there where some minor issues with importing via the dashboard. these are resolved in the new v2.3.0 version of uSync. so you might want to try that

    http://our.umbraco.org/FileDownload?id=12232

Please Sign in or register to post replies

Write your reply to:

Draft