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

SERVER_ERROR proxy write to downstream

35 replies [Last post]
  • Login or register to post comments
Tue, 10/12/2010 - 00:47
android
Offline
Joined: 10/12/2010
Groups: None

SET error to membase bucket from PHP 5.3.2 on Windows XP.

 

Notice: Memcache::set(): Server localhost (tcp 11213) failed with: SERVER_ERROR proxy write to downstream (0) in

 

Why?

 

CODE:

 

$mb = new Memcache();
$mb->connect('localhost', 11211);
$mb->set('xxx', 'aaaa');
echo $mb->get('xxx');

 

PS. When I creating Memcache Bucket on port access control, moxi not openning this port.

Top
Tue, 10/12/2010 - 04:06
perry
Offline
Joined: 10/11/2010
Groups:

It looks like there is a port confusion.  The failure is coming from port 11213 while you are connecting to port 11211?

It also takes just a few seconds for Moxi to startup a new bucket, is it possible that you caught it before it was ready?  You should be able to manually telnet to that port and type 'stats' to get the stats output which will verify that Moxi is up and running properly.

 

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
Tue, 10/12/2010 - 04:51
android
Offline
Joined: 10/12/2010
Groups: None

Sorry. With ports all Ok.

When I create Membase on different port, it opens in netstat. When I create Memcache, nothing heppend.

When I use port of Membase, it says this error? fbout proxy.

When I trying to connect to closed port, it says: Coudn't connect.

I think the problem with connecting to default bucket

Top
Wed, 10/13/2010 - 00:57
android
Offline
Joined: 10/12/2010
Groups: None

When I creating Memcache default bucket

http://gyazo.com/b0c387dc1b489bee6aa5fc2565ac3a3b.png

> telnet localhost 11211

stats
SERVER_ERROR unauthorized, null bucket

------------------------------------

When I create Membase default bucket, it says:

SERVER_ERROR proxy write to downstream

Top
Wed, 10/13/2010 - 09:25
perry
Offline
Joined: 10/11/2010
Groups:

This looks like a configuration problem, I'm just not sure exactly what's wrong.

Can you grab the output of http://<host>:8091/diag where <host> is the IP address/hostname of your server and attach the output?  You'll probably want to zip it first.

That should let me look at the whole picture and see what the problem might be.

Thanks, take care.

 

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
Wed, 10/13/2010 - 10:00
perry
Offline
Joined: 10/11/2010
Groups:

 To follow up, I just reproduced this and filed a bug to have it addressed as soon as possible.  The problem only seems to affect the default bucket, can you confirm that your tests work properly otherwise?

__________________

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
Thu, 10/14/2010 - 00:25
android
Offline
Joined: 10/12/2010
Groups: None

http://dl.dropbox.com/u/585441/ns-diag-20101014110510.zip

How do I confirm my tests? I think I tried all the options and the probability of my mistakes is minimal.

Top
Thu, 10/14/2010 - 13:47
perry
Offline
Joined: 10/11/2010
Groups:

 The bug we have seems to only surface when deleting and recreating buckets.  We'll be fixing it shortly, but you should be able to workaround it by setting Membase up from scratch and not deleting/recreating the default bucket.

Obviously not a long-term solution, but should allow you to continue using it for now.  Let me know if that's not the case.

 

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
Thu, 10/14/2010 - 18:57
dongxie
Offline
Joined: 10/14/2010
Groups: None

when i uninstall membase,reinstall and contiune setup step by step ,still SERVER_ERROR proxy write to downstream  ::(

Top
Thu, 10/14/2010 - 19:42
perry
Offline
Joined: 10/11/2010
Groups:

 Sorry you're still having trouble.  Would you mind describing exactly the step-by-step process you are going through?

Thanks

 

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
Thu, 10/14/2010 - 22:18
dongxie
Offline
Joined: 10/14/2010
Groups: None

helo,you could set this http://59.188.14.68:8091/index.html


i install it newly.please help me to set a membase 1024M 1copy


if i set a memcached server it would display:SERVER_ERROR unauthorized, null bucket


and my servers is win32 2003 ,every serval servers had this problem.

Top
Fri, 10/15/2010 - 01:15
android
Offline
Joined: 10/12/2010
Groups: None

 

Reinstalling the application did not produce any effect.

Top
Mon, 10/18/2010 - 09:21
perry
Offline
Joined: 10/11/2010
Groups:

Hi, we posted an updated binary over the weekend to fix this and another bug.  Can you re-download the package and let me know if this is resolved for you?

 

Thanks

 

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
Tue, 10/19/2010 - 02:49
android
Offline
Joined: 10/12/2010
Groups: None

Now works correctly. Thank you

 

 

UPDATE:

When I recreate default backet, the error returns: "Server localhost (tcp 11211) failed with: SERVER_ERROR unauthorized, null bucket (0)"

Membase backet on 11212 works correctly.

Top
Tue, 10/19/2010 - 02:19
dongxie
Offline
Joined: 10/14/2010
Groups: None

I am download the newest membase-server-community_x86_1.6.0.1_setup.exe ,still have the same problem SERVER_ERROR proxy write to downstream

Top
Tue, 10/19/2010 - 03:50
perry
Offline
Joined: 10/11/2010
Groups:

 Thanks, I just reproduced this in the lab and have updated the bug.  

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
Tue, 10/19/2010 - 18:48
solracson
Offline
Joined: 10/19/2010
Groups: None

we have successfully installed the latest version of membase on windows XP and fedora but we are experiencing the same issue on


Linux 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008


Red Hat Enterprise Linux Server release 5.3 (Tikanga)
 


is there an ETA for a fix


here is what we are seeing in the diagnostic trace:



2010-10-19 21:25:26.404 ns_node_disco:2:info:cookie update - Node 'ns_1@127.0.0.1' synchronized otp cookie lltwobsmluateigg from cluster


2010-10-19 21:25:26.504 menelaus_app:1:info:web start ok - Membase Server has started on web port 8091 on node 'ns_1@127.0.0.1'.


2010-10-19 21:25:26.531 ns_port_server:0:info:message - Port server memcached on node 'ns_1@127.0.0.1' exited with status 71. Restarting. Messages: failed to ensure corefile creation


2010-10-19 21:25:26.534 supervisor_cushion:1:warning:port crashed too soon after restart - Service memcached crashed on node 'ns_1@127.0.0.1' in 0.01s


Top
Wed, 10/20/2010 - 12:35
drvolks
Offline
Joined: 10/20/2010
Groups: None

 Issue was due to the following setting in /etc/security/limits.conf

* hard core 0

 

When membase starts memcached it uses the -r parameter : "maximize core file limit". memcached tries to change the core file size limit and when it fails the service exits. So membase would be running without memcached.

Top
Wed, 10/20/2010 - 22:32
perry
Offline
Joined: 10/11/2010
Groups:

 Thanks drvolks, is this resolution in response to the post directly above?  Just want to make sure everyone is all set since the issue and its resolution are coming from two different usernames...

I'll be adding this to the troubleshooting section of the wiki.  

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
Thu, 10/21/2010 - 05:46
drvolks
Offline
Joined: 10/20/2010
Groups: None

 You are right, solracson is my colleague. The symptoms were:

Using the stats command on telnet localhost 11211:

SERVER_ERROR proxy write to downstream

In the web console log we were seeing:

 

Port server memcached on node 'ns_1@127.0.0.1' exited with status 71. Restarting. Messages: failed to ensure corefile creation They were caused by the hard code limit setted to 0. 

 

Top
Tue, 10/26/2010 - 02:12
oksanat
Offline
Joined: 10/26/2010
Groups: None

 Hi,

I installed membase from sources (membase-server-community_1.6.0.1_src.tar.gz).

At first I had problem 

Service memcached crashed on node. exited with code 71 (port address 11210 is already in use). But there is nothing on 11210 port. and I can manually start memcache on that port (/usr/bin/memcached -p 11210)

 

And for telnet localhost 11211 I have

 

 

set some_greeting 0 0 5

hello

SERVER_ERROR proxy write to downstream

  Do you have any ideas/tips?

 

Top
Thu, 11/11/2010 - 17:46
Perry Krug
Offline
Joined: 06/02/2010
Groups: None

Sorry for getting back to you so late on this...somehow the post got lost in the shuffle.

 

Can you attach the output of http://<host>:8091/diag where <host> is the Membase server?

 

This may be related to a known issue but I want to make sure.

 

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 Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

Top
Wed, 11/17/2010 - 02:14
chatty
Offline
Joined: 11/17/2010
Groups: None

Just went through this with my setup. Not sure if it applies as mine is kind of odd but here it is.

I was getting the same error with a 3 node cloud based system and after pairing it down to one node it turned out to be the fact I could not connect to the external address.

ie assume the server is a cloud based server with an external address unknown to it.

I went through the instructions here http://wiki.membase.org/display/membase/Using+Membase+in+the+Cloud to get the cluster working.

lets say the external address is 1.2.3.4 so - have -name ns_1@1.2.3.4

my internal addresses are 192.168.1.1 and 127.0.0.1

connecting to 192.168.1.1 or 127.0.0.1 on port 11211 and trying to set anything gave the downstream error.

adding an iptables rule like this cured it for me.

iptables -t nat -A OUTPUT  -d 1.2.3.4 -j DNAT --to-destination 127.0.0.1

 

Chatty

Top
Mon, 12/20/2010 - 18:22
chalozin
Offline
Joined: 12/20/2010
Groups: None

  hey,

 i want to join chatty on the same issue. installed membase 1.6.0.1, the web console loaded great on <DNS name>:8091. but when i logged in to the machine and telnet 127.0.0.1 11211, and hit "stats" i got SERVER_ERROR proxy write to downstream what am i doing wrong?   tal.

Top
Tue, 12/21/2010 - 11:06
perry
Offline
Joined: 10/11/2010
Groups:

 This is a known issue in 1.6.0.1 and I believe we've fixed it in the next release.  Can you please download the RC2 of 1.6.4 (http://forums.membase.org/thread/membase-server-164-rc2-available) and let me know if this is resolved?  If not, please send the output of /opt/membase/bin/ns_server/collect_info <output_file> so we can look at the logs.

 

Thanks!

 

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
Tue, 12/21/2010 - 16:41
chalozin
Offline
Joined: 12/20/2010
Groups: None

 thanks Perry.

it seems to be solved just by shutting does the membase-server and relaunching it.

however, I encountered another problem. i run a "membase" type bucket but cant manage to use the "standard port" as it require authentication.

in other words, when i run a standard 11211 port, i can connect neither from the telnet nor using from the PHP driver.

the only way i managed to do it was using a dedicated port (9990 for ex).

is there a way that i'm missing which will allow me to authenticate with the PHP driver? (i'm using $membase->addServer(ip,port)).

 

thanks so much.

 

tal.

Top
Sun, 01/02/2011 - 14:14
Insbrook
Offline
Joined: 01/02/2011
Groups: None

Hi!

I have the same problem. When I installed the Membase Server 1.6.4.1 into my Windows XP (x86). I got the same error using telnet localhost 11211. 


C:\>telnet localhost 11211
stats
SERVER_ERROR proxy write to downstream

I have installed  Membase Server into 2 different computers (WinXP and WinXP). If I stop Membase service and start old Memcache, my code works correctly (so, problem not in PHP and its Memcache extenstion).  

Deleting bucket and creating new don't change anything. Creating a bucket for another port (11222) can't solve problem.

 $memcache->addServer(); works
 $memcache->getVersion(); works
 $memcache->set(args); does not work

After creating memcached bucket:

 $memcache->addServer(); works
 $memcache->getVersion(); does not work
 $memcache->set(args); does not work
 

 

Top
Sun, 01/02/2011 - 22:36
willh
Offline
Joined: 08/12/2010
Groups: None

Hi Perry,


I was trying to start memcached.exe manually.  It looks like memcached.exe unable to started successfully cause this problem.


C:\Program Files\Membase\Server\bin\memcached>memcached.exe
Can't create notify pipe: Result too large


Hope this message helps!


Thank you.


 

Top
Mon, 01/03/2011 - 00:23
steve
Offline
Joined: 03/15/2010
Groups: None

Hi -- I've just created jira issue MB-3253 to track this.

To help us diagnose this more, by the way, do you have any issues when trying to run moxi.exe manually?  eg...

  C:\Program Files\Membase\Server\bin\moxi>moxi.exe

Thanks,

Steve

Top
Mon, 01/03/2011 - 16:26
steve
Offline
Joined: 03/15/2010
Groups: None

 Hi,

An update on MB-3253 -- there was a 32-bit windows build issue that's been addressed, and a new 32-bit windows build of 1.6.4.1 has been posted for you to download.  Please see the download links off of membase.com or membase.org.  Also, my apologies for any inconvenience to folks!

Cheers,

Steve

 

Top
Wed, 01/05/2011 - 01:50
willh
Offline
Joined: 08/12/2010
Groups: None

Hi Steve,


Why are you using the same version number (1.6.4.1) as a newly build?  Shouldn't you use the new version number such as 1.6.4.2 as a bug fixed build?  Using the same version number for different build may confusing someone.  It's just my tiny suggestion.

Top
Wed, 01/05/2011 - 10:05
steve
Offline
Joined: 03/15/2010
Groups: None

Hi, we had a similar debate here in the engineering pit.  Turns out there were no source-code changes, no new git tag, but that only the 32-bit windows builder went through a build hiccup that we unfortunately didn't catch.  All the other builders in the farm (64-bit windows, redhat, ubuntu, ...) were fine and unchanged, so we made the call to just hit the rebuild button on the 32-bit windows builder and hope that not too much confusion would ensue.

Thanks for the note!

Steve

Top
Wed, 01/05/2011 - 19:24
perry
Offline
Joined: 10/11/2010
Groups:

 Wanted to follow up here...

 

willh and insbrook, has this resolved any issues you were seeing?  

 

I'd like to close this particular thread since it is a bit too long and irrelevant to be useful (unless of course the problem's NOT solved...)

 

Thanks, take care.

 

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
Wed, 01/05/2011 - 19:26
perry
Offline
Joined: 10/11/2010
Groups:

 Tal, so sorry for the delay, I'm not sure why this post got lost in the shuffle.

 

Anyway, you can only connect unauthenticated to the default bucket on port 11211.  The bucket must be named 'default'.  If you want to connect (unauthenticated) to multiple buckets, you will have to have them each reside on separate ports (and different than 11211).  

 

Hope that clears things up.

 

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
Wed, 01/05/2011 - 20:58
willh
Offline
Joined: 08/12/2010
Groups: None

Hi Perry,


The x86 problem has been solved.


Thank you.

Top
Thu, 01/06/2011 - 12:08
perry
Offline
Joined: 10/11/2010
Groups:

 Great.  I'm going to close this thread and hope that anyone will open a new one if the problem persists or resurfaces.

 

Thanks all

 

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
  • 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