无法通过sitecore azure模块部署现有的azure DB

时间:2015-03-13 08:52:39

标签: sitecore sitecore-azure

我正在进行基于azure的自定义sitecore解决方案的部署,该解决方案具有自定义数据库,我能够在分段模式下部署CE或内容编辑服务器场,但在部署到CD服务器场时,我收到以下错误。

我已经关注KB article并尝试了其他所有文章,但它仍然未能跟踪异常。我的机器能够访问连接字符串补丁和SQL Server节点中声明的服务器。不知道为什么会这样。

可以请别人帮忙

3/13/2015, 11:44:33 AMPGPaaSEvalWeCd01Role01SSc37eStaging [S] Sitecore.Azure.Pipelines.Automation.Azure.SqlAzureDatabaseServer failed System.ApplicationException: PGPaaSEvalWeCd01Role01SSc37eStaging [S] Sitecore.Azure.Pipelines.Automation.Azure.SqlAzureDatabaseServer failed ---> System.ApplicationException: Sitecore.Azure.Pipelines.Automation.Azure.SqlAzureDatabaseServer is failed ---> Microsoft.SqlServer.Management.Common.SqlServerManagementException: Trying to create new server from a database that alreay has a database server. New server name 'crqvr4t4sk' is not the same as existing 'auztwghdj8' at Sitecore.Azure.Managers.AzureManagers.AzureSqlManager.CreateDataBaseServer(String subscriptionID, AzureSqlDatabase database, String login, String password) at Sitecore.Azure.Managers.AzureManagers.AzureSqlManager.CreateDataBaseServer(AzureSqlDatabase azureSqlDatabase, String login, String password) at Sitecore.Azure.Pipelines.Automation.Azure.SqlAzureDatabaseServer.ResolveServer(AzureSqlDatabase azureSqlDb, List`1 resolvedServers, Dictionary`2 preferServer, String contextLanguage) at Sitecore.Azure.Pipelines.Automation.Azure.SqlAzureDatabaseServer.Action(RolePipelineArgsBase args) at Sitecore.Azure.Pipelines.BasePipeline.RolePipelineProcessor.Process(RolePipelineArgsBase args) --- End of inner exception stack trace --- --- End of inner exception stack trace ---
3/13/2015, 11:44:33 AMPGPaaSEvalWeCd01Role01SSc37eStaging [S] Failed getting Database server System.ApplicationException: PGPaaSEvalWeCd01Role01SSc37eStaging [S] Failed getting Database server ---> Microsoft.SqlServer.Management.Common.SqlServerManagementException: Trying to create new server from a database that alreay has a database server. New server name 'crqvr4t4sk' is not the same as existing 'auztwghdj8' at Sitecore.Azure.Managers.AzureManagers.AzureSqlManager.CreateDataBaseServer(String subscriptionID, AzureSqlDatabase database, String login, String password) at Sitecore.Azure.Managers.AzureManagers.AzureSqlManager.CreateDataBaseServer(AzureSqlDatabase azureSqlDatabase, String login, String password) at Sitecore.Azure.Pipelines.Automation.Azure.SqlAzureDatabaseServer.ResolveServer(AzureSqlDatabase azureSqlDb, List`1 resolvedServers, Dictionary`2 preferServer, String contextLanguage) at Sitecore.Azure.Pipelines.Automation.Azure.SqlAzureDatabaseServer.Action(RolePipelineArgsBase args) at Sitecore.Azure.Pipelines.BasePipeline.RolePipelineProcessor.Process(RolePipelineArgsBase args) --- End of inner exception stack trace ---
3/13/2015, 11:44:33 AMPGPaaSEvalWeCd01Role01SSc37eStaging [S] Sitecore.Azure.Pipelines.Automation.Azure.SqlAzureDatabaseServer failed System.ApplicationException: PGPaaSEvalWeCd01Role01SSc37eStaging [S] Sitecore.Azure.Pipelines.Automation.Azure.SqlAzureDatabaseServer failed ---> System.ApplicationException: Sitecore.Azure.Pipelines.Automation.Azure.SqlAzureDatabaseServer is failed ---> Microsoft.SqlServer.Management.Common.SqlServerManagementException: Trying to create new server from a database that alreay has a database server. New server name 'crqvr4t4sk' is not the same as existing 'auztwghdj8' at Sitecore.Azure.Managers.AzureManagers.AzureSqlManager.CreateDataBaseServer(String subscriptionID, AzureSqlDatabase database, String login, String password) at Sitecore.Azure.Managers.AzureManagers.AzureSqlManager.CreateDataBaseServer(AzureSqlDatabase azureSqlDatabase, String login, String password) at Sitecore.Azure.Pipelines.Automation.Azure.SqlAzureDatabaseServer.ResolveServer(AzureSqlDatabase azureSqlDb, List`1 resolvedServers, Dictionary`2 preferServer, String contextLanguage) at Sitecore.Azure.Pipelines.Automation.Azure.SqlAzureDatabaseServer.Action(RolePipelineArgsBase args) at Sitecore.Azure.Pipelines.BasePipeline.RolePipelineProcessor.Process(RolePipelineArgsBase args) --- End of inner exception stack trace --- --- End of inner exception stack trace ---
3/13/2015, 11:44:33 AMPGPaaSEvalWeCd01Role01SSc37eStaging [S] Failed getting Database server System.ApplicationException: PGPaaSEvalWeCd01Role01SSc37eStaging [S] Failed getting Database server ---> Microsoft.SqlServer.Management.Common.SqlServerManagementException: Trying to create new server from a database that alreay has a database server. New server name 'crqvr4t4sk' is not the same as existing 'auztwghdj8' at Sitecore.Azure.Managers.AzureManagers.AzureSqlManager.CreateDataBaseServer(String subscriptionID, AzureSqlDatabase database, String login, String password) at Sitecore.Azure.Managers.AzureManagers.AzureSqlManager.CreateDataBaseServer(AzureSqlDatabase azureSqlDatabase, String login, String password) at Sitecore.Azure.Pipelines.Automation.Azure.SqlAzureDatabaseServer.ResolveServer(AzureSqlDatabase azureSqlDb, List`1 resolvedServers, Dictionary`2 preferServer, String contextLanguage) at Sitecore.Azure.Pipelines.Automation.Azure.SqlAzureDatabaseServer.Action(RolePipelineArgsBase args) at Sitecore.Azure.Pipelines.BasePipeline.RolePipelineProcessor.Process(RolePipelineArgsBase args) --- End of inner exception stack trace ---

1 个答案:

答案 0 :(得分:0)

据我了解,您遇到以下问题:

  1. 创建自定义Azure SQL数据库服务以托管Sitecore数据库和自定义数据库。
  2. Sitecore内容交付(交付场)和/或Sitecore内容管理(编辑场)应连接到此自定义服务中的数据库。
  3. 因此,Sitecore Azure模块必须使用自定义Azure SQL数据库服务,而不是创建新服务。
  4. 如果我是对的,问题的原因可能是由于错过了您之前提到的Sitecore KB文章的第16步。

    16. Recycle the Sitecore Application Pool or reset Internet Information Services (IIS). 
    

    此步骤的原因是强制Sitecore Azure模块从Server Name项中的Sql01字段中获取Azure SQL数据库服务名称。有关Sitecore KB article

    中的详细信息,请参阅步骤#11