V13 to 17 upgrade issue with uSync

Doing my first upgrade of a simple V13.12.0 site to V17.0.0. On first run, at the “Upgrading Umbraco” stage, it fails with what looks like a uSync error:-

Claude tells me:-

The Core Problem

The error originates from Scope.Dispose() at the top of the stack, which suggests that when trying to clean up a database transaction scope, it encountered a problem - likely a deadlock or timeout while waiting for database locks to be released.

Where It’s Failing

The upgrade is failing during these specific steps:

  1. uSync initialization (FirstBootAppStartingHandler) is trying to read a key-value pair from the database

  2. The KeyValueService.GetValue() method is being called during application startup

  3. This happens as part of the RestartRuntimeStep.Execute() during the upgrade process

I have uSync V17.0.0 and uSync.Forms V17.0.0 installed.

I’ll uninstall them for now to get me away, but maybe this could be looked at?

Thanks.

Removing uSync and uSync packages allows the site to run. Site still runs when they are reinstalled.

Thanks.

Hi,

At the moment I can’t reproduce this :disappointed_face:.

Vanilla upgrades from v13 to v17 with the uSync packages seem to install ok.

I suspect you don’t have the original stack trace to hand? At the moment we can only.go.of AI’s interpretation of it, which well might not ,be 100% the story.

Keeping an eye on it though .

Bit that bit of code is actually guarded and shouldn’t even run during an upgrade. :confused:

Hi Kevin,

You’re right, I don’t have the stack trace now. If it helps, this is the .csproj file, just in case it was due to another package:-

<Project Sdk="Microsoft.NET.Sdk.Web">
  <PropertyGroup>
    <TargetFramework>net10.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <RazorCompileOnBuild>false</RazorCompileOnBuild>
    <RazorCompileOnPublish>false</RazorCompileOnPublish>
    <CopyRazorGenerateFilesToPublishDirectory>true</CopyRazorGenerateFilesToPublishDirectory>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Our.Umbraco.Slimsy" Version="6.0.4" />
    <PackageReference Include="Our.Umbraco.TheDashboard" Version="17.0.0" />
    <PackageReference Include="Skybrud.Umbraco.Redirects" Version="17.0.0" />
    <PackageReference Include="Umbraco.Cms" Version="17.0.0" />
    <PackageReference Include="Umbraco.Community.Forms.uCaptcha" Version="6.0.0" />
    <PackageReference Include="Umbraco.Forms" Version="17.0.1" />
    <PackageReference Include="uSync" Version="17.0.0" />
    <PackageReference Include="uSync.Forms" Version="17.0.0" />
    <PackageReference Include="Umbraco.Cms.DevelopmentMode.Backoffice" Version="17.0.0" />
  </ItemGroup>

  <ItemGroup>
    <!-- Opt-in to app-local ICU to ensure consistent globalization APIs across different platforms -->
    <PackageReference Include="Microsoft.ICU.ICU4C.Runtime" Version="72.1.0.3" />
    <RuntimeHostConfigurationOption Include="System.Globalization.AppLocalIcu" Value="72.1.0.3" Condition="$(RuntimeIdentifier.StartsWith('linux')) or $(RuntimeIdentifier.StartsWith('win')) or ('$(RuntimeIdentifier)' == '' and !$(\[MSBuild\]::IsOSPlatform('osx')))" />
  </ItemGroup>
  
</Project>

But it may also be due to the fact I haven’t yet sorted out the appsettings.json file. It currently can’t find any templates and I’ve tried all the usual fixes, then it hit me, I haven’t done the appsettings.json yet! So there is still stuff to do :wink:

P.S. and as it’s me, you know it’s running on Linux, just in case there’s a casing issue somewhere :wink: