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

unable to create buckets using /pools/default/buckets API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.6.2, 5.0.0
    • 5.0.0
    • ns_server, query
    • None
    • Untriaged
    • Yes

    Description

      The query engine has a script for unit tests that creates six buckets for test purposes. As of build 1966, creating the buckets fails mysteriously.

      The script:

      #!/bin/bash
       
      echo Creating Buckets
       
      Site=http://127.0.0.1:8091/pools/default/buckets
      Auth=Administrator:password
      bucket=(customer orders product purchase review shellTest)
      q=${1:-250}
      port=11224
       
      for i in "${bucket[@]}"
      do
      echo curl -X POST -u $Auth -d name=$i -d ramQuotaMB=$q -d authType=none -d proxyPort=$port $Site
      curl -X POST -u $Auth -d name=$i -d ramQuotaMB=$q -d authType=none -d proxyPort=$port $Site
      let port\+=1
      done
       
      echo mkdir -p data/dimestore/product
      mkdir -p data/dimestore/product
       
      echo mkdir data/dimestore/customer
      mkdir data/dimestore/customer
       
      echo mkdir data/dimestore/orders
      mkdir data/dimestore/orders
       
      echo mkdir data/dimestore/review
      mkdir data/dimestore/review
       
      echo mkdir data/dimestore/purchase
      mkdir data/dimestore/purchase
       
      

      The script is normally run with command-line parameter 250 (as in megabytes per bucket).

      The response seen is:

      Creating Buckets
      curl -X POST -u Administrator:password -d name=customer -d ramQuotaMB=250 -d authType=none -d proxyPort=11224 http://127.0.0.1:8091/pools/default/buckets
      ["Unexpected server error, request logged."]curl -X POST -u Administrator:password -d name=orders -d ramQuotaMB=250 -d authType=none -d proxyPort=11225 http://127.0.0.1:8091/pools/default/buckets
      ["Unexpected server error, request logged."]curl -X POST -u Administrator:password -d name=product -d ramQuotaMB=250 -d authType=none -d proxyPort=11226 http://127.0.0.1:8091/pools/default/buckets
      ["Unexpected server error, request logged."]curl -X POST -u Administrator:password -d name=purchase -d ramQuotaMB=250 -d authType=none -d proxyPort=11227 http://127.0.0.1:8091/pools/default/buckets
      ["Unexpected server error, request logged."]curl -X POST -u Administrator:password -d name=review -d ramQuotaMB=250 -d authType=none -d proxyPort=11228 http://127.0.0.1:8091/pools/default/buckets
      ["Unexpected server error, request logged."]curl -X POST -u Administrator:password -d name=shellTest -d ramQuotaMB=250 -d authType=none -d proxyPort=11229 http://127.0.0.1:8091/pools/default/buckets
      ["Unexpected server error, request logged."]mkdir -p data/dimestore/product
      mkdir data/dimestore/customer
      mkdir: data/dimestore/customer: File exists
      mkdir data/dimestore/orders
      mkdir: data/dimestore/orders: File exists
      mkdir data/dimestore/review
      mkdir: data/dimestore/review: File exists
      mkdir data/dimestore/purchase
      mkdir: data/dimestore/purchase: File exists
      

      Error.log contains failures like this:

      [ns_server:error,2017-02-12T13:13:48.998-08:00,ns_1@127.0.0.1:<0.1516.0>:menelaus_web:loop:189]Server error during processing: ["web request failed",
                                       {path,"/pools/default/buckets"},
                                       {method,'POST'},
                                       {type,error},
                                       {what,{case_clause,undefined}},
                                       {trace,
                                        [{menelaus_web_buckets,get_storage_mode,3,
                                          [{file,"src/menelaus_web_buckets.erl"},
                                           {line,1006}]},
                                         {menelaus_web_buckets,
                                          validate_bucket_type_specific_params,5,
                                          [{file,"src/menelaus_web_buckets.erl"},
                                           {line,833}]},
                                         {menelaus_web_buckets,
                                          basic_bucket_params_screening_tail,3,
                                          [{file,"src/menelaus_web_buckets.erl"},
                                           {line,800}]},
                                         {menelaus_web_buckets,
                                          parse_bucket_params_without_warnings,2,
                                          [{file,"src/menelaus_web_buckets.erl"},
                                           {line,730}]},
                                         {menelaus_web_buckets,parse_bucket_params,
                                          2,
                                          [{file,"src/menelaus_web_buckets.erl"},
                                           {line,720}]},
                                         {menelaus_web_buckets,do_bucket_create,4,
                                          [{file,"src/menelaus_web_buckets.erl"},
                                           {line,575}]},
                                         {menelaus_web_buckets,
                                          handle_bucket_create,2,
                                          [{file,"src/menelaus_web_buckets.erl"},
                                           {line,606}]},
                                         {request_throttler,do_request,3,
                                          [{file,"src/request_throttler.erl"},
                                           {line,59}]}]}]
      

       

       

       

      Attachments

        Issue Links

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

          Activity

            People

              johan.larson Johan Larson (Inactive)
              johan.larson Johan Larson (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