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

Relocatable RPM breaks cbbackup (and maybe others)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1
    • Component/s: installer
    • Security Level: Public
    • Labels:

      Description

      Install Couchbase into non-default directory using relocatable RPM instructions.

      root@localhost ~]# /var/opt/couchbase/bin/cbbackup -h
      Error: could not import sqlite3 module

      (reinstalling into default directory is confirmed to work)

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

        Activity

        Hide
        bcui Bin Cui added a comment -

        Test on 10.1.3.77, centos 5.4

        -bash-3.2$ sudo rpm -ivv --relocate /opt/couchbase=/tmp/opt/couchbase couchbase-server-community_x86_64_2.0.1-158-rel.rpm

        -bash-3.2$ /tmp/opt/couchbase/bin/cbbackup -h
        usage: cbbackup [options] source backup_dir

        Online backup of a couchbase cluster or server node.

        Examples:
        cbbackup http://HOST:8091 /backups/backup-42
        cbbackup couchbase://HOST:8091 /backups/backup-42

        options:
        -h, --help show this help message and exit
        -b BUCKET_SOURCE, --bucket-source=BUCKET_SOURCE
        single bucket from source to backup
        --single-node use a single server node from the source only,
        ....

        Show
        bcui Bin Cui added a comment - Test on 10.1.3.77, centos 5.4 -bash-3.2$ sudo rpm -ivv --relocate /opt/couchbase=/tmp/opt/couchbase couchbase-server-community_x86_64_2.0.1-158-rel.rpm -bash-3.2$ /tmp/opt/couchbase/bin/cbbackup -h usage: cbbackup [options] source backup_dir Online backup of a couchbase cluster or server node. Examples: cbbackup http://HOST:8091 /backups/backup-42 cbbackup couchbase://HOST:8091 /backups/backup-42 options: -h, --help show this help message and exit -b BUCKET_SOURCE, --bucket-source=BUCKET_SOURCE single bucket from source to backup --single-node use a single server node from the source only, ....
        Hide
        perry Perry Krug added a comment -

        Bin, I'm able to reproduce this consistently on my VM which is running CentOS 5.8:
        [root@localhost ~]# rpm -ivh couchbase-server-enterprise_x86_64_2.0.0.rpm --relocate /opt/couchbase=/var/opt/couchbase
        Preparing... ########################################### [100%]
        1:couchbase-server ########################################### [100%]
        tar: /opt/couchbase/lib/python/pysqlite2_24.tar: Cannot open: No such file or directory
        tar: Error is not recoverable: exiting now
        tar: /opt/couchbase/lib/python/ctypes.tar: Cannot open: No such file or directory
        tar: Error is not recoverable: exiting now
        Starting couchbase-server[ OK ]

        You have successfully installed Couchbase Server.
        Please browse to http://localhost.localdomain: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 and from 21100 to 21299.

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

        [root@localhost ~]# /var/opt/couchbase/bin/cbbackup
        Error: could not import sqlite3 module
        [root@localhost ~]# uname -a
        Linux localhost.localdomain 2.6.18-308.11.1.el5 #1 SMP Tue Jul 10 08:48:43 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
        [root@localhost ~]# more /etc/issue
        CentOS release 5.8 (Final)
        Kernel \r on an \m

        Looks like there was a problem with the initial installation...perhaps that's what's causing this? I am working with the 2.0 GA.

        Show
        perry Perry Krug added a comment - Bin, I'm able to reproduce this consistently on my VM which is running CentOS 5.8: [root@localhost ~] # rpm -ivh couchbase-server-enterprise_x86_64_2.0.0.rpm --relocate /opt/couchbase=/var/opt/couchbase Preparing... ########################################### [100%] 1:couchbase-server ########################################### [100%] tar: /opt/couchbase/lib/python/pysqlite2_24.tar: Cannot open: No such file or directory tar: Error is not recoverable: exiting now tar: /opt/couchbase/lib/python/ctypes.tar: Cannot open: No such file or directory tar: Error is not recoverable: exiting now Starting couchbase-server[ OK ] You have successfully installed Couchbase Server. Please browse to http://localhost.localdomain: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 and from 21100 to 21299. By using this software you agree to the End User License Agreement. See /var/opt/couchbase/LICENSE.txt. [root@localhost ~] # /var/opt/couchbase/bin/cbbackup Error: could not import sqlite3 module [root@localhost ~] # uname -a Linux localhost.localdomain 2.6.18-308.11.1.el5 #1 SMP Tue Jul 10 08:48:43 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux [root@localhost ~] # more /etc/issue CentOS release 5.8 (Final) Kernel \r on an \m Looks like there was a problem with the initial installation...perhaps that's what's causing this? I am working with the 2.0 GA.
        Hide
        bcui Bin Cui added a comment -

        There is a bug MB-7349 to fix the relocate bug in 2.0GA. The fix is in 2.0.1 only, unless we need a hot fix for 2.0

        Show
        bcui Bin Cui added a comment - There is a bug MB-7349 to fix the relocate bug in 2.0GA. The fix is in 2.0.1 only, unless we need a hot fix for 2.0
        Hide
        perry Perry Krug added a comment -

        Thanks Bin, 2.0.1 is fine.

        Show
        perry Perry Krug added a comment - Thanks Bin, 2.0.1 is fine.

          People

          • Assignee:
            bcui Bin Cui
            Reporter:
            perry Perry Krug
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes