Configuration Manager Upgrade Halted: Database Update Issue Reported

Table of Contents

Configuration Manager Upgrade Halted

The process of upgrading a Configuration Manager site can occasionally encounter issues that cause it to stall, particularly during the critical database update phase. This can be a frustrating situation for administrators, as a stuck upgrade prevents the site from becoming fully operational on the new version and can impact service availability. Identifying the root cause quickly is paramount to resolving the blockage and allowing the upgrade to complete successfully.

When a Configuration Manager upgrade process pauses or hangs while attempting to update the site database, it often indicates contention or activity within the database that the upgrade steps cannot overcome. The upgrade process requires exclusive or near-exclusive access to certain database tables and structures to perform necessary modifications. If external processes or internal site components are actively accessing or holding locks on these resources, the upgrade might halt, waiting for access that never becomes available.

Troubleshooting such a scenario typically involves identifying which process or application is interfering with the database update. While various factors can contribute to database contention, specific activities originating from site roles or components are common culprits during an upgrade. Pinpointing the source of the database activity is the first step toward remediation. Tools like SQL Server Activity Monitor, sp_who2, or dynamic management views (DMVs) can often reveal blocking processes and the application names associated with them, providing crucial clues.

Cause 1: Software Center Requests from Management Points

One common reason for a Configuration Manager upgrade to stall during the database update is unexpected or excessive activity originating from Management Points (MPs), specifically related to fulfilling requests from Software Center clients. Software Center is the primary user interface for managing applications, software updates, operating systems, and task sequences deployed to users and devices. Management Points serve as the communication hub between Configuration Manager clients and the site database.

When users open Software Center, it frequently queries the Management Point for information regarding applications available to them, their installation status, and other relevant data. The Management Point, in turn, retrieves this information from the site database. During a site upgrade, particularly while database schema changes are being applied, these routine queries from potentially many Management Points simultaneously can cause contention on the database resources that the upgrade process needs to modify. The upgrade process might detect these active connections and wait for them to clear before proceeding with database schema alterations.

Identifying this as the cause often involves seeing database activity associated with the application name “System Center Configuration Manager” when examining blocking queries or connections on the SQL Server hosting the site database. This application name typically represents connections originating from the site server and its roles, including Management Points interacting with the database. If this activity is significant and correlates with the upgrade stall, it strongly suggests Management Point-initiated database access is the issue.

The resolution for this specific scenario is to temporarily halt the processes on the Management Points that are generating these requests. The core service responsible for client communication and interaction on a Management Point is the SMS Agent Host service, also known by its executable name, CcmExec.exe. This service handles client requests, policy retrieval, and, importantly in this context, serving Software Center data.

Stopping the SMS Agent Host service on all Management Points configured for the site will effectively cut off the flow of Software Center-related queries to the database originating from those servers. With these connections terminated, the database upgrade process should be able to acquire the necessary locks and proceed with its operations. It is crucial to stop this service on all Management Points to ensure all sources of this specific type of contention are removed. Once the database upgrade phase of the site upgrade is complete, the SMS Agent Host service can be restarted on the Management Points. It is important to note that this issue was a known behavior in earlier versions and was specifically addressed and fixed in Configuration Manager current branch version 1906. Upgrading to this version or later mitigates this particular cause of database upgrade stalls.

Another significant source of contention that can halt a Configuration Manager database upgrade is activity originating from components or users interacting with the SMS Provider. The SMS Provider is a Windows Management Instrumentation (WMI) provider that serves as the interface between the Configuration Manager site database and various administrative components. This includes the Configuration Manager Administration Console, PowerShell scripts using the Configuration Manager cmdlets, custom applications leveraging the Configuration Manager SDK, and sometimes even internal site components or maintenance tasks.

Any action performed through the Administration Console, such as viewing collections, querying resources, deploying software, or configuring settings, involves the console communicating with the SMS Provider, which then translates these actions into database queries and updates. Similarly, PowerShell scripts automating tasks, reporting tools, or other administrative utilities that interact with Configuration Manager data do so via the SMS Provider. During a database upgrade, if these administrative activities are ongoing, they can conflict with the schema changes or data migrations being performed by the upgrade process, leading to a deadlock or a waiting state.

When troubleshooting, if examining database activity reveals connections associated with the application name “SMS Provider,” this indicates that administrative access through the provider is causing the contention. To identify the specific source of this activity (which console, which script, which user), administrators should review the SMSProv.log file. This log file, located on the server(s) hosting the SMS Provider role, records the activities and queries processed by the provider. By examining recent entries in SMSProv.log corresponding to the time of the upgrade stall, administrators can often identify the user, computer, or script that was actively interacting with the site.

Once the source is identified, the resolution involves stopping the interfering activity. This typically means:

  • Closing any open Configuration Manager Administration Consoles connected to the site.
  • Stopping any running PowerShell scripts or other custom applications that are actively querying or modifying Configuration Manager data via the SMS Provider.
  • If necessary, identifying and temporarily disabling any scheduled tasks or services that use the SMS Provider for reporting or automation during the upgrade window.

By ensuring that all administrative access through the SMS Provider is temporarily suspended, the database upgrade process can gain the necessary exclusive access to complete its operations without contention from these sources. After the database upgrade phase is successfully completed, administrators can safely reopen consoles and restart scripts or applications that use the SMS Provider.

General Troubleshooting for Configuration Manager Upgrades

While the two causes discussed above are specific to identifying the source of database contention during an upgrade, troubleshooting a halted Configuration Manager upgrade often requires a broader approach. The database update is just one phase, albeit a critical one. A stalled upgrade could stem from various issues, including prerequisites not being met, insufficient permissions, network problems, or issues with other site components.

A systematic approach is always recommended. Begin by thoroughly reviewing the site server and database server logs. Key logs for the upgrade process include:

  • ConfigMgrSetup.log: Found in the root of the installation drive, this log details the overall setup process.
  • CMUpdate.log: Located in the <InstallDir>\Logs directory, this log tracks the download and installation of in-console updates.
  • HMan.log (Hierarchy Manager log): Also in <InstallDir>\Logs, this log shows how the site server components are being managed and installed during the upgrade.
  • SiteComp.log (Site Component Manager log): Tracks the installation and status of site system roles.
  • SMSProv.log (SMS Provider log): Useful as discussed earlier, located on SMS Provider servers.
  • SQL Server Logs: Error logs and SQL Agent job history can provide insights into database-level issues or failures.
  • Windows Event Logs: Application and System logs on relevant servers (site server, database server, Management Points, etc.) can highlight underlying OS or service failures.

Ensure all prerequisite checks passed before initiating the upgrade. Rerunning the prerequisite checker independently can confirm the environment meets the requirements for the target version. Verify that the account performing the upgrade has the necessary permissions on the site server, site database, and all relevant site system roles. Network connectivity between site servers and the database server must be stable and high-speed. Firewalls should be configured to allow necessary communication ports.

Sometimes, simply restarting services in a controlled manner (like the SMS_SITE_COMPONENT_MANAGER service or the SQL Server service, if appropriate and with caution) can resolve temporary glitches, though this should be done carefully and ideally during a maintenance window. Consulting the Configuration Manager support documentation and community forums for known issues related to the specific version you are upgrading from and to is also a vital step in the troubleshooting process.

Best Practices to Avoid Upgrade Stalls

Preventing upgrade issues is always better than troubleshooting them after they occur. Adhering to best practices can significantly reduce the likelihood of encountering stalls during the database update or other phases of a Configuration Manager upgrade.

Firstly, always run the prerequisite checker before starting the actual upgrade. Address any warnings or errors reported by the checker. These often point to configuration issues that could cause the upgrade to fail or stall. Perform upgrades during scheduled maintenance windows when site activity is minimal. This reduces the chance of contention from users, clients, or automated tasks. Review the release notes and known issues for the target Configuration Manager version before planning the upgrade. Microsoft publishes information about potential problems or specific steps required for certain environments.

If possible, test the upgrade process in a lab environment that mirrors your production setup. This allows you to identify and resolve potential issues in a safe setting before impacting production. Ensure your site and database are healthy before initiating an upgrade. Run site maintenance tasks, check database integrity, and resolve any reported site health issues. A clean and well-maintained site is less likely to encounter problems during an upgrade. Finally, ensure the underlying infrastructure, including the Windows Server operating systems and SQL Server instances, is healthy and meets the recommended configurations and updates.

Understanding the Impact

A halted Configuration Manager upgrade has significant implications. It means the site is stuck in an indeterminate state between versions. Clients may not receive updated policies or content correctly, console functionality might be limited or unstable, and core site processes could be impacted. Depending on how long the upgrade is stalled, it can cause significant downtime or operational disruption.

Having a rollback or disaster recovery plan in place is crucial before attempting any major site upgrade. While aiming for a smooth upgrade, being prepared for the worst-case scenario allows for quicker recovery. This typically involves having recent backups of the site database and site server, and a documented process for restoring the site to its previous working state if the upgrade cannot be completed successfully.


Troubleshooting a Configuration Manager upgrade stuck on the database phase requires patience and careful analysis of logs and database activity. Understanding the potential roles played by components like Management Points (driven by Software Center requests) and the SMS Provider (driven by Console or script activity) is key to identifying common contention sources. By systematically investigating these areas and following general upgrade troubleshooting best practices, administrators can diagnose and resolve these issues, allowing the upgrade to complete and restoring full site functionality. Proactive maintenance and thorough preparation remain the best defense against such occurrences.

What challenges have you faced during Configuration Manager upgrades? Share your experiences and troubleshooting tips in the comments below!

Post a Comment