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

[Examinador] Examinador not working on M1 Macbook

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • master
    • master
    • tools
    • M1 Macbook, Python version 3.10.6
    • 1

    Description

      When attempting to run:

      robot-env/bin/robot --variable SOURCE:/Users/safianali/VSCodeProjects/tlm/source --variable SKIP_LOGS:True -L DEBUG cbm_multi_service_tests

      on an M1 Macbook, I get a segmentation error

      ==============================================================================
      Cbm Multi Service Tests :: This test suite tests cbbackupmgr commands when ...
      ==============================================================================
      Starting cluster_run cluster -n 1
      cluster run process started
      Checking that node http://localhost:9000 is ready
      2022-09-28 10:48:05.173902 Polling attempt 1
      2022-09-28 10:48:06.184554 Polling attempt 2
      2022-09-28 10:48:08.196501 Polling attempt 3
      2022-09-28 10:48:11.203385 Polling attempt 4
      2022-09-28 10:48:15.209915 Polling attempt 5
      2022-09-28 10:48:20.216795 Polling attempt 6
      Node is ready
      Connecting nodes n0:kv+index+n1ql+fts+cbas+eventing
      Nodes connected
      Nodes rebalanced
      Running /Users/safianali/VSCodeProjects/tlm/source/install/bin/couchbase-cli bucket-edit -c http://localhost:9000 -u Administrator -p asdasd --bucket default --enable-flush 1 ...
      SUCCESS: Bucket edited
      Cbm Multi Service Tests.Specific Service Backup Tests :: These test that da...
      ==============================================================================
      Sending HTTP GET request to http://localhost:9000/pools/default/buckets/default ...
      Response received but not logged
      Running /Users/safianali/VSCodeProjects/tlm/source/install/bin/couchbase-cli bucket-delete -c http://localhost:9000 -u Administrator -p asdasd --bucket default ...
      SUCCESS: Bucket deleted
      Sending HTTP GET request to http://localhost:9000/pools/default/nodeServices ...
      Received response: {"rev":85,"nodesExt":[{"services":{"capi":9500,"capiSSL":19500,"cbas":9600,"cbasSSL":19600,"eventingAdminPort":9300,"eventingDebug":9301,"eventingSSL":19300,"fts":9200,"ftsGRPC":9201,"ftsGRPCSSL":19201,"ftsSSL":19200,"indexAdmin":9100,"indexHttp":9102,"indexHttps":19102,"indexScan":9101,"indexStreamCatchup":9104,"indexStreamInit":9103,"indexStreamMaint":9105,"kv":12000,"kvSSL":11998,"mgmt":9000,"mgmtSSL":19000,"n1ql":9499,"n1qlSSL":19499,"projector":10000},"thisNode":true}],"clusterCapabilitiesVer":[1,0],"clusterCapabilities":{"n1ql":["enhancedPreparedStatements"]},"revEpoch":1}
      {'capi': 9500, 'capiSSL': 19500, 'cbas': 9600, 'cbasSSL': 19600, 'eventingAdminPort': 9300, 'eventingDebug': 9301, 'eventingSSL': 19300, 'fts': 9200, 'ftsGRPC': 9201, 'ftsGRPCSSL': 19201, 'ftsSSL': 19200, 'indexAdmin': 9100, 'indexHttp': 9102, 'indexHttps': 19102, 'indexScan': 9101, 'indexStreamCatchup': 9104, 'indexStreamInit': 9103, 'indexStreamMaint': 9105, 'kv': 12000, 'kvSSL': 11998, 'mgmt': 9000, 'mgmtSSL': 19000, 'n1ql': 9499, 'n1qlSSL': 19499, 'projector': 10000}
      Sending HTTP GET request to http://localhost/api/v1/stats ...
      Received response: {"indexer":{"indexer_state":"Active","memory_quota":268435456,"memory_total_storage":5701632,"memory_used":91929032,"total_indexer_gc_pause_ns":2414707}}
      Sending HTTP GET request to http://localhost:9000/pools/default/buckets/default ...
      Response received but not logged
      Running /Users/safianali/VSCodeProjects/tlm/source/install/bin/couchbase-cli bucket-create -c http://localhost:9000 -u Administrator -p asdasd --bucket default --bucket-ramsize 100 --bucket-replica 0 --bucket-type couchbase --enable-flush 1 --wait ...
      SUCCESS: Bucket created
      Sending HTTP GET request to http://localhost:9000/pools/default/buckets/meta ...
      Response received but not logged
      Running /Users/safianali/VSCodeProjects/tlm/source/install/bin/couchbase-cli bucket-create -c http://localhost:9000 -u Administrator -p asdasd --bucket meta --bucket-ramsize 100 --bucket-replica 0 --bucket-type couchbase --enable-flush 1 --wait ...
      SUCCESS: Bucket created
      Sending HTTP GET request to http://localhost:9000/pools/default/nodeServices ...
      Received response: {"rev":85,"nodesExt":[{"services":{"capi":9500,"capiSSL":19500,"cbas":9600,"cbasSSL":19600,"eventingAdminPort":9300,"eventingDebug":9301,"eventingSSL":19300,"fts":9200,"ftsGRPC":9201,"ftsGRPCSSL":19201,"ftsSSL":19200,"indexAdmin":9100,"indexHttp":9102,"indexHttps":19102,"indexScan":9101,"indexStreamCatchup":9104,"indexStreamInit":9103,"indexStreamMaint":9105,"kv":12000,"kvSSL":11998,"mgmt":9000,"mgmtSSL":19000,"n1ql":9499,"n1qlSSL":19499,"projector":10000},"thisNode":true}],"clusterCapabilitiesVer":[1,0],"clusterCapabilities":{"n1ql":["enhancedPreparedStatements"]},"revEpoch":1}
      Sending HTTP GET request to http://localhost:9000/pools/default/buckets/default ...
      Response received but not logged
      Running /Users/safianali/VSCodeProjects/tlm/source/install/bin/cbstats -u Administrator -p asdasd -b default localhost:12000 -j all ...
      Sending HTTP GET request to http://localhost:9000/pools/default/nodeServices ...
      Received response: {"rev":118,"nodesExt":[{"services":{"capi":9500,"capiSSL":19500,"cbas":9600,"cbasSSL":19600,"eventingAdminPort":9300,"eventingDebug":9301,"eventingSSL":19300,"fts":9200,"ftsGRPC":9201,"ftsGRPCSSL":19201,"ftsSSL":19200,"indexAdmin":9100,"indexHttp":9102,"indexHttps":19102,"indexScan":9101,"indexStreamCatchup":9104,"indexStreamInit":9103,"indexStreamMaint":9105,"kv":12000,"kvSSL":11998,"mgmt":9000,"mgmtSSL":19000,"n1ql":9499,"n1qlSSL":19499,"projector":10000},"thisNode":true}],"clusterCapabilitiesVer":[1,0],"clusterCapabilities":{"n1ql":["enhancedPreparedStatements"]},"revEpoch":1}
      Sending HTTP GET request to http://localhost:9000/pools/default/buckets/default ...
      Response received but not logged
      Running /Users/safianali/VSCodeProjects/tlm/source/install/bin/cbstats -u Administrator -p asdasd -b default localhost:12000 -j all ...
      zsh: segmentation fault  robot-env/bin/robot --variable  --variable SKIP_LOGS:True -L DEBUG 

      Debugging suggests segmentation fault occurs at line 84 in libraries/sdk_utils.py:

      analytics_mgr.create_dataset(dataset, "default", CreateDatasetOptions(ignore_if_exists=True)) 

      What needs to be done?
      Upgrading the Couchbase SDK to >4.1.0 should resolve this issue. While doing that, it makes sense to take a look at MB-56628, which may ease the process of upgrading/fixing dependencies
       

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-53871
          # Subject Branch Project Status CR V

          Activity

            People

              safian.ali Safian Ali
              safian.ali Safian Ali
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change

                  PagerDuty