最初我在our umbraco
上提出了这个问题我不知道发生了什么。 我在我的机器上更新了我的开发数据库/环境,它工作正常。然后我将我的代码发布到Azure,指向同一个数据库。升级页面显示:|而且我不明白为什么。它说要升级到同一版本。
单击“继续”后,它只显示更新已完成并且没有任何问题地转到后台。然后我尝试访问网络节点(我有Flexible load balancing settings),它要求我再次升级! :|
我尝试重新发布整个网站,但也没有帮助。我知道我可以点击这里更新,但〜/ umbraco已关闭,因为这是最好的做法。
我改变了一些小东西,并在后台再次发布。我已被重定向到AuthorizeUpgrade 再次:O
此外,我在日志中有这一行,就好像它正在尝试升级但是更低版本号
Umbraco.Core.Configuration.ClientDependencyConfiguration - Updated version number from 1918068003 to 478377040
我在自动化更新后在我的temp / install / [machinename]上找到了这个(在点击执行升级的继续按钮之前)
[
{
"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": {
}
}
]
然后我在日志文件中有更新:
2018-06-13 13:32:46,081 [P7300/D15/T73] INFO Umbraco.Web.Install.Controllers.InstallApiController - Executing installation step: Permissions
2018-06-13 13:32:46,175 [P7300/D15/T73] INFO Umbraco.Web.Install.Controllers.InstallApiController - Step completed (took 85ms)
2018-06-13 13:32:46,268 [P7300/D15/T36] INFO Umbraco.Web.Install.Controllers.InstallApiController - Executing installation step: Upgrade
2018-06-13 13:32:46,286 [P7300/D15/T36] INFO Umbraco.Web.Install.Controllers.InstallApiController - Step completed (took 26ms)
2018-06-13 13:32:46,427 [P7300/D15/T73] INFO Umbraco.Web.Install.Controllers.InstallApiController - Executing installation step: DatabaseInstall
2018-06-13 13:32:46,458 [P7300/D15/T73] INFO Umbraco.Core.DatabaseContext - Database configuration status: Started
2018-06-13 13:32:46,458 [P7300/D15/T73] INFO Umbraco.Core.DatabaseContext - Database requires upgrade
2018-06-13 13:32:46,471 [P7300/D15/T73] INFO Umbraco.Web.Install.Controllers.InstallApiController - Step completed (took 33ms)
2018-06-13 13:32:46,534 [P7300/D15/T36] INFO Umbraco.Web.Install.Controllers.InstallApiController - Executing installation step: DatabaseUpgrade
2018-06-13 13:32:46,534 [P7300/D15/T36] INFO Umbraco.Web.Install.InstallSteps.DatabaseUpgradeStep - Running 'Upgrade' service
2018-06-13 13:32:46,566 [P7300/D15/T36] INFO Umbraco.Core.DatabaseContext - Database upgrade started
2018-06-13 13:32:46,706 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Initializing database migrations
2018-06-13 13:32:46,724 [P7300/D15/T36] INFO Umbraco.Core.PluginManager - Resolving umbraco.interfaces.IDiscoverable
2018-06-13 13:32:46,724 [P7300/D15/T36] INFO Umbraco.Core.PluginManager - Resolved umbraco.interfaces.IDiscoverable (took 4ms)
2018-06-13 13:32:46,738 [P7300/D15/T36] INFO Umbraco.Core.PluginManager - Resolving Umbraco.Core.Persistence.Migrations.IMigration
2018-06-13 13:32:46,799 [P7300/D15/T36] INFO Umbraco.Core.PluginManager - Resolved Umbraco.Core.Persistence.Migrations.IMigration (took 55ms)
2018-06-13 13:32:46,993 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexesToUmbracoRelationTables' to context
2018-06-13 13:32:47,065 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexToUmbracoNodePath' to context
2018-06-13 13:32:47,143 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexToUser2NodePermission' to context
2018-06-13 13:32:47,224 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddRelationTypeUniqueIdColumn' to context
2018-06-13 13:32:47,318 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddMacroUniqueIdColumn' to context
2018-06-13 13:32:47,334 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'NormalizeTemplateGuids' to context
2018-06-13 13:32:47,443 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'UpdateUniqueIndexOnCmsPropertyData' to context
2018-06-13 13:32:47,521 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'RemoveUmbracoDeployTables' to context
2018-06-13 13:32:47,521 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'ReduceLoginNameColumnsSize' to context
2018-06-13 13:32:47,521 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexToCmsMemberLoginName' to context
2018-06-13 13:32:47,599 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddLockTable' to context
2018-06-13 13:32:47,599 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddLockObjects' to context
2018-06-13 13:32:47,678 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'UpdateUserTables' to context
2018-06-13 13:32:47,928 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddUserGroupTables' to context
2018-06-13 13:32:48,006 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddUserStartNodeTable' to context
2018-06-13 13:32:48,006 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'ReduceDictionaryKeyColumnsSize' to context
2018-06-13 13:32:48,021 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexToDictionaryKeyColumn' to context
2018-06-13 13:32:48,021 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'EnsureContentTemplatePermissions' to context
2018-06-13 13:32:48,037 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIndexToPropertyTypeAliasColumn' to context
2018-06-13 13:32:48,115 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddTourDataUserColumn' to context
2018-06-13 13:32:48,178 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddCmsMediaTable' to context
2018-06-13 13:32:48,256 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddInstructionCountColumn' to context
2018-06-13 13:32:48,334 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddUserLoginTable' to context
2018-06-13 13:32:48,396 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddUmbracoAuditTable' to context
2018-06-13 13:32:48,459 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddUmbracoConsentTable' to context
2018-06-13 13:32:48,537 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'AddIsSensitiveMemberTypeColumn' to context
2018-06-13 13:32:48,553 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'CreateSensitiveDataUserGroup' to context
2018-06-13 13:32:48,553 [P7300/D15/T36] INFO Umbraco.Core.Persistence.Migrations.MigrationRunner - Added UPGRADE migration 'RenamePreviewFolder' to context
2018-06-13 13:32:49,297 [P7300/D15/T36] INFO Umbraco.Core.DatabaseContext - Database configuration status: <p>Upgrade completed!</p>
2018-06-13 13:32:49,316 [P7300/D15/T36] INFO Umbraco.Web.Install.Controllers.InstallApiController - Step completed (took 2782ms)
2018-06-13 13:32:49,375 [P7300/D15/T73] INFO Umbraco.Web.Install.Controllers.InstallApiController - Executing installation step: UmbracoVersion
2018-06-13 13:32:49,563 [P7300/D15/T73] INFO Umbraco.Core.PluginManager - Resolving umbraco.interfaces.IDiscoverable
2018-06-13 13:32:49,585 [P7300/D15/T73] INFO Umbraco.Core.PluginManager - Resolved umbraco.interfaces.IDiscoverable (took 9ms)
2018-06-13 13:32:49,585 [P7300/D15/T73] INFO Umbraco.Core.PluginManager - Resolving umbraco.interfaces.ICacheRefresher
2018-06-13 13:32:49,585 [P7300/D15/T73] INFO Umbraco.Core.PluginManager - Resolved umbraco.interfaces.ICacheRefresher (took 10ms)
2018-06-13 13:32:49,789 [P7300/D15/T73] INFO umbraco.content - Load Xml from file...
2018-06-13 13:32:49,868 [P7300/D15/T73] INFO umbraco.content - Loaded Xml from file.
2018-06-13 13:32:49,882 [P7300/D15/T73] INFO umbraco.content - Loading content from database...
2018-06-13 13:32:51,749 [P7300/D15/T73] INFO Umbraco.Web.Install.Controllers.InstallApiController - Step completed (took 2386ms)
在完成更新后,网站开始工作,但每次我发布源代码时,同样的事情(更新过程)再次发生:\
答案 0 :(得分:2)
在web.config
内,您会看到一行:<add key="umbracoConfigurationStatus" value="7.x.x" />
。
此行是Umbraco目前认为它正在运行的版本。它用于确定(以及DLL的版本)是否应该运行升级。
您需要检查您的构建脚本或某些转换是否正在复制旧的web.config
,或者可能在构建过程中修改文件,以便拥有一个旧的&#34;版本号而不是运行升级后通常应该存在的版本号。
您提到的数据库表用于跟踪各种升级之间运行的迁移。