Copied to clipboard

Flag this post as spam?

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


  • Julio M. Vivas 61 posts 122 karma points
    Sep 24, 2024 @ 19:08
    Julio M. Vivas
    0

    Can't upgrade from 13.5.1 to 14.0.0

    I'm trying to upgrade from 13.5.1 to 14.0.0 but keep on getting this error:

    BootFailedException: Boot failed: Umbraco cannot run. See Umbraco's log file for more details. -> Umbraco.Cms.Core.Exceptions.BootFailedException: An error occurred while running the unattended upgrade. The database configuration failed with the following message: The migration plan does not support migrating from state "{CC47C751-A81B-489A-A2BC-0240245DB687}".
    

    Is this a matter of rolling back the V13 version to a previous one? Looking at this file, does it mean it needs to be on V13.3.0 for the upgrade to be allowed?

    https://github.com/umbraco/Umbraco-CMS/blob/release-14.0.0/src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs

    To make it more confusing, the upgrade report after I login says

    Detected current version 14.0.0 ({CC47C751-A81B-489A-A2BC-0240245DB687}), which needs to be upgraded to 14.0.0+8685c7d ({827360CA-0855-42A5-8F86-A51F168CB559}). To compare versions and read a report of changes between versions, use the View Report button below.

    However, as per this file: https://github.com/umbraco/Umbraco-CMS/blob/release-13.5.1/src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs this GUID should be 13.5, not 14

    > To<V_13_5_0.ChangeRedirectUrlToNvarcharMax>("{CC47C751-A81B-489A-A2BC-0240245DB687}");
    

    On the umbracoKeyValue table I have this entry:

    key: Umbraco.Core.Upgrader.State+Umbraco.Core
    value: {CC47C751-A81B-489A-A2BC-0240245DB687}

    Any guidance would be very welcomed!

  • Brian Larsen 1 post 91 karma points
    30 days ago
    Brian Larsen
    100

    Hi Julio,

    I’ve encountered the same issue while attempting to upgrade from 13.5.1 to 14.2.0, receiving the same error message.

    I was able to bypass the problem by manually changing the value of "Umbraco.Core.Upgrader.State+Umbraco.Core" to "{DED98755-4059-41BB-ADBD-3FEAB12D1D7B}", which corresponds to the "InitialState" in the UmbracoPlan.cs file.

    While I’m not certain this is the optimal solution, it did allow me to complete the upgrade without any apparent issues.

  • Shuchita 44 posts 153 karma points
    30 days ago
    Shuchita
    0

    Hi Julio

    I am also getting the same issue , please let me know also if you find any solution to it

  • Julio M. Vivas 61 posts 122 karma points
    30 days ago
    Julio M. Vivas
    0

    Hi Brian and Shuchita, thanks for the tip on changing the GUID on the database.

    I ended up going back to a 12.3.10 backup and upgrading it first to 13.3.0 and then 14.0.0, which seems to have worked.

    I noticed Block Lists are acting up and there's the small issue of rebuilding all my custom property editors but at least it works.

    I'll get this version to 14.2.0, back it up again and then will try Brian's solution to test it as well.

  • Julio M. Vivas 61 posts 122 karma points
    29 days ago
    Julio M. Vivas
    0

    I can confirm that running the update advised by Brian on the 13.5.1 DB allowed the upgrade to 14.0.0 to complete:

    update [dbo].[umbracoKeyValue] set [value] = '{DED98755-4059-41BB-ADBD-3FEAB12D1D7B}' where [key] = 'Umbraco.Core.Upgrader.State+Umbraco.Core'
    

    Interestingly, on the comments on UmbracoPlan.cs it says: "This is set to the final migration state of 9.4, making that the lowest supported version to upgrade from." Not quite intuitive so well done for figuring that one out, Brian!

    I can see peple struggling with similar issues on this case:
    https://our.umbraco.com/forum/using-umbraco-and-getting-started/108170-the-migration-plan-does-not-support-migrating-from-state so hopefully this thread might help.

Please Sign in or register to post replies

Write your reply to:

Draft