Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-2069

Kubernetes Couchbase cluster - ServiceNotSupportedException-QueryService

    XMLWordPrintable

Details

    • 1

    Description

      Hello,

      I setup a K8 cluster in GCP. I deployed Couchbase operator and cluster using the helm charts available under https://couchbase-partners.github.io/helm-charts/

      I deployed a .NETCore API which uses the official Couchbase C# SDK and initialize the connection to couchbase cluster. When the API try to execute any N1QL statement i am getting below exception

      Couchbase.Core.Services.ServiceNotSupportedException: A request has been made for a service that is not configured or supported by the cluster. Please check the cluster and enable or add a new node with the requested service: Query.

       

      I am able to login to the UI console and manually execute the N1QL queries on the cluster. But same is not working from code using the SDK. The Couchbase cluster pods do not have any exposed service for port 8093. Also i dont see any envirponment varaibles available for this port. Is this the reason for Query service not to be available to consume?

      My assumption is running the query using the UI console does not uses port 8093 and hence it works. Please let me know if you need any further detail from my end.

      Regards

      Kishore Allwynraj

      Attachments

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

        Activity

          Attaching the environment variables file printenv.txt i could see from the pod in both mu local and GCP K8 cluster. I am not seeing any exposed port for 8093

          kishoreallwynraj_a Kishore Allwynraj added a comment - Attaching the environment variables file  printenv.txt i could see from the pod in both mu local and GCP K8 cluster. I am not seeing any exposed port for 8093
          jmorris Jeff Morris added a comment -

          Which version of the SDK are you using? If its not the latest (2.7.11), please try upgrading the SDK and see if it resolves the issue.

          jmorris Jeff Morris added a comment - Which version of the SDK are you using? If its not the latest (2.7.11), please try upgrading the SDK and see if it resolves the issue.

          Yes.. i am using the latest 2.7.11 version only.

          kishoreallwynraj_a Kishore Allwynraj added a comment - Yes.. i am using the latest 2.7.11 version only.

          I have setup a Couchbase environment in a standalone VM and the same SDK works properly there. The issue is happening only when the SDK tries to connect to a couchbase cluster inside a Kubernetes environment.

          kishoreallwynraj_a Kishore Allwynraj added a comment - I have setup a Couchbase environment in a standalone VM and the same SDK works properly there. The issue is happening only when the SDK tries to connect to a couchbase cluster inside a Kubernetes environment.
          jmorris Jeff Morris added a comment -

          Closing this ticket as it is older and my no longer be relevant. Feel free to reopen ticket if its still an issue. If you do so please please assign to me and indicate the reason for reopening.

          jmorris Jeff Morris added a comment - Closing this ticket as it is older and my no longer be relevant. Feel free to reopen ticket if its still an issue. If you do so please please assign to me and indicate the reason for reopening.

          People

            jmorris Jeff Morris
            kishoreallwynraj_a Kishore Allwynraj
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty