Dean Leigh
01/02/2024, 7:32 AMError during installation
The database failed to upgrade. ERROR: The database configuration failed with the following message: The migration plan does not support migrating from state "{83AF7945-DADE-4A02-9041-F3F6EBFAC319}".
D_Inventor
01/02/2024, 7:34 AMDean Leigh
01/02/2024, 9:26 AMkdx-perbol
01/02/2024, 1:16 PMAaron Sawyer
01/02/2024, 10:24 PMD_Inventor
01/03/2024, 5:15 AMJemayn
01/03/2024, 8:50 AMSebastiaan
01/03/2024, 10:31 AMcsharp
// To 10.5.0 / 11.2.0
To<V_10_5_0.AddPrimaryKeyConstrainToContentVersionCleanupDtos>("{83AF7945-DADE-4A02-9041-F3F6EBFAC319}");
Dean Leigh
01/03/2024, 10:57 AMError during installation
The database failed to upgrade. ERROR: The database configuration failed with the following message: The migration plan does not support migrating from state "{EF93F398-1385-4F07-808A-D3C518984442}". Please check log file for additional information (can be found in '~/umbraco/Logs')
This is before attempting to upgrade to v13Sebastiaan
01/03/2024, 11:41 AMcsharp
// to 10.7.0
To<MigrateTagsFromNVarcharToNText>("{EF93F398-1385-4F07-808A-D3C518984442}");
> Upgraded Umbraco to 10.8.3
From?
> In reposnse to an error added via nuget <PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.0-preview4.23342.2" />
Why install preview builds?Sebastiaan
01/03/2024, 11:42 AMSebastiaan
01/03/2024, 11:51 AM{B7E0D53C-2B0E-418B-AB07-2DDE486E225F}
, so you would find that in the umbracoKeyValue
table where the key is Umbraco.Core.Upgrader.State+Umbraco.Core
(see first screenshot)
I believe each migration first tests if it is a necessary operation and then does the operation, that way, each migration is being executed if it had not been before (this seems to happen sometimes for reasons unknown).
I'd upgrade straight to v13.0.0, don't forget to update the solution to .net 8 first (each csproj file should have <TargetFramework>net8.0</TargetFramework>
in it at the top). See second screenshot.
https://cdn.discordapp.com/attachments/1191645056877219961/1192072799364337664/image.png?ex=65a7bf4f&is=65954a4f&hm=08bb8ca2fdd1e2436eba0b9f4227e29e069495f92c7a62a39054655ce9779c0a&
https://cdn.discordapp.com/attachments/1191645056877219961/1192072799704068096/image.png?ex=65a7bf4f&is=65954a4f&hm=97c831557606fe40742e0df5fee2a3f5417956db68e92bcbd728204829f0a582&Sebastiaan
01/03/2024, 11:54 AMDean Leigh
01/03/2024, 11:56 AMDean Leigh
01/03/2024, 11:59 AMdotnet new umbootstrap
and you will get the exact site I am upgradingSebastiaan
01/03/2024, 1:08 PMError during installation
The database failed to upgrade. ERROR: The database configuration failed with the following message: The process cannot access the file 'E:\Dev\Temp\testupgrade\umbraco\Data\TEMP\NuCache\NuCache.Content.db' because it is being used by another process. Please check log file for additional information (can be found in 'LoggingSettings.Directory')
See the log for full details (logs can typically be found in the umbraco\Logs folder).
But the db upgrade seems fine. I tried straight from 10 to 13 (on umbootstrap).
https://cdn.discordapp.com/attachments/1191645056877219961/1192092053920808960/image.png?ex=65a7d13d&is=65955c3d&hm=712cc9174d3ee97269df40a7d68cafc5164e9c32d69b97702109297b34965ec8&Jemayn
01/03/2024, 1:09 PMSebastiaan
01/03/2024, 1:16 PMSebastiaan
01/03/2024, 1:20 PMdotnet new install Umbraco.Community.Templates.UmBootstrap::0.1.9
- dotnet new umbootstrap
- run the website, see it working
- stop the website
- update csproj file to have the latest references (see below)
- delete umbraco\Data\TEMP\NuCache\*.*
- run the website again
- run the upgrade wizard
- done
xml
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Our.Umbraco.UmbNav.Web" Version="3.0.0" />
<PackageReference Include="System.Drawing.Common" Version="8.0.0" />
<PackageReference Include="Umbraco.Cms" Version="13.0.3" />
</ItemGroup>
<ItemGroup>
<!-- Opt-in to app-local ICU to ensure consistent globalization APIs across different platforms -->
<PackageReference Include="Microsoft.ICU.ICU4C.Runtime" Version="68.2.0.9" />
<PackageReference Include="Umbraco.Community.BlockPreview" Version="1.8.0" />
<PackageReference Include="uSync" Version="13.0.0" />
etc. ---- the rest is unchanged
So updated is TargetFramework
and most PackageReference
(not Microsoft.ICU.ICU4C.Runtime
).vDean Leigh
01/04/2024, 7:35 AMSebastiaan
01/08/2024, 12:09 PMSander L
01/08/2024, 12:24 PMSebastiaan
01/11/2024, 3:53 PMDean Leigh
01/11/2024, 6:38 PMDean Leigh
01/15/2024, 11:36 AMA hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by