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

Cannot use Developer Preview mode due to OpenSSL issue in couchbase-cli

    XMLWordPrintable

Details

    • Untriaged
    • MacOSX 64-bit
    • 0
    • Unknown

    Description

      On the Morpheus build

      Running: 

      ./couchbase-cli enable-developer-preview \
      --enable -c localhost:9000 -u Administrator -p password

      Result:

      Traceback (most recent call last):
        File "/Users/jineshparakh/Github/Couchbase_Analytics/new/couchbase-cli/couchbase-cli", line 10, in <module>
          import cbmgr
        File "/Users/jineshparakh/Github/Couchbase_Analytics/new/couchbase-cli/cbmgr.py", line 23, in <module>
          from cluster_manager import ClusterManager
        File "/Users/jineshparakh/Github/Couchbase_Analytics/new/couchbase-cli/cluster_manager.py", line 19, in <module>
          from x509_adapter import X509Adapter, X509AdapterFactory
        File "/Users/jineshparakh/Github/Couchbase_Analytics/new/couchbase-cli/x509_adapter.py", line 23, in <module>
          import pem
        File "/Users/jineshparakh/Github/Couchbase_Analytics/new/install/lib/python/interp/lib/python3.9/site-packages/pem/__init__.py", line 26, in <module>
          from . import twisted
        File "/Users/jineshparakh/Github/Couchbase_Analytics/new/install/lib/python/interp/lib/python3.9/site-packages/pem/twisted.py", line 9, in <module>
          from OpenSSL.SSL import FILETYPE_PEM
        File "/Users/jineshparakh/Github/Couchbase_Analytics/new/install/lib/python/interp/lib/python3.9/site-packages/OpenSSL/__init__.py", line 8, in <module>
          from OpenSSL import SSL, crypto
        File "/Users/jineshparakh/Github/Couchbase_Analytics/new/install/lib/python/interp/lib/python3.9/site-packages/OpenSSL/SSL.py", line 9, in <module>
          from OpenSSL._util import (
        File "/Users/jineshparakh/Github/Couchbase_Analytics/new/install/lib/python/interp/lib/python3.9/site-packages/OpenSSL/_util.py", line 6, in <module>
          from cryptography.hazmat.bindings.openssl.binding import Binding
        File "/Users/jineshparakh/Github/Couchbase_Analytics/new/install/lib/python/interp/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 232, in <module>
          Binding.init_static_locks()
        File "/Users/jineshparakh/Github/Couchbase_Analytics/new/install/lib/python/interp/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 206, in init_static_locks
          cls._ensure_ffi_initialized()
        File "/Users/jineshparakh/Github/Couchbase_Analytics/new/install/lib/python/interp/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 195, in _ensure_ffi_initialized
          _legacy_provider_error(cls._legacy_provider_loaded)
        File "/Users/jineshparakh/Github/Couchbase_Analytics/new/install/lib/python/interp/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 104, in _legacy_provider_error
          raise RuntimeError(
      RuntimeError: OpenSSL 3.0's legacy provider failed to load. This is a fatal error by default, but cryptography supports running without legacy algorithms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did not expect this error, you have likely made a mistake with your OpenSSL configuration. 

      Steps to reproduce:
      1. Initialise the repo 

      repo init -u https://github.com/couchbase/manifest.git -m couchbase-server/morpheus.xml -g all 

      2. Sync the repo

      repo sync --jobs=10

      3. Make

      make -j10
      

      4. Do cluster_run

      ns_server/./cluster_run 

      5. Wait for the server to start
      6. Go to build/couchbase-cli and run the command

      cd build/couchbase-cli
      ./couchbase-cli enable-developer-preview \
      --enable -c localhost:9000 -u Administrator -p password

      Attachments

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

        Activity

          People

            gilad.kalchheim Gilad Kalchheim
            jinesh.parakh Jinesh Parakh
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty