简体   繁体   English

Google Search Appliance:com.microsoft.sqlserver.jdbc.SQLServerException:与主机“xyz”端口1433的TCP / IP连接失败。

[英]Google Search Appliance: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host “xyz” port 1433 has failed.

I'm deploying google search appliance connector for database(SQL). 我正在为数据库(SQL)部署谷歌搜索设备连接器。 When I run my "run.bat", I got an error in my logs which says: 当我运行“run.bat”时,我的日志中出现错误,说:

 java.io.IOException: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host "xyz", port 1433 has failed. Error: "null. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".
    at com.google.enterprise.adaptor.database.DatabaseAdaptor.getDocIds(DatabaseAdaptor.java:235)
    at com.google.enterprise.adaptor.DocIdSender.pushFullDocIdsFromAdaptor(DocIdSender.java:69)
    at com.google.enterprise.adaptor.GsaCommunicationHandler$PushRunnable.run(GsaCommunicationHandler.java:856)
    at com.google.enterprise.adaptor.OneAtATimeRunnable.run(OneAtATimeRunnable.java:69)
    at com.google.enterprise.adaptor.ShutdownWaiter$NotificationRunnable.run(ShutdownWaiter.java:183)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

I have tried the below solutions: 我尝试了以下解决方案:

  1. Remove All the TCP Dynamic Ports and Add value of 1433 to all TCP Port and restart your SQL Server. 删除所有TCP动态端口并将值1433添加到所有TCP端口并重新启动SQL Server。 My SQL Server Configuration looks like this: 我的SQL Server配置如下所示:

在此输入图像描述

在此输入图像描述

在此输入图像描述

  1. Check the value of key TcpDynamicPorts. 检查密钥TcpDynamicPorts的值。 在此输入图像描述

I don't have my dynamic port set. 我没有动态端口设置。

Is there any other way to solve this error. 有没有其他方法来解决此错误。 Any help would be appreciated. 任何帮助,将不胜感激。

Make sure that all TCP Dynamic ports are set to 0 and TCP Ports is blank on all except IPALL which your current setting is correct. 确保所有TCP动态端口都设置为0,并且除了当前设置正确的IPALL以外的所有TCP端口都为空。

It looks like a communication problem between your application server and the SQL Server. 它看起来像是应用程序服务器和SQL Server之间的通信问题。 I would suggest checking the port using TELNET in a CMD window with either the IP Address of the SQL server or domain name. 我建议在CMD窗口中使用TELNET检查端口,使用SQL服务器的IP地址或域名。

TELNET pc.name.com 1433

or 要么

TELNET 172.0.0.1 1433

If you get a blank screen after this you were successful and the port is open. 如果在此之后出现空白屏幕,则表示您已成功并且端口已打开。 If not, there is a firewall or network setting blocking the connection. 如果没有,则存在阻止连接的防火墙或网络设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 获取 com.microsoft.sqlserver.jdbc.SQLServerException:与 AWS SQL Server 2017 主机的 TCP/IP 连接 - Getting com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host for AWS SQL Server 2017 SQLServer异常; 到主机 localhost 的 TCP/IP 连接,端口 1433 失败 - SQLServerException; The TCP/IP connection to the host localhost, port 1433 has failed com.microsoft.sqlserver.jdbc.SQLServerException:用户登录失败 - com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user com.microsoft.sqlserver.jdbc.SQLServerException:连接超时(读取失败) - com.microsoft.sqlserver.jdbc.SQLServerException: Connection timed out (Read failed) com.microsoft.sqlserver.jdbc.SQLServerException 与 jpa - com.microsoft.sqlserver.jdbc.SQLServerException with jpa 到主机的 TCP/IP 连接,端口 1433 失败 - The TCP/IP connection to the host, port 1433 has failed 与主机 localhost、端口 1433 的 TCP/IP 连接失败 - The TCP/IP connection to the host localhost, port 1433 has failed TOMCAT:与主机 127.0.0.1、端口 1433 的 TCP/IP 连接失败 - TOMCAT: The TCP/IP connection to the host 127.0.0.1, port 1433 has failed 到主机server.com/Db_name的TCP / IP连接,端口1433失败 - The TCP/IP connection to host server.com/Db_name, port 1433 has failed SQLServerException:与主机的TCP / IP连接失败 - SQLServerException: TCP/IP connection to the host has failed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM