Intermittent problem
When I run a
Object o = cache.get(s1);
at my work I get the following Error.
at my home it executes every time with out any exception.
Is there any thing I should consider have the behavior consistent?
2) should I look into any Ports, permissions on widows
Please let me know.
2011-06-01 11:48:23.161 INFO net.spy.memcached.MemcachedConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@1891d8f
2011-06-01 11:48:23.567 ERROR net.spy.memcached.protocol.ascii.GetOperationImpl: Error: SERVER_ERROR proxy write to downstream
Exception in thread "main" java.lang.RuntimeException: Exception waiting for value
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:924)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:941)
at membase.main(membase.java:42)
Caused by: java.util.concurrent.ExecutionException: OperationException: SERVER: SERVER_ERROR proxy write to downstream
at net.spy.memcached.internal.OperationFuture.get(OperationFuture.java:72)
at net.spy.memcached.internal.GetFuture.get(GetFuture.java:37)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:919)
... 2 more
Caused by: OperationException: SERVER: SERVER_ERROR proxy write to downstream
at net.spy.memcached.protocol.BaseOperationImpl.handleError(BaseOperationImpl.java:132)
at net.spy.memcached.protocol.ascii.OperationImpl.readFromBuffer(OperationImpl.java:130)
at net.spy.memcached.MemcachedConnection.handleReads(MemcachedConnection.java:392)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:324)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:199)
at net.spy.memcached.MemcachedClient.run(MemcachedClient.java:1622)
2011-06-01 11:48:23.567 INFO net.spy.memcached.MemcachedConnection: Reconnection due to exception handling a memcached operation on {QA sa=localhost/127.0.0.1:11211, #Rops=1, #Wops=0, #iq=0, topRop=net.spy.memcached.protocol.ascii.GetOperationImp
pWop=null, toWrite=0, interested=1}. This may be due to an authentication failure.
OperationException: SERVER: SERVER_ERROR proxy write to downstream
at net.spy.memcached.protocol.BaseOperationImpl.handleError(BaseOperationImpl.java:132)
at net.spy.memcached.protocol.ascii.OperationImpl.readFromBuffer(OperationImpl.java:130)
at net.spy.memcached.MemcachedConnection.handleReads(MemcachedConnection.java:392)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:324)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:199)
at net.spy.memcached.MemcachedClient.run(MemcachedClient.java:1622)
2011-06-01 11:48:23.567 WARN net.spy.memcached.MemcachedConnection: Closing, and reopening {QA sa=localhost/127.0.0.1:11211, #Rops=1, #Wops=0, #iq=0, topRop=net.spy.memcached.protocol.ascii.GetOperationImpl@1a0c10f, topWop=null, toWrite=0, intere
mpt 0.
2011-06-01 11:48:23.567 WARN net.spy.memcached.protocol.ascii.AsciiMemcachedNodeImpl: Discarding partially completed op: net.spy.memcached.protocol.ascii.GetOperationImpl@1a0c10f
2011-06-01 11:48:25.583 INFO net.spy.memcached.MemcachedConnection: Reconnecting {QA sa=localhost/127.0.0.1:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
2011-06-01 11:48:25.583 INFO net.spy.memcached.MemcachedConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@53ba3d
Thanks again Perry.
I think what you said is correct:
I installed the membase at home with a IP address which I got from my Router at that time.
when I came to work because of the vpn and all the IP address will change. I dont have any static IP on my server machine.
Theoretically, I am convinced.
BUT:
when I am connecting I am using the "localhost" than why will the IP address be an issue?
static String server = "localhost";
static int port = 11211;
MemcachedClient cache = new MemcachedClient(new InetSocketAddress(server, port));
Object o = cache.get(s1);
2) If there is an internal mapping of this IP address where should I change that?
Hi Perry,
I see that on the Manage->Servers
The IP address is 192.168.1.6.
so it is binding to this IP address.
Is it possible to change this IP address manually so that I can work both in work and Home (one use case ;--
because at work I get IP address 10.* and home I get 192.*?
HI Perry,
I followed as suggested by Steve in one of the post.
==
service_stop.bat
service_unregister.bat
service_register.bat ns_1@127.0.0.1
service_start.bat
==
and looks it worked.
1) so I think it will always pick 127.0.0.1 address and not any IP address? am I correct
That's correct Adi.
As is mentioned here: http://www.couchbase.org/forums/thread/issues-dhcp-development-laptop, the problem is with changing IP addresses after a Membase installation. Registering it to use 127.0.0.1 should resolve that. Keep in mind that you won't really be able to cluster this node with any others but it works well from a development standpoint.
Perry
The error: "SERVER_ERROR proxy write to downstream" is coming from our proxy (Moxi) and indicates that it has a problem connecting to or staying connected to one or more Membase servers.
Is it possible that the IP address of your Membase software does not match the IP address of the server it is installed on?
Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!