Details

    • Bug
    • Resolution: Done
    • Major
    • 0.1
    • None
    • cluster-monitor
    • None

    Description

      Adding the test cloud cluster panics:

      curl -u admin:password -X POST -d '{"user":"[redacted]","password":"[redacted]","host":"[redacted]"}' 'http://localhost:8080/couchbase/api/v1/clusters

       

      {{[couchbase-cluster-monitor.sh]2021-10-25T12:24:55.294Z INFO (REST) POST /api/v1/clusters[couchbase-cluster-monitor.sh]2021-10-25T12:24:55.294Z INFO (REST) POST /api/v1/clusters[couchbase-cluster-monitor.sh]2021/10/25 12:24:56 http: panic serving 127.0.0.1:36296: runtime error: invalid memory address or nil pointer dereference[couchbase-cluster-monitor.sh]goroutine 37 [running]:[couchbase-cluster-monitor.sh]net/http.(*conn).serve.func1()[couchbase-cluster-monitor.sh] net/http/server.go:1801 +0xb9[couchbase-cluster-monitor.sh]panic({0xd3f2a0, 0x13df100})[couchbase-cluster-monitor.sh] runtime/panic.go:1047 +0x266[couchbase-cluster-monitor.sh]github.com/couchbaselabs/cbmultimanager/cluster-monitor/pkg/couchbase.(*Client).GetNodesSummary.func2(0xc0, {

      {0xc00047e140, 0x20}

      , {0xc0004278d0, 0xf}, {0xc00012c540, 0x6, 0x6}, {0xc00038a2b8, 0x15}, ...})[couchbase-cluster-monitor.sh] github.com/couchbaselabs/cbmultimanager/cluster-monitor/pkg/couchbase/nodes.go:105 +0x45[couchbase-cluster-monitor.sh]github.com/couchbaselabs/cbmultimanager/cluster-monitor/pkg/couchbase.(*Client).GetNodesSummary(0xc0001f9e60)[couchbase-cluster-monitor.sh] github.com/couchbaselabs/cbmultimanager/cluster-monitor/pkg/couchbase/nodes.go:155 +0x5c5[couchbase-cluster-monitor.sh]github.com/couchbaselabs/cbmultimanager/cluster-monitor/pkg/couchbase.NewClient({0xc0004539d0, 0x1, 0x1}, {0xc0002469a0, 0x7}, {0xc0002469b0, 0x10}, 0xc0001d8180, 0x0)[couchbase-cluster-monitor.sh] github.com/couchbaselabs/cbmultimanager/cluster-monitor/pkg/couchbase/client.go:86 +0x4ad[couchbase-cluster-monitor.sh]github.com/couchbaselabs/cbmultimanager/cluster-monitor/pkg/manager.(*Manager).addNewCluster(0xc00029c080, {0xed1e50, 0xc0001c4540}, 0xc000420700)[couchbase-cluster-monitor.sh] github.com/couchbaselabs/cbmultimanager/cluster-monitor/pkg/manager/cluster_handlers.go:267 +0x2b5[couchbase-cluster-monitor.sh]net/http.HandlerFunc.ServeHTTP(0x0, {0xed1e50, 0xc0001c4540}, 0xc00030a180)[couchbase-cluster-monitor.sh] net/http/server.go:2046 +0x2f[couchbase-cluster-monitor.sh]github.com/couchbaselabs/cbmultimanager/cluster-monitor/pkg/manager.loggingMiddleware.func1({0xed1e50, 0xc0001c4540}, 0xc000420700)[couchbase-cluster-monitor.sh] github.com/couchbaselabs/cbmultimanager/cluster-monitor/pkg/manager/middleware.go:139 +0x2ad[couchbase-cluster-monitor.sh]net/http.HandlerFunc.ServeHTTP(0xc00029c080, {0xed1e50, 0xc0001c4540}, 0x1)[couchbase-cluster-monitor.sh] net/http/server.go:2046 +0x2f[couchbase-cluster-monitor.sh]github.com/couchbaselabs/cbmultimanager/cluster-monitor/pkg/manager.(*Manager).authMiddleware.func1({0xed1e50, 0xc0001c4540}, 0xc000420700)[couchbase-cluster-monitor.sh] github.com/couchbaselabs/cbmultimanager/cluster-monitor/pkg/manager/middleware.go:63 +0x296[couchbase-cluster-monitor.sh]net/http.HandlerFunc.ServeHTTP(0xdc3040, {0xed1e50, 0xc0001c4540}, 0x720a53)[couchbase-cluster-monitor.sh] net/http/server.go:2046 +0x2f[couchbase-cluster-monitor.sh]github.com/couchbaselabs/cbmultimanager/cluster-monitor/pkg/manager.(*Manager).initializedMiddleware.func1({0xed1e50, 0xc0001c4540}, 0xc0003c02d0)[couchbase-cluster-monitor.sh] github.com/couchbaselabs/cbmultimanager/cluster-monitor/pkg/manager/middleware.go:157 +0x130[couchbase-cluster-monitor.sh]net/http.HandlerFunc.ServeHTTP(0xc000420600, {0xed1e50, 0xc0001c4540}, 0xc00006e9f8)[couchbase-cluster-monitor.sh] net/http/server.go:2046 +0x2f[couchbase-cluster-monitor.sh]github.com/gorilla/mux.(*Router).ServeHTTP(0xc0002b60c0, {0xed1e50, 0xc0001c4540}, 0xc000420500)[couchbase-cluster-monitor.sh] github.com/gorilla/mux@v1.8.0/mux.go:210 +0x1cf[couchbase-cluster-monitor.sh]net/http.serverHandler.ServeHTTP({0xed0960}, {0xed1e50, 0xc0001c4540}, 0xc000420500)[couchbase-cluster-monitor.sh] net/http/server.go:2878 +0x43b[couchbase-cluster-monitor.sh]net/http.(*conn).serve(0xc000221ae0, {0xed5c58, 0xc00031ef00})[couchbase-cluster-monitor.sh] net/http/server.go:1929 +0xb08[couchbase-cluster-monitor.sh]created by net/http.(*Server).Serve[couchbase-cluster-monitor.sh] net/http/server.go:3033 +0x4e8}}

      Attachments

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

        Activity

          People

            marks.polakovs Marks Polakovs (Inactive)
            marks.polakovs Marks Polakovs (Inactive)
            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