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

cbtransfer errors out when tls is enforced

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 7.0.2
    • 7.1.0
    • tools

    Description

      Tested on 7.0.2 build 6645 

      Selected Enforce TLS as Strict.

      Executed cbtransfer command as:

      cbtransfer https://172.23.97.111:18091 stdout: -u Administrator -p password
      WARN: cbtransfer is deprecated please use cbdatarecovery instead
      Exception in thread w0:
      Traceback (most recent call last):
      File "C:\Program Files\Couchbase\Server\lib\python\runtime\lib\threading.py", line 954, in _bootstrap_inner
      self.run()
      File "C:\Program Files\Couchbase\Server\lib\python\runtime\lib\threading.py", line 892, in run
      self._target(*self._args, **self._kwargs)
      File "C:\Program Files\Couchbase\Server\lib\python\pump.py", line 426, in run_worker
      rv = Pump(self.opts, source, sink, source_map, sink_map, self.ctl,
      File "C:\Program Files\Couchbase\Server\lib\python\pump.py", line 485, in run
      rv_batch, batch = self.source.provide_batch()
      File "C:\Program Files\Couchbase\Server\lib\python\pump_dcp.py", line 251, in provide_batch
      rv = self.get_dcp_conn()
      File "C:\Program Files\Couchbase\Server\lib\python\pump_dcp.py", line 546, in get_dcp_conn
      err, self.dcp_conn = pump.get_mcd_conn(host, port, username, password, bucket, self.opts.ssl,
      File "C:\Program Files\Couchbase\Server\lib\python\pump.py", line 1181, in get_mcd_conn
      conn = cb_bin_client.MemcachedClient(host, port, use_ssl=use_ssl, verify=verify, cacert=ca_cert)
      File "C:\Program Files\Couchbase\Server\lib\python\cb_bin_client.py", line 118, in _init_
      raise sock_error
      UnboundLocalError: local variable 'sock_error' referenced before assignment
      interrupted.

      When executed same command for non strict , command executed successfully: cbtransfer http://172.23.96.164:8091 stdout: -u Administrator -p password.

      Attachments

        Issue Links

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

          Activity

            drigby Dave Rigby added a comment -

            Changing component to tools - cbtransfer isn't part of couchbase-bucket.

            drigby Dave Rigby added a comment - Changing component to tools - cbtransfer isn't part of couchbase-bucket.

            People

              deepika.verma Deepika Verma (Inactive)
              deepika.verma Deepika Verma (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty