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

cbdocloader dumps stack trace on auth / 401 errors

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0
    • Fix Version/s: 2.5.0
    • Component/s: tools
    • Security Level: Public
    • Labels:
      None
    • Triage:
      Untriaged
    • Sprint:
      PCI Team - Sprint 17

      Description

      on mac build 1939

      /cbdocloader -n 127.0.0.1:8091 -b gamesim-sample -s 100 /Users/ronnie/Downloads/couchbase-server-community_x86_64_2.0.0-1939-rel/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/../samples/gamesim-sample.zip

      {'username': None, 'node': '127.0.0.1:8091', 'password': None, 'bucket': 'gamesim-sample', 'ram_quota': 100}

      ['/Users/ronnie/Downloads/couchbase-server-community_x86_64_2.0.0-1939-rel/Couchbase Server.app/Contents/Resources/couchbase-core/bin/../samples/gamesim-sample.zip']
      [2012-11-06 15:59:25,585] - [rest_client] [140735169014112] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown
      [2012-11-06 15:59:25,587] - [rest_client] [140735169014112] - ERROR - http://127.0.0.1:8091/pools/default/buckets/ error 401 reason: unknown
      [2012-11-06 15:59:25,589] - [rest_client] [140735169014112] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown
      Traceback (most recent call last):
      File "./cbdocloader", line 237, in <module>
      main()
      File "./cbdocloader", line 226, in main
      docloader.init_bucket()
      File "./cbdocloader", line 121, in init_bucket
      authType='sasl')
      File "/Users/ronnie/Downloads/couchbase-server-community_x86_64_2.0.0-1939-rel/Couchbase Server.app/Contents/Resources/couchbase-core/lib/python/couchbase/rest_client.py", line 799, in create_bucket
      'proxyPort': self.get_nodes_self().moxi,
      File "/Users/ronnie/Downloads/couchbase-server-community_x86_64_2.0.0-1939-rel/Couchbase Server.app/Contents/Resources/couchbase-core/lib/python/couchbase/rest_client.py", line 591, in get_nodes_self
      json_parsed = json.loads(content)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/_init_.py", line 326, in loads
      return _default_decoder.decode(s)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 360, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 378, in raw_decode
      raise ValueError("No JSON object could be decoded")
      ValueError: No JSON object could be decoded

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

        Activity

        Hide
        steve Steve Yen added a comment -

        none of our tools should dump out a stack trace. Instead, a nice, human-readable, actionable error message should be the solution.

        Show
        steve Steve Yen added a comment - none of our tools should dump out a stack trace. Instead, a nice, human-readable, actionable error message should be the solution.
        Hide
        steve Steve Yen added a comment -

        to 2.0.2 per bug-scrub

        Show
        steve Steve Yen added a comment - to 2.0.2 per bug-scrub
        Hide
        anil Anil Kumar added a comment -

        bug scrub: moving this to 2.1

        Show
        anil Anil Kumar added a comment - bug scrub: moving this to 2.1
        Hide
        maria Maria McDuff (Inactive) added a comment -

        Ronnie,

        is this still happening in 2.2.0?
        can u pls update this bug.
        thanks.

        Show
        maria Maria McDuff (Inactive) added a comment - Ronnie, is this still happening in 2.2.0? can u pls update this bug. thanks.
        Hide
        bcui Bin Cui added a comment -

        Ronnie,

        Can you try out the 2.5 build and see if the problem still exists? Thanks

        Show
        bcui Bin Cui added a comment - Ronnie, Can you try out the 2.5 build and see if the problem still exists? Thanks
        Hide
        wayne Wayne Siu added a comment -

        Venu,
        Can you try this out in 2.5?

        Show
        wayne Wayne Siu added a comment - Venu, Can you try this out in 2.5?
        Hide
        venu Venu Uppalapati added a comment -

        ./cbdocloader -n 127.0.0.1:8091 -b mybucket -s 100 filename.zip
        There is no stack trace now but the 401 messages keeps getting printed without any timeout(i waited for 65 seconds).
        [2014-01-27 18:25:28,686] - [rest_client] [140300242376448] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown
        [2014-01-27 18:25:29,690] - [rest_client] [140300242376448] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown
        [2014-01-27 18:25:30,693] - [rest_client] [140300242376448] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown
        [2014-01-27 18:25:31,696] - [rest_client] [140300242376448] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown
        [2014-01-27 18:25:32,700] - [rest_client] [140300242376448] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown
        [2014-01-27 18:25:33,703] - [rest_client] [140300242376448] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown
        [2014-01-27 18:25:34,707] - [rest_client] [140300242376448] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown
        [2014-01-27 18:25:35,710] - [rest_client] [140300242376448] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown
        we should timeout on this and terminate the command.

        Show
        venu Venu Uppalapati added a comment - ./cbdocloader -n 127.0.0.1:8091 -b mybucket -s 100 filename.zip There is no stack trace now but the 401 messages keeps getting printed without any timeout(i waited for 65 seconds). [2014-01-27 18:25:28,686] - [rest_client] [140300242376448] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown [2014-01-27 18:25:29,690] - [rest_client] [140300242376448] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown [2014-01-27 18:25:30,693] - [rest_client] [140300242376448] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown [2014-01-27 18:25:31,696] - [rest_client] [140300242376448] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown [2014-01-27 18:25:32,700] - [rest_client] [140300242376448] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown [2014-01-27 18:25:33,703] - [rest_client] [140300242376448] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown [2014-01-27 18:25:34,707] - [rest_client] [140300242376448] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown [2014-01-27 18:25:35,710] - [rest_client] [140300242376448] - ERROR - http://127.0.0.1:8091/nodes/self error 401 reason: unknown we should timeout on this and terminate the command.

          People

          • Assignee:
            bcui Bin Cui
            Reporter:
            ronnie Ronnie Sun (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Agile

                Gerrit Reviews

                There are no open Gerrit changes