Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-1319

LCB_UNKNOWN_HOST error with ping() method

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 2.10.6
    • None
    • None
    • Debian 8x, MacOS 10.15.6
    • 1

    Description

      When connecting via DNS, the ping() method returns "LCB_UNKNOWN_HOST (0x15): DNS/Hostname lookup failed" for the search and query services while k/v seems to be okay.

      For further clarification, we are testing in EKS using ExternalDNS.  For the k/v service we see the correct DNS entry being used:  devday-il-0000.se-couchbasedemos.com. However, for the other nodes where k/v is not running, it appears to be using the internal Kubernetes DNS entry:  devday-il-0003.devday-il.devday-il.svc.

      Sample output (full output attached) is below.

       

      {
        "config_rev": 66,
        "id": "0x104707670",
        "sdk": "libcouchbase/2.10.6-njs couchnode/2.6.12 (node/12.18.2; v8/7.8.279.23-node.39; ssl/1.1.1g)",
        "services": {
          "fts": [
            {
              "details": "LCB_UNKNOWN_HOST (0x15): DNS/Hostname lookup failed",
              "latency_us": 510383,
              "remote": "devday-il-0003.devday-il.devday-il.svc:18094",
              "status": "error"
            },
            ...
          ],
          "kv": [
            {
              "id": "0x10400a420",
              "latency_us": 660216,
              "local": "192.168.1.67:54854",
              "remote": "devday-il-0000.se-couchbasedemos.com:11207",
              "scope": "retailsample",
              "status": "ok"
            },
            ...
          ],
          "n1ql": [
            {
              "details": "LCB_UNKNOWN_HOST (0x15): DNS/Hostname lookup failed",
              "latency_us": 932,
              "remote": "devday-il-0005.devday-il.devday-il.svc:18093",
              "status": "error"
            },
            ...
          ]
        },
        "version": 1
      }
      

      host information: 

       

      connection string:  couchbases://devday-il-0000.se-couchbasedemos.com?ssl=no_verify

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            jared.casey Jared Casey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty