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

ubuntu 10 & 12.04 32-bit unable to upgrade 1.8.1 to 2.0 latest build ( 1969 ) because cbtransfer is unable to open database file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0
    • None
    • installer, tools
    • Security Level: Public
    • None

    Description

      ubuntu@domU-12-31-39-09-A0-B2:/tmp$ dpkg -i couchbase-server-community_x86_2.0.0-1969-rel.deb
      dpkg: error: requested operation requires superuser privilege
      ubuntu@domU-12-31-39-09-A0-B2:/tmp$ sudo dpkg -i couchbase-server-community_x86_2.0.0-1969-rel.deb
      (Reading database ... 31731 files and directories currently installed.)
      Preparing to replace couchbase-server 1.8.1 (using couchbase-server-community_x86_2.0.0-1969-rel.deb) ...

      =INFO REPORT==== 30-Nov-2012::22:33:23 ===
      Initiated server shutdown** at node ns_1@127.0.0.1 **

      =INFO REPORT==== 30-Nov-2012::22:33:33 ===
      Stopped ns_server application** at node ns_1@127.0.0.1 **

      • Stopped couchbase-server
        No packages found matching libssl0.9.8.
        Installing cannot proceed since the package 'libssl0.9.8' is missing.
        Please install libssl0.9.8 and try again.

      $sudo apt-get install libssl0.9.8

      You can also restart couchbase as follows:

      $sudo /etc/init.d/couchbase-server start

      dpkg: error processing couchbase-server-community_x86_2.0.0-1969-rel.deb (--install):
      subprocess new pre-installation script returned error exit status 1
      Errors were encountered while processing:
      couchbase-server-community_x86_2.0.0-1969-rel.deb
      ubuntu@domU-12-31-39-09-A0-B2:/tmp$ cat /opt/couchbase/VERSION.txt
      1.8.1-937-rel
      ubuntu@domU-12-31-39-09-A0-B2:/tmp$ sudo dpkg -i couchbase-server-community_x86_2.0.0-1969-rel.deb sudo apt-get install libssl0.9.8^C
      ubuntu@domU-12-31-39-09-A0-B2:/tmp$ sudo apt-get install libssl0.9.8
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following NEW packages will be installed:
      libssl0.9.8
      0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
      Need to get 868 kB of archives.
      After this operation, 2,270 kB of additional disk space will be used.
      Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates/universe libssl0.9.8 i386 0.9.8o-7ubuntu3.1 [868 kB]
      Fetched 868 kB in 0s (1,938 kB/s)
      Preconfiguring packages ...
      Selecting previously unselected package libssl0.9.8.
      (Reading database ... 31731 files and directories currently installed.)
      Unpacking libssl0.9.8 (from .../libssl0.9.8_0.9.8o-7ubuntu3.1_i386.deb) ...
      Setting up libssl0.9.8 (0.9.8o-7ubuntu3.1) ...
      Processing triggers for libc-bin ...
      ldconfig deferred processing now taking place
      ubuntu@domU-12-31-39-09-A0-B2:/tmp$ sudo dpkg -i couchbase-server-community_x86_2.0.0-1969-rel.deb
      (Reading database ... 31755 files and directories currently installed.)
      Preparing to replace couchbase-server 1.8.1 (using couchbase-server-community_x86_2.0.0-1969-rel.deb) ...

      • Failed to stop couchbase-server
        libssl0.9.8 is installed. Continue installing
        Upgrading previous couchbase ... (1.8.1)
        Stopping previous couchbase ... (1.8.1)
      • Failed to stop couchbase-server
        Saving previous couchbase config.dat ...
        Cleaning symlinks ...
        Unpacking replacement couchbase-server ...
        Setting up couchbase-server (2.0.0) ...
        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.
        Upgrading your Couchbase Server to 2.0.0-1969-rel.
        The upgrade process might take awhile.
        Analysing...
        Previous config.dat file is /opt/couchbase/var/lib/couchbase/config/config.dat.debsave
        Target node: ns_1@127.0.0.1

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

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

      Buckets to upgrade: default,crap

      Checking disk space available for buckets in directory:
      /opt/couchbase/var/lib/couchbase/data
      Free disk bucket space wanted: 528068608.0
      Free disk bucket space available: 6384177152
      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
      Ensuring bucket data directories.
      Ensuring bucket data directory: /opt/couchbase/var/lib/couchbase/data/default
      mkdir -p /opt/couchbase/var/lib/couchbase/data/default
      Ensuring bucket data directory: /opt/couchbase/var/lib/couchbase/data/crap
      mkdir -p /opt/couchbase/var/lib/couchbase/data/crap
      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.
      Upgrading bucket: default
      /opt/couchbase/bin/install/../cbtransfer /opt/couchbase/var/lib/couchbase/data/default-data/default couchstore-files:///opt/couchbase/var/lib/couchbase/data -b default --source-vbucket-state=active --destination-vbucket-state=active
      cbdbupgrade pid: 3463
      cbdbupgrade err: 139
      ERROR: upgrade failed for bucket: default
      dpkg: error processing couchbase-server (--install):
      subprocess installed post-installation script returned error exit status 1
      Processing triggers for ureadahead ...
      Errors were encountered while processing:
      couchbase-server
      ubuntu@domU-12-31-39-09-A0-B2:/tmp$ /opt/couchbase/bin/install/../cbtransfer /opt/couchbase/var/lib/couchbase/data/default-data/default couchstore-files:///opt/couchbase/var/lib/couchbase/data -b default --source-vbucket-state=active --destination-vbucket-state=active
      2012-11-30 22:35:50,229: mt error: could not access user_version from: /opt/couchbase/var/lib/couchbase/data/default-data/default; exception: unable to open database file; perhaps it is being used by another program like couchbase-server
      error: unknown type of source: /opt/couchbase/var/lib/couchbase/data/default-data/default
      ubuntu@domU-12-31-39-09-A0-B2:/tmp$ /opt/couchbase/bin/install/../cbtransfer /opt/couchbase/var/lib/couchbase/data/default-data/default couchstore-files:///opt/couchbase/var/lib/couchbase/data -b default --source-vbucket-state=active --destination-vbucket-state=active^C
      ubuntu@domU-12-31-39-09-A0-B2:/tmp$ top

      Attachments

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

        Activity

          People

            steve Steve Yen
            farshid Farshid Ghods (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty