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

Not able to telnet on 11211 after installing membase from source tar ball

11 replies [Last post]
  • Login or register to post comments
Tue, 12/20/2011 - 23:56
praveen
Offline
Joined: 12/20/2011
Groups: None

Hi,

I have installed membase 1.7.1.1 from source tar ball. I followed the steps as mentioned in the link http://www.couchbase.org/wiki/display/membase/Building+Membase+on+Linux+... The installation goes through fine. Then I start the membase server through command ./install/bin/membase-server I get the ulimit error but the process continues and server is up.

I tried updating the /etc/security/limits.conf file but still no luck on getting away with this message.

Further to this if I try telnet to memcahced on 11211 I get a connection refused message. Tried netstat and found that memcached is listening to 11210. Telneting to 11210 established a connection, but as soon as I issue

set myvar 0 0 5
value
get myvar

The connection is closed with the message "Connection closed by foreign host". [note after set and entering a value I dont get a confirmation too saying STORED]

I have tried installing on Windows through the .exe and everything is working fine (Memcache is listening to 11211 itself).

Any idea how could I solve this. Also why is memcache listening on 11210 instead on 11211 on linux?

Let me know if you want any details from the logs (kindly let me know where can I find those log files). I find only 1 log file under install/var/lib/membase/logs/1 and not sure if I can make out something from it, as it has many special characters along with some text.

I am on Ubuntu 10.04.3 LTS

Note: I am installing this as one of the OS users and not as root [cannot install as root].

Thanks

Praveen

Top
  • Login or register to post comments
Thu, 12/22/2011 - 15:25
ingenthr
Offline
Joined: 03/16/2010
Groups:

It's normal for the memcached process to listen on 11210. It's the moxi process which listens on 11211 and it should be started by the cluster manager, which runs in a beam.smp erlang VM.

Can you connect to the cluster's console on port 8091? If so, can you spot anything in the logs about why it won't start?

Top
  • Login or register to post comments
Thu, 12/22/2011 - 19:40
praveen
Offline
Joined: 12/20/2011
Groups: None

Hi,

Thanks for the reply.

Yes I am able to connect to cluster's console on 8091 and allocate a path for data and specify RAM size etc. One of the interesting messages that I see in the logs is as below

Port server moxi on node 'ns_1@127.0.0.1' exited with status 1. Restarting. Messages: 2011-12-23 08:00:53: (cproxy_config.c.317) env: MOXI_SASL_PLAIN_USR (13)
2011-12-23 08:00:53: (cproxy_config.c.326) env: MOXI_SASL_PLAIN_PWD (8)
2011-12-23 08:00:55: (cproxy_config.c.365) missing conflate

When I check the server nodes link under Manage I see my server listed and it shows up and running.

Can you let me know where this log file is read from? There is quite big log generated as I am experimenting from couple of days and stumbling on the same error. The reason I ask for location of logs is to get rid of the old logs and just have new ones so that I could share over here (as it will be small).

Thanks

Praveen

Top
  • Login or register to post comments
Thu, 12/22/2011 - 21:29
ingenthr
Offline
Joined: 03/16/2010
Groups:

It looks like perhaps libconflate didn't build. If you look in it's source directory, there should be a config.log. If you look through that, you should be able to spot why.

Top
  • Login or register to post comments
Fri, 12/23/2011 - 07:07
praveen
Offline
Joined: 12/20/2011
Groups: None

Hi Matt,

I checked the config.log file and found the following File missing errors and some undeclared variables.

ac_nonexistent.h: No such file or directory

minix/config.h: No such file or directory

error: '__SUNPRO_C' undeclared
error: '__ICC' undeclared

Googling around showed that this could be an error due to using gcc. I updated my gcc from 4.4.3 to 4.6.2.

With new gcc I got an error from memcached and ep-engine module due to -Werror flag. I removed the -Werror flag from Makefile and the compilation went through fine. But when I check the config.log in libconflate the same errors exist along with one extra error complaining of the option -V passed.

configure:3007: gcc -m64 -V >&5
gcc: error: unrecognized option '-V'

Could you let me know why is this happening and how could I solve this.

Thanks

Praveen

Top
  • Login or register to post comments
Thu, 01/05/2012 - 01:33
praveen
Offline
Joined: 12/20/2011
Groups: None

Hi,

Some more details.

I see this in the output generated from make
>>
configure: WARNING: libcurl development lib not found. On Debian this is found in libcurl4-gnutls-dev. On RHEL5/Fedora11 it's in curl-devel. On RHEL6/Fedora12 it's in libcurl-devel.
<<
and
>>
configure: WARNING: libmemcached requires at least version 1.0.6 of Embedded InnoDB
<<

I tried installing the libcurl devel tools [apt-get install libcurl4-gnutls-dev] but still no luck. The warning is still seen.

Is this anything of concern that is affecting libconflate.

Thanks

Praveen

Top
  • Login or register to post comments
Thu, 01/05/2012 - 03:37
praveen
Offline
Joined: 12/20/2011
Groups: None

Here is my config.log file from libconflate component

https://gist.github.com/1564645

Top
  • Login or register to post comments
Thu, 01/05/2012 - 16:56
enkrypt3d
Offline
Joined: 11/01/2011
Groups: None

Why do you need to build from source? Just use apt or yum.... or the .deb or .rpm file depending on your distro...

Also be sure to leave the "default" bucket intact.

Top
  • Login or register to post comments
Thu, 01/05/2012 - 23:21
praveen
Offline
Joined: 12/20/2011
Groups: None

Hi,

I want to try plugging in other third party persistence for membase. Hence am trying to build membase from source.

Thanks

Praveen

Top
  • Login or register to post comments
Fri, 01/06/2012 - 07:42
ingenthr
Offline
Joined: 03/16/2010
Groups:

Check around line 1991 in your gist. It looks like your libcurl was built with some kind of openldap support which it's referencing but isn't installed. I'd use ldd to verify this.

Interesting comment on looking at another backend. Which one are you considering?

Top
  • Login or register to post comments
Tue, 01/10/2012 - 01:15
praveen
Offline
Joined: 12/20/2011
Groups: None

Hi Matt,

Thanks, yes the openldap was the issue. This had happened because of chnage in version during upgrade of OS to 11.04 of Ubuntu. I had to link the openldap in /usr/lib to /usr/local/lib

>>
Interesting comment on looking at another backend. Which one are you considering?
<<

I am looking at DB2 as an option.

Thanks

Praveen

Top
  • Login or register to post comments
Thu, 01/12/2012 - 04:48
praveen
Offline
Joined: 12/20/2011
Groups: None

Hi Matt,

Any pointers to where could I start from. Some documents or links that I can refer to which talk of the overview design of ep-engine and the basic skeleton that a persistence engine will need to follow.

I went through Trond's blog on persistence for Memcached, was good to get understanding on what is happening. I am now looking at if any docs are available specific to Membase to allow plug-in other persistence. If any could you share.

Thanks

Praveen

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