Couchbase 4.0 - "Requested resource not found" running cbq

I’m getting the error Requested resource not found when trying to create an Index.
I have the beer-sample bucket on my server.
Did anyone had this problem?

Below are the commands I’ve used.

C:\Program Files\Couchbase\Server\bin>cbq.exe -engine=http://localhost:8091/
Couchbase query shell connected to http://localhost:8091/ . Type Ctrl-D to exit.
cbq.exe>
cbq.exe>
cbq.exe> CREATE PRIMARY INDEX beer-sample-primary-index ON beer-sample USING GSI;
Requested resource not found.

cbq.exe>

As per the N1QL introduction, the port for the query service is 8093, not 8091.

I noticed that /sbin/cbq does create an issue on our CentOS7 build, since it’s messing things up.

cbq -engine=http://our.ipa.ddr.ess:8093 doesn’t work, but

/opt/couchbase/bin/cbq -engine=http://our.ipa.ddr.ess:8093 works well
:wink:

1 Like