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

Init script broken on CentOS 6.6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 3.0.3
    • 3.0.1
    • build
    • Security Level: Public
    • CentOS 6.6, Couchbase-server-enterprise 3.0.1
    • Untriaged
    • Unknown

    Description

      The /etc/init.d/couchbase-server script to manage starting/stopping/status of Couchbase server on CentOS fails on CentOS 6.6:

      [root@rgco66 ~]# service couchbase-server start
      Starting couchbase-server/usr/bin/dirname: extra operand `2>&1.pid'
      Try `/usr/bin/dirname --help' for more information.
      [ OK ]

      [root@rgco66 ~]# service couchbase-server stop
      Stopping couchbase-server/usr/bin/dirname: extra operand `-k.pid'
      Try `/usr/bin/dirname --help' for more information.
      [ OK ]

      Despite these error messages Couchbase is running:
      [root@rgco66 ~]# service couchbase-server status
      couchbase-server is running

      and also initialising the server via the CLI works Ok:
      [root@rgco66 ~]# /opt/couchbase/bin/couchbase-cli cluster-init -c 127.0.0.1:8091 -u Administrator -p admin123 --cluster-init-ramsize=256
      SUCCESS: init 127.0.0.1

      On CentOS 6.5 it does not give these error messages. But a quick look shows that the root cause in the init script was already present (additional parameter (-k and 2>&1) to daemon function), only it now shows up due to a change in /etc/init.d/functions in CentOS 6.6.
      Attached is the output of /etc/init.d/couchbase-server start|stop on both 6.5 and 6.6, with tracing via 'set -x'.

      Attachments

        1. 172.23.121.63_centos6.6_303.1711.zip
          1.03 MB
        2. start.CentOS65.txt
          4 kB
        3. start.CentOS66.txt
          5 kB
        4. stop.CentOS65.txt
          2 kB
        5. stop.CentOS66.txt
          3 kB

        Issue Links

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

          Activity

            People

              hari.kodungallur hari kodungallur (Inactive)
              penacho Robert Groenenberg
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty