FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr

Let’s find the fix for the SCCM Update Prerequisite Check Failed Issue. As the heading indicates, it’s about the new KB released, “KB4560496,” for ConfigMgr 2002.

There is no magic solution to fix the SCCM update or upgrade prerequisite check failures or errors. In this post, I’ll give two examples of prerequisite check errors and solutions for those issues.

I have documented DotNet errors in the prerequisite check and explained how you can solve them in another step-by-step guide. Fix SCCM Dot NET Version Warning Error During Prerequisite Checks.

Read all about KB4560496 for MECM 2002. It’s a deep dive with known issues and bug fixes by Anoop Nair https://www.anoopcnair.com/sccm-2002-hotfix-rollup-kb4560496/ – Very briefly explained.

Patch My PC
Index
Errors: FIX SCCM Update Prerequisite Check Failed Issue
Max Test Repl Size of SQL Server Always On Availability
Using SQL Server Management Studio
Using Transact-SQL
SQL Server Configuration for Site Upgrade
FIX SCCM Update Prerequisite Check Failed Errors Issue
Using Transact-SQL – FIX SCCM Update Prerequisite check Failed Issue
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr – Table 1

Errors: FIX SCCM Update Prerequisite Check Failed Issue

I installed it in my test lab the day it was released, and everything went well. But when I tried installing it in the production standalone primary site, the prerequisite failed with the below error:

FIX SCCM Update Prerequisite Check Failed Errors Issue | ConfigMgr -Fig.1
FIX SCCM Update Prerequisite Check Failed Errors Issue | ConfigMgr -Fig.1

So, there are two failed prerequisite checks, and we will fix them.

Adaptiva
  1. Max Test Repl (Replication) Size of SQL Server Always On Availability.
  2. SQL Server Configuration for Site Upgrade.

One step at a time. This is going to be interesting.

Max Test Repl Size of SQL Server Always On Availability

First, we will check the existing value in DB of “Max Test Repl Size”. Connect the SCCM DB using Management Studio and execute the query “SP_Configure” to get the value. It will populate the value as below:

FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.2
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.2
NameMinimumMaximumConfig_valuerun_value
Max Server Memory (MB)12821474836479830498304
Max Text Replication Size (B)-121474836476553665536
Max Worker Threads1286553500
Media retention036500
Min Memory Per Query (KB)512214748364710241024
Min Memory Per Query (MB)021474836471000010000
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr – Table 2

You will see the correct value now because I already changed it. There are now two options to change this value.

Using SQL Server Management Studio

Now, let’s understand how to fix the SCCM Update Prerequisite Check Failed Errors Issue using SQL Server Management Studio.

  • In Object Explorer, right-click a server and select Properties.
  • Click the Advanced node.
  • Under Miscellaneous, change the Max Text Replication Size option to the desired value.
    • (Recommended 2147483647).
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.3
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.3

Using Transact-SQL

FIX SCCM Update Prerequisite Check Failed Error Issue | ConfigMgr using the SQL management studio.

  • Connect to the Database Engine.
  • From the Standard bar, click New Query.
  • Copy and Paste the following example into the query window and click Execute.
    • This example shows how to use sp_configure to configure the max text repl size option to -1.
USE AdventureWorks2012 ;
GO
EXEC sp_configure 'show advanced options', 1 ;
RECONFIGURE ;
GO
EXEC sp_configure 'max text repl size', -1 ;
GO
RECONFIGURE;
GO

This error will disappear now. However, don’t run the Prerequisites check yet because you have to fix another mistake.

FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.4
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.4

NOTE: MS Doesn’t support the alteration of DB. Perform actions under the supervision of SQL Experts.

SQL Server Configuration for Site Upgrade

Moving on to the second Issue, where the SCCM upgrade has failed.

  • To fix this one, we need to read the logs and get more information about the reason for this failure.
  • Check ConfigMgrPrereq.log in the C drive root of your Primary/CAS.
  • This is what I got when checking the log.
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.5
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.5

It’s saying the AG (Availability Group) replica has READ_Only as a readable secondary state should be ALL. Before we start how to fix we should check a few more things. Execute the below SQL Queries to get more information.

  • select * from sys.availability_replicas
  • select * from sys.availability_read_only_routing_lists
  • select * from sys.dm_tcp_listener_states

It will populate the information shown in screenshots.

FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.6
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.6
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.7
FIX SCCM Update Prerequisite Check Failed Errors Issue| ConfigMgr -Fig.7

FIX SCCM Update Prerequisite Check Failed Errors Issue

Now let’s fix the SCCM Update Prerequisite Check Failed Errors Issue using SQL Server Management Studio.

To configure access to an available replica

  1. In Object Explorer, connect to the server instance that hosts the primary replica and expand the server tree.
  2. Expand the Always On High Availability node and the Availability Groups node.
  3. Click the availability group whose replica you want to change.
  4. Right-click the availability replica, and click Properties.
  5. In the Availability Replica Properties dialogue box, you can change the connection access for the primary role and for the secondary role as follows:

For the secondary role, select a new value from the Readable secondary drop-down menu, such as No.

No user connections are allowed to this replica’s secondary databases, which are unavailable for reading access. The default setting is read-intent only.

Only read-only connections are allowed to this replica’s secondary databases. The secondary database(s) are all available for read access—yes.

All connections are allowed to this replica’s secondary databases, but only read access is allowed. The secondary database(s) are all available for read access.

  1. For the primary role, select a new value from the Connections in the primary role drop list, which is as follows: Allow all connections.
    • The primary replica’s default setting allows all database connections, including read and write connections.
    • The connection is allowed when the Application Intent property is set to ReadWrite, or the Application Intent connection property is not set.
    • Connections where the Application Intent connection property is set to ReadOnly are prohibited.
    • This can help prevent customers from connecting a read-intent workload to the primary replica by mistake.
    • For more information about the Application Intent connection property,

Using Transact-SQL – FIX SCCM Update Prerequisite check Failed Issue

To configure access to an available replica 

  1. Connect to the server instance that hosts the primary replica.
  2. If you are specifying a replica for a new availability group, use the CREATE AVAILABILITY GROUP Transact-SQL statement. If you add or modify a replica of an existing availability group, use the ALTER AVAILABILITY GROUP Transact-SQL statement.
    • To configure connection access for the secondary role, in the ADD REPLICA or MODIFY REPLICA WITH clause, specify the SECONDARY_ROLE option, as follows: SECONDARY_ROLE ( ALLOW_CONNECTIONS = { NO | READ_ONLY | ALL } )where, NO
    • This replica’s secondary databases are not available for read access, and no direct connections are allowed. This is the default setting.
    • READ_ONLY Only read-only connections are allowed to secondary databases of this replica.
    • The secondary database(s) are all available for read access.
    • ALL connections are allowed to this replica’s secondary databases, but only for read access. The secondary database(s) are all available for read access.

To configure connection access for the primary role, in the ADD REPLICA or MODIFY REPLICA WITH clause, specify the PRIMARY_ROLE option, as follows: PRIMARY_ROLE ( ALLOW_CONNECTIONS = { READ_WRITE | ALL } )where READ_WRITE

Connections where the Application Intent connection property is set to ReadOnly are disallowed.

The connection is allowed when the Application Intent property is set to ReadWrite, or the Application Intent connection property is not set.

All connections are allowed to the databases in the primary replica. This is the default setting.

NOTE: MS Doesn’t support the alteration of DB. Perform actions under the supervision of SQL Experts.

Disclaimer – The information provided on the site is for general informational purposes only. All information on the site is provided in good faith, however, we make no representation or warranty of any kind, express or implied regarding the accuracy, adequacy, validity, reliability, availability or completeness of any information on the website.

Resources

We are on WhatsApp. To get the latest step-by-step guides and news updates, Join our Channel. Click here –HTMD WhatsApp.

Author

Deepak Rai is a Technical Lead with over 14 years of experience in IT. He specializes in SCCM, Intune, and Azure. Throughout his career, he has worked on various platforms such as Active Directory, Exchange, Veritas NETBACKUP, Symantec Backup Exec, NDMP devices like Netapp, EMC Data Domain, Quantum using Backup Exec 2010 and 2012, and HP StorageWorks 4048 MSL G3. He also has experience in data deduplication-related troubleshooting. Ultimately, he returned to his roots as an IT Engineer focusing on SCCM technology.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.