How to Troubleshoot a Failed SCCM Application Deployment
Follow the deployment in the order the client handles it: policy, evaluation, content, install, exit code, detection. Each step has its own log in C:\Windows\CCM\Logs. Find the first step that failed and fix that one.
The flow at a glance
| Step | Question | Log |
|---|---|---|
| 1 | Did policy arrive? | PolicyAgent.log, PolicyEvaluator.log |
| 2 | Was the application evaluated? | AppIntentEval.log, AppDiscovery.log |
| 3 | Did the content download? | CAS.log, ContentTransferManager.log, DataTransferService.log |
| 4 | Did the install run? | AppEnforce.log |
| 5 | What exit code came back? | AppEnforce.log |
| 6 | Did detection pass? | AppDiscovery.log |
Work on one test computer that shows the failure. Open the logs with CMTrace. The full log list is in SCCM client log files: which log to read.
Before you open a log
- In the console, go to Monitoring, Deployments. Open the deployment and read the error and its code.
- Check that the computer or user is a member of the target collection.
- Check that the content shows as distributed under Monitoring, Distribution Status, Content Status.
- Look up the error code in the SCCM error code library.
The error code often names the failed step. If it does not, walk the steps below.
Step 1: Did policy arrive?
The client learns about a deployment through policy. No policy, no deployment.
- On the client, open the Configuration Manager control panel.
- Run Machine Policy Retrieval and Evaluation Cycle. For a deployment to a user collection, run the user policy cycle.
- Open
PolicyAgent.log. Look for a policy request and a reply from the management point. - Open Software Center. Check that the application is listed.
| What you see | Likely cause |
|---|---|
| Errors on every policy request | The client cannot reach the management point. Read LocationServices.log and CcmMessaging.log. |
| Policy works, the application is missing | The client is not in the collection yet, or the deployment has a later available time. |
| The application is listed in Software Center | Policy is fine. Go to step 2. |
What each client cycle does is in SCCM client actions explained.
Step 2: Was the application evaluated?
The client now decides what to do with the application. It checks requirements, dependencies and supersedence. Then it runs the detection method.
- Open
AppIntentEval.log. Search for the application name. - Read the current state and the wanted state. Check if the application is applicable.
- Open
AppDiscovery.log. Read the detection result for the deployment type.
| What you see | Meaning |
|---|---|
| Not applicable | A requirement rule failed, for example operating system, disk space or a custom rule. The install does not run. |
| Already detected | The detection method is true before the install. Software Center shows "Installed" and nothing runs. |
| A dependency failed | The dependency has its own entries in the same logs. Troubleshoot the dependency first. |
| Not detected and applicable | The client will install. Go to step 3. |
A required deployment also waits for its deadline and for a maintenance window. If the evaluation is fine and nothing happens, read SCCM maintenance windows explained.
Step 3: Did the content download?
The client asks the management point for a distribution point. Then it downloads the content to C:\Windows\ccmcache.
- Open
CAS.log. Find the content request and the list of sources the client got. - Open
ContentTransferManager.log. Check that a download job started. - Open
DataTransferService.log. Check the transfer and any error code.
| What you see | Likely cause | Read next |
|---|---|---|
| No sources, or the download stays at 0 percent | The client is in no boundary group, or the content is not on a distribution point the client can use. Error 0x87D00607 means the content was not found. | Boundary groups and content lookup |
| Not enough room in the cache | The cache is full, or the content is larger than the cache size. | Clear the SCCM cache safely |
| A hash mismatch after the download | The copy on the distribution point is damaged or out of date. Redistribute the content or update it. | CAS.log |
| The transfer starts and fails | A network, proxy or permission problem between the client and the distribution point. | DataTransferService.log |
Step 4: Did the install run?
Open AppEnforce.log. Search for the name of your installer file.
If the log has no entry for this application at the time of the failure, the install never started. Go back to steps 1 to 3.
If there is an entry, read these lines:
- The command line the client ran.
- The working directory. This is the ccmcache folder that holds the content.
- The user context: system or user.
- The process exit code.
Compare the command line with what you meant to run. Many failures are a typing error in the install command, a wrong file name or a missing quiet switch. For MSI installs, check the command with the msiexec command builder.
An installer that waits for a click never ends. The client runs it as SYSTEM, where nobody can see the window. AppEnforce.log then shows the start and, after the maximum run time, a timeout.
Step 5: What exit code came back?
AppEnforce.log shows the exit code and how SCCM read it: success, failure, soft restart, hard restart or fast retry. The mapping comes from the Return Codes tab of the deployment type.
| Exit code | Meaning | What to do |
|---|---|---|
| 0 | Success | Go to step 6. |
| 3010 | Success, restart needed | Counts as success. Go to step 6. |
| 1641 | Success, the installer started a restart | Counts as success. |
| 1618 | Another Windows Installer install is running | The client retries later. Check what else installs at the same time. |
| 1602 | The user cancelled the install | Check that the command is really silent. |
| 1603 | Fatal error in an MSI install | Add /l*v logging to the command. Search the MSI log for Return value 3. |
For any other code, use the Windows error code lookup. Some installers use their own codes. Check the vendor documentation, then add the code on the Return Codes tab if it means success.
To repeat the failure outside SCCM, run the same command as SYSTEM on the test computer. Start a SYSTEM command prompt with PsExec: psexec -s -i cmd.exe. Change to the ccmcache folder from AppEnforce.log and run the command. An install that works as an administrator and fails as SYSTEM often needs a mapped drive, a user profile or a visible window.
Step 6: Did detection pass?
After a success exit code, the client runs the detection method again. Open AppDiscovery.log and read the entries right after the install time.
| What you see | Meaning |
|---|---|
| Detected | The deployment succeeded. If the console still shows a failure, wait for the next state message or run the Application Deployment Evaluation Cycle. |
| Not detected, error 0x87D00324 | The installer said success, and the detection method cannot find the application. |
With 0x87D00324, first check by hand if the application is really there. If it is, the detection method is wrong: a path, a version, a product code or a 32-bit setting. If it is not, the installer returned 0 without doing its work.
The error page is 0x87D00324. The rules and a test method are in SCCM detection methods explained.
After the fix
- If you changed the content, update the content on the distribution points.
- If you changed the deployment type, wait for the new revision to reach the client.
- On the client, run Machine Policy Retrieval and Evaluation.
- Wait a minute or two. Then run Application Deployment Evaluation, or select Retry in Software Center.
- Watch
AppEnforce.loglive in CMTrace. See how to use CMTrace to read SCCM logs.
Test the fix on one computer before you let the deployment run on the whole collection.
Comments