Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Create new data bucket failed

15 replies [Last post]
  • Login or register to post comments
Tue, 08/02/2011 - 13:29
timliaw
Offline
Joined: 07/30/2011
Groups: None

Hi, I bumped into a weird issue when I tried to create new buckets after installing CouchBase. After creating a new bucket (tried both SASL and normal) on the default port, the dashboard shows the server as pending (and down). The logs showed that the server was shutting down prior to the new bucket creation. At this point, I couldn't restart the service or get CouchBase to healthy unless I delete all the buckets on the node. I did not run into this with the latest Membase on the server server. Am I doing anything wrong? I also tried letting the node sit in the pending state for a good 10 mins and nothing happened (I didn't think creating a new bucket would take that long anyhow).

Top
  • Login or register to post comments
Thu, 08/04/2011 - 11:14
perry
Offline
Joined: 10/11/2010
Groups:

Definitely sounds like something is wrong there. Is this just one server? Can you send the output file of "/opt/couchbase/bin/mbcollect_info " to perry@couchbase.com?

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Mon, 08/22/2011 - 05:32
metallemon
Offline
Joined: 08/22/2011
Groups: None

I am experiencing a similar issue:

I install CouchBase 2.0 on a Windows Server 2008 R2 instance just fine.
If I add another bucket the console reports the CouchBase server as down and the memcached.dll starts adding application errors into my event log.

The CouchBase NT service is still running, but all servers are reported as down and the web interface reports that it cannot connect to any of the instances.

If I delete the new bucket, all restores to normal.

If I remove the default bucket all is good, if I add the bucket back everything breaks and I cannot do anything but reinstall CouchBase.

Top
  • Login or register to post comments
Thu, 08/25/2011 - 12:28
perry
Offline
Joined: 10/11/2010
Groups:

Metallemon, can you please send the output of "C:\Program Files\Couchbase\Server\bin\mbcollect_info " to 'perry@couchbase.com'?

Thanks

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Fri, 09/02/2011 - 21:46
Nosralla
Offline
Joined: 09/02/2011
Groups: None

I had the exact same problem after uninstalling membase and installing couchbase on my DEV machine.
So i did a fresh Windows 2008 r2 install in a virtual machine and installed couchbase, and again, cant create new buckets.
After some 1 hour trying all possible bucket configuration i found out that the problem is related to the buckets name.
If you create a bucket with any uppercase chars in the name it will fail.
Any bucket whose name contains only lower case chars runs perfectly.

I didnt tried names with space or any special characters or even numbers.
I had used buckets with uppercase chars names in membase without any problem.

Errors in the log after creating buckets with uppercase chars ('Test'):

*Created bucket "Test" of type: membase

*Shutting down bucket "Test" on 'ns_1@192.168.56.153' for server shutdown

*Port server memcached on node 'ns_1@192.168.56.153' exited with status 255. Restarting. Messages: Connected to mccouch: "localhost:11213"
Connected to mccouch: "localhost:11213"
Extension support isn't implemented in this version of bucket_engine

*Control connection to memcached on 'ns_1@192.168.56.153' disconnected: {{badmatch,
{error,
closed}},
[{mc_client_binary,
cmd_binary_vocal,
6},
{mc_client_binary,
stats,
4},
{ns_memcached,
handle_call,
3},
{gen_server,
handle_msg,
5},
{proc_lib,
init_p_do_apply,
3}]}

Top
  • Login or register to post comments
Sat, 09/03/2011 - 14:33
sveinhelge
Offline
Joined: 09/03/2011
Groups: None

I believe the reason for this problem is that CouchDB don't allow upper case letters in database name.

http://www.couchbase.org/forums/thread/creating-new-bucket-type-couchbas...

Top
  • Login or register to post comments
Sat, 09/03/2011 - 17:12
perry
Offline
Joined: 10/11/2010
Groups:

I'm checking with our engineering team on this as we speak.

Perry

timliaw/metallemon: can you confirm that buckets with no uppercase names will work for you?

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Sun, 09/04/2011 - 21:54
metallemon
Offline
Joined: 08/22/2011
Groups: None

Added a bucket called test, it all fell over. Removed that bucket and added one called staff and it worked. Not sure what to make of it.

Top
  • Login or register to post comments
Mon, 09/05/2011 - 03:55
sveinhelge
Offline
Joined: 09/03/2011
Groups: None

The cleanup after you delete a bucket is not done perfectly. After a bucket is deleted the folder still exist on the server.

I have also experienced all kids of strange problems if you run servers (Windows Server 2008 R2) that blocks port 5489 (Futon port for a CouchDB).

I'm not sure if any of these things are related to your problem.

Top
  • Login or register to post comments
Tue, 09/06/2011 - 05:00
metallemon
Offline
Joined: 08/22/2011
Groups: None

Update:

Added another bucket today called tags, and it all fell over. Stoped and restarted couchbase service and came back up.

Top
  • Login or register to post comments
Tue, 09/06/2011 - 14:35
perry
Offline
Joined: 10/11/2010
Groups:

It appears that the uppercase lettering in a bucket is in fact a known issue and something we're working to resolve (http://www.couchbase.org/forums/thread/creating-new-bucket-type-couchbas...)

metallemon, can you send me a new set of logs to investigate your particular issue?

sveinhelge and Nosralla, can you confirm that all is working now if you don't use a bucket name with upper case letters?

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Tue, 09/06/2011 - 15:05
sveinhelge
Offline
Joined: 09/03/2011
Groups: None

Creating a bucket works fine as long as I don't use upper case letters.

Top
  • Login or register to post comments
Tue, 09/06/2011 - 15:24
Nosralla
Offline
Joined: 09/02/2011
Groups: None

Works well without upper case letters

Top
  • Login or register to post comments
Thu, 09/08/2011 - 05:25
metallemon
Offline
Joined: 08/22/2011
Groups: None

I am sending those to you now.

Problem in brief:
• CouchBase is installed on 2 nodes
• If I do no stores or gets CouchBase is stable
• If I run some views or do a store, one of the CouchBase instances will a go into pending state
• Not always immediately after the operation, but always happens.
• I frequently get ‘IP address seems to have changed ‘errors, but the IP`s are static
• Firewalls are off

Rebalancing operations fail.
Could this be an issue related to something on the network blocking communication?

Top
  • Login or register to post comments
Thu, 09/08/2011 - 13:24
sveinhelge
Offline
Joined: 09/03/2011
Groups: None

Have you checked and are 100 % sure that is does not exist other servers/computers that have the same IP address as any of the servers in your cluster? (The servers/computers then would "fight" each other to get the ip address and cause instability)

Top
  • Login or register to post comments
Mon, 09/19/2011 - 18:58
alex
Offline
Joined: 08/29/2011
Groups: None

Metallemon

It seems that you are hitting a system limit for open file descriptors. To work around this:

1. Edit a environment variable under: Control Panel -> System -> Advanced System settings -> Advanced tab -> Environment Variables
2. Modify MEMBASE_NUM_VBUCKETS, the default should be 16, please lower it to 4.
3. Delete all buckets
4. Stop Couchbase service
5. Reboot machine - This is so that the system account picks up the new value for MEMBASE_NUM_VBUCKETS
6. Recreate 2nd bucket and verify that the vbucket number is created correctly as specified with the environment variable.

If you see:
Crashing process
initial_call {mc_daemon,init,['Argument__1']}
pid <5067.9899.87>
registered_name []
error_info
{exit,{{badmatch,{error,system_limit}},

From mbbrowselogs, specifically the system_limit error, you will need to repeat the steps and retry with a lower NUM_VBUCKETS.

Please let us know if this gets you going.

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