繁体   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.

我正在为数据库(SQL)部署谷歌搜索设备连接器。 当我运行“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)

我尝试了以下解决方案:

  1. 删除所有TCP动态端口并将值1433添加到所有TCP端口并重新启动SQL Server。 我的SQL Server配置如下所示:

在此输入图像描述

在此输入图像描述

在此输入图像描述

  1. 检查密钥TcpDynamicPorts的值。 在此输入图像描述

我没有动态端口设置。

有没有其他方法来解决此错误。 任何帮助,将不胜感激。

确保所有TCP动态端口都设置为0,并且除了当前设置正确的IPALL以外的所有TCP端口都为空。

它看起来像是应用程序服务器和SQL Server之间的通信问题。 我建议在CMD窗口中使用TELNET检查端口,使用SQL服务器的IP地址或域名。

TELNET pc.name.com 1433

要么

TELNET 172.0.0.1 1433

如果在此之后出现空白屏幕,则表示您已成功并且端口已打开。 如果没有,则存在阻止连接的防火墙或网络设置。

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM