FIX: Automatic seeding in Availability Groups randomly causes error 41169 in SQL Server 2016 or 2017

Applies to: SQL Server 2016 Enterprise CoreSQL Server 2016 EnterpriseSQL Server 2016 Developer More

Symptoms


You set AlwaysOn Availability Group automatic seeding in an instance of Microsoft SQL Server 2016 or 2017. After you add the database to the Availability Group, you receive an error message that resembles the following in the instance that's holding the secondary replica:

Cause


This issue occurs because automatic seeding may randomly fail to initialize the availability database.

Resolution


This fix is included in the following cumulative updates for SQL Server:

 Cumulative Update 1 for SQL Server 2017

Cumulative Update 5 for SQL Server 2016 Service Pack 1

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References


Learn about the terminology Microsoft uses to describe software updates.