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

cbcollect_info stores output file in wrong folder

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: tools
    • Security Level: Public
    • Labels:
      None
    • Environment:
      CentOS 5.8
      build 1956

      Description

      When I run:
      /opt/couchbase/bin/cbcollect_info output_file.zip

      It doesn't save zip archive to current working directory, but for some reason it stores file in "/data/default/" ("/data" is custom data path).

        Attachments

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

          Activity

          Hide
          bcui Bin Cui (Inactive) added a comment -

          What if you run cbcollect_info and specify outputfile.zip in a different directory?

          Show
          bcui Bin Cui (Inactive) added a comment - What if you run cbcollect_info and specify outputfile.zip in a different directory?
          Hide
          bcui Bin Cui (Inactive) added a comment -

          I mean you run it under /opt/couchbase/bin directory?

          Show
          bcui Bin Cui (Inactive) added a comment - I mean you run it under /opt/couchbase/bin directory?
          Hide
          bcui Bin Cui (Inactive) added a comment -

          Something wrong with the api call ZipFile(filename, mode='w', compression=ZIP_DEFLATED) on your setup?

          Show
          bcui Bin Cui (Inactive) added a comment - Something wrong with the api call ZipFile(filename, mode='w', compression=ZIP_DEFLATED) on your setup?
          Hide
          pavelpaulau Pavel Paulau added a comment -

          Bin,

          This is regression in https://github.com/membase/ns_server/commit/48e86857b4bdd88043a96561f14ed7a0fd72da43

          By "os.chdir(path)" you change current working directory which is used by ZipFile(). Just try build 1956 on any Linux platform.

          Show
          pavelpaulau Pavel Paulau added a comment - Bin, This is regression in https://github.com/membase/ns_server/commit/48e86857b4bdd88043a96561f14ed7a0fd72da43 By "os.chdir(path)" you change current working directory which is used by ZipFile(). Just try build 1956 on any Linux platform.
          Hide
          bcui Bin Cui (Inactive) added a comment -
          Show
          bcui Bin Cui (Inactive) added a comment - Yes, i put the fix on http://review.couchbase.org/#/c/22826/
          Hide
          steve Steve Yen added a comment -

          gerrit change submitted

          Show
          steve Steve Yen added a comment - gerrit change submitted

            People

            • Assignee:
              bcui Bin Cui (Inactive)
              Reporter:
              pavelpaulau Pavel Paulau
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes