Running uSync in Azure fails, but running locally works
Hey Kevin,
I don't know if this is being caused by uSync or by Umbraco, but I'm deploying a site to Azure and when I run uSync it is failing against DataTypes and Content Types. No details are being logged, just that the handlers failed.
The same files import fine on a local DB, so it appears to be something around Azure causing the issue but I'm not sure what.
Running:
uSync: 9.2.0
Umbraco: 9.3.1
As you can see some items import fine. There are no errors in the Umbraco logs, despite the site being set on "Debug" logging in this environment. I can see the debug entries from uSync showing.
When I report changes, these are some of the changes I'm seeing:
What makes it really odd, having checked some of the content types, they have imported:
Most, not all, of these content types are IPublishedElements - but I'm wondering if the issue is related to the tabs/groups?
<!-- Set this to true if ModelsBuilder mode is not InMemoryAuto-->
<PropertyGroup>
<RazorCompileOnBuild>false</RazorCompileOnBuild>
<RazorCompileOnPublish>false</RazorCompileOnPublish>
</PropertyGroup>
Which I think "doesn't" publish compiled views is that right?
OK, sorry i read your version numbers the wrong way around, 🙂
i uSync 9.3.1 all fails will log, (and there is a popup for exceptions) and they should be a lot better, i can't quite remember with v9.2 i will have to examine the source, but i am guessing we hadn't caught them all.
I've upgrade uSync to the latest version 9.3.2 :-D
This is giving an error I can actually feedback now!
Set an alias before adding the property group.
at Umbraco.Cms.Core.Models.PropertyGroupCollection.Add(PropertyGroup item)
at Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement.ContentTypeCommonRepository.MapGroupsAndProperties(IDictionary`2 contentTypes)
at Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement.ContentTypeCommonRepository.GetAllTypesInternal()
at Umbraco.Extensions.AppCacheExtensions.<>c__DisplayClass0_0`1.<GetCacheItem>b__0()
at Umbraco.Cms.Core.Cache.SafeLazy.<>c__DisplayClass1_0.<GetSafeLazy>b__0()
The items in question don't have a tab on them so are falling back to the default tab from what I can tell.
i wasn't actually aware we changed that that much in v9 did these uSync files come from an old v8 site or where they generated on v9 in the first place ?
in v9.3.x the feedback dialog exists because you asked for it 🙂
Running uSync in Azure fails, but running locally works
Hey Kevin,
I don't know if this is being caused by uSync or by Umbraco, but I'm deploying a site to Azure and when I run uSync it is failing against DataTypes and Content Types. No details are being logged, just that the handlers failed.
The same files import fine on a local DB, so it appears to be something around Azure causing the issue but I'm not sure what.
Running: uSync: 9.2.0 Umbraco: 9.3.1
As you can see some items import fine. There are no errors in the Umbraco logs, despite the site being set on "Debug" logging in this environment. I can see the debug entries from uSync showing.
When I report changes, these are some of the changes I'm seeing:
What makes it really odd, having checked some of the content types, they have imported:
Most, not all, of these content types are IPublishedElements - but I'm wondering if the issue is related to the tabs/groups?
Hi Nik,
are you publishing compiled razor viewss ?
e.g do you have this ?
that can cause the templates to fail, wondering if its that.
Hey Kevin,
I have
Which I think "doesn't" publish compiled views is that right?
Also have this:
Yeah - that should mean the files are there.
Just rechecking the all fails should at least log a warning in the logs. 🤔
I am guessing you don't have anything listening for the uSync notification events ?
OK, sorry i read your version numbers the wrong way around, 🙂
i uSync 9.3.1 all fails will log, (and there is a popup for exceptions) and they should be a lot better, i can't quite remember with v9.2 i will have to examine the source, but i am guessing we hadn't caught them all.
So.
I've upgrade uSync to the latest version 9.3.2 :-D
This is giving an error I can actually feedback now!
The items in question don't have a tab on them so are falling back to the default tab from what I can tell.
Nik
Okay, so it looks like it's an issue with the old uSync definition files.
The ones that fail have:
If I re-save a failing item after making sure it works okay that changes to:
It also changes the "Tab" definition from:
to
Oh good spot,
i wasn't actually aware we changed that that much in v9 did these uSync files come from an old v8 site or where they generated on v9 in the first place ?
in v9.3.x the feedback dialog exists because you asked for it 🙂
H5YR for the feedback dialog! Was super helpful!
I actually am not sure where they originated from.
I think they started on a v8 site but after first import into a clean v9 I was sure I'd exported again to get any changes.
If they did come from a v8 site, it was probably around a v8.6 site so well before tabs existed.
is working on a reply...