Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.8.1-release-candidate
    • Fix Version/s: 2.0.1
    • Component/s: tools
    • Security Level: Public
    • Labels:
      None

      Description

      couchbase:bin karan$ ./cbcollect_info
      Traceback (most recent call last):
      File "./cbcollect_info", line 227, in <module>
      "ls -lR " + get_dbdir()),
      File "./cbcollect_info", line 206, in get_dbdir
      ret = retrieve_config_value('\s*

      {dbdir,\s*"(.+)"}', node)
      File "./cbcollect_info", line 173, in retrieve_config_value
      stdout=subprocess.PIPE).communicate()[0]
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 672, in _init_
      errread, errwrite)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1202, in _execute_child
      raise child_exception
      OSError: [Errno 2] No such file or directory
      couchbase:bin karan$ /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/cbcollect_info
      Traceback (most recent call last):
      File "/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbcollect_info", line 227, in <module>
      "ls -lR " + get_dbdir()),
      File "/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbcollect_info", line 206, in get_dbdir
      ret = retrieve_config_value('\s*{dbdir,s*"(.+)"}

      ', node)
      File "/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbcollect_info", line 173, in retrieve_config_value
      stdout=subprocess.PIPE).communicate()[0]
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 672, in _init_
      errread, errwrite)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1202, in _execute_child
      raise child_exception
      OSError: [Errno 2] No such file or directory

      http://builds.hq.northscale.net/latestbuilds/couchbase-server-community_x86_64_1.8.1-930-rel.dmg

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

        Activity

        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in github-ns-server-2-0 #380 (See http://qa.hq.northscale.net/job/github-ns-server-2-0/380/)
        MB-5650: try harder to find escript tool and config.dat (Revision 82d8bf2b42ac01ff6e64bc66b1ee893902fbde3e)

        Result = SUCCESS
        Steve Yen :
        Files :

        • cbcollect_info
        Show
        thuan Thuan Nguyen added a comment - Integrated in github-ns-server-2-0 #380 (See http://qa.hq.northscale.net/job/github-ns-server-2-0/380/ ) MB-5650 : try harder to find escript tool and config.dat (Revision 82d8bf2b42ac01ff6e64bc66b1ee893902fbde3e) Result = SUCCESS Steve Yen : Files : cbcollect_info
        Hide
        perry Perry Krug added a comment -

        Still doesn't seem to be working on 2.0.

        I get:
        Perrys-MacBook-Air:bin perrykrug$ ./cbcollect_info /tmp/test
        ./erl: line 28: /lib/erlang/erts-5.8.*/bin/erlexec: No such file or directory
        ./erl: line 28: exec: /lib/erlang/erts-5.8.*/bin/erlexec: cannot execute: No such file or directory
        ./erl: line 28: /lib/erlang/erts-5.8.*/bin/erlexec: No such file or directory
        ./erl: line 28: exec: /lib/erlang/erts-5.8.*/bin/erlexec: cannot execute: No such file or directory
        Traceback (most recent call last):
        File "./cbcollect_info", line 481, in <module>
        main()
        File "./cbcollect_info", line 474, in main
        for task in make_tasks(options.root, dbdir):
        File "./cbcollect_info", line 430, in make_tasks
        for f in os.listdir(dbdir):
        OSError: [Errno 2] No such file or directory: '/opt/couchbase/var/lib/couchbase/data'

        and

        Perrys-MacBook-Air:Downloads perrykrug$ ./Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/cbcollect_info /tmp/test
        escript: Error 2 executing './Couchbase'.
        escript: Failed to open file: cbdump-config
        Traceback (most recent call last):
        File "./Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbcollect_info", line 481, in <module>
        main()
        File "./Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbcollect_info", line 474, in main
        for task in make_tasks(options.root, dbdir):
        File "./Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbcollect_info", line 430, in make_tasks
        for f in os.listdir(dbdir):
        OSError: [Errno 2] No such file or directory: '/opt/couchbase/var/lib/couchbase/data'

        and a customer gets:
        tonys-imac:ns_server tony$ ./cbcollect_info outputFile
        Traceback (most recent call last):
        File "./cbcollect_info", line 481, in <module>
        main()
        File "./cbcollect_info", line 472, in main
        dbdir = get_dbdir(mydir)
        File "./cbcollect_info", line 233, in get_dbdir
        for line in open(path):
        IOError: [Errno 2] No such file or directory: './../etc/runtime.ini'
        tonys-imac:ns_server tony$

        Show
        perry Perry Krug added a comment - Still doesn't seem to be working on 2.0. I get: Perrys-MacBook-Air:bin perrykrug$ ./cbcollect_info /tmp/test ./erl: line 28: /lib/erlang/erts-5.8.*/bin/erlexec: No such file or directory ./erl: line 28: exec: /lib/erlang/erts-5.8.*/bin/erlexec: cannot execute: No such file or directory ./erl: line 28: /lib/erlang/erts-5.8.*/bin/erlexec: No such file or directory ./erl: line 28: exec: /lib/erlang/erts-5.8.*/bin/erlexec: cannot execute: No such file or directory Traceback (most recent call last): File "./cbcollect_info", line 481, in <module> main() File "./cbcollect_info", line 474, in main for task in make_tasks(options.root, dbdir): File "./cbcollect_info", line 430, in make_tasks for f in os.listdir(dbdir): OSError: [Errno 2] No such file or directory: '/opt/couchbase/var/lib/couchbase/data' and Perrys-MacBook-Air:Downloads perrykrug$ ./Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/cbcollect_info /tmp/test escript: Error 2 executing './Couchbase'. escript: Failed to open file: cbdump-config Traceback (most recent call last): File "./Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbcollect_info", line 481, in <module> main() File "./Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbcollect_info", line 474, in main for task in make_tasks(options.root, dbdir): File "./Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbcollect_info", line 430, in make_tasks for f in os.listdir(dbdir): OSError: [Errno 2] No such file or directory: '/opt/couchbase/var/lib/couchbase/data' and a customer gets: tonys-imac:ns_server tony$ ./cbcollect_info outputFile Traceback (most recent call last): File "./cbcollect_info", line 481, in <module> main() File "./cbcollect_info", line 472, in main dbdir = get_dbdir(mydir) File "./cbcollect_info", line 233, in get_dbdir for line in open(path): IOError: [Errno 2] No such file or directory: './../etc/runtime.ini' tonys-imac:ns_server tony$
        Show
        bcui Bin Cui (Inactive) added a comment - http://review.couchbase.org/#/c/24393/
        Hide
        steve Steve Yen added a comment -

        As a band-aid, looks like the for-loop at line 430 needs a try-except-pass around it.

        Show
        steve Steve Yen added a comment - As a band-aid, looks like the for-loop at line 430 needs a try-except-pass around it.
        Hide
        steve Steve Yen added a comment -

        hi Bin,
        I think the right next step is to mark it resolved so that QE will find it as part of their 2.0.1 certifications.
        Cheers,
        Steve

        Show
        steve Steve Yen added a comment - hi Bin, I think the right next step is to mark it resolved so that QE will find it as part of their 2.0.1 certifications. Cheers, Steve

          People

          • Assignee:
            bcui Bin Cui (Inactive)
            Reporter:
            karan Karan Kumar (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes