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

[Windows] : Create and delete collection requests return 500 Internal Server Error

    XMLWordPrintable

Details

    Description

      A lot of tests in Windows show failure when attempting to create or delete collections.

      This behaviour is observed only in 7.2 runs from 7.2.0 to 7.2.5 and not in Trinity.

      Unfortunately, was unable to collect the logs during all the runs due to the failure seen in teardown of the tests.

      There are no specific set of steps needed to reproduce the issue. A lot of times the create and delete collection POST and DELETE calls return a 500 status code with "Internal Server Error"

      I have attached logs from a test run that involves multiple creates and deletes of collections.

       

      Observing these from ns_server.debug.logs

      [ns_server:error,2024-01-11T19:37:55.787-08:00,ns_1@172.23.136.143:<0.28513.1>:menelaus_util:reply_server_error_before_close:211]Server error during processing: ["web request failed",                                 {path,                                  "/pools/default/buckets/bucket-18/scopes/_default/collections/collection-1"},                                 {method,'DELETE'},                                 {type,exit},                                 {what,                                  {timeout,                                   {gen_server,call,                                    [ns_audit,                                     {log,drop_collection,                                      [{local,                                        {[{ip,<<"172.23.136.143">>},                                          {port,8091}]}},                                       {remote,                                        {[{ip,<<"172.23.107.249">>},                                          {port,37834}]}},                                       {real_userid,                                        {[{domain,builtin},                                          {user,<<"Administrator">>}]}},                                       {timestamp,                                        <<"2024-01-11T19:37:50.773-08:00">>},                                       {new_manifest_uid,<<"5">>},                                       {collection_name,<<"collection-1">>},                                       {scope_name,<<"_default">>},                                       {bucket_name,<<"bucket-18">>}],                                      false}]}}},                                 {trace,                                  [{gen_server,call,2,                                    [{file,"gen_server.erl"},{line,370}]},                                   {ns_audit,put,3,                                    [{file,"src/ns_audit.erl"},{line,462}]},                                   {menelaus_web_collections,                                    handle_delete_collection,4,                                    [{file,"src/menelaus_web_collections.erl"},                                     {line,251}]},                                   {request_tracker,request,2,                                    [{file,"src/request_tracker.erl"},                                     {line,40}]},                                   {menelaus_util,handle_request,2,                                    [{file,"src/menelaus_util.erl"},                                     {line,222}]},                                   {mochiweb_http,headers,6,                                    [{file,                                      "c:/Jenkins/workspace/couchbase-server-windows/couchdb/src/mochiweb/mochiweb_http.erl"},                                     {line,153}]},                                   {proc_lib,init_p_do_apply,3,                                    [{file,"proc_lib.erl"},{line,240}]}]}] 

      Grepping for 500 errors in the ns_server.http_access.log

      $grep "500 44" ns_server.http_access.log
      172.23.107.249 - - [11/Jan/2024:18:44:16 -0800] "POST /pools/default/buckets/bucket-8/scopes/xLO-11-605000/collections/ HTTP/1.1" 500 44 - "Python-httplib2/$Rev: 259 $" 5062
      172.23.107.249 - - [11/Jan/2024:18:44:24 -0800] "DELETE /pools/default/buckets/bucket-8/scopes/xLO-11-605000/collections/atL%25jIVfd2WL%25jtRI5HIQm9qIlCiEi72S0VOsHyor1PlbLyfiJv4z1mu-MI1owVE8tnkRdp0qa9Ksjpa%25XoFNLOJP5qr4jvEmYqb3Vc8i%25LMiMRXkcMkfWY5ddNEIhhHEPnJ1HXm98GmWg5uwXEjMQ5UnczwpRAiqlSIgHMgO6iImXItR5-16H0wJdK89UC0UEoj2m7Vlf_ETmZgi2cQj0r0t%25ga9y-11-725000 HTTP/1.1" 500 44 - "Python-httplib2/$Rev: 259 $" 5059
      172.23.107.249 - - [11/Jan/2024:19:37:55 -0800] "DELETE /pools/default/buckets/bucket-18/scopes/_default/collections/collection-1 HTTP/1.1" 500 44 - "Python-httplib2/$Rev: 259 $" 5062 

      Attachments

        Issue Links

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

          Activity

            People

              raghav.sk Raghav S K
              raghav.sk Raghav S K
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change

                  PagerDuty