Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

SQL Server Error 1453: Fix Mirroring Partner Issues

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

SQL Server Error 1453 occurs when the principal server cannot establish a connection with the mirror server, typically because the remote mirroring partner encountered an error while trying to connect. To resolve this, you must verify that the SQL Server mirroring endpoints are started, the firewall allows traffic on the mirroring port, and the service accounts have the necessary permissions to connect to one another. Most often, this is a networking or permission issue rather than a database corruption problem.

What You'll Need

  • Administrative access to both the Principal and Mirror SQL Server instances.
  • Permissions to modify Windows Firewall rules on both servers.
  • Access to the SQL Server service account credentials for both instances.
  • SQL Server Management Studio (SSMS) installed on a workstation with access to both servers.
  • Knowledge of the TCP port assigned to the mirroring endpoints (default is often 5022).

Step-by-Step

  1. Verify Endpoint Status: Open SQL Server Management Studio and connect to both the Principal and Mirror instances. Run the following query on both servers to ensure the mirroring endpoint is started: SELECT name, state_desc FROM sys.database_mirroring_endpoints;. If the state is not "STARTED", the mirroring process will fail immediately with error 1453.
  2. Check the SQL Server Error Logs: Navigate to Management > SQL Server Logs in SSMS. Look for entries coinciding with the 1453 error. The Mirror server's log is particularly important here; it will often contain a more specific error (such as Error 1442 or 1443) explaining why it rejected the connection from the Principal.
  3. Validate Network Connectivity: Use a tool like PowerShell or Command Prompt to test if the port is open. From the Principal server, run Test-NetConnection -ComputerName [MirrorServerName] -Port [PortNumber]. If this fails, the issue is at the network or firewall layer, not within SQL Server itself.
  4. Configure Windows Firewall: On both servers, open the Windows Defender Firewall with Advanced Security. Create a new Inbound Rule. Select "Port", choose "TCP", and enter the mirroring port (e.g., 5022). Set the action to "Allow the connection" and apply it to the appropriate profiles (Domain or Private).
  5. Verify Service Account Permissions: SQL Server mirroring requires the service accounts to be able to authenticate. If you are not using a domain account for the SQL Server service, you must create certificates to handle authentication. If using domain accounts, ensure the service account of the Principal server has CONNECT permissions on the Mirror server's endpoint, and vice versa. Run: GRANT CONNECT ON ENDPOINT::[EndpointName] TO [Domain\ServiceAccount];
  6. Check DNS and Hostname Resolution: Ensure that the Principal can resolve the Mirror's hostname and that the Mirror can resolve the Principal's hostname. Try pinging the remote server by name. If the ping fails but the IP address works, add the server entries to the local hosts file or fix the DNS records.
  7. Restart the Mirroring Endpoint: If the endpoint is started but not responding, you can force a restart. Use the command ALTER ENDPOINT [EndpointName] STATE = STOPPED; followed by ALTER ENDPOINT [EndpointName] STATE = STARTED; on both instances to refresh the connection state.
  8. Re-establish the Mirroring Partnership: Once connectivity and permissions are confirmed, go to the Principal server in SSMS. Right-click the database > Tasks > Mirror. Click "Configure Mirroring" and re-verify the partner server and port settings. If the database is in a suspended state, click "Start Mirroring" to resume synchronization.

Common Mistakes

One of the most frequent mistakes is forgetting that the mirroring port is separate from the standard SQL Server instance port (1433). Administrators often open 1433 in the firewall and assume mirroring will work, but mirroring uses its own dedicated endpoint port. Another common error is using a local system account (LocalSystem or NetworkService) for the SQL Server service on different machines. Because these accounts are local to the machine, they cannot authenticate across a network, leading to a permission failure that triggers Error 1453.

Additionally, users often overlook the "State" of the endpoint. It is possible for the endpoint to exist but be in a "STOPPED" or "DISABLED" state. Simply seeing the endpoint in the configuration does not mean it is actively listening for connections. Finally, failing to check the Mirror server's logs is a major setback; the Principal server only knows that the connection failed, but the Mirror server knows why it failed (e.g., "Login failed for user...").

Tips

For environments where domain accounts are not available, using Certificates for authentication is the most robust method. While more complex to set up, it eliminates dependencies on Active Directory for the mirroring handshake. Always document the port number used for mirroring in your network map to avoid confusion during future audits or firewall migrations.

To monitor the health of the mirroring relationship in real-time, use the Database Mirroring Monitor tool included with SSMS. This provides a visual representation of the synchronization state (Synchronized, Synchronizing, or Suspended) and can help you identify if Error 1453 is a momentary flicker or a persistent configuration failure. Also, consider setting up a SQL Server Agent alert for Error 1453 so that the DBA team is notified the moment the partnership breaks, rather than discovering it during a failover attempt.

Troubleshooting

If the steps above do not resolve the issue, start by simplifying the environment. Disable all third-party antivirus software or advanced network filtering tools temporarily to see if they are intercepting the mirroring traffic. Some security suites have "heuristic'" blocking that sees the constant stream of mirroring data as a potential attack.

If you suspect the mirroring metadata is corrupted, you may need to remove the mirroring partnership entirely and recreate it. To do this, run ALTER DATABASE [DbName] SET PARTNER OFF; on the Principal. On the Mirror server, you may need to drop the database or restore it from a fresh backup of the Principal with the NORECOVERY option before attempting to re-establish the partnership. Warning: Removing the partner will stop all data redundancy; ensure you have a current full backup before performing this action.

Check for "Zombie" connections. Occasionally, a network glitch leaves a session open on the endpoint that prevents new connections from being established. Restarting the SQL Server service on both the Principal and Mirror nodes is the most effective way to clear these orphaned sessions and reset the TCP stack for the mirroring endpoints.

Frequently Asked Questions

Does Error 1453 mean my data is lost?

No, Error 1453 is a connectivity and communication error. It indicates that the two servers cannot talk to each other, but it does not imply that the data within the databases has been corrupted or deleted.

Can I use a different port than 5022 for mirroring?

Yes, you can use any available TCP port. However, you must ensure that the port is consistent across both the Principal and Mirror configurations and that the firewall is opened for that specific port.

Why did mirroring stop working suddenly after a server reboot?

This often happens if the SQL Server service account password was changed or if the mirroring endpoint is not configured to start automatically. Check the service account status and the endpoint state in sys.database_mirroring_endpoints.

Is a domain account required for SQL Server mirroring?

It is not strictly required, but it is the easiest way to handle authentication. If you are in a workgroup environment, you must use certificates to authenticate the connection between the Principal and Mirror servers.

What is the difference between Error 1453 and Error 1442?

Error 1453 is a general "partner encountered an error" message usually seen on the Principal. Error 1442 is more specific and usually indicates that the mirror cannot connect to the principal, often due to a network or endpoint configuration issue.