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

Analytics-Server: CBAuth database is stale: last reason: EOF occurs while connecting to cbas bucket without username and password.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Test Blocker
    • CBAS DP3
    • CBAS DP3
    • analytics
    • Build: 5.0.0-642, Ubuntu 14
    • Untriaged
    • No

    Description

      1. I uninstalled the sever install on all of the linux boxes and cleaned the machines properly as mentioned below:

      kill -9 $(ps aux | grep 'couchdb' |  awk '{print $2}')
      dpkg -r couchbase-server-analytics;dpkg --purge couchbase-server-analytics;
      kill -9 $(ps aux | grep 'epmd' |  awk '{print $2}')
      kill -9 $(ps aux | grep 'beam.smp' |  awk '{print $2}')
      kill -9 $(ps aux | grep 'memsup' |  awk '{print $2}')
      kill -9 $(ps aux | grep 'memcached' |  awk '{print $2}') 
      kill -9 $(ps aux | grep 'cpu_sup' |  awk '{print $2}')
      kill -9 $(ps aux | grep 'moxi' |  awk '{print $2}') 
      kill -9 $(ps aux | grep 'goxdcr' |  awk '{print $2}')
      kill -9 $(ps aux | grep 'vbucketmigrator' |  awk '{print $2}') 
      kill -9 $(ps aux | grep 'erlang' |  awk '{print $2}')
      kill -9 $(ps aux | grep 'cpu_sup' |  awk '{print $2}') 
      rm -rf /var/opt/membase
      rm -rf /opt/membase
      rm -rf /etc/opt/membase
      rm -rf /var/membase/data/*
      rm -rf /opt/membase/var/lib/membase/*
      rm -rf /opt/couchbase
      rm -rf /data/*
      ipcrm
      

      2. After uninstallation server is installed using:
      dpkg -i couchbase-server-analytics_5.0.0-642-ubuntu14.04_amd64.deb

      3. Initialized the cluster with 1 KV node, loaded travel-sample then added 1 CBAS only node to the cluster.

      4. Set-up cbas:
      create bucket travel with

      {"name":"travel-sample"}

      create shadow dataset travel_ds on travel
      connect bucket travel

      On "connect bucket travel" the result is:

      [
        {
          "code": 1,
          "msg": "CBAuth database is stale: last reason: EOF",
          "query_from_user": "create bucket travel with {\"name\":\"travel-sample\"}\ncreate shadow dataset travel_ds on travel\nconnect bucket travel"
        }
      ]
      

      5. And when i ran:

      create bucket travel with {"name":"travel-sample","nodes":"172.23.108.231:8091"}
      create shadow dataset travel_ds on travel;
      connect bucket travel with {"username":"Administrator","password":"password"}
      

      It was successful and data ingestion happens properly.

      Logs(Attached also):

      2017-08-10T01:21:43.356-07:00 WARN CBAS.adapter.CouchbaseConnectorFactory [Executor-3:ClusterController] Failed getting the number of vbuckets
      org.apache.hyracks.api.exceptions.HyracksDataException: CBAuth database is stale: last reason: EOF
              at com.couchbase.analytics.auth.DirectAuthorizationProvider.getMemcachedUsernamePassword(DirectAuthorizationProvider.java:93) ~[cbas-server-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
      

      Attachments

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

        Activity

          People

            murtadha.hubail Murtadha Hubail
            ritesh.agarwal Ritesh Agarwal
            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