FastDFS connect timed out

java.net.SocketTimeoutException:connect timed out

at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.csource.fastdfs.ClientGlobal.getSocket(ClientGlobal.java:107)
at org.csource.fastdfs.StorageServer.<init>(StorageServer.java:45)
at org.csource.fastdfs.TrackerClient.getStoreStorage(TrackerClient.java:158)
at org.csource.fastdfs.StorageClient.newWritableStorageConnection(StorageClient.java:1938)
at org.csource.fastdfs.StorageClient.do_upload_file(StorageClient.java:703)
at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:208)
at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:226)
at com.chuanliu.platform.activity.fm.manager.FastDFSTest.uploadFile(FastDFSTest.java:62)
at com.chuanliu.platform.activity.fm.manager.FastDFSTest.main(FastDFSTest.java:30)

用命令实现上传,用JAVA程序上传出现上述问题,最后发现有一个storage的端口:23000没有在linux机器的防火墙里没有配置规则。

还是防火墙的问题

时间: 2024-10-14 04:35:58

FastDFS connect timed out的相关文章

con&#39;t login: connect to api.github.com:443[api.github.com/192.30.253.116, api.github.com/192.30.253.117] failed:connect timed out

Win7 pycharm github con't login: connect to api.github.com:443[api.github.com/192.30.253.116, api.github.com/192.30.253.117] failed:connect timed out ping不通192.30.253.117 跟踪一下,发现 跳转到10.段,结果丢失. tracert 192.30.153.117 打印一下路由 route print 发现是由于 静态路由 的原因

java 链接服务器上的 mongodb 出现 connect time out 问题

异常信息 十二月 22, 2014 5:27:58 下午 com.mongodb.DBTCPConnector initDirectConnection 警告: Exception executing isMaster command on /192.168.1.249:10003 java.io.IOException: couldn't connect to [/192.168.1.249:10003] bc:java.net.SocketTimeoutException: connect

java 链接server上的 mongodb 出现 connect time out 问题

异常信息 十二月 22, 2014 5:27:58 下午 com.mongodb.DBTCPConnector initDirectConnection 警告: Exception executing isMaster command on /192.168.1.249:10003 java.io.IOException: couldn't connect to [/192.168.1.249:10003] bc:java.net.SocketTimeoutException: connect

maven nexus-staging-maven-plugin exception-connect timed out

不知道是国内的网络的问题还是别的原因,在deploy一个maven的artifact到oss server的时候总是报错: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy (injected-nexus-deploy) on project becauseQA-utils: Remote staging failed: Failed to deploy artifacts: C

connect调用超时的实现方式

第二种更通用的.使connect调用超时的方法是使套接字成为无阻塞的,然后用select等待它完成.这种方法避免了使用alarm时遇到的很多问题,但我们必须承认,即使是在UNIX实现中,这种方法还是存在很多可移植性问题. int main(int argc, char **argv) { fd_set rdevents; fd_set wrevents; fd_set exevents; struct sockaddr_in peer; struct timeval tv; SOCKET s;

redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: connect time out

redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: connect timed outat redis.clients.jedis.Connection.connect(Connection.java:154)at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:83)at redis.clients

maven报错 Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:3.5.0 from

maven报错误,类似于: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:3.5.0 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elaps

Oracle RAC安装过程中碰到的“坑”和关键点(二)

(1) 依赖包的安装 Linux下安装Oracle,除了系统配置参数,我觉得依赖包的安装是另一个比较琐碎的操作. 本次安装碰到了几个包的问题: (a) rpm -Uvh gcc-4*提示: 02. error: Failed dependencies: 03.    cloog-ppl >= 0.15 is needed by gcc-4.4.7-4.el6.x86_64 04.    cpp = 4.4.7-4.el6 is needed by gcc-4.4.7-4.el6.x86_64 不

模拟HTTP请求超时时间设置

HTTP请求有两个超时时间:一个是连接超时时间,另一个是数据传输的最大允许时间(请求资源超时时间). 使用curl命令行 连接超时时间用 --connect-timeout 参数来指定 数据传输的最大允许时间用 -m 参数来指定 例如: curl --connect-timeout 10 -m 20 "http://XXXXXXX" 连接超时的话,出错提示形如: curl: (28) connect() timed out! 数据传输的最大允许时间超时的话,出错提示形如: curl: