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

couchbase-cli server-eshell fails when '-d' arg passed.

    XMLWordPrintable

Details

    • Untriaged
    • 0
    • Unknown

    Description

      When I run the following command:

      ./install/bin/couchbase-cli server-eshell -u Administrator -p asdasd --cluster 127.0.0.1:9000 --erl-path ./install/lib/erlang/bin -d
      

      I see:

      ./install/bin/couchbase-cli server-eshell -u Administrator -p asdasd --cluster 127.0.0.1:9000 --erl-path ./install/lib/erlang/bin -d
      GET http://127.0.0.1:9000/pools
      200, {'Cache-Control': 'no-cache,no-store,must-revalidate', 'Content-Length': '917', 'Content-Type': 'application/json', 'Date': 'Thu, 23 Feb 2023 00:10:46 GMT', 'Expires': 'Thu, 01 Jan 1970 00:00:00 GMT', 'Pragma': 'no-cache', 'Server': 'Couchbase Server', 'X-Content-Type-Options': 'nosniff', 'X-Frame-Options': 'DENY', 'X-Permitted-Cross-Domain-Policies': 'none', 'X-XSS-Protection': '1; mode=block'}, b'{"isAdminCreds":true,"isROAdminCreds":false,"isEnterprise":true,"configProfile":"default","allowedServices":["kv","n1ql","index","fts","cbas","eventing","backup"],"isDeveloperPreview":false,"packageVariant":"","pools":[{"name":"default","uri":"/pools/default?uuid=b5ca97b741de289e363cb55a2fec61a9","streamingUri":"/poolsStreaming/default?uuid=b5ca97b741de289e363cb55a2fec61a9"}],"settings":{"maxParallelIndexers":"/settings/maxParallelIndexers?uuid=b5ca97b741de289e363cb55a2fec61a9","viewUpdateDaemon":"/settings/viewUpdateDaemon?uuid=b5ca97b741de289e363cb55a2fec61a9"},"uuid":"b5ca97b741de289e363cb55a2fec61a9","implementationVersion":"7.5.0-0000-enterprise","componentsVersion":{"ale":"0.0.0","inets":"8.1","os_mon":"2.7.1","kernel":"8.5.1","lhttpc":"1.3.0","sasl":"4.2","ssl":"10.8.5","chronicle":"0.0.1","public_key":"1.13.1","ns_server":"7.5.0-0000-enterprise","stdlib":"4.1.1","crypto":"5.1.2","asn1":"5.0.21"}}'
      GET http://127.0.0.1:9000/nodes/self
      200, {'Cache-Control': 'no-cache,no-store,must-revalidate', 'Content-Length': '2716', 'Content-Type': 'application/json', 'Date': 'Thu, 23 Feb 2023 00:10:46 GMT', 'Expires': 'Thu, 01 Jan 1970 00:00:00 GMT', 'Pragma': 'no-cache', 'Server': 'Couchbase Server', 'X-Content-Type-Options': 'nosniff', 'X-Frame-Options': 'DENY', 'X-Permitted-Cross-Domain-Policies': 'none', 'X-XSS-Protection': '1; mode=block'}, b'{"availableStorage":{"hdd":[{"path":"/","sizeKBytes":488245288,"usagePercent":7},{"path":"/System/Volumes/Data","sizeKBytes":488245288,"usagePercent":68},{"path":"/private/var/vm","sizeKBytes":488245288,"usagePercent":3},{"path":"/Volumes/Recovery","sizeKBytes":488245288,"usagePercent":1}]},"storageTotals":{"ram":{"total":34359738368,"quotaTotal":3355443200,"quotaUsed":1073741824,"used":34009165824,"usedByData":11849520,"quotaUsedPerNode":1073741824,"quotaTotalPerNode":3355443200},"hdd":{"total":499963174912,"quotaTotal":499963174912,"used":34997422243,"usedByData":2947544,"free":464965752669}},"storage":{"ssd":[],"hdd":[{"path":"/Users/hareen.kancharla/cb/src-elixir-feb-2023/ns_server/data/n_0/data","index_path":"/Users/hareen.kancharla/cb/src-elixir-feb-2023/ns_server/data/n_0/data","cbas_dirs":["/Users/hareen.kancharla/cb/src-elixir-feb-2023/ns_server/data/n_0/data"],"eventing_path":"/Users/hareen.kancharla/cb/src-elixir-feb-2023/ns_server/data/n_0/data","java_home":"","quotaMb":"none","state":"ok"}]},"clusterMembership":"active","recoveryType":"none","status":"healthy","otpNode":"n_0@192.168.86.242","thisNode":true,"hostname":"192.168.86.242:9000","nodeUUID":"191b985983c19041ead348d8743b9dda","clusterCompatibility":458757,"version":"7.5.0-0000-enterprise","os":"x86_64-apple-darwin19.6.0","cpuCount":12,"ports":{"direct":12000,"httpsMgmt":19000,"httpsCAPI":19500,"distTCP":21400,"distTLS":21450},"services":["kv"],"nodeEncryption":false,"nodeEncryptionClientCertVerification":false,"addressFamilyOnly":false,"configuredHostname":"192.168.86.242:9000","addressFamily":"inet","externalListeners":[{"afamily":"inet","nodeEncryption":false}],"serverGroup":"Group 1","otpCookie":"cf4b21f9aa8d3cbe233c0613953870a37f26f10f407ee6b7a86c1addb0e6bdc4","couchApiBase":"http://192.168.86.242:9500/","couchApiBaseHTTPS":"https://192.168.86.242:19500/","nodeHash":40863242,"systemStats":{"cpu_utilization_rate":15.18080319946676,"cpu_stolen_rate":0,"swap_total":2147483648,"swap_used":903348224,"mem_total":34359738368,"mem_free":13697880064,"mem_limit":34359738368,"cpu_cores_available":12,"allocstall":0},"interestingStats":{"cmd_get":0,"couch_docs_actual_disk_size":2947544,"couch_docs_data_size":1162176,"couch_spatial_data_size":0,"couch_spatial_disk_size":0,"couch_views_actual_disk_size":0,"couch_views_data_size":0,"curr_items":0,"curr_items_tot":0,"ep_bg_fetched":0,"get_hits":0,"mem_used":11849520,"ops":0,"vb_active_num_non_resident":0,"vb_replica_curr_items":0},"uptime":"40312","memoryTotal":34359738368,"memoryFree":13697880064,"mcdMemoryReserved":26214,"mcdMemoryAllocated":26214,"memoryQuota":3200,"indexMemoryQuota":512,"ftsMemoryQuota":512,"cbasMemoryQuota":3522,"eventingMemoryQuota":256}'
      Traceback (most recent call last):
        File "/Users/hareen.kancharla/cb/src-elixir-feb-2023/install/lib/python/interp/lib/python3.9/urllib/parse.py", line 938, in urlencode
          raise TypeError
      TypeError
       
      During handling of the above exception, another exception occurred:
       
      Traceback (most recent call last):
        File "/Users/hareen.kancharla/cb/src-elixir-feb-2023/install/lib/python/couchbase-cli", line 22, in <module>
          main()
        File "/Users/hareen.kancharla/cb/src-elixir-feb-2023/install/lib/python/couchbase-cli", line 17, in main
          cli.execute(args)
        File "/Users/hareen.kancharla/cb/src-elixir-feb-2023/install/lib/python/cbmgr.py", line 624, in execute
          opts.klass().execute(opts)
        File "/Users/hareen.kancharla/cb/src-elixir-feb-2023/install/lib/python/cbmgr.py", line 147, in decorator
          return fn(self, opts)
        File "/Users/hareen.kancharla/cb/src-elixir-feb-2023/install/lib/python/cbmgr.py", line 2123, in execute
          cookie, errors = self.rest.get_ns_server_cookie()
        File "/Users/hareen.kancharla/cb/src-elixir-feb-2023/install/lib/python/cluster_manager.py", line 1181, in get_ns_server_cookie
          return self._post_form_encoded(url, payload)
        File "/Users/hareen.kancharla/cb/src-elixir-feb-2023/install/lib/python/cluster_manager.py", line 55, in g
          return f(*args, **kwargs)
        File "/Users/hareen.kancharla/cb/src-elixir-feb-2023/install/lib/python/cluster_manager.py", line 2507, in _post_form_encoded
          print(f'POST {url} {self._url_encode_params(params)}')
        File "/Users/hareen.kancharla/cb/src-elixir-feb-2023/install/lib/python/cluster_manager.py", line 2490, in _url_encode_params
          return urllib.parse.urlencode(params if params is not None else {})
        File "/Users/hareen.kancharla/cb/src-elixir-feb-2023/install/lib/python/interp/lib/python3.9/urllib/parse.py", line 945, in urlencode
          raise TypeError("not a valid non-string sequence "
        File "/Users/hareen.kancharla/cb/src-elixir-feb-2023/install/lib/python/interp/lib/python3.9/urllib/parse.py", line 938, in urlencode
          raise TypeError
      TypeError: not a valid non-string sequence or mapping object
      

      Attachments

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

        Activity

          People

            pulkit.matta Pulkit Matta
            hareen.kancharla Hareen Kancharla
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty