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

what is the binary protocol port?

8 replies [Last post]
  • Login or register to post comments
Thu, 11/04/2010 - 12:09
link410
Offline
Joined: 09/15/2010
Groups: None

Hi,

I upgraded from the last beta to the new official 1.6 release. I was using the binary protocol on the old port 11211 and that worked find. However, when I switched over, I now get "_pylibmc.ProtocolError: error 8 from memcached_set: PROTOCOL ERROR". What is the new port I can use to send data using the binary protocol? I grep'ed through the community source code, but did not find what I was looking for.

Thanks.

Link

__________________

Thanks,

Link

Top
Thu, 11/04/2010 - 12:31
bhawana@membase
Offline
Joined: 10/29/2010
Groups: None

Link,

The port for binary protocol has not changed in the new 1.6 release. Can you please send more diagnostic information which you can get by clicking on "Log' -> Generate Diagnostic Report" on the left side panel of the Membase console.

 

Thanks

Bhawana

 

 

__________________

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
Thu, 11/04/2010 - 15:52
link410
Offline
Joined: 09/15/2010
Groups: None

Hi Bhawana,

I sent you email with attached diagnostic. I did another test where I telnet'ed into memcached and added a key/value pair without a problem. I telnet'ed into membase and did the same, and it failed. See output below:

Telnet into memcached...

ubuntu@domU-abc:/tmp$ telnet localhost 11811
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
add mykey 0 60 11
hello world
STORED
get mykey
VALUE mykey 0 11
hello world
END
quit
Connection closed by foreign host.

 

Telnet into membase...
ubuntu@domU-abc:/tmp$ telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
add mykey 0 60 11
hello world
SERVER_ERROR proxy downstream closed
quit
Connection closed by foreign host.
 

This is running on 64-bit ubuntu 10.04.

Any thoughts?

Link

__________________

Thanks,

Link

Top
Thu, 11/04/2010 - 17:00
bhawana@membase
Offline
Joined: 10/29/2010
Groups: None

Link,

 

This is likely because the underlying Memcached server is not running properly. 

Make sure that you have the  default bucket created.  Also, please run '/opt/membase/bin/ep_engine/management/stats'  through the telnet interface to Membase.  

Also, Please check http://wiki.membase.org/display/membase/Common+Errors and make sure that your are not facing one of the errors described here.

 

Bhawana
 

__________________

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
Thu, 11/04/2010 - 22:05
link410
Offline
Joined: 09/15/2010
Groups: None

Hi Bhawana,

Thank you for your help. I looked around and found at lot of

   errorContext                                                child_terminated
   reason                                             {badmatch,{error,closed}}
   errorContext                                                        shutdown
 

in the log. So, I figure the easiest thing was to restarted from scratch. I uninstalled membase and then reinstalled and reconfigured on ubuntu 64-bit 10.04:

ubuntu@...21:~$ sudo dpkg --purge membase-server
(Reading database ... 36895 files and directories currently installed.)
Removing membase-server ...
 * Stopped Membase server
Purging configuration files for membase-server ...
Processing triggers for ureadahead ...
ubuntu@...21:~$ dpkg -l membase-server
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                 Version              Description
+++-====================-====================-========================================================
un  membase-server       <none>               (no description available)

I installed the same way I did it the first time, and as documented, without errors displayed:

ubuntu@...21:~$ sudo dpkg -i membase-server-community_x86_64_1.6.0.1.deb
Selecting previously deselected package membase-server.
(Reading database ... 30757 files and directories currently installed.)
Unpacking membase-server (from membase-server-community_x86_64_1.6.0.1.deb) ...
Setting up membase-server (1.6.0.1) ...

You have successfully installed Membase Server.
Please browse to http://...21:8091/ to configure your server.
Please refer to http://membase.com/support for
additional resources.

Please note that you have to update your firewall configuration to
allow connections to the following ports: 11211, 11210, 4369, 8091
and from 21100 to 21199.
 * Started Membase server

Processing triggers for ureadahead ...

I used the console and configured, taking all defaults. The following error message showed up in the Cluster Overview:

Membase Server Alert
An error was encountered when requesting data from the server. The console has been reloaded to attempt to recover. There may be additional information about the error in the log.

I checked the log in the console, and got...

Service memcached crashed on node 'ns_1@127.0.0.1' in 0.04s
    supervisor_cushion001     00:01:49 - Fri Nov 5, 2010
Port server memcached on node 'ns_1@127.0.0.1' exited with status 71. Restarting. Messages: failed to listen on TCP port 11210: Address already in use     ns_port_server000     00:01:49 - Fri Nov 5, 2010
Membase Server has started on web port 8091 on node 'ns_1@127.0.0.1'.     menelaus_app001     00:01:49 - Fri Nov 5, 2010
Service memcached crashed on node 'ns_1@127.0.0.1' in 0.02s
    supervisor_cushion001     00:01:17 - Fri Nov 5, 2010
Port server memcached on node 'ns_1@127.0.0.1' exited with status 71. Restarting. Messages: failed to listen on TCP port 11210: Address already in use     ns_port_server000     00:01:17 - Fri Nov 5, 2010
Membase Server has started on web port 8091 on node 'ns_1@127.0.0.1'.     menelaus_app001     00:01:17 - Fri Nov 5, 2010
Service memcached crashed on node 'ns_1@127.0.0.1' in 0.02s
    supervisor_cushion001     00:00:48 - Fri Nov 5, 2010
Port server memcached on node 'ns_1@127.0.0.1' exited with status 71. Restarting. Messages: failed to listen on TCP port 11210: Address already in use     ns_port_server000     00:00:48 - Fri Nov 5, 2010
Membase Server has started on web port 8091 on node 'ns_1@127.0.0.1'.     menelaus_app001     00:00:48 - Fri Nov 5, 2010

I stopped the system and changed the /etc/security/limits.conf for grins, even though it was not the same error code 71. restarted the server, and the same thing.

This is a default installation on ubuntu. I made no changes to the system at all. The ubuntu server image is straight from ubuntu, no mods. Any ideas on how to proceed?

__________________

Thanks,

Link

Top
Thu, 11/04/2010 - 22:19
link410
Offline
Joined: 09/15/2010
Groups: None

Hi Bhawana,

I think I figured it out, but it should not matter. I did not take all the default values. I change the path of the database location on the first screen to a directory that was on a different device, and I did not change the ownership permission to be membase. However, not error was reported anywhere regarding ownership or that it could not write to the directory.

Thanks.

__________________

Thanks,

Link

Top
Tue, 12/28/2010 - 21:46
fddayan
Offline
Joined: 12/28/2010
Groups: None

 I had the same problem but changing the permission of the folder to membase fixed it. It was also in a different device (EBS)

Top
Mon, 03/14/2011 - 13:29
abhihome
Offline
Joined: 03/14/2011
Groups: None

I think I have simillar problem.

The connection is getting terminated in every second when I telnet.

I can also see the connection reset message appearing on top of the Administrative console.

/var and /var/opt are owned by root and

 

/var/opt/membase is owned by membase

 

 

 

drwxr-xr-x 3 membase membase 4096 Jan 24 22:07 membase

 

 

I have this user created and  /etc/security/limits.conf has the following entries

 

 

membase              soft    nofile  10240

membase              hard    nofile  10240

 

Can you please suggest me a fix for this issue? I am using Membase 1.6.5

 

Thanks

 

Abhilash

Top
Mon, 03/14/2011 - 18:37
perry
Offline
Joined: 10/11/2010
Groups:

 Abhilash, sorry to hear you're having troubles...I'm reposting your comment to a new topic, this one is outdated and likely does not apply at all.  Let's move over to here: http://techzone.couchbase.com/forums/thread/membase-connection-reset

 

__________________

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