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

UI: go services need more user-friendly log messages

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0.0
    • 4.0.0
    • ns_server
    • Security Level: Public
    • Untriaged
    • No

    Description

      Hit a problem with goxdcr. In the Log tab of the UI I see:

      Port server goxdcr on node 'babysitter_of_ns_1@127.0.0.1' exited with status 1. Restarting. Messages: github.com/couchbase/goxdcr/parts.(*DcpNozzle).processData(0xc2080f6360, 0x0, 0x0)
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/goxdcr/parts/dcp_nozzle.go:325 +0x1361
      created by github.com/couchbase/goxdcr/parts.(*DcpNozzle).Start
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/goxdcr/parts/dcp_nozzle.go:168 +0x381
      [goport] 2015/04/21 11:21:34 /opt/couchbase/bin/goxdcr terminated: exit status 2
      

      The code-paths and line-numbers are only really useful to the developers so should not be exposed to the user. A better message in the UI would be along the lines of "The XDCR service on node <node> exited with status <status> and has been restarted. If the problem continues, please contact Couchbase support for further assistance."

      Similar examples:

      Port server indexer on node 'babysitter_of_ns_1@127.0.0.1' exited with status 1. Restarting. Messages: net/http.(*conn).serve(0xc20afd4280)
      /usr/local/go/src/pkg/net/http/server.go:1132 +0x61e
      created by net/http.(*Server).Serve
      /usr/local/go/src/pkg/net/http/server.go:1721 +0x313
      [goport] 2015/04/21 11:24:01 /opt/couchbase/bin/indexer terminated: exit status 2
      

      Port server projector on node 'babysitter_of_ns_1@127.0.0.1' exited with status 1. Restarting. Messages: github.com/couchbase/indexing/secondary/common.ExitOnStdinClose()
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/indexing/secondary/common/util.go:304 +0x8b
      created by main.main
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/indexing/secondary/cmd/projector/main.go:91 +0x5aa
      [goport] 2015/04/21 11:18:21 /opt/couchbase/bin/projector terminated: exit status 2
      

      Logs:
      http://customers.couchbase.com.s3.amazonaws.com/davidH/node1.zip
      http://customers.couchbase.com.s3.amazonaws.com/davidH/node3.zip
      http://customers.couchbase.com.s3.amazonaws.com/davidH/node2.zip

      Attachments

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

        Activity

          People

            Aliaksey Artamonau Aliaksey Artamonau (Inactive)
            dhaikney David Haikney (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty