The first two commands run successfully but cluster-init command is failing with the below error:
ERROR: indexerStorageMode - Changing the optimization mode of global indexes is not supported when index service nodes are present in the cluster. Please remove all index service nodes to change this option.
I don’t have any data in the cluster yet. And I did not modify the indexerStorageMode as you can see in the first two commands.
Can someone please help me understand what I am doing wrong?
What version of CB are you running? I seem to recall an issue in older versions where the error being returned isn’t actually the error that it’s hitting…
Just to confirm, are you able to setup the node/cluster from the UI after starting it?
I am running couchbase version 7.1.3.
I am actually writing an automation script with these steps. So, setting up with the UI might not be a viable option for me.
Which Edition of Couchbase Server are you using enterprise or community edition?
Can you please try the cluster-init command with --cluster 127.0.0.1:8091 instead of --cluster test-server.com:8091. I want to ensure that it’s the same cluster that’s being talked to in both commands.
I just tried this with the command with 127.0.0.1 as you suggested, but it still fails with the same error.
I am using enterprise edition.
Also, I had a strange observation, when I try to run this series of commands on a host with fresh installation, everything works well.
But, when I destroy that server and try to create a new server on the same host, I hit this error.
I wonder if there are some processes still running that are holding open those config files. Can you check the process list after you run /opt/couchbase/bin/couchbase-server -k?
Yes, i was running the shutdown command, and no processes were running after that.
But, interestingly, deletion of /opt/couchbase/var/lib/couchbase/config helped in getting this sorted out.