U4-11442 - Umbraco tries to upgrade to the same version on every publish after updating from 7.5.12 to 7.10.4

Created by Ashkan Sirous 14 Jun 2018, 14:09:40 Updated by Søren Kottal 15 Jun 2018, 08:32:10

I have updated Umbraco from 7.5.12 to 7.10.4 along side with Models builder (generating models via custom tool) and everything, rebuilt, ran the custom tool again to re-create models and fixed the compile errors which was only because Models builder changed my linkPickers type from Json to Gabe...LinkPiker.

Then I ran the website and let it upgrade the DB. Everything went fine and there was no problem.

Following the steps for upgrading, useLegacyEncoding is set to true EnablePropertyValueConverters (which is new) is set to false plugin:umbracolink in my code has been deleted.

I am hosting the solution on Azure so I have Changed my Blob storage to Our.Umbraco.FileSystemProviders.Azure.AzureBlobFileSystem from idseefeld.de.UmbracoAzure.AzureBlobFileSystem.

That is basically what I've done. Everything worked on my machine and I was a happy developer checking my code. Then I've published the code to Azure app service on my Backend node ( Flexible load balancing settings), the source started to come up but then the upgarde page came up asking to upgrade from the same version to the same one (7.10.4 to 7.10.4). I let it work and I could connect to the backoffice.

Then to make sure that it is not going to happen again, I've published the same code again on the same app service and the upgrade page has been shown again.

These update logs keep happening in my logs 2018-06-14 13:50:50,972 [P11692/D12/T35] INFO Umbraco.Core.DatabaseContext - CanConnect = True 2018-06-14 13:50:51,034 [P11692/D12/T35] INFO Umbraco.Core.PluginManager - Resolving umbraco.interfaces.IDiscoverable 2018-06-14 13:50:51,052 [P11692/D12/T35] INFO Umbraco.Core.PluginManager - Resolved umbraco.interfaces.IDiscoverable (took 11ms) 2018-06-14 13:50:51,052 [P11692/D12/T35] INFO Umbraco.Core.PluginManager - Resolving [Umbraco.Core.Persistence.Mappers.MapperForAttribute]Umbraco.Core.Persistence.Mappers.BaseMapper 2018-06-14 13:50:51,065 [P11692/D12/T35] INFO Umbraco.Core.PluginManager - Resolved [Umbraco.Core.Persistence.Mappers.MapperForAttribute]Umbraco.Core.Persistence.Mappers.BaseMapper (took 14ms) 2018-06-14 13:51:00,352 [P11692/D12/T22] INFO Umbraco.Web.Install.Controllers.InstallApiController - Executing installation step: Permissions 2018-06-14 13:51:00,398 [P11692/D12/T22] INFO Umbraco.Web.Install.Controllers.InstallApiController - Step completed (took 56ms) 2018-06-14 13:51:00,489 [P11692/D12/T8] INFO Umbraco.Web.Install.Controllers.InstallApiController - Executing installation step: Upgrade 2018-06-14 13:51:00,508 [P11692/D12/T8] INFO Umbraco.Web.Install.Controllers.InstallApiController - Step completed (took 9ms) 2018-06-14 13:51:00,599 [P11692/D12/T26] INFO Umbraco.Web.Install.Controllers.InstallApiController - Executing installation step: DatabaseInstall 2018-06-14 13:51:00,615 [P11692/D12/T26] INFO Umbraco.Core.DatabaseContext - Database configuration status: Started 2018-06-14 13:51:00,615 [P11692/D12/T26] INFO Umbraco.Core.DatabaseContext - Database requires upgrade 2018-06-14 13:51:00,635 [P11692/D12/T26] INFO Umbraco.Web.Install.Controllers.InstallApiController - Step completed (took 34ms) 2018-06-14 13:51:00,676 [P11692/D12/T22] INFO Umbraco.Web.Install.Controllers.InstallApiController - Executing installation step: DatabaseUpgrade 2018-06-14 13:51:00,695 [P11692/D12/T22] INFO Umbraco.Web.Install.InstallSteps.DatabaseUpgradeStep - Running 'Upgrade' service 2018-06-14 13:51:00,708 [P11692/D12/T22] INFO Umbraco.Core.DatabaseContext - Database upgrade started 2018-06-14 13:51:00,833 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Initializing database migrations 2018-06-14 13:51:00,833 [P11692/D12/T22] INFO Umbraco.Core.PluginManager - Resolving umbraco.interfaces.IDiscoverable 2018-06-14 13:51:00,849 [P11692/D12/T22] INFO Umbraco.Core.PluginManager - Resolved umbraco.interfaces.IDiscoverable (took 9ms) 2018-06-14 13:51:00,849 [P11692/D12/T22] INFO Umbraco.Core.PluginManager - Resolving Umbraco.Core.Persistence.Migrations.IMigration 2018-06-14 13:51:00,864 [P11692/D12/T22] INFO Umbraco.Core.PluginManager - Resolved Umbraco.Core.Persistence.Migrations.IMigration (took 18ms) 2018-06-14 13:51:01,005 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexesToUmbracoRelationTables' to context 2018-06-14 13:51:01,101 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexToUmbracoNodePath' to context 2018-06-14 13:51:01,178 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexToUser2NodePermission' to context 2018-06-14 13:51:01,271 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddRelationTypeUniqueIdColumn' to context 2018-06-14 13:51:01,428 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddMacroUniqueIdColumn' to context 2018-06-14 13:51:01,443 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'NormalizeTemplateGuids' to context 2018-06-14 13:51:01,584 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'UpdateUniqueIndexOnCmsPropertyData' to context 2018-06-14 13:51:01,678 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'RemoveUmbracoDeployTables' to context 2018-06-14 13:51:01,693 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'ReduceLoginNameColumnsSize' to context 2018-06-14 13:51:01,693 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexToCmsMemberLoginName' to context 2018-06-14 13:51:01,771 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddLockTable' to context 2018-06-14 13:51:01,771 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddLockObjects' to context 2018-06-14 13:51:01,865 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'UpdateUserTables' to context 2018-06-14 13:51:02,646 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddUserGroupTables' to context 2018-06-14 13:51:02,732 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddUserStartNodeTable' to context 2018-06-14 13:51:02,732 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'ReduceDictionaryKeyColumnsSize' to context 2018-06-14 13:51:02,753 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexToDictionaryKeyColumn' to context 2018-06-14 13:51:02,753 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'EnsureContentTemplatePermissions' to context 2018-06-14 13:51:02,766 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexToPropertyTypeAliasColumn' to context 2018-06-14 13:51:02,857 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddTourDataUserColumn' to context 2018-06-14 13:51:02,935 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddCmsMediaTable' to context 2018-06-14 13:51:03,123 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddInstructionCountColumn' to context 2018-06-14 13:51:03,201 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddUserLoginTable' to context 2018-06-14 13:51:03,264 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddUmbracoAuditTable' to context 2018-06-14 13:51:03,342 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddUmbracoConsentTable' to context 2018-06-14 13:51:03,467 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIsSensitiveMemberTypeColumn' to context 2018-06-14 13:51:03,467 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'CreateSensitiveDataUserGroup' to context 2018-06-14 13:51:03,485 [P11692/D12/T22] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'RenamePreviewFolder' to context 2018-06-14 13:51:04,688 [P11692/D12/T22] INFO Umbraco.Core.DatabaseContext - Database configuration status:

