SQL Server Error 1439: Fix No Witness Associated With
In this article
SQL Server Error 1439 occurs when an Always On Availability Group (AG) is configured for automatic failover but lacks a configured witness (quorum device) to break a tie during a node failure. To resolve this, you must add a witness—either a Disk Witness or a Cloud Witness—via the Failover Cluster Manager to ensure the cluster can maintain a majority vote and bring the database online automatically.
What You'll Need
- Administrative access to the Windows Server Failover Cluster (WSFC) Manager.
- Permissions to create a file share (for File Share Witness) or access to an Azure Storage Account (for Cloud Witness).
- Network connectivity between all cluster nodes and the intended witness location.
- A dedicated folder on a separate server or a cloud storage container that is not hosted on any of the existing database nodes.
Step-by-Step
- Identify the Current Quorum State: Open the Failover Cluster Manager. In the left-hand pane, select the cluster name. In the center pane, right-click the cluster name and select More Actions > Configure Cluster Quorum Settings. This will launch the Cluster Quorum Wizard, which allows you to see if a witness is currently missing or misconfigured.
- Select the Quorum Configuration Option: In the wizard, choose the option Select the quorum witness. This tells Windows that you want to manually assign a witness device to handle the voting process.
- Choose the Witness Type: You will be presented with several options. Choose the one that fits your infrastructure:
- Configure a File Share Witness: This is the most common for multi-site deployments. You will need to provide a UNC path (e.g., \\FileServer\ClusterWitness). The folder must have full read/write permissions for the Cluster Name Object (CNO) in Active Directory.
- Configure a Disk Witness: This is used in single-site deployments where a small shared disk is available to all nodes. Select the available shared disk from the list.
- Configure a Cloud Witness: This uses an Azure Storage Account. You will need the storage account name and the account key. This is ideal for clusters spanning multiple geographic regions.
- Validate the Witness Path: If using a File Share Witness, enter the network path and click Next. The wizard will attempt to connect to the share to verify that the permissions are correct and the path is reachable. If it fails here, check your NTFS and Share permissions.
- Complete the Wizard: Review the summary of your changes and click Finish. The cluster will now update its configuration, and the "no witness associated with" error should resolve as the cluster now has a mechanism to reach a majority vote.
- Verify the Availability Group Status: Open SQL Server Management Studio (SSMS). Expand Always On High Availability > Availability Groups. Right-click your AG and select Show Dashboard. Ensure that the synchronization state is healthy and that the cluster quorum is reported as "Node Majority with Witness" or "Cloud Witness."
Common Mistakes
One of the most frequent mistakes is placing the File Share Witness on one of the database nodes themselves. This creates a circular dependency: if that node fails, the witness fails simultaneously, which can lead to a complete cluster outage because the remaining nodes cannot reach a majority. Always place the witness on a third, independent server.
Another common error involves permissions. Users often grant permissions to their own administrator account but forget to grant permissions to the Cluster Name Object (CNO). The CNO is the Active Directory computer account that represents the cluster itself. Without full control over the witness folder, the cluster cannot write the quorum witness file, and Error 1439 will persist despite the wizard appearing to complete.
In Cloud Witness configurations, a common mistake is using a storage account in a region that has high latency or restricted network access from the on-premises data center. This can cause the cluster to flip-flop between states, leading to instability in the Availability Group.
Tips
For environments with an even number of nodes (e.g., a 2-node cluster), a witness is mandatory for automatic failover. Without it, if one node goes down, the remaining node only has 50% of the votes, which is not a majority, causing the entire AG to go offline. Adding a witness provides that critical "tie-breaking" vote.
If you are operating in a disaster recovery scenario across two distant data centers, consider using a Cloud Witness. It removes the need to maintain a third physical site for a file share, reducing overhead while providing the same quorum stability.
Regularly monitor the Cluster Events log in Event Viewer. Look for Event IDs related to quorum loss or witness connectivity. If you see intermittent connectivity warnings, it may indicate that your witness server is overloaded or experiencing network instability, which could trigger an unplanned failover.
Troubleshooting
If the Cluster Quorum Wizard fails to add the witness, first check the network connectivity using a ping test from every node to the witness server. Ensure that the firewall ports for SMB (TCP 445) are open if using a File Share Witness.
If the witness is added but the SQL Server error persists, restart the SQL Server service on the primary node. Sometimes the AG does not immediately recognize the change in the underlying Windows Cluster quorum state. You can also try manually failing over the AG to a secondary node and back to the primary to refresh the state.
If you encounter a "Permission Denied" error during the File Share Witness setup, go to the witness folder's Security tab. Add the cluster's computer account (the CNO) and grant it Full Control. Note that when searching for the account, you must change the "Object Types" in the selection window to include "Computers," otherwise the cluster account will not appear in the search results.
In cases where the cluster is completely down and you cannot access the Failover Cluster Manager, you can force the quorum using PowerShell. Use the command Start-ClusterNode -Name NodeName -FixQuorum to force a node to start without a majority, allowing you to then enter the manager and properly configure the witness.
Frequently Asked Questions
Can I use a Disk Witness in a multi-site cluster?
No, Disk Witnesses require shared storage accessible to all nodes via iSCSI or Fibre Channel. In multi-site clusters, this is usually impractical, making File Share or Cloud Witnesses the preferred choice.
What happens if the witness server goes offline?
If the witness goes offline but the majority of the database nodes are still healthy, the cluster will continue to operate. However, you lose the "tie-breaker," meaning if another node fails, the cluster may lose quorum and shut down the AG to prevent data corruption (split-brain scenario).
Does adding a witness affect database performance?
No. The witness is used only for cluster membership and voting logic. It does not participate in the actual replication of data or the processing of SQL queries.
Is a Cloud Witness better than a File Share Witness?
It depends on your infrastructure. Cloud Witnesses are superior for geo-distributed clusters because they provide a neutral third site without the cost of maintaining a physical server. File Share Witnesses are faster and simpler for local, single-site deployments.
Why is my AG in a "Resolving" state after adding a witness?
A "Resolving" state usually indicates that the nodes are still communicating with the cluster service to determine who the primary is. This is common immediately after a quorum change. If it stays in this state, check the SQL Server error logs for connectivity issues.