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

[BP MB-38936] - Unable to run cbevent with localhost as per example

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      Build: 6.5.1-6299

      While trying to run example from help observed couple of issues

      • Example shows -pass instead of -password

      root@node2-cb602-ubuntu16:/opt/couchbase/bin# ./cbevent
      Usage: cbevent [options]
        -codein string
          	code to read and pack into handler
        -codeout string
          	filename to write extracted code into
        -dump
          	dump all metadata entries
        -flush
          	deletes all metadata that can be deleted
        -handler string
          	handler to extract from or pack into
        -host string
          	hostname:port of couchbase console, ex: localhost:8091
        -list
          	list all metadata entries
        -pack
          	pack edited code back into specified handler
        -password string
          	cluster admin password
        -unpack
          	extracts code from a handler to specified file
        -user string
          	cluster admin username
       
      Examples:
      - Metadata
          cbevent -list -user Administrator -pass password -host localhost:8091
          cbevent -flush -user Administrator -pass password -host localhost:8091
       
       
      - Pack/Unpack
          cbevent -unpack -handler handler.json -codeout code.js
          cbevent -pack -handler handler.json -codein code.js 

      • Also localhost:8091 doesn't work , even though loopback address works
      • Metadata bucket also not cleaned

      root@node2-cb602-ubuntu16:/opt/couchbase/bin# ./cbevent -list -user Administrator -password password -host localhost:8091
      2020/04/22 22:20:25 Unable to list children, err: Get http://localhost:8091/_metakv/eventing/: Unable to find given hostport in cbauth database: `localhost:8091'

      root@node2-cb602-ubuntu16:/opt/couchbase/bin# ./cbevent -list -user Administrator -password password -host 127.0.0.1:8091
      2020/04/22 22:20:43 /eventing/apps/Function_929746175_test_kv_error_type/0
      2020/04/22 22:20:43 /eventing/appsettings/Function_929746175_test_kv_error_type
      2020/04/22 22:20:43 /eventing/checksum/Function_929746175_test_kv_error_type
      2020/04/22 22:20:43 /eventing/config/keepNodes
      2020/04/22 22:20:43 /eventing/credentials/Function_929746175_test_kv_error_type
      2020/04/22 22:20:43 /eventing/rebalanceToken/849f7bc6f830057a66a001785f41740d
      2020/04/22 22:20:43 /eventing/settings/config
      2020/04/22 22:20:43 /eventing/tempApps/Function_929746175_test_kv_error_type/0
      2020/04/22 22:20:43 /eventing/tempchecksum/Function_929746175_test_kv_error_type
      root@node2-cb602-ubuntu16:/opt/couchbase/bin# ./cbevent -flush -user Administrator -password password -host 127.0.0.1:8091
      2020/04/22 22:21:12 WARNING: This will WIPE all event handlers on 127.0.0.1:8091
      2020/04/22 22:21:12 WARNING: This should NOT BE PERFORMED except in unusual situations
      2020/04/22 22:21:12 WARNING: Starting in 15 seconds. Hit ^C if you wish to abort!
      2020/04/22 22:21:27 Deleted /eventing/apps/Function_929746175_test_kv_error_type/0
      2020/04/22 22:21:27 Deleted /eventing/appsettings/Function_929746175_test_kv_error_type
      2020/04/22 22:21:27 Deleted /eventing/checksum/Function_929746175_test_kv_error_type
      2020/04/22 22:21:27 Skipping deletion of /eventing/config/keepNodes
      2020/04/22 22:21:27 Deleted /eventing/credentials/Function_929746175_test_kv_error_type
      2020/04/22 22:21:27 Skipping deletion of /eventing/rebalanceToken/849f7bc6f830057a66a001785f41740d
      2020/04/22 22:21:27 Skipping deletion of /eventing/settings/config
      2020/04/22 22:21:27 Deleted /eventing/tempApps/Function_929746175_test_kv_error_type/0
      2020/04/22 22:21:27 Deleted /eventing/tempchecksum/Function_929746175_test_kv_error_type
      2020/04/22 22:21:27 Asking eventing on node https://10.143.192.102:18096/die to die
      2020/04/22 22:21:27 Ignoring error asking eventing on node 10.143.192.102:18096 to die: Get https://10.143.192.102:18096/die: EOF 

      Attachments

        Issue Links

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

          Activity

            People

              siri Sriram Melkote (Inactive)
              jeelan.poola Jeelan Poola
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty