Answered by:
Fresh install of CRM 4 fails

Question
-
Hi!
I'm trying to set up a small lab environment to perform some testing of CRM 4 before we start an upgrade from CRM 3. My environment consists of a AD-server, an SQL 2005 server and a separate server for CRM 4.All servers are fully patched before the installation of respectively application is installed.
The AD and SQL server is installed ok.
Then when I start installing CRM 4, it passes all tests nicely and begins the actual installation. But after awhile it stops with an error message:
Action Microsoft.Crm.Setup.Common.RegisterAsyncServiceAction failed.
An exception occurred during the Commit phase of the installation. This exception will be ignored and installation will continue. However, the application might not function correctly after installation is complete.
Time out has expired and the operation has not been completed.
If I retry, it will fail again.The AD-server also has a DNS, and there is an forward and reverse lookup entry for all servers. There is no firewall enabled on any of the servers.
I've seen several posts with similar problem, and where they suggest to install rollup 5. I've tried to do that, and after the installation of rollup 5, I've tried a repair of the server. But with the same result.
ANy help would be greatly appreciated, I've been stuck with this for days now. I don't know how many times I've completly reinstalled the server.
Monday, August 17, 2009 10:05 AM
Answers
-
I've seen this error before when the crm server wasn't added to the mscrm_config database due to a script configuration.
eg: <database create="false/t" update="false">.
and,
the performance counter issue.
permission problems.
you can look in your event logs and crm setup log for more info.
When the setup gets to this failing point you can run services.msc and try and start it manually, it will most likely fail again but you can do some troubleshooting from this point.
Try giving the service a domain `admin` account to run as , if it starts then you are probally looking at a permission problem.
SJ- Edited by Sean Joseph Monday, August 17, 2009 3:38 PM
- Marked as answer by Donna EdwardsMVP Sunday, August 23, 2009 8:03 PM
Monday, August 17, 2009 3:24 PM -
Hello,
just wanted to share my experience.
I had the same error during installation which was caused by SQL Server Services running under a domain user account.
I changed the Accounts for SQL Server and SQL Server Agent on my remote SQL Server to Network Service and installation went fine.- Marked as answer by Donna EdwardsMVP Sunday, August 23, 2009 8:00 PM
Monday, August 17, 2009 7:39 PM
All replies
-
Hi,This problem occurs because of either a problem with the performance counters on the server. ORThe installation of .Net Framework 3.0 is corrupt.To resolve this error you will need to.1- Rebuild the performance counter libraries. (for help see url below).http://support.microsoft.com/default.aspx/kb/300956If problem is not fixed you will need to.2- Re-install .Net Framework 3.0. This can be found on the DVD under Redist\i386\dotNetFX.Hassan.
Hassan Hussain | http://hassanhussain.wordpress.com/- Proposed as answer by Hassan Hussain Monday, August 17, 2009 11:00 AM
- Unproposed as answer by Nenne Monday, August 17, 2009 12:00 PM
Monday, August 17, 2009 11:00 AM -
Hi!
Tested it, but doesn't help. CRM Async service cant be started, which means it can't be repaired. Reinstalling .NET framework from redist is not possible since it is patched to SP2.
And why should the framework get corrupted when the system is not more than the time it takes to patch it up from Windows 2003 R2 to latest patchlevel (SP2 + 60++ patches). If it gets corrupted from patching, then this is a critical issue.
/NenneMonday, August 17, 2009 12:03 PM -
Hi Nenne ,
1- are you using a script to install?
2- can you verify that your CRM server is listed in the deployment manager under servers, if possible.
SJMonday, August 17, 2009 12:21 PM -
Hi!
1. Installs from a DVD media by clicking on install in the dialog that autorun presents.
2. I can see both the SQL (enabled) and CRM server (disabled)
I've now reinstalled the Windows server and added SP2 to meet the minimum operating system requirements. Enabled Indexing service. Then installed Dyn CRM 4 and it starts with installing (.Net Framework, MS Application Error Reporting, MS XML Core Services, MS Visual C++ Runtime, MS SQL Reporting Service Report Viewer Control, SQL Native Client).
* I then point of the server where the SQL server is running.
* selects CRM to use the default website on the CRM server.
* Changes the URL to the SQL server machine for the Reporting Services (http://SQL/ReportServer)
* Point where to create the AD entries
* Select Network Service as security account
* Doesn't select any e-mail router since, I don't have any available in this test environment that I'm trying to set up.
* System Requirement verification has all green indicators.
But ofcourse it still fails with the same error.
/Nenne- Edited by Nenne Monday, August 17, 2009 2:19 PM Added status
Monday, August 17, 2009 2:05 PM -
I've seen this error before when the crm server wasn't added to the mscrm_config database due to a script configuration.
eg: <database create="false/t" update="false">.
and,
the performance counter issue.
permission problems.
you can look in your event logs and crm setup log for more info.
When the setup gets to this failing point you can run services.msc and try and start it manually, it will most likely fail again but you can do some troubleshooting from this point.
Try giving the service a domain `admin` account to run as , if it starts then you are probally looking at a permission problem.
SJ- Edited by Sean Joseph Monday, August 17, 2009 3:38 PM
- Marked as answer by Donna EdwardsMVP Sunday, August 23, 2009 8:03 PM
Monday, August 17, 2009 3:24 PM -
Hi!
Just adding administrator didn't help, but I will perform a clean installation once again, and try with a user with domain admin rights, hopefully that will remove all wrong settings. That might exist.
I'll get back if with the result.Monday, August 17, 2009 5:47 PM -
Hello,
just wanted to share my experience.
I had the same error during installation which was caused by SQL Server Services running under a domain user account.
I changed the Accounts for SQL Server and SQL Server Agent on my remote SQL Server to Network Service and installation went fine.- Marked as answer by Donna EdwardsMVP Sunday, August 23, 2009 8:00 PM
Monday, August 17, 2009 7:39 PM -
Warning:
The full performance counter rebuild (That Hassan recomended) may take considerable time and may not give a complete rebuild. The long proccess is human error prone, too. If you can't resolve the problem in my short way, do try it or reinstall server.
Well, first of all, I tried the long way. In the end, counters were still corrupt. I used procmon (microsoft sysinternals tool) to catch the last performance counter registery value before failing.
I found out the full rebuild, didn't rebuild the Windows workflow foundation performance counters. Wow, this is actually the most important module that the crmasync uses!
I saw the counters :
FirstCounter
FirstHelp
LastCounter
LastHelpAre missing there (I probably deleted them in the long proccess), but their rebuild is not in the system32 dir!
I executed :
C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Workflow Foundation>unlodctr perfcountersUnable to open driver SYSTEM\CurrentControlSet\Services\perfcounters. Status: 2
C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Workflow Foundation>lodctr perfcounters.iniThis added the missing counters.
(should try crm repair now).Generally I believe one should:
1. export the full registery tree of:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services
Into a file.2. Filter out lines that don't have the word performance in their key name.
3. Find empty performance entries and performance entries without the first and last counters.
4. Find their INI file and reload them ( unlodctr , lodctr).
5. Verify that the load created counter entries in registery.
Another point: I noticed that CRM doesn't provide a INI file for rebuilding corrupt perf counters, they use a file called tmp38.tmp . Later I belive they delete it. As if saying : If it's broke, let repair fix it!
Maybe it's a good idea, but I am not sure about it.
Hope this helps;-)
I wish a WIN internals guru can confirm this... but it doesn't stray from the guide lines of the MS KB.
Dubi- Proposed as answer by oky111 Friday, October 2, 2009 2:55 AM
Friday, October 2, 2009 2:55 AM