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

cbshell error message is bad when no user/pswd supplied

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.8.1, 2.0, 2.0.1, 2.1.0
    • Fix Version/s: 4.0.0
    • Component/s: tools
    • Security Level: Public
    • Labels:
    • Triage:
      Untriaged
    • Sprint:
      PCI Team - Sprint 6

      Description

      I just tried a 'pip install --upgrade cbshell', and that worked. But then, trying to use cbshell...

      steve-cmb:membase-cli steveyen$ cbshell 10.5.2.20
      connecting to couchbase: 10.5.2.20:8091
      connected.
      cb = couchbase '10.5.2.20:8091'
      [2012-09-18 12:33:57,239] - [rest_client] [140735143397728] - ERROR - http://10.5.2.20:8091/pools/default/buckets/default error 401 reason:
      Exception AttributeError: "'Bucket' object has no attribute 'mc_client'" in <bound method Bucket._del_ of <couchbase.client.Bucket object at 0x102f7cfd0>> ignored
      error: could not access bucket: default;
      exception: unable to find bucket default on the host @ 10.5.2.20
      steve-cmb:membase-cli steveyen$

      Related...

      $ pip search couchbase
      couchbase - Couchbase Python SDK
      INSTALLED: 0.8.0 (latest)
      pylibcb - Python Couchbase Client
      cbshell - Interactive python shell for couchbase
      INSTALLED: 0.1 (latest)
      cbtestlib - Couchbase test library

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

        Activity

        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Steve, can you please elaborate? Specifically what you think is wrong in terms of raw REST API behavior ?

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Steve, can you please elaborate? Specifically what you think is wrong in terms of raw REST API behavior ?
        Hide
        steve Steve Yen added a comment -

        Whoops - I had assigned this to the wrong Pavel.

        Nothing's wrong with the REST api, but the bug seems to be on the client side.

        Show
        steve Steve Yen added a comment - Whoops - I had assigned this to the wrong Pavel. Nothing's wrong with the REST api, but the bug seems to be on the client side.
        Hide
        pavelpaulau Pavel Paulau added a comment -

        Does "source code" work? What version of couchbase client do you use in this case?

        Show
        pavelpaulau Pavel Paulau added a comment - Does "source code" work? What version of couchbase client do you use in this case?
        Hide
        steve Steve Yen added a comment -

        source also does not work.

        on the couchbase-client version, "pip search couchbase" shows...

        $ pip search couchbase
        > couchbase - Couchbase Python SDK
        > INSTALLED: 0.8.0 (latest)

        Show
        steve Steve Yen added a comment - source also does not work. on the couchbase-client version, "pip search couchbase" shows... $ pip search couchbase > couchbase - Couchbase Python SDK > INSTALLED: 0.8.0 (latest)
        Hide
        pavelpaulau Pavel Paulau added a comment -

        It looks like SDK problem.

        Show
        pavelpaulau Pavel Paulau added a comment - It looks like SDK problem.
        Hide
        pavelpaulau Pavel Paulau added a comment -

        User problem: you should specify something like "-u Administrator -p password"

        Show
        pavelpaulau Pavel Paulau added a comment - User problem: you should specify something like "-u Administrator -p password"
        Hide
        steve Steve Yen added a comment -

        going to re-open this, and re-word it to get a better error message.

        Show
        steve Steve Yen added a comment - going to re-open this, and re-word it to get a better error message.
        Hide
        mikew Mike Wiederhold added a comment -

        We no longer ship cbshell. Closing this as won't fix.

        Show
        mikew Mike Wiederhold added a comment - We no longer ship cbshell. Closing this as won't fix.

          People

          • Assignee:
            steve Steve Yen
            Reporter:
            steve Steve Yen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Agile

                Gerrit Reviews

                There are no open Gerrit changes