Upgrade completed!

2018-06-14 13:51:04,700 [P11692/D12/T22] INFO Umbraco.Web.Install.Controllers.InstallApiController - Step completed (took 4021ms) 2018-06-14 13:51:04,763 [P11692/D12/T26] INFO Umbraco.Web.Install.Controllers.InstallApiController - Executing installation step: UmbracoVersion

2018-06-14 13:54:01,455 [P11692/D14/T26] INFO Umbraco.Core.DatabaseContext - CanConnect = True 2018-06-14 13:54:01,485 [P11692/D14/T26] INFO Umbraco.Core.PluginManager - Resolving umbraco.interfaces.IDiscoverable 2018-06-14 13:54:01,503 [P11692/D14/T26] INFO Umbraco.Core.PluginManager - Resolved umbraco.interfaces.IDiscoverable (took 16ms) 2018-06-14 13:54:01,503 [P11692/D14/T26] INFO Umbraco.Core.PluginManager - Resolving [Umbraco.Core.Persistence.Mappers.MapperForAttribute]Umbraco.Core.Persistence.Mappers.BaseMapper 2018-06-14 13:54:01,516 [P11692/D14/T26] INFO Umbraco.Core.PluginManager - Resolved [Umbraco.Core.Persistence.Mappers.MapperForAttribute]Umbraco.Core.Persistence.Mappers.BaseMapper (took 18ms) 2018-06-14 13:56:28,560 [P11692/D14/T30] INFO Umbraco.Web.Install.Controllers.InstallApiController - Executing installation step: Permissions 2018-06-14 13:56:28,603 [P11692/D14/T30] INFO Umbraco.Web.Install.Controllers.InstallApiController - Step completed (took 55ms) 2018-06-14 13:56:28,697 [P11692/D14/T35] INFO Umbraco.Web.Install.Controllers.InstallApiController - Executing installation step: Upgrade 2018-06-14 13:56:28,716 [P11692/D14/T35] INFO Umbraco.Web.Install.Controllers.InstallApiController - Step completed (took 10ms) 2018-06-14 13:56:28,791 [P11692/D14/T26] INFO Umbraco.Web.Install.Controllers.InstallApiController - Executing installation step: DatabaseInstall 2018-06-14 13:56:28,791 [P11692/D14/T26] INFO Umbraco.Core.DatabaseContext - Database configuration status: Started 2018-06-14 13:56:28,806 [P11692/D14/T26] INFO Umbraco.Core.DatabaseContext - Database requires upgrade 2018-06-14 13:56:28,826 [P11692/D14/T26] INFO Umbraco.Web.Install.Controllers.InstallApiController - Step completed (took 31ms) 2018-06-14 13:56:28,869 [P11692/D14/T30] INFO Umbraco.Web.Install.Controllers.InstallApiController - Executing installation step: DatabaseUpgrade 2018-06-14 13:56:28,889 [P11692/D14/T30] INFO Umbraco.Web.Install.InstallSteps.DatabaseUpgradeStep - Running 'Upgrade' service 2018-06-14 13:56:28,900 [P11692/D14/T30] INFO Umbraco.Core.DatabaseContext - Database upgrade started 2018-06-14 13:56:29,025 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Initializing database migrations 2018-06-14 13:56:29,025 [P11692/D14/T30] INFO Umbraco.Core.PluginManager - Resolving umbraco.interfaces.IDiscoverable 2018-06-14 13:56:29,072 [P11692/D14/T30] INFO Umbraco.Core.PluginManager - Resolved umbraco.interfaces.IDiscoverable (took 46ms) 2018-06-14 13:56:29,072 [P11692/D14/T30] INFO Umbraco.Core.PluginManager - Resolving Umbraco.Core.Persistence.Migrations.IMigration 2018-06-14 13:56:29,088 [P11692/D14/T30] INFO Umbraco.Core.PluginManager - Resolved Umbraco.Core.Persistence.Migrations.IMigration (took 17ms) 2018-06-14 13:56:29,229 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexesToUmbracoRelationTables' to context 2018-06-14 13:56:29,306 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexToUmbracoNodePath' to context 2018-06-14 13:56:29,384 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexToUser2NodePermission' to context 2018-06-14 13:56:29,634 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddRelationTypeUniqueIdColumn' to context 2018-06-14 13:56:29,852 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddMacroUniqueIdColumn' to context 2018-06-14 13:56:29,852 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'NormalizeTemplateGuids' to context 2018-06-14 13:56:30,052 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'UpdateUniqueIndexOnCmsPropertyData' to context 2018-06-14 13:56:30,130 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'RemoveUmbracoDeployTables' to context 2018-06-14 13:56:30,130 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'ReduceLoginNameColumnsSize' to context 2018-06-14 13:56:30,146 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexToCmsMemberLoginName' to context 2018-06-14 13:56:30,224 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddLockTable' to context 2018-06-14 13:56:30,260 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddLockObjects' to context 2018-06-14 13:56:30,349 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'UpdateUserTables' to context 2018-06-14 13:56:31,165 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddUserGroupTables' to context 2018-06-14 13:56:31,232 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddUserStartNodeTable' to context 2018-06-14 13:56:31,232 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'ReduceDictionaryKeyColumnsSize' to context 2018-06-14 13:56:31,232 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexToDictionaryKeyColumn' to context 2018-06-14 13:56:31,247 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'EnsureContentTemplatePermissions' to context 2018-06-14 13:56:31,247 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexToPropertyTypeAliasColumn' to context 2018-06-14 13:56:31,404 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddTourDataUserColumn' to context 2018-06-14 13:56:31,482 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddCmsMediaTable' to context 2018-06-14 13:56:31,667 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddInstructionCountColumn' to context 2018-06-14 13:56:31,745 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddUserLoginTable' to context 2018-06-14 13:56:31,808 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddUmbracoAuditTable' to context 2018-06-14 13:56:31,886 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddUmbracoConsentTable' to context 2018-06-14 13:56:32,139 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIsSensitiveMemberTypeColumn' to context 2018-06-14 13:56:32,154 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'CreateSensitiveDataUserGroup' to context 2018-06-14 13:56:32,154 [P11692/D14/T30] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'RenamePreviewFolder' to context 2018-06-14 13:56:33,480 [P11692/D14/T30] INFO Umbraco.Core.DatabaseContext - Database configuration status:

Upgrade completed!

2018-06-14 13:56:33,515 [P11692/D14/T30] INFO Umbraco.Web.Install.Controllers.InstallApiController - Step completed (took 4631ms) 2018-06-14 13:56:33,574 [P11692/D14/T26] INFO Umbraco.Web.Install.Controllers.InstallApiController - Executing installation step: UmbracoVersion 2018-06-14 13:56:33,607 [P11692/D14/T26] INFO Umbraco.Core.PluginManager - Resolving umbraco.interfaces.IDiscoverable 2018-06-14 13:56:33,621 [P11692/D14/T26] INFO Umbraco.Core.PluginManager - Resolved umbraco.interfaces.IDiscoverable (took 11ms) 2018-06-14 13:56:33,621 [P11692/D14/T26] INFO Umbraco.Core.PluginManager - Resolving umbraco.interfaces.ICacheRefresher 2018-06-14 13:56:33,640 [P11692/D14/T26] INFO Umbraco.Core.PluginManager - Resolved umbraco.interfaces.ICacheRefresher (took 18ms) 2018-06-14 13:56:33,730 [P11692/D14/T26] INFO umbraco.content - Load Xml from file... 2018-06-14 13:56:33,747 [P11692/D14/T26] INFO umbraco.content - Loaded Xml from file. 2018-06-14 13:56:33,855 [P11692/D14/T26] INFO umbraco.content - Loading content from database...

When running the updates, it creates this file in my temp/install folder

[{"Name":"Permissions","ServerOrder":0,"IsComplete":false,"AdditionalData":},{"Name":"Upgrade","ServerOrder":1,"IsComplete":false,"AdditionalData":},{"Name":"MajorVersion7UpgradeReport","ServerOrder":1,"IsComplete":false,"AdditionalData":},{"Name":"Version73FileCleanup","ServerOrder":2,"IsComplete":false,"AdditionalData":},{"Name":"DatabaseInstall","ServerOrder":11,"IsComplete":false,"AdditionalData":},{"Name":"DatabaseUpgrade","ServerOrder":12,"IsComplete":false,"AdditionalData":},{"Name":"UmbracoVersion","ServerOrder":50,"IsComplete":false,"AdditionalData":}]

2 Attachments

Comments

Sebastiaan Janssen 14 Jun 2018, 15:24:17

Very weird this is the only report we've had for this behavior. This leads me to conclude that there is something wrong in your environment. You've checked all the boxes I would check for so I unfortunately don't have any hints left as to where to look.

So unfortunately I'll have to close this issue as non-reproducible. If you have more information as to where we might have a bug that would be good to add. :)


Søren Kottal 14 Jun 2018, 18:01:25

Could it be caused by the version app setting in web.config is being reverted to 7.5.12 (or not changed at all) making Umbraco think it needs to run the installer?


Ashkan Sirous 15 Jun 2018, 07:54:25

@sebastiaan Thanks for reply. What can I do to help you reproduce the issue? I've tried to findout what is wrong, so I've dug in to Umbraco's code on github. Please spare me if I am talking nonsense as it is not a source code that I know.

To me it seems that IsUpgrading returns true which means ValidateDatabaseSchema returns some errors, but I couldn't check the method on my code because the method is internal.

/// public bool IsUpgrading { get { if (IsConfigured == false && DatabaseContext != null && DatabaseContext.IsDatabaseConfigured) { var schemaresult = DatabaseContext.ValidateDatabaseSchema(); if (schemaresult.ValidTables.Count > 0) return true; }

            return false;
        }
    }


Ashkan Sirous 15 Jun 2018, 08:11:31

@Søren.Kottal OMG! You are my savior! It is an old code and there was a config transform to set Umbraco verion!!!!! I really didn't expect that! :O Thank you very much


Søren Kottal 15 Jun 2018, 08:32:10

Glad I could help 🙂


Priority: Normal

Type: Bug

State: Can't Reproduce

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:

Sprint:

Story Points:

Cycle: