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

secondary index creation fails with sasl bucket

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 4.0.0
    • 4.0.0
    • secondary-index
    • Security Level: Public
    • Untriaged
    • Centos 64-bit
    • Unknown

    Description

      tried creating index using cbindex command with both bucket and rest credentials.
      1)providing bucket username and password
      /opt/couchbase/bin/cbindex -server 127.0.0.1:8091 -auth="bucket-1:password" -type create -bucket bucket-1 -index age3 -fields=age
      2015/03/02 09:31:50 revrpc: Got error (Need 200 status!. Got

      {401 Unauthorized 401 HTTP/1.1 1 1 map[Pragma:[no-cache] Date:[Mon, 02 Mar 2015 17:31:50 GMT] Content-Length:[0] Cache-Control:[no-cache] Www-Authenticate:[Basic realm="Couchbase Server Admin / REST"] Server:[Couchbase Server]] 0x109dd60 0 [] false map[] 0xc20802a8f0 <nil>}

      ) and will retry in 1s
      2015/03/02 09:31:51 revrpc: Got error (Need 200 status!. Got

      {401 Unauthorized 401 HTTP/1.1 1 1 map[Www-Authenticate:[Basic realm="Couchbase Server Admin / REST"] Server:[Couchbase Server] Pragma:[no-cache] Date:[Mon, 02 Mar 2015 17:31:51 GMT] Content-Length:[0] Cache-Control:[no-cache]] 0x109dd60 0 [] false map[] 0xc2081d2000 <nil>}

      ) and will retry in 1s
      09:31:51.199694 [Fatal] HTTP error 401 Unauthorized getting "http://127.0.0.1:8091/pools":
      2)providing rest username and password
      /opt/couchbase/bin/cbindex -server 127.0.0.1:8091 -auth Administrator:password -type create -bucket default -index age2 -fields=age
      09:09:21.149399 [Fatal] HTTP error 401 Unauthorized getting "http://127.0.0.1:8091/pools":

      Attachments

        Issue Links

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

          Activity

            People

              venu Venu Uppalapati (Inactive)
              venu Venu Uppalapati (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty