Details
Description
MacOSX - Unable to run several cli tools using absolute path
Below are some examples:
Couchbases-MacBook-Pro-6:/ couchbase$ /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/couchbase-cli
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/couchbase-cli: line 5: cd: /Applications/Couchbase: No such file or directory
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/couchbase-cli: line 24: //python/couchbase-cli: No such file or directory
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/couchbase-cli: line 24: exec: //python/couchbase-cli: cannot execute: No such file or directory
Couchbases-MacBook-Pro-6:/ couchbase$ /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/cbstats
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbstats: line 5: cd: /Applications/Couchbase: No such file or directory
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbstats: line 15: //cbstats: No such file or directory
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbstats: line 15: exec: //cbstats: cannot execute: No such file or directory
Couchbases-MacBook-Pro-6:/ couchbase$ /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/cbbackup
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbbackup: line 5: cd: /Applications/Couchbase: No such file or directory
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbbackup: line 24: //python/cbbackup: No such file or directory
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbbackup: line 24: exec: //python/cbbackup: cannot execute: No such file or directory
Couchbases-MacBook-Pro-6:/ couchbase$ /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/cbrestore
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbrestore: line 5: cd: /Applications/Couchbase: No such file or directory
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbrestore: line 24: //python/cbrestore: No such file or directory
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbrestore: line 24: exec: //python/cbrestore: cannot execute: No such file or directory
Couchbases-MacBook-Pro-6:/ couchbase$ /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/cbepctl
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbepctl: line 5: cd: /Applications/Couchbase: No such file or directory
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbepctl: line 15: //cbepctl: No such file or directory
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbepctl: line 15: exec: //cbepctl: cannot execute: No such file or directory
Couchbases-MacBook-Pro-6:/ couchbase$
Works fine with relative path:
Couchbases-MacBook-Pro-6:bin couchbase$ ./couchbase-cli
usage: couchbase-cli COMMAND CLUSTER [OPTIONS]
CLUSTER is --cluster=HOST[:PORT] or -c HOST[:PORT]
COMMANDs include
server-list list all servers in a cluster
server-info show details on one server
server-add add one or more servers to the cluster
server-readd readd a server that was failed over
group-manage manage server groups
rebalance start a cluster rebalancing
rebalance-stop stop current cluster rebalancing
rebalance-status show status of current cluster rebalancing
failover failover one or more servers
recovery recover one or more servers
cluster-init set the username,password and port of the cluster
cluster-edit modify cluster settings
node-init set node specific parameters
bucket-list list all buckets in a cluster
bucket-create add a new bucket to the cluster
bucket-edit modify an existing bucket
bucket-delete delete an existing bucket
bucket-flush flush all data from disk for a given bucket
bucket-compact compact database and index data
setting-compaction set auto compaction settings
setting-notification set notification settings
setting-alert set email alert settings
setting-autofailover set auto failover settings
setting-xdcr set xdcr related settings
ssl-manage manage cluster certificate
user-manage manage read only user
xdcr-setup set up XDCR connection
xdcr-replicate xdcr operations
help show longer usage/help and examples
Attachments
Issue Links
- depends on
-
MB-11145 macosx: build breakages since upgrade to new builders
- Resolved