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

cbdocloader can't load views for a sasl bucket created by user build 1776

    Details

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

      Description

      I create a sasl bucket: bucket0 and run cbdocloader (build 1776). All the items can be loaded but not production views. What's wrong with the following command?

      2012-09-27 00:06:31,068 - root - INFO - running command.raw sudo /opt/couchbase/bin/tools/cbdocloader -u Administrator -p password -n 10.1.3.102:8091 -b bucket0 -s 200 /opt/couchbase/samples/gamesim-sample.zip
      2012-09-27 00:06:31,109 - paramiko.transport - INFO - Secsh channel 8 opened.
      2012-09-27 00:06:33,580 - root - INFO - command executed successfully
      2012-09-27 00:06:33,581 - root - INFO -

      {'username': 'Administrator', 'node': '10.1.3.102:8091', 'password': 'password', 'bucket': 'bucket0', 'ram_quota': 200}

      ['/opt/couchbase/samples/gamesim-sample.zip']
      2012-09-27 00:06:33,581 - root - INFO - [2012-09-27 00:07:39,073] - [rest_client] [140169126921984] - INFO - existing buckets : [u'bucket0', u'default']
      2012-09-27 00:06:33,582 - root - INFO - [2012-09-27 00:07:39,074] - [rest_client] [140169126921984] - INFO - found bucket bucket0
      2012-09-27 00:06:33,582 - root - INFO - [2012-09-27 00:07:39,468] - [rest_client] [140169126921984] - ERROR - http://10.1.3.102:8092/bucket0/_design/players error 401 reason: unauthorized

      {"error":"unauthorized","reason":"password required"}

      2012-09-27 00:06:33,582 - root - INFO -
      2012-09-27 00:06:33,582 - root - INFO - View: _design/players/_view/playerlist
      2012-09-27 00:06:33,583 - root - INFO - [2012-09-27 00:07:41,257] - [rest_client] [140169126921984] - ERROR - http://10.1.3.102:8092/bucket0/_design/players/_view/playerlist?stale=update_after error 401 reason: unauthorized

      {"error":"unauthorized","reason":"password required"}

      2012-09-27 00:06:33,583 - root - INFO -
      2012-09-27 00:06:33,583 - root - INFO - View: _design/players/_view/leaderboard
      2012-09-27 00:06:33,584 - root - INFO - [2012-09-27 00:07:41,260] - [rest_client] [140169126921984] - ERROR - http://10.1.3.102:8092/bucket0/_design/players/_view/leaderboard?stale=update_after error 401 reason: unauthorized

      {"error":"unauthorized","reason":"password required"}

      2012-09-27 00:06:33,584 - root - INFO -
      2012-09-27 00:06:33,584 - root - INFO - done

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

        Activity

        Chisheng Chisheng Hong (Inactive) created issue -
        Show
        bcui Bin Cui added a comment - http://review.couchbase.org/#/c/21178/
        bcui Bin Cui made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        steve Steve Yen made changes -
        Sprint Status Current Sprint
        Hide
        kzeller kzeller added a comment -

        RN: Errors had occurred trying to access design documents associated
        with buckets requiring SASL authentication. This has been fixed by
        properly requiring authorization information to access these buckets.

        Show
        kzeller kzeller added a comment - RN: Errors had occurred trying to access design documents associated with buckets requiring SASL authentication. This has been fixed by properly requiring authorization information to access these buckets.
        farshid Farshid Ghods (Inactive) made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            bcui Bin Cui
            Reporter:
            Chisheng Chisheng Hong (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