-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mismatches when deploying content from local to live #72
Comments
@AndyButland do you have an idea why it is causing these mismatches? |
I un-checked the inherited composition from the two element types and added Background Color and Text Color properties directly to the setting element types instead. Before it inherited these from "Base Color Theme" element type. It didn't use to be an issue, but many something in Deploy V9 that fails handling this? Now I only have these template mismatches, but I can't figure out why? |
Ohh, it seems like it may be a bug in Deploy v9.0.0, when templates has dependencies to a Master template. I removed Master template for all these templates, pushed the revisions.. and now I can transfer the content to live/remote environment just fine 😲🤯 I haven't had this issue before with Deploy as far I recall only when there was mismatch on e.g. property or template aliases. When I select Master template again for all templates, so I have this structure and deploy the revisions. Afterwards I deploy again and get same error again: |
@AndyButland @nul800sebastiaan I wonder if you guys could try if you can reproduce this error? |
When I switch the the connection string from pointing on the v8 database, to point to the original LocalDB created when cloning the clean Umbraco Cloud V9 project (empty connection string), then I get same error when doing a full restore from the live environment which contain the content nodes previous transferred. When I change the templates again to not use Master templates and has dependency to this, I can restore content and also transfer content to live/remote environment. |
@bjarnef I can confirm that I am seeing the same issue with the master template and content transfers, when migrating a V8 site to a V9 site, so this does indeed look like a bug. |
Thanks both. I've been trying to replicate this, but unfortunately without success. Are either of you able to please validate what I'm doing to see if I'm missing something, or yourselves provide a set of steps, ideally for a single doc type/template to make it easier to diagnose, to trigger this issue please? Here's what I've tried:
|
@AndyButland just a few thoughts. Could you name the master template "Master" and with alias "Master". I didn't try renaming it to something else though. When I migrated the site I switched the connection string in the new cloned v9 install to target the existing v8 database and ran Then I deployed the revisions and templates to v9 Cloud project and checked the document types and templates existed on the remote environment. Finally I deployed the content (still with connection string target in v8 database) to the v9 remote environment in this case just the live environment. Otherwise let me know and I can grant you access to the Cloud project I am working on. Maybe you have access to more log files or can debug on the specific project? |
Thanks - I can replicate this now having followed those steps. So now just need to figure out what's going on... |
Some notes to keep track before breaking for lunch:
|
@AndyButland it makes sense if the checksum is generated based on the order of the dependencies. If I locally ran |
I've created a PR to resolve this now - it's in CMS rather than Deploy though, and relates to differences in globalization settings between local Windows environment and that used in Azure Web Apps (and Umbraco Cloud). |
Closing as this will be resolved with CMS release 9.0.1. Not tagging as it's a CMS release rather than a Deploy one. |
@AndyButland I was wondering if is it possible as a workaround for now in Startup.cs to configurate default culture |
Okay, I see :) I will give it a try using the suggestion from @bergmania |
Had a similar schema mismatch problem today (trial account, U9 site). With no content, push, pull, restore/transfer all worked ok - i.e. produce doc types in live or local doesn't matter. Created a simple home page doc type with a composition, where composition contained a Page Title text string. Creating content home page, either on local first, then transfer, or live first, then restore locally, ... schema mismatch. Finally, removed composition from home page doc type, and added page title as a property. Then restores/transfers start to work. Adding more properties, locally or live, with push or pull, transfer or restore, all worked. The composition seemed to be the problem. |
@ronmurp yeah, I also had some mismatches when using block settings from base document type: @AndyButland did you PR also fix this scenario? |
I've just tested this scenario using the bits that will become 9.0.1 (of CMS and Deploy) and aren't seeing this issue related to compositions, so it's possible this was the same problem (with ordering of dependencies differing between Cloud and local). |
I am migration a site from Umbraco v8 to v9 and cloned a clean Umbraco 9 project on Cloud.
Locally this it pointing to v8 database, generate revisions and deployed this, which are also extracted on the v9 project.
The revisions on local and live are identical, but I still get this error when deploying the content from local to live environment.
Strange enough this operation here seems to change the order of the dependencies compared to when I run
echo > deploy-export
or save from backoffice.But I guess the order shouldn't matter.
One thing it that the two "Settings" element types mentioned in the error message both inherits background color and text color properties from a "Base Color Theme" element type, but I don't see why that should be an issue.
Regarding the templates I don't see any differences except Umbraco Cloud transform these to lowercase in
/site/wwwroot/Views
... e.g. on local and in repository it isHomePage.cshtml
, buthomepage.cshtml
in/site/wwwroot/Views
The error message doesn't tell anything about what the issue is and "See 'Mismatches' for details." isn't very helpful, when you check all revisions and confirm they are identical 😅
The text was updated successfully, but these errors were encountered: