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

Curling the maxParallelIndexers URL causes the "web request failed" server error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0-beta
    • 2.0
    • ns_server
    • Security Level: Public
    • None
    • build#1468 on ubuntu 64bit

    Description

      Curling the maxParallelIndexers URL causes the "web request failed" server error
      Steps to reproduce:

      1. Install build#1468
      2. Curl the maxParallelIndexers URL:
      curl -v 'http://Administrator:password@localhost:9000/settings/maxParallelIndexers'

      Following error is returned:
      deepkaran@ubuntu12:~/workspace/couchbase-2.0/testrunner$ curl -v 'http://Administrator:password@10.3.121.99:8091/settings/maxParallelIndexers'

      • About to connect() to 10.3.121.99 port 8091 (#0)
      • Trying 10.3.121.99... connected
      • Connected to 10.3.121.99 (10.3.121.99) port 8091 (#0)
      • Server auth using Basic with user 'Administrator'
        > GET /settings/maxParallelIndexers HTTP/1.1
        > Authorization: Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==
        > User-Agent: curl/7.21.4 (x86_64-unknown-linux-gnu) libcurl/7.21.4 OpenSSL/1.0.1 zlib/1.2.3.4
        > Host: 10.3.121.99:8091
        > Accept: /
        >
        < HTTP/1.1 500 Internal Server Error
        < Server: Couchbase Server 2.0.0-1468-rel-enterprise
        < Pragma: no-cache
        < Date: Fri, 20 Jul 2012 01:05:04 GMT
        < Content-Type: application/json
        < Content-Length: 44
        < Cache-Control: no-cache
        <
      • Connection #0 to host 10.3.121.99 left intact
      • Closing connection #0

      Below error can be seen in the logs:

      [menelaus:warn] [2012-07-19 18:05:04] [ns_1@127.0.0.1:<0.412.0>:menelaus_web:loop:379] Server error during processing: ["web request failed",

      {path,"/settings/maxParallelIndexers"}

      ,

      {type,exit}

      ,
      {what,{json_encode,{bad_term,{value,4}}}},
      {trace,
      [

      {mochijson2,json_encode,2}

      ,

      {mochijson2, '-json_encode_proplist/2-fun-0-',3}

      ,

      {lists,foldl,3}

      ,

      {mochijson2,json_encode_proplist,2}

      ,

      {menelaus_util,reply_json,2}

      ,

      {menelaus_web,loop,3}

      ,

      {mochiweb_http,headers,5}

      ,

      {proc_lib,init_p_do_apply,3}

      ]}]

      Diagnostics are attached.

      Attachments

        For Gerrit Dashboard: MB-5965
        # Subject Branch Project Status CR V

        Activity

          People

            Aliaksey Artamonau Aliaksey Artamonau (Inactive)
            deepkaran.salooja Deepkaran Salooja
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty