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

Upgrade on a non-kv node fails

    XMLWordPrintable

Details

    • Untriaged
    • Unknown

    Description

      Build : 6.5.0-3274

      Upgrading from 6.0.0 to 6.5.0-3274 on a non-KV node fails with the following error:

      root@deb91-qe:/tmp# dpkg -i couchbase-server-enterprise_6.5.0-3274-debian9_amd64.deb
      (Reading database ... 41611 files and directories currently installed.)
      Preparing to unpack couchbase-server-enterprise_6.5.0-3274-debian9_amd64.deb ...
      cp: cannot stat '/opt/couchbase/var/lib/couchbase/ip': No such file or directory
      Minimum RAM required  : 4 GB
      System RAM configured : 3.85 GB
       
      Minimum number of processors required : 4 cores
      Number of processors on the system    : 4 cores
      Upgrading previous couchbase ... (6.0.0-1693-1)
      Saving previous couchbase config.dat ...
      Cleaning symlinks ...
      Unpacking couchbase-server (6.5.0-3274-1) over (6.0.0-1693-1) ...
      Setting up couchbase-server (6.5.0-3274-1) ...
      Upgrading couchbase-server ...
        /opt/couchbase/bin/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
       
      Couchbase should not be running.
        Please use: /etc/init.d/couchbase-server stop
       
      Database dir: /opt/couchbase/var/lib/couchbase/data
       
      Buckets to upgrade: beer-sample
       
      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: 31060766720
        Free disk space factor: 2.0
        Ok.
       
      Analysis complete.
       
      Upgrading existing datafiles to be namespace compatible.
      warning this may take time if not already done
      Namespace upgrade: bucket beer-sample
      Traceback (most recent call last):
        File "/opt/couchbase/lib/python/cbupgrade", line 499, in <module>
          main()
        File "/opt/couchbase/lib/python/cbupgrade", line 492, in main
          upgradeForKVNamespace(bin_dir, dbdir, buckets, dry_run=dry_run)
        File "/opt/couchbase/lib/python/cbupgrade", line 204, in upgradeForKVNamespace
          for filename in os.listdir(bucketDir):
      FileNotFoundError: [Errno 2] No such file or directory: '/opt/couchbase/var/lib/couchbase/data/beer-sample'
      dpkg: error processing package couchbase-server (--install):
       subprocess installed post-installation script returned error exit status 1
      Errors were encountered while processing:
       couchbase-server
      

      Steps used :
      1. Setup a 6.0.0 2-node cluster. NodeA is running KV, and NodeB is running Analytics.
      2. Install a beer-sample bucket and create and Analytics dataset, and connect link Local.
      3. Perform an offline upgrade on both the nodes.
      4. Upgrade on nodeA will go through. Upgrade on nodeB will fail with the above error.

      Attachments

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

        Activity

          People

            mihir.kamdar Mihir Kamdar (Inactive)
            mihir.kamdar Mihir Kamdar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty