Can't Read or Write from/to default bucket since Couchbase Server update

A little while back I updated our two Couchbase servers installed on CentOS machines from 2.0 to 2.2.0 Enterprise Edition (build-821-rel), and now I’ve just realised that any attempt to read or write from/to the “default” bucket fails (tried this from both the Enyim.Caching v2.8.0.0 .NET client and the Membase v2.11.0.0 .NET client). I don’t believe this is related to the .NET client at all though, because this was working fine before the server upgrade, and also other buckets can still be written to/read from.

Looking through the log that was recorded when I upgraded the server version, I see the following warning. There are no warnings or errors for any of the other buckets. Could this be related to the issue I’m having?
“Port server moxi on node ‘babysitter_of_ns_1@127.0.0.1’ exited with status 0. Restarting. Messages: WARNING: curl error: transfer closed with outstanding read data remaining from: http://127.0.0.1:8091/pools/default/saslBucketsStreaming
EOL on stdin. Exiting ns_log000 ns_1@…”

The only difference with the settings of the “default” bucket compared to the other buckets is that I can see the default bucket has Access Control set to “None”, while the other buckets have this set to “Authentication”. I’m not sure what this setting was before the upgrade.

The data in the default bucket can easily be re-created, so I’m not worried about that. Is there a set of steps I can use to “repair” whatever has happened to the default bucket, or simply re-create it?

Any help would be greatly appreciated, as I’m very new to Couchbase and just need to get the production environment back up and running.

1.Are you using the Couchbase SDK or Moxi to connect to the default bucket?

2.When you do

http://localhost:8091/pools/default/bucket/default/ -u Administrator -p PASSWORD

whats the json output? does it have a password?

Thanks for the quick response,

We’re using the Couchbase SDK rather than Moxi to connect to the default bucket (or any bucket)

We’re not using any password to connect to any of the buckets.

I tried that url, with and without a username\password, and get the same response. The response is shown below.

Really, I’m happy to just delete the Default bucket and re-create it to see if that helps anything. Are there any issues with doing this?

Response from “http://localhost:8091/pools/default/bucket/default/”…

{“name”:“default”,“bucketType”:“membase”,“authType”:“sasl”,“saslPassword”:"",“proxyPort”:0,“replicaIndex”:false,“uri”:"/pools/default/buckets/default?bucket_uuid=5c7ea892a7332373654b6fed978dd305",“streamingUri”:"/pools/default/bucketsStreaming/default?bucket_uuid=5c7ea892a7332373654b6fed978dd305",“localRandomKeyUri”:"/pools/default/buckets/default/localRandomKey",“controllers”:{“compactAll”:"/pools/default/buckets/default/controller/compactBucket",“compactDB”:"/pools/default/buckets/default/controller/compactDatabases",“purgeDeletes”:"/pools/default/buckets/default/controller/unsafePurgeBucket",“startRecovery”:"/pools/default/buckets/default/controller/startRecovery"},“nodes”:[{“couchApiBase”:“http://172.24.126.133:8092/default",“systemStats”:{“cpu_utilization_rate”:6.866416978776529,“swap_total”:20971511808,“swap_used”:0,“mem_total”:67505324032,“mem_free”:63788531712},“interestingStats”:{“cmd_get”:0.0,“couch_docs_actual_disk_size”:228464507,“couch_docs_data_size”:227681795,“couch_views_actual_disk_size”:64434,“couch_views_data_size”:38694,“curr_items”:651,“curr_items_tot”:1298,“ep_bg_fetched”:0.0,“get_hits”:0.0,“mem_used”:276665912,“ops”:0.0,“vb_replica_curr_items”:647},“uptime”:“4905428”,“memoryTotal”:67505324032,“memoryFree”:63788531712,“mcdMemoryReserved”:51502,“mcdMemoryAllocated”:51502,“replication”:1.0,“clusterMembership”:“active”,“status”:“healthy”,“otpNode”:“ns_1@172.24.126.133”,“hostname”:“172.24.126.133:8091”,“clusterCompatibility”:131072,“version”:“2.2.0-821-rel-enterprise”,“os”:“x86_64-unknown-linux-gnu”,“ports”:{“proxy”:11211,“direct”:11210}},{“couchApiBase”:“http://172.24.126.132:8092/default”,“systemStats”:{“cpu_utilization_rate”:5.256570713391739,“swap_total”:20971511808,“swap_used”:0,“mem_total”:67505324032,“mem_free”:63920304128},“interestingStats”:{“cmd_get”:0.0,“couch_docs_actual_disk_size”:117784277,“couch_docs_data_size”:117003779,“couch_views_actual_disk_size”:64398,“couch_views_data_size”:38610,“curr_items”:647,“curr_items_tot”:1298,“ep_bg_fetched”:0.0,“get_hits”:0.0,“mem_used”:276670456,“ops”:0.0,“vb_replica_curr_items”:651},“uptime”:“4901006”,“memoryTotal”:67505324032,“memoryFree”:63920304128,“mcdMemoryReserved”:51502,“mcdMemoryAllocated”:51502,“replication”:1.0,“clusterMembership”:“active”,“status”:“healthy”,“otpNode”:“ns_1@172.24.126.132”,“thisNode”:true,“hostname”:“172.24.126.132:8091”,“clusterCompatibility”:131072,“version”:“2.2.0-821-rel-enterprise”,“os”:“x86_64-unknown-linux-gnu”,“ports”:{“proxy”:11211,“direct”:11210}}],“stats”:{“uri”:"/pools/default/buckets/default/stats",“directoryURI”:"/pools/default/buckets/default/statsDirectory",“nodeStatsListURI”:"/pools/default/buckets/default/nodes"},“ddocs”:{“uri”:"/pools/default/buckets/default/ddocs"},“nodeLocator”:“vbucket”,“fastWarmupSettings”:false,“autoCompactionSettings”:false,“uuid”:“5c7ea892a7332373654b6fed978dd305”,“vBucketServerMap”:{“hashAlgorithm”:“CRC”,“numReplicas”:1,“serverList”:[“172.24.126.132:11210”,“172.24.126.133:11210”],“vBucketMap”:[[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[0,1],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0]]},“replicaNumber”:1,“threadsNumber”:3,“quota”:{“ram”:2147483648,“rawRAM”:1073741824},“basicStats”:{“quotaPercentUsed”:2.976636588573456,“opsPerSec”:0.0,“diskFetches”:0.0,“itemCount”:2,“diskUsed”:42285640,“dataUsed”:42057908,“memUsed”:63922784},“bucketCapabilitiesVer”:"",“bucketCapabilities”:[“touch”,"couchapi”]}

I worked out what the issue was in the end. The client .NET version I was connecting to the server with was old. I tried a newer version and it reads from the “default” bucket fine.

Thanks for your help.