[MB-6757] cbdocloader can't load views for a sasl bucket created by user build 1776 Created: 27/Sep/12  Updated: 10/Jan/13  Resolved: 27/Sep/12

Status: Closed
Project: Couchbase Server
Component/s: tools
Affects Version/s: 2.0-beta-2
Fix Version/s: 2.0-beta-2
Security Level: Public

Type: Bug Priority: Blocker
Reporter: Chisheng Hong (Inactive) Assignee: Bin Cui
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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

 Comments   
Comment by Bin Cui [ 27/Sep/12 ]
http://review.couchbase.org/#/c/21178/
Comment by kzeller [ 09/Nov/12 ]
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.
Generated at Thu Apr 17 04:12:39 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.