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

cbworkloadgen failed to run in centos6 3.0.0-577

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Test Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Component/s: tools
    • Security Level: Public
    • Labels:
      None
    • Environment:
      centos 6.4 64 bit
    • Triage:
      Triaged
    • Operating System:
      Centos 64-bit
    • Is this a Regression?:
      Unknown

      Description

      Install couchbase server for centos6 3.0.0-577

      run cbworkloadgen, got error

      [root@centos-64-x64 ~]# /opt/couchbase/bin/cbworkloadgen 10.3.4.234:8091
      Traceback (most recent call last):
      File "/opt/couchbase/lib/python/couchstore.py", line 26, in <module>
      _lib = ctypes.CDLL(lib)
      File "/usr/lib64/python2.6/ctypes/_init.py", line 353, in __init_
      self._handle = _dlopen(self._name, mode)
      OSError: libcouchstore-1.dll: cannot open shared object file: No such file or directory

      Even in help option

      [root@centos-64-x64 ~]# /opt/couchbase/bin/cbworkloadgen --help
      Traceback (most recent call last):
      File "/opt/couchbase/lib/python/couchstore.py", line 26, in <module>
      _lib = ctypes.CDLL(lib)
      File "/usr/lib64/python2.6/ctypes/_init.py", line 353, in __init_
      self._handle = _dlopen(self._name, mode)
      OSError: libcouchstore-1.dll: cannot open shared object file: No such file or directory

      binary used couchbase-server-enterprise_centos6_x86_64_3.0.0-577-rel.rpm

      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 -

        looks like either couchstore.py is not included or couchstore library is not built correctly. It is something related to project makefile change.

        Show
        bcui Bin Cui added a comment - looks like either couchstore.py is not included or couchstore library is not built correctly. It is something related to project makefile change.
        Hide
        pavelpaulau Pavel Paulau added a comment -

        It actually fails to find "libcouchstore.so" but reports the last lib from this list:

        https://github.com/couchbaselabs/couchstore/blob/master/python/couchstore.py#L21

        This is what I can find in cbworkloadgen "path":

        ['/opt/couchbase/lib/python',
        '/usr/lib/python2.6/site-packages/virtualenv-1.11.2-py2.6.egg',
        '/opt/couchbase/lib/python',
        '/usr/lib64/python26.zip',
        '/usr/lib64/python2.6',
        '/usr/lib64/python2.6/plat-linux2',
        '/usr/lib64/python2.6/lib-tk',
        '/usr/lib64/python2.6/lib-old',
        '/usr/lib64/python2.6/lib-dynload',
        '/usr/lib64/python2.6/site-packages',
        '/usr/lib/python2.6/site-packages',
        '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info']

        Apparently "/opt/couchbase/lib/" is missing here.

        Show
        pavelpaulau Pavel Paulau added a comment - It actually fails to find "libcouchstore.so" but reports the last lib from this list: https://github.com/couchbaselabs/couchstore/blob/master/python/couchstore.py#L21 This is what I can find in cbworkloadgen "path": ['/opt/couchbase/lib/python', '/usr/lib/python2.6/site-packages/virtualenv-1.11.2-py2.6.egg', '/opt/couchbase/lib/python', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info'] Apparently "/opt/couchbase/lib/" is missing here.
        Show
        trond Trond Norbye added a comment - http://review.couchbase.org/#/c/35728/
        Hide
        thuan Thuan Nguyen added a comment -

        Tested on build 3.0.0-590. I could not reproduce this bug

        Show
        thuan Thuan Nguyen added a comment - Tested on build 3.0.0-590. I could not reproduce this bug

          People

          • Assignee:
            thuan Thuan Nguyen
            Reporter:
            thuan Thuan Nguyen
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes