Unable to initialize Cluster when using Custom Port for Couchbase 5.1 using CLI

Hi All,

I am running fresh installation of Couchbase servers 5.1 on 3 node , which is running on custom port 9000 . But when running initialize command using couchbase CLI to setup cluster it is giving the given below error.

Logs:

/opt/couchbase/bin/couchbase-cli node-init -c dwdb-couchdb-002.local:9000 --user=test --password=test@123 --node-init-hostname=dwdb-couchdb-002.local:9000 --node-init-data-path=/opt/couchbase/var/lib/couchbase/data --node-init-index-path=/opt/couchbase/var/lib/couchbase/data
ERROR: Could not resolve the hostname: nxdomain

Please let me know what changes should I do.

Hi bharatsahu,
Thanks for using our product.
Could you tell me what Couchbase Server version you install (Community or Enterprise)?
What is your operating system? And when you ping dwdb-couchdb-002.local, what is the output?
Thanks

I am using couchbase 5.1 community version as of now and Centos 7 with 8 gb ram and 4 CPU

@bharatsahu Have you tried without the port number in the --node-init-hostname argument?

Yes It works for me thanks