Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-7586

start in first time and shutdown CB failed when use fake hostname instead of IP: ** System running to use fully qualified hostnames ** ** Hostname H_N is illegal **

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Major
    • None
    • 2.0.1
    • installer, ns_server
    • Security Level: Public
    • None
    • centos 64

    Description

      build 140

      steps according to http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-bestpractice-cloud-ip.html:
      1. node 10.3.121.117 with undefined domain name hostname: localhost.localdomain
      2. stop cb:
      [root@localhost ~]# sudo /etc/init.d/couchbase-server stop
      Stopping couchbase-server
      =INFO REPORT==== 23-Jan-2013::04:34:58 ===
      Initiated server shutdown** at node ns_1@127.0.0.1 **

      =INFO REPORT==== 23-Jan-2013::04:35:04 ===
      Stopped ns_server application** at node ns_1@127.0.0.1 **

      [root@localhost ~]# cat /opt/couchbase/VERSION.txt
      2.0.1-140-rel

      3. Edited the start() function in the script located at /opt/couchbase/bin/couchbase-server
      Under the line that reads:
      -run ns_bootstrap – \
      Added a new line that reads:
      -name ns_1@hostname5 \

      [root@localhost ~]# sudo vim /opt/couchbase/bin/couchbase-server

      4. added /opt/couchbase/var/lib/couchbase/ip
      [root@localhost ~]# vim /opt/couchbase/var/lib/couchbase/ip
      [root@localhost ~]# cat /opt/couchbase/var/lib/couchbase/ip
      hostname5

      5. removed files
      [root@localhost ~]# rm -rf /opt/couchbase/var/lib/couchbase/data/*
      [root@localhost ~]# rm -rf /opt/couchbase/var/lib/couchbase/mnesia/*
      [root@localhost ~]# rm -rf /opt/couchbase/var/lib/couchbase/config/config.dat

      6.start cb
      [root@localhost ~]# sudo /etc/init.d/couchbase-server start
      Starting couchbase-server [ OK ]

      7. added '127.0.0.1 hostname5' in /etc/hosts
      [root@localhost ~]# vim /etc/hosts

      RESULT: couchbase was not started correctly. it was started only when I added 'hostname5' in /etc/hosts
      [root@localhost ~]# ps -ef| grep couchbase
      500 22281 1 0 05:01 ? 00:00:00 /opt/couchbase/lib/erlang/erts-5.8.5/bin/epmd -daemon
      root 22335 22129 0 05:03 pts/1 00:00:00 grep couchbase

      8.kill erl
      [root@localhost ~]# kill -9 22281

      9. start cb in second time:
      [root@localhost ~]# sudo /etc/init.d/couchbase-server start
      Starting couchbase-server [ OK ]
      [root@localhost ~]# ps -ef| grep couchbase
      500 22355 1 0 05:03 ? 00:00:00 /opt/couchbase/lib/erlang/erts-5.8.5/bin/epmd -daemon
      500 22373 1 46 05:04 ? 00:00:25 /opt/couchbase/lib/erlang/erts-5.8.5/bin/beam.smp -A 16 -sbt u -P 327680 -K true -MMmcs 30 – -root /opt/couchbase/lib/erlang -progname erl – -home /home/couchbase – -smp enable -setcookie nocookie -kernel inet_dist_listen_min 21100 inet_dist_listen_max 21299 error_logger false -sasl sasl_error_logger false -noshell -noinput -noshell -noinput -run ns_bootstrap – -name ns_1@hostname5 -couch_ini /opt/couchbase/etc/couchdb/default.ini /opt/couchbase/etc/couchdb/default.d/capi.ini /opt/couchbase/etc/couchdb/default.d/geocouch.ini /opt/couchbase/etc/couchdb/local.ini -ns_server config_path "/opt/couchbase/etc/couchbase/static_config" -ns_server pidfile "/opt/couchbase/var/lib/couchbase/couchbase-server.pid" -ns_server nodefile "/opt/couchbase/var/lib/couchbase/couchbase-server.node" -ns_server cookiefile "/opt/couchbase/var/lib/couchbase/couchbase-server.cookie" -ns_server enable_mlockall true
      500 22399 22373 0 05:04 ? 00:00:00 /opt/couchbase/lib/erlang/lib/os_mon-2.2.7/priv/bin/memsup
      500 22401 22373 0 05:04 ? 00:00:00 /opt/couchbase/lib/erlang/lib/os_mon-2.2.7/priv/bin/cpu_sup
      500 22402 22373 0 05:04 ? 00:00:00 /opt/couchbase/lib/erlang/lib/ssl-4.1.6/priv/bin/ssl_esock
      500 22425 22373 10 05:04 ? 00:00:02 /opt/couchbase/bin/memcached -X /opt/couchbase/lib/memcached/stdin_term_handler.so -X /opt/couchbase/lib/memcached/file_logger.so,cyclesize=104857600;sleeptime=19;filename=/opt/couchbase/var/lib/couchbase/logs/memcached.log -l 0.0.0.0:11210,0.0.0.0:11209:1000 -p 11210 -E /opt/couchbase/lib/memcached/bucket_engine.so -B binary -r -c 10000 -e admin=_admin;default_bucket_name=default;auto_create=false
      500 22448 22373 0 05:04 ? 00:00:00 /opt/couchbase/bin/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
      root 22457 22129 0 05:04 pts/1 00:00:00 grep couchbase

      OBSERVATION: now it's fine, host name is set correctly in erlang command start (-name ns_1@hostname5)

      10. try to stop cb
      [root@localhost ~]# sudo /etc/init.d/couchbase-server stop
      Stopping couchbase-serverNOTE: shutdown failed

      {badrpc,nodedown}

      =ERROR REPORT==== 23-Jan-2013::05:05:02 ===

        • System running to use fully qualified hostnames **
        • Hostname hostname5 is illegal **

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            alkondratenko Aleksey Kondratenko (Inactive)
            andreibaranouski Andrei Baranouski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty