Details
Description
Download couchbase server 2.0.1-170
Login as non-root user (test)
Follow instruction in https://github.com/couchbase/voltron/blob/2.0.1/README-non-root.md to install couchbase server
Start couchbase server
Open web browser to do initial setup.
Go to opt/couchbase/bin/tools
Run cbstats at port 11210, failed to get info
[test@ip-10-33-3-109 ~]$ ./opt/couchbase/bin/cbstats 10.33.3.109:11210 all
Stats '' are not available from the requested engine.
[test@ip-10-33-3-109 ~]$ ./opt/couchbase/bin/cbstats 10.33.3.109:11210 all -b default
Traceback (most recent call last):
File "/home/test/opt/couchbase/lib/python/cbstats", line 428, in ?
main()
File "/home/test/opt/couchbase/lib/python/cbstats", line 425, in main
c.execute()
File "/home/test/opt/couchbase/lib/python/clitool.py", line 58, in execute
f[0](mc, *args[2:], **opts._dict_)
File "/home/test/opt/couchbase/lib/python/cbstats", line 32, in g
mc.sasl_auth_plain(bucket, password)
File "/home/test/opt/couchbase/lib/python/mc_bin_client.py", line 262, in sasl_auth_plain
return self.sasl_auth_start('PLAIN', '\0'.join([foruser, user, password]))
File "/home/test/opt/couchbase/lib/python/mc_bin_client.py", line 258, in sasl_auth_start
return self._doCmd(memcacheConstants.CMD_SASL_AUTH, mech, data)
File "/home/test/opt/couchbase/lib/python/mc_bin_client.py", line 104, in _doCmd
return self._handleSingleResponse(opaque)
File "/home/test/opt/couchbase/lib/python/mc_bin_client.py", line 97, in _handleSingleResponse
cmd, opaque, cas, keylen, extralen, data = self._handleKeyedResponse(myopaque)
File "/home/test/opt/couchbase/lib/python/mc_bin_client.py", line 89, in _handleKeyedResponse
cmd, errcode, opaque, cas, keylen, extralen, rv = self._recvMsg()
File "/home/test/opt/couchbase/lib/python/mc_bin_client.py", line 71, in _recvMsg
raise exceptions.EOFError("Got empty data (remote died?).")
EOFError: Got empty data (remote died?).
[test@ip-10-33-3-109 ~]$ ./opt/couchbase/bin/cbstats 10.33.3.109:11210 all -b sasl -p password
Traceback (most recent call last):
File "/home/test/opt/couchbase/lib/python/cbstats", line 428, in ?
main()
File "/home/test/opt/couchbase/lib/python/cbstats", line 425, in main
c.execute()
File "/home/test/opt/couchbase/lib/python/clitool.py", line 58, in execute
f[0](mc, *args[2:], **opts._dict_)
File "/home/test/opt/couchbase/lib/python/cbstats", line 32, in g
mc.sasl_auth_plain(bucket, password)
File "/home/test/opt/couchbase/lib/python/mc_bin_client.py", line 262, in sasl_auth_plain
return self.sasl_auth_start('PLAIN', '\0'.join([foruser, user, password]))
File "/home/test/opt/couchbase/lib/python/mc_bin_client.py", line 258, in sasl_auth_start
return self._doCmd(memcacheConstants.CMD_SASL_AUTH, mech, data)
File "/home/test/opt/couchbase/lib/python/mc_bin_client.py", line 104, in _doCmd
return self._handleSingleResponse(opaque)
File "/home/test/opt/couchbase/lib/python/mc_bin_client.py", line 97, in _handleSingleResponse
cmd, opaque, cas, keylen, extralen, data = self._handleKeyedResponse(myopaque)
File "/home/test/opt/couchbase/lib/python/mc_bin_client.py", line 89, in _handleKeyedResponse
cmd, errcode, opaque, cas, keylen, extralen, rv = self._recvMsg()
File "/home/test/opt/couchbase/lib/python/mc_bin_client.py", line 71, in _recvMsg
raise exceptions.EOFError("Got empty data (remote died?).")
EOFError: Got empty data (remote died?).
Load items to both bucket, items loaed
grep process
[test@ip-10-33-3-109 ~]$ ps aux | grep memcached
test 2047 0.3 6.0 706412 474232 ? Ssl 02:09 3:21 /home/test/opt/couchbase/bin/memcached.bin -X /home/test/opt/couchbase/lib/memcached/stdin_term_handler.so -X /home/test/opt/couchbase/lib/memcached/file_logger.so,cyclesize=104857600;sleeptime=19;filename=/home/test/opt/couchbase/var/lib/couchbase/logs/memcached.log -l 0.0.0.0:11210,0.0.0.0:11209:1000 -p 11210 -E /home/test/opt/couchbase/lib/memcached/bucket_engine.so -B binary -r -c 10000 -e admin=_admin;default_bucket_name=default;auto_create=false
test 6963 0.0 0.0 61180 812 pts/3 S+ 18:09 0:00 grep memcached
[test@ip-10-33-3-109 ~]$ ps aux | grep couchbase
test 1881 8.1 5.8 850812 456204 pts/1 Sl+ 02:07 78:47 /home/test/opt/couchbase/lib/erlang/erts-5.8.5/bin/beam.smp -A 16 -sbt u -P 327680 -K true -MMmcs 30 – -root /home/test/opt/couchbase/lib/erlang -progname erl – -home /home/test – -smp enable -setcookie nocookie -kernel inet_dist_listen_min 21100 inet_dist_listen_max 21299 error_logger false -sasl sasl_error_logger false -run ns_bootstrap – -couch_ini /home/test/opt/couchbase/etc/couchdb/default.ini /home/test/opt/couchbase/etc/couchdb/default.d/capi.ini /home/test/opt/couchbase/etc/couchdb/default.d/geocouch.ini /home/test/opt/couchbase/etc/couchdb/local.ini -ns_server config_path "/home/test/opt/couchbase/etc/couchbase/static_config" -ns_server pidfile "/home/test/opt/couchbase/var/lib/couchbase/couchbase-server.pid" -ns_server nodefile "/home/test/opt/couchbase/var/lib/couchbase/couchbase-server.node" -ns_server cookiefile "/home/test/opt/couchbase/var/lib/couchbase/couchbase-server.cookie" -ns_server enable_mlockall true
test 1892 0.0 0.0 10572 568 ? S 02:07 0:00 /home/test/opt/couchbase/lib/erlang/erts-5.8.5/bin/epmd -daemon
test 1931 0.0 0.0 3800 548 ? Ss 02:07 0:00 /home/test/opt/couchbase/lib/erlang/lib/os_mon-2.2.7/priv/bin/memsup
test 1932 0.0 0.0 3796 412 ? Ss 02:07 0:00 /home/test/opt/couchbase/lib/erlang/lib/os_mon-2.2.7/priv/bin/cpu_sup
test 1933 0.0 0.0 38348 2016 ? Ss 02:07 0:00 /home/test/opt/couchbase/lib/erlang/lib/ssl-4.1.6/priv/bin/ssl_esock
test 2046 0.0 0.0 158172 3504 ? Ssl 02:09 0:34 /home/test/opt/couchbase/bin/moxi.bin -Z port_listen=11211,default_bucket_name=default,downstream_max=1024,downstream_conn_max=4,connect_max_errors=5,connect_retry_interval=30000,connect_timeout=400,auth_timeout=100,cycle=200,downstream_conn_queue_timeout=200,downstream_timeout=5000,wait_queue_timeout=200 -z url=http://127.0.0.1:8091/pools/default/saslBucketsStreaming -p 0 -Y y -O stderr
test 2047 0.3 6.0 706412 474232 ? Ssl 02:09 3:21 /home/test/opt/couchbase/bin/memcached.bin -X /home/test/opt/couchbase/lib/memcached/stdin_term_handler.so -X /home/test/opt/couchbase/lib/memcached/file_logger.so,cyclesize=104857600;sleeptime=19;filename=/home/test/opt/couchbase/var/lib/couchbase/logs/memcached.log -l 0.0.0.0:11210,0.0.0.0:11209:1000 -p 11210 -E /home/test/opt/couchbase/lib/memcached/bucket_engine.so -B binary -r -c 10000 -e admin=_admin;default_bucket_name=default;auto_create=false
test 2073 0.0 0.0 6016 580 ? Ss 02:09 0:07 /home/test/opt/couchbase/bin/sigar_port.bin
test 6032 0.0 0.0 13612 920 pts/0 T 15:03 0:00 /home/test/opt/couchbase/bin/sqlite3.bin
test 6965 0.0 0.0 61180 812 pts/3 S+ 18:09 0:00 grep couchbase
[test@ip-10-
Moxi port works ok
[test@ip-10-33-3-109 ~]$ ./opt/couchbase/bin/cbstats 10.118.163.79:11211 all -b sasl -p password
accepting_conns: 1
auth_cmds: 3078
auth_errors: 0
bucket_active_conns: 1
bucket_conns: 12
bytes: 222778816
bytes_read: 184970587
bytes_written: 2074537677
cas_badval: 0
cas_hits: 0
cas_misses: 0
cmd_flush: 0
cmd_get: 1
cmd_set: 14174
conn_yields: 14895
connection_structures: 1006
curr_connections: 26
curr_conns_on_port_11209: 19
curr_conns_on_port_11210: 5
curr_items: 164042
curr_items_tot: 314174
curr_temp_items: 0
daemon_connections: 4
decr_hits:
Link to collect info from 2 nodes