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

Port 11211

3 replies [Last post]
  • Login or register to post comments
Thu, 02/03/2011 - 12:54
jon2718
Offline
Joined: 01/31/2011
Groups: None

Hi,

I have been able to successfully build Membase.  When I launch the server via start.sh and then do a netstat –a, I don’t see any process listening on port 12111.  However, I do see a process on port 21100.  Do you know what might be causing this?  Is it possible that the server wasn’t able to start correctly?  Are there other ports I should see processes listening on.  As I mentioned, only port 21100 is listening.  Are there log files I should look at? 

Also, I am able to successfully http to the web console using port 8091 and see the welcome screen there. Any thoughts would be greatly appreciated. Thanks. -Jon

Top
  • Login or register to post comments
Thu, 02/03/2011 - 16:07
perry
Offline
Joined: 10/11/2010
Groups:

 Hey Jon, happy to help here.

 

When you say port 21100, do you actually mean 11210?  That's the port that memcached "should" be listening on, and Moxi "should" be listening on 11211.  It's possible to change these port numbers, but you would have to have done so manually when building the source.

 

I'm guessing that the processes are not starting up properly...can you take a look through the output of $MEMBASE_DIR/bin/ns_server/browse_logs and see if any error stand out?

 

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
Thu, 02/03/2011 - 16:31
jon2718
Offline
Joined: 01/31/2011
Groups: None

 Hi Perry,

 

Yes.  I meant port 11210. Thanks for correcting me on that.  

 

Here is an excerpt from my log reports.  I highlighted what appear to be the relevant sections in red (ink).  It appears all the trouble starts from the following message:  memcached<0.102.0>: can't run as root without the -u switch

 

Any ideas would be greatly appreciated.  I am really looking forward to testing the performance.

 

Thank you.

 

-Jon

 

Subject: Log Reports

INFO REPORT  <5643.69.0>                                    2011-02-03
17:34:52
===============================================================================

ns_log: logging menelaus_app:1:Membase Server has started on web port
8091 on node 'ns_1@127.0.0.1'.

PROGRESS REPORT  <5643.69.0>                                2011-02-03
17:34:52
===============================================================================
supervisor
{local,ns_server_sup}
started
        [{pid,<5643.92.0>},
        {name,menelaus},
        {mfargs,{menelaus_app,start_subapp,[]}},
        {restart_type,permanent},
        {shutdown,infinity},
        {child_type,supervisor}]


PROGRESS REPORT  <5643.97.0>                                2011-02-03
17:34:52
===============================================================================
supervisor
{local,ns_port_sup}
started
        [{pid,<5643.98.0>},
        {name,ns_port_init},
        {mfargs,{ns_port_init,start_link,[]}},
        {restart_type,transient},
        {shutdown,10},
        {child_type,worker}]


INFO REPORT  <5643.99.0>                                    2011-02-03
17:34:52
===============================================================================

starting ns_port_server with delay of 5000

PROGRESS REPORT  <5643.97.0>                                2011-02-03
17:34:52
===============================================================================
supervisor
{local,ns_port_sup}
started
        [{pid,<5643.99.0>},
        {name,
            {moxi,"./bin/moxi/moxi",
                ["-Z",

"port_listen=11211,default_bucket_name=default,downstream_max=1024,downstream_conn_max=4,connect_max_errors=5,connect_retry_interval=30000,connect_timeout=400,auth_timeout=100,cycle=200,downstream_conn_queue_timeout=200,downstream_timeout=5000,wait_queue_timeout=200",
                 "-z",

"url=http://127.0.0.1:8091/pools/default/saslBucketsStreaming",
                 "-p","0","-Y","y","-O","stderr",[]],
                [{env,
                     [{"EVENT_NOSELECT","1"},
                      {"MOXI_SASL_PLAIN_USR",[]},
                      {"MOXI_SASL_PLAIN_PWD",[]}]},
                 use_stdio,stderr_to_stdout,stream]}},
        {mfargs,
            {supervisor_cushion,start_link,
                [moxi,5000,ns_port_server,start_link,
                 [moxi,"./bin/moxi/moxi",
                  ["-Z",

"port_listen=11211,default_bucket_name=default,downstream_max=1024,downstream_conn_max=4,connect_max_errors=5,connect_retry_interval=30000,connect_timeout=400,auth_timeout=100,cycle=200,downstream_conn_queue_timeout=200,downstream_timeout=5000,wait_queue_timeout=200",
                   "-z",

"url=http://127.0.0.1:8091/pools/default/saslBucketsStreaming",
                   "-p","0","-Y","y","-O","stderr",[]],
                  [{env,
                       [{"EVENT_NOSELECT","1"},
                        {"MOXI_SASL_PLAIN_USR",[]},
                        {"MOXI_SASL_PLAIN_PWD",[]}]},
                   use_stdio,stderr_to_stdout,stream]]]}},
        {restart_type,permanent},
        {shutdown,10},
        {child_type,worker}]


INFO REPORT  <5643.101.0>                                   2011-02-03
17:34:52
===============================================================================

starting ns_port_server with delay of 5000

PROGRESS REPORT  <5643.97.0>                                2011-02-03
17:34:52
===============================================================================
supervisor
{local,ns_port_sup}
started
        [{pid,<5643.101.0>},
        {name,
            {memcached,"./bin/memcached/memcached",

["-X","./bin/memcached/stdin_term_handler.so","-p","11210",

"-E","./bin/bucket_engine/bucket_engine.so","-B","binary",
                 "-r","-c","10000","-e",

"admin=_admin;default_bucket_name=default;auto_create=false",
                 []],
                [{env,
                     [{"EVENT_NOSELECT","1"},
                      {"MEMCACHED_TOP_KEYS","100"},
                      {"ISASL_PWFILE",

"/home/scratch.sc/jlederman/dev/membase/membase-server-community_1.6.4.1_src/ns_server/data/ns_1/isasl.pw"},
                      {"ISASL_DB_CHECK_TIME","1"}]},
                 use_stdio,stderr_to_stdout,stream]}},
        {mfargs,
            {supervisor_cushion,start_link,
                [memcached,5000,ns_port_server,start_link,
                 [memcached,"./bin/memcached/memcached",
                  ["-X","./bin/memcached/stdin_term_handler.so","-p",

"11210","-E","./bin/bucket_engine/bucket_engine.so","-B",
                   "binary","-r","-c","10000","-e",

"admin=_admin;default_bucket_name=default;auto_create=false",
                   []],
                  [{env,
                       [{"EVENT_NOSELECT","1"},
                        {"MEMCACHED_TOP_KEYS","100"},
                        {"ISASL_PWFILE",

"/home/scratch.sc/jlederman/dev/membase/membase-server-community_1.6.4.1_src/ns_server/data/ns_1/isasl.pw"},
                        {"ISASL_DB_CHECK_TIME","1"}]},
                   use_stdio,stderr_to_stdout,stream]]]}},
        {restart_type,permanent},
        {shutdown,10},
        {child_type,worker}]


PROGRESS REPORT  <5643.69.0>                                2011-02-03
17:34:52
===============================================================================
supervisor
{local,ns_server_sup}
started
        [{pid,<5643.97.0>},
        {name,ns_port_sup},
        {mfargs,{ns_port_sup,start_link,[]}},
        {restart_type,permanent},
        {shutdown,10},
        {child_type,worker}]


PROGRESS REPORT  <5643.69.0>                                2011-02-03
17:34:52
===============================================================================
supervisor
{local,ns_server_sup}
started
        [{pid,<5643.103.0>},
        {name,ns_tick_event},
        {mfargs,{gen_event,start_link,[{local,ns_tick_event}]}},
        {restart_type,permanent},
        {shutdown,10},
        {child_type,worker}]


PROGRESS REPORT  <5643.69.0>                                2011-02-03
17:34:52
===============================================================================
supervisor
{local,ns_server_sup}
started
        [{pid,<5643.104.0>},
        {name,ns_stats_event},
        {mfargs,{gen_event,start_link,[{local,ns_stats_event}]}},
        {restart_type,permanent},
        {shutdown,10},
        {child_type,worker}]


PROGRESS REPORT  <5643.69.0>                                2011-02-03
17:34:52
===============================================================================
supervisor
{local,ns_server_sup}
started
        [{pid,<5643.105.0>},
        {name,ns_good_bucket_worker},
        {mfargs,{work_queue,start_link,[ns_good_bucket_worker]}},
        {restart_type,permanent},
        {shutdown,10},
        {child_type,worker}]


PROGRESS REPORT  <5643.69.0>                                2011-02-03
17:34:52
===============================================================================
supervisor
{local,ns_server_sup}
started
        [{pid,<5643.106.0>},
        {name,ns_good_bucket_sup},
        {mfargs,{ns_bucket_sup,start_link,
                               [ns_good_bucket_sup,
                                #Fun<ns_server_sup.0.109880752>,
                                ns_good_bucket_worker]}},
        {restart_type,permanent},
        {shutdown,infinity},
        {child_type,supervisor}]


INFO REPORT  <5643.69.0>                                    2011-02-03
17:34:52
===============================================================================

ns_1@127.0.0.1:misc:725: start_singleton(gen_fsm, ns_orchestrator, [],
[]): started as <5643.107.0> on 'ns_1@127.0.0.1'


PROGRESS REPORT  <5643.69.0>                                2011-02-03
17:34:52
===============================================================================
supervisor
{local,ns_server_sup}
started
        [{pid,<5643.107.0>},
        {name,ns_orchestrator},
        {mfargs,{ns_orchestrator,start_link,[]}},
        {restart_type,permanent},
        {shutdown,20},
        {child_type,worker}]


INFO REPORT  <5643.102.0>                                   2011-02-03
17:34:53
===============================================================================

ns_log: logging ns_port_server:0:Port server memcached on node
'ns_1@127.0.0.1' exited with status 64. Restarting. Messages: can't run
as root without the -u switch

INFO REPORT  <5643.102.0>                                   2011-02-03
17:34:53
===============================================================================

memcached<0.102.0>: can't run as root without the -u switch

ERROR REPORT  <5643.102.0>                                  2011-02-03
17:34:53
===============================================================================

** Generic server <5643.102.0> terminating 
** Last message in was {#Port<5643.1816>,{exit_status,64}}
** When Server state == {state,#Port<5643.1816>,memcached,
                              {["can't run as root without the -u
switch",
                                empty],
                               [empty]},

{ok,{1296772494086210,#Ref<5643.0.0.361>}},
                              ["can't run as root without the -u
switch"],
                              0}
** Reason for termination == 
** {abnormal,64}

CRASH REPORT  <5643.102.0>                                  2011-02-03
17:34:53
===============================================================================
Crashing
process                                                               
  initial_call
{ns_port_server,init,['Argument__1']}
  pid
<5643.102.0>
  registered_name
[]
  error_info
        {exit,{abnormal,64},
             [{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}
  ancestors
        [<5643.101.0>,ns_port_sup,ns_server_sup,ns_server_cluster_sup,
        <5643.51.0>]
  messages
[{'EXIT',#Port<5643.1816>,normal}]
  links
[<5643.101.0>]
  dictionary
[]
  trap_exit
true
  status
running
  heap_size
987
  stack_size
24
  reductions
944


INFO REPORT  <5643.101.0>                                   2011-02-03
17:34:53
===============================================================================

Cushion managed supervisor for memcached failed:  {abnormal,64}

INFO REPORT  <5643.101.0>                                   2011-02-03
17:34:53
===============================================================================

ns_log: logging supervisor_cushion:1:Service memcached exited on node
'ns_1@127.0.0.1' in 0.75s


PROGRESS REPORT  <5643.112.0>                               2011-02-03
17:34:53
===============================================================================
supervisor
{local,mnesia_sup}
started
        [{pid,<5643.113.0>},
        {name,mnesia_event},
        {mfargs,{mnesia_sup,start_event,[]}},
        {restart_type,permanent},
        {shutdown,30000},
        {child_type,worker}]


PROGRESS REPORT  <5643.114.0>                               2011-02-03
17:34:53
===============================================================================
supervisor
{local,mnesia_kernel_sup}
started
        [{pid,<5643.115.0>},
        {name,mnesia_monitor},
        {mfargs,{mnesia_monitor,start,[]}},
        {restart_type,permanent},
        {shutdown,3000},
        {child_type,worker}]


PROGRESS REPORT  <5643.114.0>                               2011-02-03
17:34:53
===============================================================================
supervisor
{local,mnesia_kernel_sup}
started
        [{pid,<5643.116.0>},
        {name,mnesia_subscr},
        {mfargs,{mnesia_subscr,start,[]}},
        {restart_type,permanent},
        {shutdown,3000},
        {child_type,worker}]


INFO REPORT  <5643.100.0>                                   2011-02-03
17:34:53
===============================================================================

ns_log: logging ns_port_server:0:Port server moxi on node
'ns_1@127.0.0.1' exited with status 64. Restarting. Messages: 2011-02-03
17:34:53: (memcached.c.4767) can't run as root without the -u switch

INFO REPORT  <5643.100.0>                                   2011-02-03
17:34:53
===============================================================================

moxi<0.100.0>: 2011-02-03 17:34:53: (memcached.c.4767) can't run as root
without the -u switch

ERROR REPORT  <5643.100.0>                                  2011-02-03
17:34:53
===============================================================================

** Generic server <5643.100.0> terminating 
** Last message in was {#Port<5643.1812>,{exit_status,64}}
** When Server state == {state,#Port<5643.1812>,moxi,
                              {["2011-02-03 17:34:53:
(memcached.c.4767) can't run as root without the -u switch",
                                empty],
                               [empty]},

{ok,{1296772494574583,#Ref<5643.0.0.377>}},
                              ["2011-02-03 17:34:53: (memcached.c.4767)
can't run as root without the -u switch"],
                              0}
** Reason for termination == 
** {abnormal,64}

CRASH REPORT  <5643.100.0>                                  2011-02-03
17:34:53
===============================================================================
Crashing
process                                                               
  initial_call
{ns_port_server,init,['Argument__1']}
  pid
<5643.100.0>
  registered_name
[]
  error_info
        {exit,{abnormal,64},
             [{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}
  ancestors
        [<5643.99.0>,ns_port_sup,ns_server_sup,ns_server_cluster_sup,
        <5643.51.0>]
  messages
[{'EXIT',#Port<5643.1812>,normal}]
  links
[<5643.99.0>]
  dictionary
[]
  trap_exit
true
  status
running
  heap_size
987
  stack_size
24
  reductions
1001


INFO REPORT  <5643.99.0>                                    2011-02-03
17:34:53
===============================================================================

Cushion managed supervisor for moxi failed:  {abnormal,64}

INFO REPORT  <5643.99.0>                                    2011-02-03
17:34:53
===============================================================================

ns_log: logging supervisor_cushion:1:Service moxi exited on node
'ns_1@127.0.0.1' in 1.35s
 

 

Top
  • Login or register to post comments
Thu, 02/03/2011 - 17:04
perry
Offline
Joined: 10/11/2010
Groups:

 Yes, that would certainly be the relevant section alright.

 

We purposefully disallow Membase from running as root (Moxi as well) to prevent any security issues.  It's a hold-over from some legacy stuff as well.

 

You should be able to run it as any other user with success.  Make sure you set the appropriate rlimit as well (http://forums.membase.org/thread/servererror-proxy-write-downstream-1)

 

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