Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Membase | Membase Server 1.7.x

403 while connecting to membase server

2 replies [Last post]
  • Login or register to post comments
Thu, 01/12/2012 - 13:50
abhihome
Offline
Joined: 03/14/2011
Groups: None

Hi,

I am getting below error while connecting to membase.

It works fine when I request http://[servername]:8091/pools from
1. a browser
2. wget from the box where my application server is installed.
3. a standalone program running on the box where my application server is installed.

It DOESN't work when I use the same code while making a request from an application server (tomcat)

2012-01-12 13:18:24.385 WARN net.spy.memcached.vbucket.ConfigurationProviderHTTP:  Connection problems with URI http://[servername]:8091/pools ...skipping
java.io.IOException: Server returned HTTP response code: 403 for URL: http://[servername]:8091/pools
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1241)

Code:

URI base = new URI("http://"+server+":8091/pools");
baseURIs.add(base);
MemcachedClient c = new MemcachedClient(baseURIs, "mybucket","");

Any help?

Thanks!

Top
  • Login or register to post comments
Thu, 01/12/2012 - 14:45
abhihome
Offline
Joined: 03/14/2011
Groups: None

I use Membase: 1.7.1

and following libraries:

spymemcached-2.7.1.jar
commons-codec-1.5.jar
jettison-1.3.jar
netty-3.1.5.GA.jar

Top
  • Login or register to post comments
Thu, 01/12/2012 - 14:56
abhihome
Offline
Joined: 03/14/2011
Groups: None

It is working when I install membase in the same server where the tomcat is running
and use
http://localhost:8091/pools
instead of
http://[servername]:8091/pools

What could be wrong?

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