PHP: Failed to get a value from server: Connection failure
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
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?
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.