Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

Command line interface adminstration/ Silent Installation

6 replies [Last post]
  • Login or register to post comments
Fri, 12/07/2012 - 06:07
kaprikorn07
Offline
Joined: 12/07/2012
Groups: None

Hi All,

I need to configure the couchbase server on command line interface on standalone system. I have tried the web console configuration and is perfectly working fine. But with CLI, I am not able to set password/username.

I have tried this on a standalone system:
1.
/bin/couchbase-cli node-init -c 10.58.127.3:8091 --node-init-username=Administrator --node-init-password=couchbase --cluster-init-port=8080 --node-init-ramsize=5192

I get this - ERROR: option --node-init-username not recognized.

2.
couchbase-cli node-init -c 10.58.127.3:8091 -u Administrator -p couchbase
ERROR: command: node-init: 10.58.127.3:8091, (111, 'Connection refused')

Please help me out.

Thanks & regards
Bharath V

Top
  • Login or register to post comments
Mon, 12/10/2012 - 23:36
mikew
Offline
Joined: 03/14/2011
Groups:

You need to use --cluster-init-username=Administrator –-cluster-init-password=password.

Top
  • Login or register to post comments
Tue, 12/11/2012 - 01:56
kaprikorn07
Offline
Joined: 12/07/2012
Groups: None

Thanks a lot mikew. Its working!
I thought for a standalone I have to use node-init.

Top
  • Login or register to post comments
Fri, 12/14/2012 - 03:16
kaprikorn07
Offline
Joined: 12/07/2012
Groups: None

@mikew, I am getting a new problem . After I install the rpm, I go to /opt/couchbase/bin and execute the couchbase-cli commands, but I am getting the couchbase-cli command not found. I have to execute as ./couchbase-cli COMMAND, then it works. I did not get it the first time I installed it on the very same system.Does it have dependencies?
Also please when I am trying to add a node to cluster using this command:
couchbase-cli server-add -c 10.58.127.3 --server-add=10.58.127.5:8091 -u Administrator -p password

I get this:
ERROR: unable to server-add 10.58.127.3:8091 (400) Bad Request
[u'Adding nodes to not provisioned nodes is not allowed.']
ERROR: command: server-add: 10.58.127.6:8091, 2

Please help!

Top
  • Login or register to post comments
Fri, 12/28/2012 - 03:55
Neo-matrix
Offline
Joined: 10/15/2012
Groups: None

Hi,
If my understanding is correct, you are doing the process as follows,

Shell# cd /opt/couchbase/bin
Shell# couchbase-cli COMMAND.... (after which it throws errors)

Instead using Shell# cd /opt/couchbase/bin
Shell# ./couchbase-cli COMMAND...., it works. Is that your question why adding ./ in front of Couchbase-cli.

If my understanding is wrong, please correct me.

Thanks,
Neo

Top
  • Login or register to post comments
Wed, 01/02/2013 - 01:34
kaprikorn07
Offline
Joined: 12/07/2012
Groups: None

Got it, thanks Neo!

Top
  • Login or register to post comments
Wed, 01/02/2013 - 06:52
Neo-matrix
Offline
Joined: 10/15/2012
Groups: None

Cheers, Happy New Year...

Thanks,
Neo

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker