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