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

pools/default/tasks gets "Unexpected server error, request logged."

    XMLWordPrintable

Details

    • Untriaged
    • Unknown

    Description

      I was trying to recreate MB-36428 on a two node vagrant cluster and somehow the cluster got into the state where the UI "Servers" would just spin. Triaging this I found that the UI was doing pools/default/tasks which was getting the server error as this code was throwing an error:

      do_build_rebalance_task(Timeout) ->
      <snip>
                      ReportURI =
                          case ns_rebalance_report_manager:get_last_report_uuid() of
                              undefined ->
                                  [];
                              UUID ->
                                  URI = list_to_binary(
                                          "/logs/rebalanceReport?reportID="),
                                  [{lastReportURI, <<URI/binary, UUID/binary>>}]
                          end,
      
      

      Using couchbase-cli I found the rebalance_reports was incomplete. It's missing
      the UUID:

      (ns_1@10.112.194.101)8> ns_config:read_key_fast(rebalance_reports, []).
      [{'ns_1@10.112.194.101',"rebalance_report_2019-10-14T20:28:27Z.json"}]
      

      I destroyed the vagrant cluster and then rebuild it. This is how the rebalance_reports should look:

      (ns_1@10.112.194.101)2> ns_config:read_key_fast(rebalance_reports, []).
      [{<<"205464a5fc3685d189c7dcd60a10af4a">>,
        [{node,'ns_1@10.112.194.101'},
         {filename,"rebalance_report_2019-10-14T21:40:06Z.json"}]}]
      

      Attachments

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

        Activity

          People

            steve.watanabe Steve Watanabe
            steve.watanabe Steve Watanabe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty