Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

unable to remotely connect to couchbase via java

7 replies [Last post]
  • Login or register to post comments
Sun, 08/19/2012 - 23:52
avinash
Offline
Joined: 08/19/2012
Groups: None

I am tring to connect to couchbase server installed on mac os through remote host from windows...
i am working with the first java client program..."hello couchbase"
getting the following error using netbeans:
run:
2012-08-20 11:53:24.371 WARN com.couchbase.client.vbucket.ConfigurationProviderHTTP: Timed out while reading configuration over HTTP
java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at sun.net.NetworkClient.doConnect(NetworkClient.java:158)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:395)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
at sun.net.www.http.HttpClient.(HttpClient.java:234)
at sun.net.www.http.HttpClient.New(HttpClient.java:307)
at sun.net.www.http.HttpClient.New(HttpClient.java:324)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readToString(ConfigurationProviderHTTP.java:344)
at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readPools(ConfigurationProviderHTTP.java:145)
at com.couchbase.client.vbucket.ConfigurationProviderHTTP.getBucketConfiguration(ConfigurationProviderHTTP.java:127)
at com.couchbase.client.CouchbaseConnectionFactory.getVBucketConfig(CouchbaseConnectionFactory.java:188)
at com.couchbase.client.CouchbaseClient.(CouchbaseClient.java:156)
at com.couchbase.client.CouchbaseClient.(CouchbaseClient.java:125)
at com.couchbase.client.CouchbaseClient.(CouchbaseClient.java:101)
at couchbase.Couchbase.main(Couchbase.java:27)
2012-08-20 11:53:24.386 WARN com.couchbase.client.vbucket.ConfigurationProviderHTTP: Connection problems with URI http://172.20.53.249:8092/pools ...skipping
java.io.IOException: Timed out while reading configuration over HTTP
at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readToString(ConfigurationProviderHTTP.java:369)
at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readPools(ConfigurationProviderHTTP.java:145)
at com.couchbase.client.vbucket.ConfigurationProviderHTTP.getBucketConfiguration(ConfigurationProviderHTTP.java:127)
at com.couchbase.client.CouchbaseConnectionFactory.getVBucketConfig(CouchbaseConnectionFactory.java:188)
at com.couchbase.client.CouchbaseClient.(CouchbaseClient.java:156)
at com.couchbase.client.CouchbaseClient.(CouchbaseClient.java:125)
at com.couchbase.client.CouchbaseClient.(CouchbaseClient.java:101)
at couchbase.Couchbase.main(Couchbase.java:27)
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at sun.net.NetworkClient.doConnect(NetworkClient.java:158)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:395)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
at sun.net.www.http.HttpClient.(HttpClient.java:234)
at sun.net.www.http.HttpClient.New(HttpClient.java:307)
at sun.net.www.http.HttpClient.New(HttpClient.java:324)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readToString(ConfigurationProviderHTTP.java:344)
... 7 more
Error connecting to Couchbase: null
BUILD SUCCESSFUL (total time: 0 seconds)

Top
  • Login or register to post comments
Wed, 08/22/2012 - 10:30
mikew
Offline
Joined: 03/14/2011
Groups:

Can you check to make sure your firewall is not blocking access?

Top
  • Login or register to post comments
Mon, 09/03/2012 - 22:55
avinash
Offline
Joined: 08/19/2012
Groups: None

I removed the firewall restrictions...now the error is pools does not have a default bucket defined!!!
Actually i am trying to install couchbase on Mac-os through command prompt....i downloaded the zip file and unziped it....is there any other process remaining in the installation??

Top
  • Login or register to post comments
Wed, 09/05/2012 - 06:37
tgrall
Offline
Joined: 09/05/2012
Groups: None

Hello Avinash,

My question is probably very stupid, but want to be sure you have started the Couchbase Server ? (do you see the Couchbase entry in the OS X System Tray ?)

If not go in the folder where you have installed Couchbase and double click on the "Couchbase Server" application to start the server.

Can you access the Admin Console?
- http://127.0.0.1:8091/

Can you connect to your memcached instance using telnet ?
- telnet 127.0.0.1 11211

Tug

__________________

Tug
@tgrall

Top
  • Login or register to post comments
Mon, 09/10/2012 - 03:05
avinash
Offline
Joined: 08/19/2012
Groups: None

raj:bin tcsuser$ sudo sh couchbase-cli server-list -c localhost:8091
ERROR: command: server-list: localhost:8091, [Errno 61] Connection refused

this is the error I am getting when I execute the Command!!!
what should i do???

Top
  • Login or register to post comments
Mon, 09/10/2012 - 11:26
mikew
Offline
Joined: 03/14/2011
Groups:

Are you able to access your cluster through the web browser?

Top
  • Login or register to post comments
Tue, 09/11/2012 - 22:44
avinash
Offline
Joined: 08/19/2012
Groups: None

Actually I don't have access to browser as I am Accessing Mac from Windows using Putty software which allows me to work with only command line console!!!

Top
  • Login or register to post comments
Wed, 09/12/2012 - 11:26
mikew
Offline
Joined: 03/14/2011
Groups:

Try to use the browser on your windows machine and if that doesn't work then try using curl through the command line to see if you can get a response from the server. If this fails then try using netstat to see if anything is listening on port 8091.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker