Answered by:
CRM 2011 Installation Problem - Upgrade of CRM 4.0 DB failed

Question
-
Hi all togehter,
hopfully someone has some glue to help me with followin issue:
I run CRM 4.0 to CRM 2011 upgrade in place. Yes I do have a Backup.
However something went wrong, so the organisation is left in state 'failed' or 'error' (I have the german version, so either translation may be correct).
Even after some googleing I could figure out how to continue, resp. how to fix problem.Here is a part of the log:
11:27:57|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.DataUpgrade.dll:UpdateActionTrackerTableSchema; 00:00:00.1758960 11:27:57| Info| Bereits ausgeführte Aktionen nachverfolgen 11:27:57|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.DataUpgrade.dll:StoreAuditSettings; 00:00:00.0136808 11:27:57|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.DataUpgrade.dll:AddActionsIfNecessary; 00:00:00.0009772 11:27:57| Info| Temporärer Index für "AsyncOperationBase" wird erstellt. 11:27:58| Info| CrmAction execution time; UpgradeDatabaseAction; 00:00:01.6700348 11:27:58| Error| Installer Complete: OrganizationUpgrader - Error encountered 11:27:58| Error| Exception occured during Microsoft.Crm.Tools.Admin.OrganizationUpgrader: Fehler bei der Aktion Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction. InnerException: System.Data.SqlClient.SqlException (0x80131904): Für diesen Indexvorgang sind 512 KB Arbeitsspeicher pro DOP erforderlich. Der insgesamt erforderliche Arbeitsspeicher von 1216 KB für DOP von 2 ist größer als der Wert für sp_configure von 1024 KB, der für die erweiterte Serverkonfigurationsoption 'index create memory (KB)' festgelegt ist. Erhöhen Sie diese Einstellung, oder reduzieren Sie DOP, und führen Sie die Abfrage erneut aus. Die Anweisung wurde beendet. bei System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) bei System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() bei System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) bei System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) bei System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) bei System.Data.SqlClient.SqlCommand.ExecuteNonQuery() bei Microsoft.Crm.Setup.Database.DatabaseUtility.ExecuteSql(InstallDatabase database, String sql, Int32 timeout, Boolean disablePool) bei Microsoft.Crm.Setup.Database.SqlScriptAction.Execute(DatabaseUtility dbUtility) bei Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall) bei Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall) bei Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters) bei Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo) 11:27:58| Info| Setting organization state. New state = Failed 11:27:58| Error| Install exception.System.Exception: Fehler bei der Aktion Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction. ---> System.Data.SqlClient.SqlException: Für diesen Indexvorgang sind 512 KB Arbeitsspeicher pro DOP erforderlich. Der insgesamt erforderliche Arbeitsspeicher von 1216 KB für DOP von 2 ist größer als der Wert für sp_configure von 1024 KB, der für die erweiterte Serverkonfigurationsoption 'index create memory (KB)' festgelegt ist. Erhöhen Sie diese Einstellung, oder reduzieren Sie DOP, und führen Sie die Abfrage erneut aus. Die Anweisung wurde beendet. bei System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) bei System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() bei System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) bei System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) bei System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) bei System.Data.SqlClient.SqlCommand.ExecuteNonQuery() bei Microsoft.Crm.Setup.Database.DatabaseUtility.ExecuteSql(InstallDatabase database, String sql, Int32 timeout, Boolean disablePool) bei Microsoft.Crm.Setup.Database.SqlScriptAction.Execute(DatabaseUtility dbUtility) bei Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall) bei Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall) bei Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters) bei Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo) --- Ende der internen Ausnahmestapelüberwachung --- bei Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo) bei Microsoft.Crm.Setup.Common.Installer.Install(IDictionary stateSaver) bei Microsoft.Crm.Tools.Admin.OrganizationOperation.Install(IDictionary stateSaver) bei Microsoft.Crm.Tools.Admin.OrganizationUpgrader.Install(IDictionary stateSaver) bei Microsoft.Crm.Setup.Common.ComposedInstaller.InvokeInstall(Installer installer, IDictionary stateSaver) bei Microsoft.Crm.Setup.Common.ComposedInstaller.InternalInstall(IDictionary stateSaver) bei Microsoft.Crm.Setup.Common.ComposedInstaller.Install(IDictionary stateSaver) bei Microsoft.Crm.Setup.Server.ServerSetup.Upgrade(IDictionary data) bei Microsoft.Crm.Setup.Common.SetupBase.ExecuteOperation() 11:27:58|Verbose| Method exit: Microsoft.Crm.Setup.Server.ServerSetup.ExecuteOperation 11:27:58| Info| ActivatePage(ServerSetupFinishPage) 11:33:27| Info| Fehler bei Folgendem: Microsoft Dynamics CRM Server. 11:33:27| Info| Das Setup für Microsoft Dynamics CRM Server wurde nicht erfolgreich abgeschlossen. Fehler bei der Aktion Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction. Für diesen Indexvorgang sind 512 KB Arbeitsspeicher pro DOP erforderlich. Der insgesamt erforderliche Arbeitsspeicher von 1216 KB für DOP von 2 ist größer als der Wert für sp_configure von 1024 KB, der für die erweiterte Serverkonfigurationsoption 'index create memory (KB)' festgelegt ist. Erhöhen Sie diese Einstellung, oder reduzieren Sie DOP, und führen Sie die Abfrage erneut aus. Die Anweisung wurde beendet. 11:33:27| Error| Setup did not complete successfully. 11:33:27|Verbose| Method exit: Microsoft.Crm.Setup.Server.ServerSetup.RunInternal 11:33:27| Info| CrmAction execution time; RevokeConfigDBDatabaseAccessAction; 00:00:00.2804851 11:33:27| Info| Removing PreferredDC temporarily set for the setup operation 11:33:27| Info| CrmAction execution time; RemovePreferredDCAction; 00:00:00.0127049 11:33:27|Verbose| Method exit: Microsoft.Crm.Setup.Server.ServerSetup.Run 11:33:27|Verbose| Method entry: Microsoft.Crm.Setup.Server.ServerSetup.Terminate 11:33:27| Info| Exit code: -2 11:33:27|Verbose| Method exit: Microsoft.Crm.Setup.Server.ServerSetup.Terminate 11:33:27| Info| === Ende der Protokollierung für das verwaltete Setup: 16.08.2011 11:33:27 === 11:33:29| Info| === Start des Setup-Bootstrapprotokolls: 16.08.2011 11:33:29 === 11:33:29| Info| Bootstrap version: 5.0.9688.583. 11:33:29| Info| User: netadmin. 11:33:29| Info| Das verwaltete Setup wurde mit dem Code "-2" beendet. 11:33:29| Info| Clean up the BITS downloader.
Spezialist für Verschlüsselung, Digitale Signatur, Smart Card, elektronische Rechnung, Liquiditätssteuerung,VSTO Entwicklung, http://www.bogad.atTuesday, August 16, 2011 9:48 AM
Answers
-
Hi,
thx for the hint. I'll have a look at it. In the meanwhile I managed to crash the whole installation and did a complete bare metal restore of the CRM Server. I suspected that problem is related to the thight memory settings in SQL server. I changed those settings and started the upgrade again. I will report the outcome.
Regards,
Josef
Spezialist für Verschlüsselung, Digitale Signatur, Smart Card, elektronische Rechnung, Liquiditätssteuerung,VSTO Entwicklung, http://www.bogad.at- Edited by Josef Bogad Wednesday, August 17, 2011 9:03 AM
- Marked as answer by Josef Bogad Wednesday, August 17, 2011 9:03 AM
Wednesday, August 17, 2011 7:49 AM
All replies
-
Hi Josef,
Please perform a cleanup of the AsyncOperationBase table by running the following script against the OrgName_MSCRM database, where <OrgName> is a placeholder for the actual name of your organization and start upgrading CRM 4.0 to CRM 2011.
http://support.microsoft.com/kb/968520
Regards,
Khaja Mohiddin|||||http://www.dynamicsexchange.com/Tuesday, August 16, 2011 11:51 AM -
Hi,
thx for the hint. I'll have a look at it. In the meanwhile I managed to crash the whole installation and did a complete bare metal restore of the CRM Server. I suspected that problem is related to the thight memory settings in SQL server. I changed those settings and started the upgrade again. I will report the outcome.
Regards,
Josef
Spezialist für Verschlüsselung, Digitale Signatur, Smart Card, elektronische Rechnung, Liquiditätssteuerung,VSTO Entwicklung, http://www.bogad.at- Edited by Josef Bogad Wednesday, August 17, 2011 9:03 AM
- Marked as answer by Josef Bogad Wednesday, August 17, 2011 9:03 AM
Wednesday, August 17, 2011 7:49 AM -
Hi,
my guess was good. Upgrade finishd successfully. Nevertheless I will have a closer look to the hotfix.
Regards.
Josef
Spezialist für Verschlüsselung, Digitale Signatur, Smart Card, elektronische Rechnung, Liquiditätssteuerung,VSTO Entwicklung, http://www.bogad.atWednesday, August 17, 2011 9:03 AM