unable to create default bucket from command line
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.
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
Any help here? I'd really like to be able to script this deployment, but something is definitely wrong here...