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

Intermittent problem

5 replies [Last post]
  • Login or register to post comments
Wed, 06/01/2011 - 11:51
Adi
Offline
Joined: 05/26/2011
Groups: None

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

Top
  • Login or register to post comments
Wed, 06/01/2011 - 18:03
perry
Offline
Joined: 10/11/2010
Groups:

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!

Top
  • Login or register to post comments
Wed, 06/01/2011 - 20:19
Adi
Offline
Joined: 05/26/2011
Groups: None

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?

Top
  • Login or register to post comments
Thu, 06/02/2011 - 08:37
Adi
Offline
Joined: 05/26/2011
Groups: None

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.*?

Top
  • Login or register to post comments
Thu, 06/02/2011 - 14:41
Adi
Offline
Joined: 05/26/2011
Groups: None

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

Top
  • Login or register to post comments
Sun, 06/05/2011 - 23:04
perry
Offline
Joined: 10/11/2010
Groups:

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

__________________

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!

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