将站点从 CMS 6 R2 升级到 7 时,有没有办法覆盖连接超时?
Is there a way to override the connection timeout when upgrading site from CMS 6 R2 to 7?
我在将站点从 CMS 6 R2 升级到 7 时遇到问题。使用部署中心升级时出现等待超时错误。
我已经尝试在 C:\Program Files (x86) 中添加以下配置\EPiServer\Shared\Install\EPiServerInstall。exe.config:
<appSettings>
<add key="commandTimeout" value="600"/>
</appSettings>
但无济于事。
尽管我不想诉诸手动升级,但有没有办法覆盖连接超时?
在此先感谢您的帮助。
编辑:
升级日志(太长所以我剪掉它只是为了显示错误信息):
....
Executing database script "C:\Program Files (x86)\EPiServer\CMS.0.586.1\Upgrade\Database\sql[=11=]07_0000_0041_0000to0007_0000_0147_0000.sql"
An error has occured and the transaction will be rolled back
Rolledback
The wait operation timed out
The wait operation timed out
An unhandled error has occured:
The wait operation timed out
When executing
At C:\Program Files (x86)\EPiServer\CMS.0.586.1\Upgrade\System Scripts\Upgrad
e Site Database (SqlServer).ps1:9 char:2
+ Execute-EPiSqlSvrScript -EPiServerScript -ScriptPath $file -SqlServerName
$dbCo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~
=
Get-EPiIsBulkInstalling
At C:\Program Files (x86)\EPiServer\CMS.0.586.1\Upgrade\System Scripts\Upgrade Site Database (SqlServer).ps1:9 char:2
+ Execute-EPiSqlSvrScript -EPiServerScript -ScriptPath $file -SqlServerName $dbCo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
at EPiServer.Install.InstallationManager.Install(Installer installer)
at EPiServer.Install.SqlServer.SqlServerInstallationManager.ExecuteDatabaseScript(String sqlServerName, Nullable`1 sqlServerPort, String databaseName, String loginName, String loginPassword, String scriptFilePath, Boolean avoidDbTransaction, Boolean isEPiServerScript, IDictionary parameters)
at EPiServer.Install.SqlServer.Cmdlets.ExecuteSqlScriptCmdlet.ProcessRecord()
at System.Management.Automation.Cmdlet.DoProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
如果我没记错的话(自从我使用 Deployment Center 以来已经有一段时间了)它使用来自 web.config 的连接字符串作为站点并且您可以在其中定义超时。
我重新启动了网站,然后在 DC 中刷新了网站,现在它可以正常工作了。看起来设置缓存在 DC 中。
我在将站点从 CMS 6 R2 升级到 7 时遇到问题。使用部署中心升级时出现等待超时错误。
我已经尝试在 C:\Program Files (x86) 中添加以下配置\EPiServer\Shared\Install\EPiServerInstall。exe.config:
<appSettings>
<add key="commandTimeout" value="600"/>
</appSettings>
但无济于事。
尽管我不想诉诸手动升级,但有没有办法覆盖连接超时?
在此先感谢您的帮助。
编辑:
升级日志(太长所以我剪掉它只是为了显示错误信息):
....
Executing database script "C:\Program Files (x86)\EPiServer\CMS.0.586.1\Upgrade\Database\sql[=11=]07_0000_0041_0000to0007_0000_0147_0000.sql"
An error has occured and the transaction will be rolled back
Rolledback
The wait operation timed out
The wait operation timed out
An unhandled error has occured:
The wait operation timed out
When executing
At C:\Program Files (x86)\EPiServer\CMS.0.586.1\Upgrade\System Scripts\Upgrad
e Site Database (SqlServer).ps1:9 char:2
+ Execute-EPiSqlSvrScript -EPiServerScript -ScriptPath $file -SqlServerName
$dbCo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~
=
Get-EPiIsBulkInstalling
At C:\Program Files (x86)\EPiServer\CMS.0.586.1\Upgrade\System Scripts\Upgrade Site Database (SqlServer).ps1:9 char:2
+ Execute-EPiSqlSvrScript -EPiServerScript -ScriptPath $file -SqlServerName $dbCo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
at EPiServer.Install.InstallationManager.Install(Installer installer)
at EPiServer.Install.SqlServer.SqlServerInstallationManager.ExecuteDatabaseScript(String sqlServerName, Nullable`1 sqlServerPort, String databaseName, String loginName, String loginPassword, String scriptFilePath, Boolean avoidDbTransaction, Boolean isEPiServerScript, IDictionary parameters)
at EPiServer.Install.SqlServer.Cmdlets.ExecuteSqlScriptCmdlet.ProcessRecord()
at System.Management.Automation.Cmdlet.DoProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
如果我没记错的话(自从我使用 Deployment Center 以来已经有一段时间了)它使用来自 web.config 的连接字符串作为站点并且您可以在其中定义超时。
我重新启动了网站,然后在 DC 中刷新了网站,现在它可以正常工作了。看起来设置缓存在 DC 中。