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

PHP: Failed to get a value from server: Connection failure

2 replies [Last post]
  • Login or register to post comments
Wed, 07/11/2012 - 05:45
WesleyE
Offline
Joined: 05/26/2012
Groups: None

Hi,

I'm trying to connect my PHP script to a couchbase server behind a firewall, but I'm getting an error while requesting an key from the server: "Failed to get a value from server: Connection failure". This only happens when I log in using the password I set for the bucket itself. If I login with the Administration password and access any bucket I ge this error: "Couchbase::get(): Failed to schedule get request: Network error".

The connection works just fine, so that can't be the problem. This is how I've set it up right now:

Box 1 (Connection 1)
Ubuntu 11
Apache & PHP with the latest connector (1.1.0-dp2)

Box 2 (Connection 2)
Couchbase 2.0.0 DP 4 (build-722)

Box 3 (Connection 2)
Couchbase 2.0.0 DP4 (build-722)

I've opened up the ports for Box2 on the firewall as suggested here: http://www.couchbase.com/docs/couchbase-manual-1.8/couchbase-bestpractic.... I also tested the client on another box and connection than 1, getting the same problem.

What can I do to resolve this problem? Is there any way I can get a bit more diagnostic data from the php connector client? I dearly want to test Couchbase, but this is holding me back quite a bit.

Thanks,

Wesley

Top
  • Login or register to post comments
Wed, 07/11/2012 - 08:42
ingenthr
Offline
Joined: 03/16/2010
Groups:

That doesn't appear to be a known issue. Is there any chance you could packet capture port 8091 and port 11210 into a file and post it somewhere for us to have a look?

I'll also look at the PHP client to see if there's a better way to get more info.

Top
  • Login or register to post comments
Thu, 07/12/2012 - 06:01
WesleyE
Offline
Joined: 05/26/2012
Groups: None

Thanks for the idea to check the dumpfile. What is happing is that the couchbase server redirects to a local IP on port 11210, which is not available to the client (Because it is on another connection and the couchbase is not directly attached to the internet (Eg, eth0 is not outside ip)).

How can I change my config so that it redirects to the outside IP of the two couchbases?

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