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

Fail to connect to n1ql via alternate address/port

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.0.0
    • Cheshire-Cat
    • query
    • Untriaged
    • 1
    • Unknown

    Description

      Cluster is configured with alternate address/port using command:

       # /opt/couchbase/bin/couchbase-cli setting-alternate-address -c 172.23.104.90 --username Administrator --hostname cluster.com --password password --set --node 172.23.104.90 --ports n1ql=9000,n1qlSSL=19000

      Node config:

       [root@localhost tmp]# /opt/couchbase/bin/couchbase-cli setting-alternate-address -c 172.23.104.90 -u Administrator -p password --list
      Hostname            Alternate Address   Ports (Primary/Alternate)
                                              n1ql       n1qlSSL    
      172.23.104.90       cluster.com         8093/9000  18093/19000
      172.23.104.91

      From another node, I cannot connect via alternate host/port:

      [root@localhost bin]# ./cbq -u Administrator -p password -e cluster.com --networkconfig=external
       ERROR 100 : N1QL: Connection failed Post http://cluster.com:9000/query/service: dial tcp 172.23.104.90:9000: connect: connection refused  
       
      or
       
      [root@localhost bin]# ./cbq -u Administrator -p password -e cluster.com:9000 --networkconfig=external
       ERROR 100 : N1QL: Connection failed Post http://cluster.com:9000/query/service: dial tcp 172.23.104.90:9000: connect: connection refused
       N1QL: Unable to connect to cluster endpoint http://cluster.com:9000/. Error Get http://cluster.com:9000/pools: dial tcp 172.23.104.90:9000: connect: connection refused 

       

      Attachments

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

        Activity

          People

            pierre.regazzoni Pierre Regazzoni
            pierre.regazzoni Pierre Regazzoni
            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