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

unable to create default bucket from command line

2 replies [Last post]
  • Login or register to post comments
Thu, 03/24/2011 - 09:47
fplatzke
Offline
Joined: 03/24/2011
Groups: None

Hi,
I'm attempting to script the installation process in our environment and I'm running into some problems with the command line tools. I can successfully initialize the application, but it won't let me create the default bucket. I can create any other bucket but we're currently running our code against the default port so we need to figure this out. Any help?

I execute this...
/opt/membase/bin/cli/membase cluster-init -c 10.49.59.7 --cluster-init-username=Administrator --cluster-init-password=apasswd

which works fine. But then when I try to do this it fails...
[root@BUILD ~]# /opt/membase/bin/cli/membase bucket-create -c 10.49.59.7 -u Administrator -p apasswd --bucket=default --bucket-type=membase --bucket-port=11211 --bucket-ramsize=1638 --bucket-replica=1
ERROR: unable to bucket-create (400) Bad Request
ERROR: command: bucket-create: 10.49.59.7:8091, 2

What is the proper command line sequence to produce the same results as if I had clicked through the setup screens in a browser? I can't seem to figure it out. If I can't get it, I'm just going to write a curl script that hits the http interface.

Top
  • Login or register to post comments
Wed, 03/30/2011 - 13:57
fplatzke
Offline
Joined: 03/24/2011
Groups: None

Any help here? I'd really like to be able to script this deployment, but something is definitely wrong here...

Top
  • Login or register to post comments
Wed, 03/30/2011 - 14:18
mikew
Offline
Joined: 03/14/2011
Groups:

This is due to a bug in Membase that hasn't been fixed yet. If your bucket is named default it will automatically be put on port 11211 no matter what port you specify so the solution here is to run the following command:

/opt/membase/bin/cli/membase bucket-create -c 10.49.59.7 -u Administrator -p apasswd --bucket=default --bucket-type=membase --bucket-port=11212 --bucket-ramsize=1638 --bucket-replica=1

Notice that the difference is that I specified port 11212 instead of 11211. Since the bucket is named default it will be put onto 11211 automatically. Let me know if you have any other questions.

- Mike

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