简体   繁体   English

为什么不能使用java ..使用连接IP连接到运行带有公共IP的Windows Azure VM,但出现连接超时错误?

[英]Why can`t I connect to Windows Azure VM running couchbase with public IP using java .. Getting Connection time out error?

I am trying to connect to my virtual machines in Azure cloud havng couchbase installed on it and all the ports as required by couchbase to be open. 我正在尝试连接到我的虚拟机,该虚拟机安装在Azure云上,并且已经在其上安装了长沙发,并且需要打开长沙发所需的所有端口。 I am able to ping those machines. 我能够ping那些机器。 Suppose my machine on azure has ip 1.2.3.4:8091. 假设我的机器在Azure上具有ip 1.2.3.4:8091。 This VM has 3 nodes having IP 192.168.0.4 192.168.0.5 192.168.0.6 该VM具有3个IP地址为192.168.0.4 192.168.0.5 192.168.0.6的节点

When I give this ip in my java runtime parameters to connect to the machine using org.apache.http jar it gets converted to the internal private IP address eg: 192.168.0.4:8091 but then I get a connection timed out error. 当我在java运行时参数中提供此ip以使用org.apache.http jar连接到计算机时,它被转换为内部专用IP地址,例如:192.168.0.4:8091,但随后出现连接超时错误。 Why? 为什么? Is there no way I can conect to a remote server using java without getting a timeout? 在没有超时的情况下,我无法使用Java连接到远程服务器吗? Do I always have to deploy the app on that cluster locally? 我是否总是必须在本地将应用程序部署在该群集上?

 Oct 31, 2013 2:25:11 AM com.couchbase.client.CouchbaseProperties setPropertyFile
    FINE: Could not load properties file "cbclient.properties" because: File not found with system classloader.
    Oct 31, 2013 2:25:11 AM com.couchbase.client.vbucket.ConfigurationProviderHTTP readToString
    FINE: Attempting to read configuration from URI: http://1.2.3.4:8091/pools
    Oct 31, 2013 2:25:11 AM com.couchbase.client.vbucket.ConfigurationProviderHTTP readToString
    FINE: Attempting to read configuration from URI: http://1.2.3.4:8091/pools/default?uuid=29ee39bf4f6daf0de614e85aacf00ac4
    Oct 31, 2013 2:25:11 AM com.couchbase.client.vbucket.ConfigurationProviderHTTP readToString
    FINE: Attempting to read configuration from URI: http://1.2.3.4:8091/pools/default/buckets?v=121918534&uuid=29ee39bf4f6daf0de614e85aacf00ac4

Here we can clearly see in this bottom part that it gets connected to the bucket gets the HTTP data but then says connection timedout. 在此,我们可以在底部清楚地看到,它连接到存储桶时会获取HTTP数据,然后显示连接超时。

        Oct 31, 2013 2:25:36 AM net.spy.memcached.MemcachedConnection queueReconnect
WARNING: Closing, and reopening {QA sa=192.168.0.4/192.168.0.4:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}, attempt 1.
Oct 31, 2013 2:25:36 AM net.spy.memcached.MemcachedConnection handleIO
FINE: Done dealing with queue.
Oct 31, 2013 2:25:36 AM net.spy.memcached.MemcachedConnection handleIO
FINE: Selecting with delay of 3985ms
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: No selectors ready, interrupted: false
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection attemptReconnects
INFO: Reconnecting {QA sa=192.168.0.6/192.168.0.6:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: Done dealing with queue.
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: Selecting with delay of 1ms
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: No selectors ready, interrupted: false
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection attemptReconnects
INFO: Reconnecting {QA sa=192.168.0.5/192.168.0.5:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: Done dealing with queue.
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: Selecting with delay of 3ms
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: No selectors ready, interrupted: false
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection attemptReconnects
INFO: Reconnecting {QA sa=192.168.0.4/192.168.0.4:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: Done dealing with queue.
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: Selecting with delay of 0ms
30 Seconds:  Load is in progress
Oct 31, 2013 2:25:42 AM com.couchbase.client.ViewConnection createConnections
INFO: Added 192.168.0.6 to connect queue
Oct 31, 2013 2:25:48 AM com.couchbase.client.ViewConnection createConnections
INFO: Added 192.168.0.5 to connect queue
40 Seconds:  Load is in progress
Oct 31, 2013 2:25:52 AM com.couchbase.client.ViewConnection createConnections
INFO: Added 192.168.0.4 to connect queue
Oct 31, 2013 2:25:52 AM com.couchbase.client.CouchbaseClient <init>
INFO: viewmode property isn't defined. Setting viewmode to production mode
Oct 31, 2013 2:25:52 AM com.couchbase.client.vbucket.ConfigurationProviderHTTP subscribe
FINE: Subscribing an object for reconfiguration updates com.couchbase.client.CouchbaseClient
Oct 31, 2013 2:25:52 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler handleUpstream
FINEST: Channel state changed: [id: 0x1fea8fc0] OPEN


Oct 31, 2013 2:25:52 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler handleUpstream
FINER: Channel state change is not a disconnect. Event value is true and Channel State is OPEN.
Oct 31, 2013 2:25:52 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler handleUpstream
FINEST: Channel state changed: [id: 0x1fea8fc0, /192.168.0.10:15658 => /1.2.3.4:8091:8091] BOUND: /192.168.0.10:15658


Oct 31, 2013 2:25:52 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler handleUpstream
FINER: Channel state change is not a disconnect. Event value is /192.168.0.10:15658 and Channel State is BOUND.
Oct 31, 2013 2:25:52 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler handleUpstream
FINEST: Channel state changed: [id: 0x1fea8fc0, /192.168.0.10:15658 => /1.2.3.4:8091:8091] CONNECTED: /1.2.3.4:8091:8091


Oct 31, 2013 2:25:52 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler handleUpstream
FINER: Channel state change is not a disconnect. Event value is /1.2.3.4:8091:8091 and Channel State is CONNECTED.
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: STATUS: 200 OK
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: VERSION: HTTP/1.1
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: HEADER: Cache-Control = no-cache
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: HEADER: Content-Type = application/json; charset=utf-8
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: HEADER: Date = Thu, 31 Oct 2013 09:25:51 GMT
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: HEADER: Pragma = no-cache
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: HEADER: Server = Couchbase Server 2.2.0-821-rel-enterprise
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: HEADER: Transfer-Encoding = chunked
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: 

    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
    FINER: CHUNKED CONTENT {
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
    FINER: {"name":"users","bucketType":"membase","authType":"sasl","saslPassword":"","proxyPort":0,"replicaIndex":false,"uri":"/pools/default/buckets/users?bucket_uuid=3cfaca6ceb99782a74bbc52df98aaba3","streamingUri":"/pools/default/bucketsStreaming/users?bucket_uuid=3cfaca6ceb99782a74bbc52df98aaba3","localRandomKeyUri":"/pools/default/buckets/users/localRandomKey","controllers":{"flush":"/pools/default/buckets/users/controller/doFlush","compactAll":"/pools/default/buckets/users/controller/compactBucket","compactDB":"/pools/default/buckets/default/controller/compactDatabases","purgeDeletes":"/pools/default/buckets/users/controller/unsafePurgeBucket","startRecovery":"/pools/default/buckets/users/controller/startRecovery"},"nodes":[{"couchApiBase":"http://192.168.0.6:8092/users","replication":1.0,"clusterMembership":"active","status":"healthy","otpNode":"ns_1@192.168.0.6","hostname":"192.168.0.6:8091","clusterCompatibility":131072,"version":"2.2.0-821-rel-enterprise","os":"windows","ports":{"proxy":11211,"direct":11210}},{"couchApiBase":"http://192.168.0.5:8092/users","replication":1.0,"clusterMembership":"active","status":"healthy","otpNode":"ns_1@192.168.0.5","hostname":"192.168.0.5:8091","clusterCompatibility":131072,"version":"2.2.0-821-rel-enterprise","os":"windows","ports":{"proxy":11211,"direct":11210}},{"couchApiBase":"http://192.168.0.4:8092/users","replication":1.0,"clusterMembership":"active","status":"healthy","otpNode":"ns_1@192.168.0.4","thisNode":true,"hostname":"192.168.0.4:8091","clusterCompatibility":131072,"version":"2.2.0-821-rel-enterprise","os":"windows","ports":{"proxy":11211,"direct":11210}}],"stats":{"uri":"/pools/default/buckets/users/stats","directoryURI":"/pools/default/buckets/users/statsDirectory","nodeStatsListURI":"/pools/default/buckets/users/nodes"},"ddocs":{"uri":"/pools/default/buckets/users/ddocs"},"nodeLocator":"vbucket","fastWarmupSettings":false,"autoCompactionSettings":false,"uuid":"3cfaca6ceb99782a74bbc52df98aaba3","vBucketServerMap":{"hashAlgorithm":"CRC","numReplicas":0,"serverList":["192.168.0.4:11210","192.168.0.5:11210","192.168.0.6:11210"],"vBucketMap":[[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1]]},"bucketCapabilitiesVer":"","bucketCapabilities":["touch","couchapi"]}
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
    FINER: Chunk length is: 6293
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.ReconfigurableObserver update
    FINEST: Received an update, notifying reconfigurables about a com.couchbase.client.vbucket.config.Bucketcom.couchbase.client.vbucket.config.Bucket@e723c25e
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.ReconfigurableObserver update
    FINEST: It says it is users and it's talking to /pools/default/bucketsStreaming/users?bucket_uuid=3cfaca6ceb99782a74bbc52df98aaba3
    Oct 31, 2013 2:25:53 AM com.couchbase.client.CouchbaseConnection reconfigure
    FINE: Node 192.168.0.6/192.168.0.6:11210 will stay in cluster config after reconfiguration.
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketMonitor logFiner
    FINER: Getting server list returns this last chunked response:
    {"name":"users","bucketType":"membase","authType":"sasl","saslPassword":"","proxyPort":0,"replicaIndex":false,"uri":"/pools/default/buckets/users?bucket_uuid=3cfaca6ceb99782a74bbc52df98aaba3","streamingUri":"/pools/default/bucketsStreaming/users?bucket_uuid=3cfaca6ceb99782a74bbc52df98aaba3","localRandomKeyUri":"/pools/default/buckets/users/localRandomKey","controllers":{"flush":"/pools/default/buckets/users/controller/doFlush","compactAll":"/pools/default/buckets/users/controller/compactBucket","compactDB":"/pools/default/buckets/default/controller/compactDatabases","purgeDeletes":"/pools/default/buckets/users/controller/unsafePurgeBucket","startRecovery":"/pools/default/buckets/users/controller/startRecovery"},"nodes":[{"couchApiBase":"http://192.168.0.6:8092/users","replication":1.0,"clusterMembership":"active","status":"healthy","otpNode":"ns_1@192.168.0.6","hostname":"192.168.0.6:8091","clusterCompatibility":131072,"version":"2.2.0-821-rel-enterprise","os":"windows","ports":{"proxy":11211,"direct":11210}},{"couchApiBase":"http://192.168.0.5:8092/users","replication":1.0,"clusterMembership":"active","status":"healthy","otpNode":"ns_1@192.168.0.5","hostname":"192.168.0.5:8091","clusterCompatibility":131072,"version":"2.2.0-821-rel-enterprise","os":"windows","ports":{"proxy":11211,"direct":11210}},{"couchApiBase":"http://192.168.0.4:8092/users","replication":1.0,"clusterMembership":"active","status":"healthy","otpNode":"ns_1@192.168.0.4","thisNode":true,"hostname":"192.168.0.4:8091","clusterCompatibility":131072,"version":"2.2.0-821-rel-enterprise","os":"windows","ports":{"proxy":11211,"direct":11210}}],"stats":{"uri":"/pools/default/buckets/users/stats","directoryURI":"/pools/default/buckets/users/statsDirectory","nodeStatsListURI":"/pools/default/buckets/users/nodes"},"ddocs":{"uri":"/pools/default/buckets/users/ddocs"},"nodeLocator":"vbucket","fastWarmupSettings":false,"autoCompactionSettings":false,"uuid":"3cfaca6ceb99782a74bbc52df98aaba3","vBucketServerMap":{"hashAlgorithm":"CRC","numReplicas":0,"serverList":["192.168.0.4:11210","192.168.0.5:11210","192.168.0.6:11210"],"vBucketMap":[[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1]]},"bucketCapabilitiesVer":"","bucketCapabilities":["touch","couchapi"]}
    Oct 31, 2013 2:25:53 AM com.couchbase.client.CouchbaseConnection reconfigure
    FINE: Node 192.168.0.5/192.168.0.5:11210 will stay in cluster config after reconfiguration.
    Oct 31, 2013 2:25:53 AM com.couchbase.client.CouchbaseConnection reconfigure
    FINE: Node 192.168.0.4/192.168.0.4:11210 will stay in cluster config after reconfiguration.
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.VBucketNodeLocator updateLocator
    FINE: Received updated configuration with insignificant changes.
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.ReconfigurableObserver update
    FINEST: Received an update, notifying reconfigurables about a com.couchbase.client.vbucket.config.Bucketcom.couchbase.client.vbucket.config.Bucket@f727c0e2
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.ReconfigurableObserver update
    FINEST: It says it is users and it's talking to /pools/default/bucketsStreaming/users?bucket_uuid=3cfaca6ceb99782a74bbc52df98aaba3
    Oct 31, 2013 2:25:53 AM com.couchbase.client.CouchbaseConnection reconfigure
    FINE: Node 192.168.0.6/192.168.0.6:11210 will stay in cluster config after reconfiguration.
    Oct 31, 2013 2:25:53 AM com.couchbase.client.CouchbaseConnection reconfigure
    FINE: Node 192.168.0.5/192.168.0.5:11210 will stay in cluster config after reconfiguration.
    Oct 31, 2013 2:25:53 AM com.couchbase.client.CouchbaseConnection reconfigure
    FINE: Node 192.168.0.4/192.168.0.4:11210 will stay in cluster config after reconfiguration.
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.VBucketNodeLocator updateLocator
    FINE: Received updated configuration with insignificant changes.
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.ConfigurationProviderHTTP readToString
    FINE: Attempting to read configuration from URI: http://1.2.3.4:8091:8091/pools
    Oct 31, 2013 2:25:55 AM com.couchbase.client.vbucket.ConfigurationProviderHTTP readToString
    FINE: Attempting to read configuration from URI: http://1.2.3.4:8091:8091/pools/default?uuid=29ee39bf4f6daf0de614e85aacf00ac4
    Oct 31, 2013 2:25:58 AM com.couchbase.client.vbucket.ConfigurationProviderHTTP readToString
    FINE: Attempting to read configuration from URI: http://1.2.3.4:8091:8091/pools/default/buckets?v=121918534&uuid=29ee39bf4f6daf0de614e85aacf00ac4
    Oct 31, 2013 2:25:58 AM net.spy.memcached.MemcachedConnection createConnections
    INFO: Added {QA sa=/192.168.0.4:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
    Oct 31, 2013 2:25:58 AM net.spy.memcached.MemcachedConnection createConnections
    INFO: Added {QA sa=/192.168.0.5:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
    Oct 31, 2013 2:25:58 AM net.spy.memcached.MemcachedConnection createConnections
    INFO: Added {QA sa=/192.168.0.6:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
    Oct 31, 2013 2:25:58 AM com.couchbase.client.vbucket.VBucketNodeLocator fillNodesEntries
    FINE: Updating nodesMap in VBucketNodeLocator.
    50 Seconds:  Load is in progress
    Oct 31, 2013 2:26:01 AM net.spy.memcached.MemcachedConnection handleIO
    FINE: Selected 1, selected 1 keys
    Oct 31, 2013 2:26:01 AM net.spy.memcached.MemcachedConnection handleIO
    FINE: Handling IO for:  sun.nio.ch.SelectionKeyImpl@45f76fc7 (r=false, w=false, c=true, op={QA sa=192.168.0.6/192.168.0.6:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=8})
    Oct 31, 2013 2:26:01 AM net.spy.memcached.MemcachedConnection handleIO
    INFO: Connection state changed for sun.nio.ch.SelectionKeyImpl@45f76fc7
    Oct 31, 2013 2:26:01 AM net.spy.memcached.MemcachedConnection handleIO
    INFO: Reconnecting due to failure to connect to {QA sa=192.168.0.6/192.168.0.6:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
    java.net.ConnectException: Connection timed out: no further information
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692)
        at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:423)
        at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:261)
        at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:288)

I also tweaked the SO_timeout and Connection_timeout values for org.apache.http.params but nothing works. 我还调整了org.apache.http.params的SO_timeout和Connection_timeout值,但没有任何效果。 Is there no way I can connect to a remote server via Java client on remote machine? 我无法通过远程计算机上的Java客户端连接到远程服务器吗? Also, the same public ip 1.2.3.4:8091 works on browser 此外,同一公共ip 1.2.3.4:8091可在浏览器上运行

Please note that port 11210 is not reachable, not 8091. 请注意,无法访问端口11210,而不是8091。

Make sure that 11210, 8091 and 8092 are reachable and the hostnames are properly mapped. 确保可以访问11210、8091和8092,并且正确映射了主机名。

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

相关问题 为什么我无法将 java 连接到 MySql,(连接错误)? - Why can't I connect java to MySql , (connection error)? 当我遇到超时错误时,如何将 Azure postgres 数据库连接到 pgadmin - How can i connect Azure postgres database to pgadmin as im getting time out error couchbase:使用java查询视图ERROR连接超时 - couchbase: using java query view ERROR Connection timed out 通过Java运行Oozie工作流时超时 - Getting connection time out while running Oozie workflow through Java 无法理解为什么我的&#39;字符串索引超出范围:-3&#39;错误-Java - Can't understand why I'm getting a 'String index out of range: -3' error - Java Java应用程序无法连接到IP,但是我可以ping通它 - Java apps can't connect to IP, but I can ping it 无法使用Java通过REST从VSTS中获取数据……总是会出现连接超时错误 - Not able to fetch data from VSTS through REST using java…always getting a connect time out error 我无法使用带有Java.Socket的外部ip连接我的电脑 - I can't connect my pc using external ip with Java.Socket 无法使用JAVA连接到另一台PC(另一个IP) - Can't connect to another pc (another IP)using JAVA Openshift无法从Java代码连接到mongoDB,超时 - Openshift can't connect to mongoDB from java code, time out
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM