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

[system test] offline upgrade from 2.0.0 to 2.0.1 using hostname failed to copy back ip_start file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2.0.1
    • 2.0
    • None
    • Security Level: Public
    • None
    • centos 5.x 64bit

    Description

      Offline upgrade from 2.0.0 to 2.0.1 using hostname failed to copy back ip_start file

      Before upgrade, add hostname to ip and ip_start file

      [root@cen-2501 ~]# more /opt/couchbase/var/lib/couchbase/ip
      cen-2501.hq.couchbase.com
      [root@cen-2501 ~]# more /opt/couchbase/var/lib/couchbase/ip_start
      cen-2501.hq.couchbase.com

      Then after offline upgrade, instead of copying ip file to ip_start file, upgrade process create an empty ip_start file

      [root@cen-2501 ~]# rpm -U couchbase-server-enterprise_x86_64_2.0.1-154-rel.rpm
      Stopping couchbase-server ...
      Stopping couchbase-server
      Minimum RAM required : 4 GB
      System RAM configured : 4043664 kB

      Minimum number of processors required : 4 cores
      Number of processors on the system : 4 cores

      warning: /opt/couchbase/var/lib/couchbase/ip_start saved as /opt/couchbase/var/lib/couchbase/ip_start.rpmorig
      Upgrading couchbase-server ...
      /opt/couchbase/bin/install/cbupgrade -c /opt/couchbase/var/lib/couchbase/config -a yes
      Automatic mode: running without interactive questions or confirmations.
      Analysing...
      Previous config.dat file is /opt/couchbase/var/lib/couchbase/config/config.dat
      Target node: ns_1@cen-2501.hq.couchbase.com
      Upgrading from 2.0

      Couchbase should not be running.
      Please use: /etc/init.d/couchbase-server stop

      Database dir: /opt/couchbase/var/lib/couchbase/data

      Buckets to upgrade: sasl,default

      Checking disk space available for buckets in directory:
      /opt/couchbase/var/lib/couchbase/data
      Free disk bucket space wanted: 0.0
      Free disk bucket space available: 12141264896
      Free disk space factor: 2.0
      Ok.

      Analysis complete.

      Copying /opt/couchbase/var/lib/couchbase/config/config.dat
      cp /opt/couchbase/var/lib/couchbase/config/config.dat /opt/couchbase/bin/install/../../var/lib/couchbase/config/config.dat
      Copying /opt/couchbase/var/lib/couchbase/ip
      cp /opt/couchbase/var/lib/couchbase/ip /opt/couchbase/bin/install/../../var/lib/couchbase/ip
      Copying /opt/couchbase/etc/couchdb/local.ini
      cp /opt/couchbase/etc/couchdb/local.ini /opt/couchbase/bin/install/../../etc/couchdb/local.ini
      Ensuring bucket data directories.
      Ensuring bucket data directory: /opt/couchbase/var/lib/couchbase/data/sasl
      mkdir -p /opt/couchbase/var/lib/couchbase/data/sasl
      Ensuring bucket data directory: /opt/couchbase/var/lib/couchbase/data/default
      mkdir -p /opt/couchbase/var/lib/couchbase/data/default
      Ensuring dbdir owner/group: /opt/couchbase/var/lib/couchbase/data
      chown -R couchbase:couchbase /opt/couchbase/var/lib/couchbase/data
      Ensuring dbdir owner/group: /opt/couchbase/var/lib/couchbase/data
      chown -R couchbase:couchbase /opt/couchbase/var/lib/couchbase/data
      Upgrading buckets.
      Skipping already converted bucket: /opt/couchbase/var/lib/couchbase/data/sasl
      Skipping already converted bucket: /opt/couchbase/var/lib/couchbase/data/default

      Done.
      Starting couchbase-server[ OK ]

      You have successfully installed Couchbase Server.
      Please browse to http://cen-2501:8091/ to configure your server.
      Please refer to http://couchbase.com for additional resources.

      Please note that you have to update your firewall configuration to
      allow connections to the following ports: 11211, 11210, 11209, 4369,
      8091, 8092 and from 21100 to 21299.

      By using this software you agree to the End User License Agreement.
      See /opt/couchbase/LICENSE.txt.

      Stopping couchbase-serverNOTE: shutdown failed

      {badrpc,nodedown}

      [root@cen-2501 ~]# more /opt/couchbase/var/lib/couchbase/ip
      cen-2501.hq.couchbase.com
      [root@cen-2501 ~]# more /opt/couchbase/var/lib/couchbase/ip_start

      Attachments

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

        Activity

          People

            bcui Bin Cui (Inactive)
            thuan Thuan Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty