• SQL Server
  • Log Shipping Tricks Demo
  • SQLCruise Alaska 2012 Pics
SQLSoldier News From the Frontlines

Troubleshooting Database Mirroring Error 1418

February 2, 2011 12:36 am / 3 Comments / SQLSoldier


Troubleshooting Database Mirroring Error 1418

Error 1418 is a common, hard-to-troubleshoot error. It is so common that it has been given its own page dedicated to the error in Books Online: MSSQLSERVER_1418. Unfortunately, that page only lists a few troubleshooting steps. Over the years, I’ve compiled a longer list of troubleshooting steps for this error. I’ve encountered every one of these issues at some point.

The server network address “%.*ls” can not be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational.

  1. Verify service accounts
    1. SQL Server service account requires CONNECT permissions to partners’ endpoints
    2. Best option is to use domain accounts for all partners
    3. If using Local Service or Local System, must use certificate authentication
      1. Ensure that the start date of the certificate is the current date or a day in the past relative to all servers. Due to time zone differences, if the current date on the server is earlier than the start date of the certificate, endpoint authentication will fail. Set the START_DATE option of the certificate to the day prior to when you are creating it to ensure it will work in all time zones.
    4. If using Network Service, must use the computer account (domain\Computer$)
    5. Windows permissions are irrelevant. Do NOT add to local admins group
    6. Check the SQL log for errors
  2. Verify ports
    1. Use Telnet to test that the port is open and something is listening

      1. Good for verifying that port not blocked by firewall
      2. Does not verify that SQL Server is the process on the other end
    2. Use the netstat command to determine that the SQL instance is listening on that port
      1. Get the process ID of the instance using SERVERPROPERTY(‘processid’)
      2. On Windows Server 2003 SP1+: netstat -abn
      3. On Windows Server 2003 pre-SP1: netstat -ano
      4. Verify the process ID if there is more than 1 instance on the server
    3. Confirm that there are no other SQL instances on the server
      1. If other instances, check for mirroring endpoints
      2. If other mirroring endpoints, make sure they are using different ports and/or IP addresses
        1. IP address and port must be a unique combination
    4. Make sure firewall is not blocking the port
    5. Make sure firewall is allowing traffic both directions
  3. Verify all instances can access every other partner
    1. Ping each partner from each of the other partners
    2. Perform a tracert to each partner from each of the other partners
    3. If ping or tracert fails double check the ports (see above)
    4. Verify that the IP address the names resolve to are the correct IP addresses (don’t trust them)
    5. Verify that you are using the fully qualified domain name
      1. Do not use IP address, there are bugs with this
      2. Do not use just server name
  4. Verify endpoints
    1. Make sure all endpoints are started

      1. Use sys.database_mirroring_endpoints
    2. Ensure that all endpoints are using the same encryption algorithm
      1. Use sys.database_mirroring_endpoints
    3. Ensure that the OS supports the chosen encryption algorithm on all partners
      1. Windows 2000 does not support the default encryption algorithm (RC4)
    4. Make sure the queue for the endpoint is running
      1. Queue can be stopped by too many failures
      2. Drop and recreate the endpoint to start the queue
Posted in: SQL Server / Tagged: Database Mirroring, Troubleshooting

3 Thoughts on “Troubleshooting Database Mirroring Error 1418”

  1. Pingback: Troubleshooting Database Mirroring Error 1418

  2. Pingback: @SQLSoldier posts Troubleshooting Database Mirroring Error 1418 | sqlmashup

  3. Pingback: Troubleshooting Database Mirroring Error 1418 Updated | SQLSoldier

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Post Navigation

← Previous Post
Next Post →
<

Remote DBA Services
- serious SQL Server expertise for less than a full-time DBA
My Articles
 
My Book
Check out my interview on

Extreme Data Recovery (with Argenis Fernandez)
10 Things all BI System Administrators Should Know
Upcoming Events
    All events shown in Pacific Time

    No events to show

RSS My SQL Server Magazine Articles

  • Database Mirroring for Disaster Recovery September 16, 2011
  • Comparative Review: Database Schema Comparison Tools August 24, 2011
  • 3 Log Shipping Techniques June 22, 2011
  • Hardening SQL Server June 20, 2011
  • Review: ScriptLogic Security Explorer for SQL Server February 8, 2011

Tags

31 Days of Disaster Recovery Architecture Automation CDC & Change Tracking Data Architecture VC Database Mirroring DBCC Denali Disaster Recovery Dynamic Management Views Extended Events Gamers & Geeks General Discussion High Availability How do I ... ? Humor Idera ACE Program Internals MCM Meme Monday Performance & Optimization PowerShell Professional Development Replication Security SQLBits SQL PASS SQL PASS Summit SQLRally SQL Saturday SQL Server Magazine SQL University SSAS & BI SSIS SSMS SSRS T-SQL T-SQL Tuesday tempDB Tips & Tricks Travel Troubleshooting Undocumented Stuff Whitepapers XML in SQL

News

Download my Powershell Scripts

The following scripts can be downloaded as text files. You will need to change the file extension to .ps1 in order to execute them.

Backup a database
Restore a database
Scan a server to find a free port
Query DNS to get the FQDN of a server


To see some examples of my other forms of writing, please visit my page on WritersCafe.org. It is almost exclusively horror fiction, but I sometimes throw other things in there too from time to time. There's one science fiction story, a couple of poems, and quite a few humor pieces as well.


Look for me in the SQL Q&A section of the August, 2007 issue of TechNet Magazine.
August issue of TechNet Magazine's SQL Q&A column

Protect our Heroes

© Copyright 2012 - Robert L Davis
Infinity Theme by DesignCoral / WordPress

Twitter Twitter 
LinkedIn LinkedIn 
TLF TLF RSS RSS 
WritersCafe WritersCafe 
SQLPASS SQLPASS 
Facebook Facebook
grab this