GSI instantiation failed

When I try to implement my N1Ql query which uses GSI in the log it says

GSI instantiation failed: Post /_metakv: missing port in address

I have tried gooling it, but the basic result that I get is issue: MB-15001

For Example:
When I fire the Query:
CREATE INDEX ko ON beer-sample(name);
Result is:
{
“requestID”: “63ba3eae-528c-4042-a8ba-807a7096144d”,
“signature”: null,
“results”: [
],
“status”: “success”,
“metrics”: {
“elapsedTime”: “6.092730473s”,
“executionTime”: “6.092483222s”,
“resultCount”: 0,
“resultSize”: 0
}
}
But when I fire the same Query Using GSI i.e.

CREATE INDEX new ON beer-sample(name) USING GSI ;

Result:
{
“requestID”: “a864c2a7-475d-4794-b267-cca89efb9b9e”,
“signature”: null,
“results”: [
],
“errors”: [
{
“code”: 12005,
“msg”: “Indexer not implemented GSI may not be enabled”
}
],
“status”: “errors”,
“metrics”: {
“elapsedTime”: “1.194775ms”,
“executionTime”: “1.008475ms”,
“resultCount”: 0,
“resultSize”: 0,
“errorCount”: 1
}
}

In the Logger:
time=2015-07-22T12:07:18+05:30 _level=ERROR _msg=GSIC[default; beer-sample] GSI instantiation failed: Post /_metakv: missing port in address
_time=2015-07-22T12:07:18+05:30 _level=WARN _msg=Error loading GSI indexes for keyspace beer-sample. Error GSI client instantiation failed - cause: Post /_metakv: missing port in address

Please provide a detailed solution.

@geraldss: Please Help me out.!!

Hi @shiv4nsh,
I have just run both queries you describe against a local instance of CB 4.0 and both of them return successfully.

Could you give more details of your current setup, CB version, cluster size and OS?
Also just to be sure, did you enable indexing and query during initial setup?

CB version: CB 4.0
cluster size: Single node
and OS: Ubuntu 15.04

And I have enabled indexing, querying and datastoring on this server while installing.
Does the version of libssl effects…??
And I have checked the Issue given above it says that you have outdated ns_server code.
I didn’t get that, so please provide me a detailed solution.

@shiv4nsh, looks like there was a hiccup during install. few questions;
Can you confirm you are using build 2213 (BETA)?
Did you get any errors doing installation?
can you check if your indexer process is running right now?
thanks
-cihan

./cbq-engine -datastore http://Administrator:123456@127.0.0.1:8091
    _time=2015-07-23T10:17:19+05:30 _level=INFO _msg=Setting log level to INFO 
    _time=2015-07-23T10:17:19+05:30 _level=ERROR _msg= Unable to initialize cbauth. Error Unable to initialize cbauth's revrpc: cbauth environment variable CBAUTH_REVRPC_URL is not set 
    _time=2015-07-23T10:17:19+05:30 _level=INFO _msg= Trying to init cbauth with credentials 127.0.0.1:8091 Administrator 123456 
    _time=2015-07-23T10:17:19+05:30 _level=INFO _msg= Initialization of cbauth succeeded  
    _time=2015-07-23T10:17:19+05:30 _level=INFO _msg=New site created with url http://Administrator:123456@127.0.0.1:8091 
    _time=2015-07-23T10:17:19+05:30 _level=INFO _msg=Request Size Cap bytes=67108864 
    _time=2015-07-23T10:17:19+05:30 _level=INFO _msg=cbq-engine started version=0.8.1 datastore=http://Administrator:123456@127.0.0.1:8091 threads=4 
    _time=2015-07-23T10:17:19+05:30 _level=INFO _msg=HttpEndpoint: Listen Address=[::]:8093

cbauth refers to the auth module. is your bucket sasl password protected? looks like cbq is having trouble authenticating. I assume this isn’t a production env. so if you have a bucket password set up and if the data isn’t sensitive, could you remove the bucket password and try again?
thanks
-cihan

The bucket is not password protected.
And I think its an Issue that we cannot fire a Nickel query on a password protected bucket. Thats why I have removed it.

to check if the indexer is running pls do the following and see if you are running the indexer process.
ps -A | grep indexer

I think its not running because this command is returning nothing.

without that you won’t be able to create a GSI index. could you check the setting page and index ram quota and make sure you have set that to 256 MB. if you set this value too large, it could cause the initialization to fail.
thanks
-cihan

This is the settings page and I have not updated it. Is there anything wrong in it.?

Guys i am still waiting to implement GSI. Could you please help me out.

can you send me the indexer.log file from /opt/couchbase/var/lib/couchbase/logs/indexer.log

These are the log files that I have but I don’t have indexer.log so please tell me which one you want.

babysitter.log
info.log.3.gz
ns_couchdb.log.6.gz
couchdb.log
info.log.4.gz
ns_couchdb.log.7.gz
couchdb.log.1.gz
info.log.5.gz
ns_couchdb.log.8.gz
couchdb.log.2.gz
info.log.6.gz
ns_couchdb.log.9.gz
couchdb.log.3.gz
mapreduce_errors.log
projector.log
couchdb.log.4.gz
memcached.log.0.txt
projector.log.1.gz
couchdb.log.5.gz
memcached.log.10.txt
reports.log
couchdb.log.6.gz
memcached.log.11.txt
reports.log.1.gz
couchdb.log.7.gz
memcached.log.12.txt
ssl_proxy.log
couchdb.log.8.gz
memcached.log.13.txt
start.log
couchdb.log.9.gz
memcached.log.14.txt
stats.log
crash_log.bin
memcached.log.16.txt
stats.log.1.gz
crash_log.bin.tmp
memcached.log.17.txt
stats.log.2.gz
debug.log
memcached.log.18.txt
stats.log.3.gz
debug.log.1.gz
memcached.log.19.txt
stats.log.4.gz
debug.log.2.gz
memcached.log.1.txt
stats.log.5.gz
debug.log.3.gz
memcached.log.20.txt
stats.log.6.gz
debug.log.4.gz
memcached.log.2.txt
stats.log.7.gz
debug.log.5.gz
memcached.log.3.txt
stats.log.8.gz
debug.log.6.gz
memcached.log.4.txt
stats.log.9.gz
debug.log.7.gz
memcached.log.5.txt
views.log
debug.log.8.gz
memcached.log.6.txt
views.log.1.gz
debug.log.9.gz
memcached.log.7.txt
views.log.2.gz
error.log
memcached.log.8.txt
views.log.3.gz
goxdcr.log
memcached.log.9.txt
views.log.4.gz
http_access_internal.log
ns_couchdb.log
views.log.5.gz
http_access_internal.log.1.gz
ns_couchdb.log.1.gz
xdcr_errors.log
http_access.log
ns_couchdb.log.2.gz
xdcr.log
info.log
ns_couchdb.log.3.gz
xdcr_trace.log
info.log.1.gz
ns_couchdb.log.4.gz
info.log.2.gz
ns_couchdb.log.5.gz

apologies for the delayed response. I think you need to enable the index service at the initial setup and I don’t believe you have that given the log files present in this directory.

see the 3 checkboxes displayed here that will get you to have a cluster with indexing service.
http://developer.couchbase.com/documentation/server/4.0/clustersetup/cluster-setup-ui.html

there is a quickstart guide that will get you set up with RC0 that we are shipping as we speak.
http://developer.couchbase.com/documentation/server/4.0/getting-started/installing.html
thanks
-cihan