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

cbstats dispatcher don't work without a password

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.0-beta
    • 1.6.5
    • tools
    • Security Level: Public
    • None

    Description

      [perry@Membase1 management]$ ./stats localhost:11210 dispatcher test
      Traceback (most recent call last):
      File "./stats", line 250, in ?
      main()
      File "./stats", line 247, in main
      c.execute()
      File "/opt/membase/1.6.5/bin/ep_engine/management/clitool.py", line 42, in execute
      f[0](mc, *args[2:], **opts._dict_)
      File "./stats", line 37, in g
      f(*args[:n])
      File "./stats", line 192, in stats_dispatcher
      sorig = mc.stats('dispatcher')
      File "/opt/membase/1.6.5/bin/ep_engine/management/mc_bin_client.py", line 255, in stats
      cmd, opaque, cas, klen, extralen, data = self._handleKeyedResponse(None)
      File "/opt/membase/1.6.5/bin/ep_engine/management/mc_bin_client.py", line 83, in _handleKeyedResponse
      raise MemcachedError(errcode, rv)
      mc_bin_client.MemcachedError: Memcached error #1: Not found

      This should work since the bucket 'test' does not have a password defined. I'm presuming that this is because the script is expecting 'logs' as an argument but it's quite confusing for the user. Replacing the above with this works:

      [perry@Membase1 management]$ ./stats localhost:11210 dispatcher test bogus_password
      dispatcher
      runtime: 781ms
      state: dispatcher_running
      status: running
      task: IdleTask (sleeping)
      nio_dispatcher
      runtime: 3s
      state: dispatcher_running
      status: running
      task: IdleTask (sleeping)
      ro_dispatcher
      state: dispatcher_running
      status: idle

      Attachments

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

        Activity

          People

            bcui Bin Cui (Inactive)
            perry Perry Krug
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty