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

cbstats errors out when tls is enforced

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • No

    Description

      7.0.2-6577

      Install 7.0.2-6577 and init the cluster
      Enforce tls with following:
      [root@node2-cb700-beta-centos7 bin]# ./couchbase-cli setting-autofailover -c http://localhost:8091 -u Administrator -p password --enable-auto-failover 0
      SUCCESS: Auto-failover settings modified
      [root@node2-cb700-beta-centos7 bin]# ./couchbase-cli node-to-node-encryption -c http://localhost:8091 -u Administrator -p password --enable
      Turned on encryption for node: http://[::1]:8091
      SUCCESS: Switched node-to-node encryption on
      [root@node2-cb700-beta-centos7 bin]# ./couchbase-cli setting-security -c http://localhost:8091 -u Administrator -p password --set --cluster-encryption-level strict
      SUCCESS: Security settings updated
      [root@node2-cb700-beta-centos7 bin]# cd /opt/couchbase/var/lib/couchbase/logs/

      Create default bucket
      [root@node2-cb700-beta-centos7 bin]# ./cbstats 10.112.210.102:11207 all -a -u Administrator -p password -j
      Traceback (most recent call last):
      File "/opt/couchbase/lib/python/cbstats", line 1010, in <module>
      main()
      File "/opt/couchbase/lib/python/cbstats", line 1007, in main
      c.execute()
      File "/opt/couchbase/lib/python/clitool.py", line 83, in execute
      f[0](mc, *args[2:], **opts._dict_)
      File "/opt/couchbase/lib/python/cbstats", line 49, in g
      f(*args, **kwargs)
      File "/opt/couchbase/lib/python/cli_auth_utils.py", line 79, in g
      mc.sasl_auth_plain(username, password)
      File "/opt/couchbase/lib/python/mc_bin_client.py", line 488, in sasl_auth_plain
      return self.sasl_auth_start('PLAIN', '\0'.join([foruser, user, password]))
      File "/opt/couchbase/lib/python/mc_bin_client.py", line 484, in sasl_auth_start
      return self._doCmd(memcacheConstants.CMD_SASL_AUTH, mech, data)
      File "/opt/couchbase/lib/python/mc_bin_client.py", line 303, in _doCmd
      return self._handleSingleResponse(opaque)
      File "/opt/couchbase/lib/python/mc_bin_client.py", line 296, in _handleSingleResponse
      cmd, opaque, cas, keylen, extralen, data = self._handleKeyedResponse(myopaque)
      File "/opt/couchbase/lib/python/mc_bin_client.py", line 281, in _handleKeyedResponse
      cmd, errcode, opaque, cas, keylen, extralen, rv = self._recvMsg()
      File "/opt/couchbase/lib/python/mc_bin_client.py", line 250, in _recvMsg
      data = self._socketRecv(MIN_RECV_PACKET - len(response))
      File "/opt/couchbase/lib/python/mc_bin_client.py", line 244, in _socketRecv
      return self.s.recv(amount)
      ConnectionResetError: [Errno 104] Connection reset by peer

      Attachments

        Issue Links

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

          Activity

            People

              owend Daniel Owen
              arunkumar Arunkumar Senthilnathan (Inactive)
              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