Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

AlwaysOn Routing Problem When Connecting with ReadOnly Parameter

$
0
0

Hi All,

I've AlwaysOn structure with 2 nodes of SQL 2012 on virtual machines that are in same LAN and different hosts. Another vm is working as witness and file share machine. Each server is able to ping each other, all the firewall settings are in off state.

Primary node ip = 10.0.0.223 "Tcp://cls1.domain.ed:5022"

Secondary node ip = 10.0.0.224 "Tcp://cls2.domain.ed:5022"

Listener ip = 10.0.0.230

Cluster ip = 10.0.0.226

Endpoint = Hadr_endpoint

Everthing works well except readonly routing with listener. When i try to connect from SSMS with listener and open a query pane on each server, "select @@servername" returns 10.0.0.223 which is primary. But when i try to connect listener with ApplicationIntent=READONLY parameter and then open query, it's waiting for a while to connect and then returns error message "A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.) (.Net SqlClient Data Provider)(Microsoft SQL Server, Error:10054)" on SSMS. When I look at error logs, i see that the corresponding message is "Error: 9642, Severity: 16, State: 3." and "An error occurred in a Service Broker/Database Mirroring transport connection endpoint, Error: 8474, State: 11. (Near endpoint role: Target, far endpoint address: '')".

Is there anybody to guide me accurately?

Best Regards


Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>