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

cbepctl raises NameError when it is run against a sasl bucket which has password but user does not specify that via cli or password is invalid

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta
    • Fix Version/s: 3.0
    • Component/s: tools
    • Security Level: Public
    • Labels:
      None
    • Environment:

      Description

      Python error while running cbepctl command for drain on windows

      C:\Program Files\Couchbase\Server\bin>cbepctl 10.3.2.23:11210 drain
      Traceback (most recent call last):
      File "cbepctl", line 174, in <module>
      c.execute()
      File "clitool.pyc", line 58, in execute
      File "cbepctl", line 35, in g
      f(*args[:n])
      File "cbepctl", line 95, in drain
      s = mc.stats()
      File "mc_bin_client.pyc", line 397, in stats
      File "mc_bin_client.pyc", line 89, in _handleKeyedResponse
      File "mc_bin_client.pyc", line 71, in _recvMsg
      EOFError: Got empty data (remote died?).

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

        Activity

        Hide
        mikew Mike Wiederhold added a comment -

        This makes me think that the server you connected do wasn't running or that you connected to the wrong ip address. Is this reproducible?

        Please assign back to me if it is.

        Show
        mikew Mike Wiederhold added a comment - This makes me think that the server you connected do wasn't running or that you connected to the wrong ip address. Is this reproducible? Please assign back to me if it is.
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        i verified that it works fine for default bucket :

        C:\Program Files\Couchbase\Server\bin>cbepctl 10.3.2.23:11210 drain
        done
        C:\Program Files\Couchbase\Server\bin>cbstats 10.3.2.23:11210 all -b default
        accepting_conns: 1
        auth_cmds: 1
        auth_errors: 0
        bucket_active_conns: 1
        bucket_conns: 6
        bytes: 31182760
        bytes_read: 29294

        however for a sasl bucket which has the password it raises "NameError: global name 'sys' is not defined" instead of sasl authentication error

        C:\Program Files\Couchbase\Server\bin>cbepctl 10.3.2.23:11210 drain -b sunday -p
        sunday
        done

        C:\Program Files\Couchbase\Server\bin>cbepctl 10.3.2.23:11210 stop -b sunday -p
        sunday
        Persistence stopped

        C:\Program Files\Couchbase\Server\bin>cbepctl 10.3.2.23:11210 start -b sunday -p
        sunday
        Persistence started

        C:\Program Files\Couchbase\Server\bin>cbepctl 10.3.2.23:11210 start -b sunday
        Authentication error for sunday
        Traceback (most recent call last):
        File "cbepctl", line 174, in <module>
        c.execute()
        File "clitool.pyc", line 58, in execute
        File "cbepctl", line 24, in g
        sys.exit(1)
        NameError: global name 'sys' is not defined

        Show
        farshid Farshid Ghods (Inactive) added a comment - i verified that it works fine for default bucket : C:\Program Files\Couchbase\Server\bin>cbepctl 10.3.2.23:11210 drain done C:\Program Files\Couchbase\Server\bin>cbstats 10.3.2.23:11210 all -b default accepting_conns: 1 auth_cmds: 1 auth_errors: 0 bucket_active_conns: 1 bucket_conns: 6 bytes: 31182760 bytes_read: 29294 however for a sasl bucket which has the password it raises "NameError: global name 'sys' is not defined" instead of sasl authentication error C:\Program Files\Couchbase\Server\bin>cbepctl 10.3.2.23:11210 drain -b sunday -p sunday done C:\Program Files\Couchbase\Server\bin>cbepctl 10.3.2.23:11210 stop -b sunday -p sunday Persistence stopped C:\Program Files\Couchbase\Server\bin>cbepctl 10.3.2.23:11210 start -b sunday -p sunday Persistence started C:\Program Files\Couchbase\Server\bin>cbepctl 10.3.2.23:11210 start -b sunday Authentication error for sunday Traceback (most recent call last): File "cbepctl", line 174, in <module> c.execute() File "clitool.pyc", line 58, in execute File "cbepctl", line 24, in g sys.exit(1) NameError: global name 'sys' is not defined
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        Mike,

        moving this to 2.0.1 since this is not a blocker and command works fine when it is run when password is specified

        Show
        farshid Farshid Ghods (Inactive) added a comment - Mike, moving this to 2.0.1 since this is not a blocker and command works fine when it is run when password is specified
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        deferring to 2.1 per bug scrub meeting ( Dipti & Farshid -December 7th )

        Show
        farshid Farshid Ghods (Inactive) added a comment - deferring to 2.1 per bug scrub meeting ( Dipti & Farshid -December 7th )
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in github-ep-engine-2-0 #461 (See http://qa.hq.northscale.net/job/github-ep-engine-2-0/461/)
        MB-7203: Add sys import so we don't get NameError during auth (Revision 74387ba36733bf2c6f95a142201357986634bd76)

        Result = SUCCESS
        Mike Wiederhold :
        Files :

        • management/cbepctl
        Show
        thuan Thuan Nguyen added a comment - Integrated in github-ep-engine-2-0 #461 (See http://qa.hq.northscale.net/job/github-ep-engine-2-0/461/ ) MB-7203 : Add sys import so we don't get NameError during auth (Revision 74387ba36733bf2c6f95a142201357986634bd76) Result = SUCCESS Mike Wiederhold : Files : management/cbepctl

          People

          • Assignee:
            tommie Tommie McAfee
            Reporter:
            Rohit Rohit Sinha (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