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

Upgrade fails : Namespace upgrade: upgradeCallback couchstore_open_doc_with_docinfo errcode:-5



    • Triaged
    • Unknown
    • KV-Engine Mad-Hatter GA


      With the data generated by FuzzyTestGenerator, upgrade from 5.5.5/5.5.6 to 6.5.0 shows errors. The bucket remains in warmup state forever.

      Steps followed:

      • Cleaned up the machine including /opt/couchbase
      • Setup one cluster with 5.5.6-4730 with services kv,n1ql,index
      • Create a bucket
      • Load documents using the attached exported docs (using cbimport). This dataset is generated by FuzzyTestGenerator
      • Upgrade to 6.5.0-4821 with command:
      • rpm -U couchbase-server-enterprise-6.5.0-4821-centos7.x86_64.rpm

      Upgrade from 5.5.6-4730 to 6.5.0-4821 errored out with below with the message "You have successfully installed Couchbase Server":

      [root@localhost tmp]# rpm -U couchbase-server-enterprise-6.5.0-4821-centos7.x86_64.rpm 
      Minimum RAM required  : 4 GB
      System RAM configured : 4.07 GB
      Minimum number of processors required : 4 cores
      Number of processors on the system    : 4 cores
      Upgrading couchbase-server ...
        /opt/couchbase/bin/cbupgrade -c /opt/couchbase/var/lib/couchbase/config -a yes 
      Automatic mode: running without interactive questions or confirmations.
      Previous config.dat file is /opt/couchbase/var/lib/couchbase/config/config.dat
      Database dir: /opt/couchbase/var/lib/couchbase/data
      Buckets to upgrade: default
      Checking disk space available for buckets in directory:
        Free disk bucket space wanted: 57344.0
        Free disk bucket space available: 22704865280
        Free disk space factor: 2.0
      Analysis complete.
      Upgrading existing datafiles to be namespace compatible for 1 bucket
      warning this may take time if not already done
      Namespace upgrade: bucket default /opt/couchbase/var/lib/couchbase/data/default
      Namespace upgrade: bucket default files to process 1024
      Namespace upgrade of file: /opt/couchbase/var/lib/couchbase/data/default/899.couch.3
          /opt/couchbase/bin/couchfile_upgrade --input /opt/couchbase/var/lib/couchbase/data/default/899.couch.3 --output /opt/couchbase/var/lib/couchbase/data/default/899.couch.4 --tolerate
      ERROR: problem executing `/opt/couchbase/bin/couchfile_upgrade --input /opt/couchbase/var/lib/couchbase/data/default/899.couch.3 --output /opt/couchbase/var/lib/couchbase/data/default/899.couch.4 --tolerate` RC: 1, STDOUT: Input:/opt/couchbase/var/lib/couchbase/data/default/899.couch.3
      exit(0) for already upgraded files
      , STDERR: An exception occurred: InputCouchFile::upgradeCallback couchstore_open_doc_with_docinfo errcode:-5
      Terminating with exit code 1
      warning: %post(couchbase-server-6.5.0-4821.x86_64) scriptlet failed, exit status 1
      You have successfully installed Couchbase Server.
      Please browse to http://localhost.localdomain:8091/ to configure your server.
      Refer to http://docs.couchbase.com for additional resources.
      Please note that you have to update your firewall configuration to
      allow external connections to a number of network ports for full
      operation. Refer to the documentation for the current list:
      By using this software you agree to the End User License Agreement.
      See /opt/couchbase/LICENSE.txt.
      [root@localhost tmp]# 

      Won't be able to see the documents after upgrade.


        1. 994.couch.2
          4 kB
          Girish Benakappa
        2. backup.tar
          51.01 MB
          Girish Benakappa
        3. logs.tar
          39.41 MB
          Girish Benakappa
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.



            girish.benakappa Girish Benakappa
            girish.benakappa Girish Benakappa
            0 Vote for this issue
            4 Start watching this issue



              Gerrit Reviews

                There are no open Gerrit changes