Why This Error Happens
Error 8791 typically occurs when SQL Server Management Studio (SSMS) attempts to query the Windows Server Failover Clustering (WSFC) service to populate Always On Availability Group dashboards, but the request times out or is rejected before data can be returned. This is most commonly caused by the SQL Server service account lacking the necessary permissions on the WSFC resource group, or by a Windows Firewall rule blocking the WMI/RPC ports used for cluster communication. In some cases, a corrupted or outdated cluster registry hive on Windows Server 2025 prevents the dashboard from resolving replica health states, leaving the UI stuck on “Getting Data” until it finally times out.
Step-by-Step Resolution Guide
Step 1: Verify Cluster Service Permissions
- Open Failover Cluster Manager and confirm the SQL Server service account is a member of the local Administrators group on all replica nodes.
- Run
Get-ClusterGroupin PowerShell (elevated) to confirm the Availability Group resource is “Online” and not in a pending state. - If the account lacks rights, grant it via Computer Management > Local Users and Groups > Administrators.
Step 2: Check WMI and Firewall Configuration
- Ensure the Windows Management Instrumentation service is running on all nodes:
Get-Service Winmgmt. - Open Windows Defender Firewall with Advanced Security and confirm inbound rules exist for:
TCP 135(RPC Endpoint Mapper)- Dynamic RPC ports (49152–65535)
- Run
winmgmt /verifyrepositoryto check for WMI repository corruption; if inconsistent, runwinmgmt /salvagerepository.
Step 3: Rebuild the Cluster Registry Hive Cache
- On the affected node, stop the Cluster Service:
Stop-Service ClusSvc. - Navigate to
C:\Windows\Cluster\and rename theCLUSDBfile toCLUSDB.oldto force regeneration. - Restart the Cluster Service:
Start-Service ClusSvc, then confirm the node rejoins the cluster viaGet-ClusterNode.
Step 4: Refresh SSMS Connection and Dashboard Cache
- Close all active SSMS sessions connected to the Availability Group.
- Clear the local SSMS cache folder:
%AppData%\Microsoft\SQL Server Management Studio\Cache. - Reopen SSMS, reconnect to the primary replica, and relaunch the Always On Dashboard to confirm data populates without triggering Error 8791.
Alternative or Verification Steps
- Run
SELECT * FROM sys.dm_hadr_availability_replica_states;directly in a query window — if data returns successfully here but not in the GUI dashboard, the issue is isolated to SSMS/WMI communication, not the AG itself. - If the error persists, use PowerShell’s
Get-ClusterResource | Format-List *to manually validate replica health as a workaround until the dashboard rendering issue is resolved.