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

CAPI CRUD fails from time to time

    XMLWordPrintable

Details

    Description

      root@tau:~/src/altoros/moxi/ns_server# curl -X POST -H 'Content-Type: application/json' -d '{}' -v http://lh:9500/default

      • About to connect() to lh port 9500 (#0)
      • Trying 127.0.0.1... connected
      • Connected to lh (127.0.0.1) port 9500 (#0)
        > POST /default HTTP/1.1
        > User-Agent: curl/7.21.6 (i486-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0d zlib/1.2.3.4 libidn/1.22 libssh2/1.2.8 librtmp/2.3
        > Host: lh:9500
        > Accept: /
        > Content-Type: application/json
        > Content-Length: 2
        >
        < HTTP/1.1 201 Created
        < Server: CouchDB/1.2.0a-2ce14b3-git (Erlang OTP/R14B03)
        < Location: http://lh:9500/default/6226d7c314bbc6069cdfdf7164003dff
        < Date: Mon, 25 Jul 2011 19:45:39 GMT
        < Content-Type: text/plain;charset=utf-8
        < Content-Length: 95
        < Cache-Control: must-revalidate
        < {"ok":true,"id":"6226d7c314bbc6069cdfdf7164003dff","rev":"1-db14785a9ad9ef2412162f1474bd15ab"}
      • Connection #0 to host lh left intact
      • Closing connection #0
        root@tau:~/src/altoros/moxi/ns_server# curl -X POST -H 'Content-Type: application/json' -d '{}' -v http://lh:9500/default
      • About to connect() to lh port 9500 (#0)
      • Trying 127.0.0.1... connected
      • Connected to lh (127.0.0.1) port 9500 (#0)
        > POST /default HTTP/1.1
        > User-Agent: curl/7.21.6 (i486-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0d zlib/1.2.3.4 libidn/1.22 libssh2/1.2.8 librtmp/2.3
        > Host: lh:9500
        > Content-Length: 2
        >
        < HTTP/1.1 500 Internal Server Error
        < Server: CouchDB/1.2.0a-2ce14b3-git (Erlang OTP/R14B03)
        < Date: Mon, 25 Jul 2011 19:45:43 GMT
        < Content-Type: text/plain;charset=utf-8
        < Content-Length: 464
        < Cache-Control: must-revalidate
        <
        {"error":"badmatch","reason":"{badrpc,{'EXIT',badmatch,{not_found,missing,\n [ {capi_crud,'-get_doc_rev/4-fun-0-',3},\n {capi_crud,open_db,3},\n {capi_crud,update_doc,4},\n {rpc,local_call,3},\n {couch_httpd_db,db_req,2},\n {couch_httpd,handle_request_int,6},\n {mochiweb_http,headers,5},\n {proc_lib,init_p_do_apply,3}]}}}"}
        * Connection #0 to host lh left intact
        * Closing connection #0
        root@tau:~/src/altoros/moxi/ns_server# curl -X POST -H 'Content-Type: application/json' -d '{}' -v http://lh:9500/default
        * About to connect() to lh port 9500 (#0)
        * Trying 127.0.0.1... connected
        * Connected to lh (127.0.0.1) port 9500 (#0)
        > POST /default HTTP/1.1
        > User-Agent: curl/7.21.6 (i486-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0d zlib/1.2.3.4 libidn/1.22 libssh2/1.2.8 librtmp/2.3
        > Host: lh:9500
        > Accept: /
        > Content-Type: application/json
        > Content-Length: 2
        >
        < HTTP/1.1 201 Created
        < Server: CouchDB/1.2.0a-2ce14b3-git (Erlang OTP/R14B03)
        < Location: http://lh:9500/default/6226d7c314bbc6069cdfdf716400499c
        < Date: Mon, 25 Jul 2011 19:45:47 GMT
        < Content-Type: text/plain;charset=utf-8
        < Content-Length: 95
        < Cache-Control: must-revalidate
        < {"ok":true,"id":"6226d7c314bbc6069cdfdf716400499c","rev":"1-db14785a9ad9ef2412162f1474bd15ab"}
        * Connection #0 to host lh left intact
        * Closing connection #0
        root@tau:~/src/altoros/moxi/ns_server# curl -X POST -H 'Content-Type: application/json' -d '{}' -v http://lh:9500/default
        * About to connect() to lh port 9500 (#0)
        * Trying 127.0.0.1... connected
        * Connected to lh (127.0.0.1) port 9500 (#0)
        > POST /default HTTP/1.1
        > User-Agent: curl/7.21.6 (i486-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0d zlib/1.2.3.4 libidn/1.22 libssh2/1.2.8 librtmp/2.3
        > Host: lh:9500
        > Accept: /
        > Content-Type: application/json
        > Content-Length: 2
        >
        < HTTP/1.1 500 Internal Server Error
        < Server: CouchDB/1.2.0a-2ce14b3-git (Erlang OTP/R14B03)
        < Date: Mon, 25 Jul 2011 19:45:51 GMT
        < Content-Type: text/plain;charset=utf-8
        < Content-Length: 464
        < Cache-Control: must-revalidate
        <
        {"error":"badmatch","reason":"{badrpc,{'EXIT',badmatch,{not_found,missing,\n [{capi_crud,'-get_doc_rev/4-fun-0-',3}

        ,\n

        {capi_crud,open_db,3}

        ,\n

        {capi_crud,update_doc,4}

        ,\n

        {rpc,local_call,3}

        ,\n

        {couch_httpd_db,db_req,2}

        ,\n

        {couch_httpd,handle_request_int,6}

        ,\n

        {mochiweb_http,headers,5}

        ,\n

        {proc_lib,init_p_do_apply,3}

        ]}}}"}

      • Connection #0 to host lh left intact
      • Closing connection #0
        root@tau:~/src/altoros/moxi/ns_server#

      Attachments

        Issue Links

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

          Activity

            People

              Aliaksey Artamonau Aliaksey Artamonau (Inactive)
              alkondratenko Aleksey Kondratenko (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

                  PagerDuty