This has been happening in both the replicas (secondaries) at the same time ….Nothing shows on the primary replica.
Error: 976, Severity: 14, State: 1.
The target database is participating in an availability group and is currently not accessible for queries. Either data movement is suspended or the availability replica is not enabled for read access.
To allow read-only access to this and other databases in the availability group, enable read access to one or more secondary availability replicas in the group.
For more information, see the ALTER AVAILABILITY GROUP statement in SQL Server Books Online
Any ideas on where to start or what might be the problem?
Best Answer
You are attempting to connect to databases on secondary replicas when the availabilty group replica is not configured to allow connections on anything other than the primary replica.
The following script will tell you the state of the secondary replicas, and whether they will accept read connections:
The result of each replica with be:
To change the setting for a replica you can either use the GUI, or a script:
For more details see the Microsoft documentation.