Rebalancing from command line

When I try to rebalance my cluster from the command line using:

/opt/couchbase/bin/couchbase-cli rebalance --cluster 127.0.0.1 --username {username} --password {password}

I always get the error:

ERROR: Unable to get the HTTPS port <ip_address> node.

It’s a standard installation on EC2 servers in AWS. Adding a node on command line works but subsequent rebalance command doesn’t. Also when I rebalance using the console it works the the cluster is immediately rebalanced.

There is a ticket open. for the issue - Loading...

Thanks a lot for your response. Hopefully, it’ll get solved soon.

did you solve this? would be great if you can share the solution/work arounds

that ticket link just doesn’t load.

The fix for MB-62844 was integrated into version 7.6.4.

HTH.

any workarounds for 7.6.3?

Based on looking at the code changed for the defect, no, not with couchbase-cli. It is reporting this error when the httpsMgmt port isn’t listed in the node information, something that is absent in the CE data.

You should be able to use the REST API instead (via curl).

HTH.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.