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

Error messages while performing Couchbase upgrade

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0.0
    • 4.0.0
    • tools
    • Security Level: Public
    • None
    • Untriaged
    • Ubuntu 64-bit
    • Unknown

    Description

      Tried upgrading Couchbase from v400-1927 to v400-2046. Though the cluster node was upgraded but I saw this failure

      1d [abhishek@galleon:/opt/couchbase/bin] $ sudo /etc/init.d/couchbase-server stop
       * Stopped couchbase-server
      1d [abhishek@galleon:/opt/couchbase/bin] 28s $
      1d [abhishek@galleon:/home/abhishek] 3s 1 $ sudo dpkg -i couchbase-server-enterprise_4.0.0-2046-ubuntu14.04_amd64.deb 
      [sudo] password for abhishek: 
      (Reading database ... 107424 files and directories currently installed.)
      Preparing to unpack couchbase-server-enterprise_4.0.0-2046-ubuntu14.04_amd64.deb ...
       * Failed to stop couchbase-server
      libssl1.0.0 is installed. Continue installing
      Warning: Swappiness is not set to 0.
      Please look at http://bit.ly/1hTySfg as for how to PERMANENTLY alter this setting.
      Minimum RAM required  : 4 GB
      System RAM configured : 157.39 GB
       
      Minimum number of processors required : 4 cores
      Number of processors on the system    : 24 cores
      Upgrading previous couchbase ... (4.0.0-1927-1)
      Stopping previous couchbase ... (4.0.0-1927-1)
       * Failed to stop couchbase-server
      Saving previous couchbase config.dat ...
      Cleaning symlinks ...
      Unpacking couchbase-server (4.0.0-2046-1) over (4.0.0-1927-1) ...
      Setting up couchbase-server (4.0.0-2046-1) ...
      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.debsave
      Target node: ns_1@127.0.0.1
      Upgrading from 2.0
       
      Couchbase should not be running.
        Please use: /etc/init.d/couchbase-server stop
       
      Database dir: /raid1/couchbase
       
      Buckets to upgrade: webnutshell,supportal,phonehome
       
      Checking disk space available for buckets in directory:
        /raid1/couchbase
        Free disk bucket space wanted: 0.0
        Free disk bucket space available: 825846603776
        Free disk space factor: 2.0
        Ok.
       
      Analysis complete.
       
      Copying /opt/couchbase/var/lib/couchbase/config/config.dat.debsave
          cp /opt/couchbase/var/lib/couchbase/config/config.dat.debsave /opt/couchbase/bin/install/../../var/lib/couchbase/config/config.dat
      Copying /opt/couchbase/bin/install/../../etc/couchdb/local.ini.debsave
          cp /opt/couchbase/bin/install/../../etc/couchdb/local.ini.debsave /opt/couchbase/bin/install/../../etc/couchdb/local.ini
      Ensuring bucket data directories.
      Ensuring bucket data directory: /raid1/couchbase/webnutshell
          mkdir -p /raid1/couchbase/webnutshell
      Ensuring bucket data directory: /raid1/couchbase/supportal
          mkdir -p /raid1/couchbase/supportal
      Ensuring bucket data directory: /raid1/couchbase/phonehome
          mkdir -p /raid1/couchbase/phonehome
      Ensuring dbdir owner/group: /raid1/couchbase
          chown -R couchbase:couchbase /raid1/couchbase
      Ensuring dbdir owner/group: /opt/couchbase/var/lib/couchbase/data
          chown -R couchbase:couchbase /opt/couchbase/var/lib/couchbase/data
      Upgrading buckets.
      Traceback (most recent call last):
        File "/opt/couchbase/bin/install/cbupgrade", line 572, in <module>
          main()
        File "/opt/couchbase/bin/install/cbupgrade", line 567, in main
          dbdir, buckets, dry_run=dry_run)
        File "/opt/couchbase/bin/install/cbupgrade", line 206, in upgrade
          convert_sqlite_wal(bucket_dir_old, bucket)
        File "/opt/couchbase/bin/install/cbupgrade", line 267, in convert_sqlite_wal
          run_sql(sqlite, bucket_file, "PRAGMA wal_checkpoint(FULL)")
        File "/opt/couchbase/bin/install/cbupgrade", line 276, in run_sql
          stderr=subprocess.PIPE)
        File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
          errread, errwrite)
        File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
          raise child_exception
      OSError: [Errno 13] Permission denied
      dpkg: error processing package couchbase-server (--install):
       subprocess installed post-installation script returned error exit status 1
      Processing triggers for ureadahead (0.100.0-16) ...
      Errors were encountered while processing:
       couchbase-server
      

      cbcollect(after upgrade): https://s3.amazonaws.com/customers.couchbase.com/couchbase/out_1431056756.zip

      Attachments

        For Gerrit Dashboard: MB-14869
        # Subject Branch Project Status CR V

        Activity

          People

            bcui Bin Cui (Inactive)
            asingh Abhishek Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty