Hi all,
I'm having a problem that I couldn't find any solution.
we have jobs to back up logs on secondary replica and recently some of the databases keep failing with error:
The connection to the primary replica is not active. The command cannot be processed.
our AG has been set up for years and the state is healthy when I checked dashboard. we are using OLA script to do backups and in the same thread, most databases got backed up and only one of them failed and it's random.
we've checked everywhere, sql error log, event viewer, we've restarted both sql servers but the problem is still there.
please help.