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

SERVER_ERROR proxy write to downstream

6 replies [Last post]
  • Login or register to post comments
Thu, 05/26/2011 - 20:09
Adi
Offline
Joined: 05/26/2011
Groups: None

Hi All,
I am new to membase.
I installed successfully membase 1.6.5.4 on windows XP 32 bit.

I have a small program to write:

for (int i = 0; i < MAX; i++)
{ String s = new Integer(i).toString();
Object o = cache.set(s, 0, i);
System.out.println("cache put : " + s + " : " + i + ", result " + o);
}

and Read:
for (int i = 0; i < MAX; i++)
{
String s1 = new Integer(i).toString();
Object o = cache.get(s1);
}

when ever it does a get I see a exception:

Please help in what I am missing with a solution.

===
===========
2011-05-26 19:52:17.217 ERROR net.spy.memcached.protocol.ascii.FlushOperationImpl: Error: SERVER_ERROR proxy write to downstream
2011-05-26 19:52:17.217 INFO net.spy.memcached.MemcachedConnection: Reconnection due to exception handling a memcached operation on {QA sa=localhost/127.0.0.1:11211, #Rops=7, #Wops=0, #iq=0, topRop=net.spy.memcached.protocol.ascii.FlushOperationImpl@1f7d134,
topWop=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-05-26 19:52:17.217 WARN net.spy.memcached.MemcachedConnection: Closing, and reopening {QA sa=localhost/127.0.0.1:11211, #Rops=7, #Wops=0, #iq=0, topRop=net.spy.memcached.protocol.ascii.FlushOperationImpl@1f7d134, topWop=null, toWrite=0, interested=1}, at
tempt 0.
2011-05-26 19:52:17.217 WARN net.spy.memcached.protocol.ascii.AsciiMemcachedNodeImpl: Discarding partially completed op: net.spy.memcached.protocol.ascii.FlushOperationImpl@1f7d134
2011-05-26 19:52:17.217 WARN net.spy.memcached.protocol.ascii.AsciiMemcachedNodeImpl: Discarding partially completed op: net.spy.memcached.protocol.ascii.StoreOperationImpl@c7e553
2011-05-26 19:52:17.217 WARN net.spy.memcached.protocol.ascii.AsciiMemcachedNodeImpl: Discarding partially completed op: net.spy.memcached.protocol.ascii.StoreOperationImpl@1a0c10f
2011-05-26 19:52:17.233 WARN net.spy.memcached.protocol.ascii.AsciiMemcachedNodeImpl: Discarding partially completed op: net.spy.memcached.protocol.ascii.StoreOperationImpl@e2eec8
2011-05-26 19:52:17.233 WARN net.spy.memcached.protocol.ascii.AsciiMemcachedNodeImpl: Discarding partially completed op: net.spy.memcached.protocol.ascii.StoreOperationImpl@aa9835
2011-05-26 19:52:17.233 WARN net.spy.memcached.protocol.ascii.AsciiMemcachedNodeImpl: Discarding partially completed op: net.spy.memcached.protocol.ascii.StoreOperationImpl@1eec612
2011-05-26 19:52:17.233 WARN net.spy.memcached.protocol.ascii.AsciiMemcachedNodeImpl: Discarding partially completed op: net.spy.memcached.protocol.ascii.GetOperationImpl@10dd1f7
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:36)
Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Cancelled
at net.spy.memcached.internal.OperationFuture.get(OperationFuture.java:75)
at net.spy.memcached.internal.GetFuture.get(GetFuture.java:37)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:919)
... 2 more
Caused by: java.lang.RuntimeException: Cancelled
... 5 more
2011-05-26 19:52:19.233 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-05-26 19:52:19.233 INFO net.spy.memcached.MemcachedConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@7b7072

Top
  • Login or register to post comments
Thu, 05/26/2011 - 20:53
Adi
Offline
Joined: 05/26/2011
Groups: None

when I run
PUT and GET in 2 separate programs one after the other it works.

But when I write in the same program as above it gives the above exception for GET.

Please help me in understanding the issue

Top
  • Login or register to post comments
Fri, 05/27/2011 - 11:28
perry
Offline
Joined: 10/11/2010
Groups:

Adi, the "SERVER ERROR: Proxy write to downstream" usually means that a Membase server has crashed or is not responding.

We don't currently support Windows XP (and in fact have some known issues with it) so it would be good to verify whether this is working properly for you on either Windows Server 2008 or Windows 7.

Also, what version of the spymemcached client are you using? You might want to consider getting the latest version that has direct integration with Membase (rather than going through a proxy): http://techzone.couchbase.com/wiki/display/membase/prerelease+spymemcach...

__________________

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
Fri, 05/27/2011 - 15:23
Adi
Offline
Joined: 05/26/2011
Groups: None

Thank a lot Perry.

I am using memcached-2.6.jar which I got from: http://code.google.com/p/spymemcached/downloads/detail?name=memcached-2.....

Interestingly for only GETs it is crashing.
It works also sometimes?

Is there any know issue for this intermittent issue?

Top
  • Login or register to post comments
Fri, 05/27/2011 - 15:42
Adi
Offline
Joined: 05/26/2011
Groups: None

when you say proxy? can you please explain what you mean by proxy in this context?

Top
  • Login or register to post comments
Fri, 05/27/2011 - 15:42
Adi
Offline
Joined: 05/26/2011
Groups: None

when you say proxy? can you please explain what you mean by proxy in this context?

Top
  • Login or register to post comments
Fri, 05/27/2011 - 16:22
perry
Offline
Joined: 10/11/2010
Groups:

Membase employs a proxy (called Moxi) to translate legacy memcached protocol requests into "vbucket-aware" requests.

You can read more about Moxi here: http://techzone.couchbase.com/wiki/display/membase/Moxi

And you can read more about how vbuckets are used here: http://techzone.couchbase.com/wiki/display/membase/vBuckets

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