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

Couchbase feedback

7 replies [Last post]
  • Login or register to post comments
Mon, 10/03/2011 - 02:39
cojack
Offline
Joined: 10/03/2011
Groups: None

Hello guys,
Im search for solution to our social game, and the point was puted on couchbase (because zynga it uses), but I have some strange problem, after instalation the Couchbase Server 2.0r everything works fine. But I observe some not clear for me situation at first:

Why afer (almost) each restart the server where couchbase is I have to go through server setup once again? It clear all of the data, I gues there is something wrong in config file, or it doesn't read the data correctly.

The second question is:

I inserted the same data to default bucket 300 times so it was 300 items in bucket, the data between nodes was divided as 1/2 (so it works correcly), but when I create a view to returns all of the data fe map function (without reduce):

function(doc) {
emit(doc._id, {doc:doc});
}

the total_rows was only 23. Why it happens? Of course after restart the server (physical restart) data disappeared.

Regards,
Przemek.

Top
  • Login or register to post comments
Mon, 10/03/2011 - 05:08
cojack
Offline
Joined: 10/03/2011
Groups: None

Verify installation doesn't work.

http://localhost:5984/_utils/verify_install.html

It doesn't work. Output is:

Not found.

Regards.

Top
  • Login or register to post comments
Mon, 10/03/2011 - 05:14
cojack
Offline
Joined: 10/03/2011
Groups: None

Test suite fail on each of test. Moreover it can not create test_suite_reports db.

Regards.

Top
  • Login or register to post comments
Mon, 10/03/2011 - 08:25
ingenthr
Offline
Joined: 03/16/2010
Groups:

Hi cojack,

There are enough differences between Apache CouchDB and Couchbase Server 2.0 that not everything is the same. For instance, _utils (Futon) is not part of a Couchbase Server 2.0 install.

That said, your data is not supposed to disappear! Which OS have you installed on? How are you stopping/starting the server?

I'm sure we can figure out what's gone wrong there.

Matt

Top
  • Login or register to post comments
Mon, 10/03/2011 - 08:43
cojack
Offline
Joined: 10/03/2011
Groups: None

Hi ingenthr, thanks for reply.
Im runing this on (K)ubuntu:

$> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 11.04
Release:        11.04
Codename:       natty

$> uname -a
Linux cojack-laptop 2.6.38-11-generic-pae #50-Ubuntu SMP Mon Sep 12 22:21:04 UTC 2011 i686 i686 i386 GNU/Linux

The start, and stop script is running automaticly after start/stop the system, so they are as default instalation put them into /etc/rc*.d/

/etc/rc0.d:
K20couchbase-server
 
/etc/rc1.d:
K20couchbase-server
 
/etc/rc2.d:
S20couchbase-server
 
/etc/rc3.d:
S20couchbase-server
 
/etc/rc4.d:
S20couchbase-server
 
/etc/rc5.d:
S20couchbase-server
 
/etc/rc6.d:
K20couchbase-server
 

The default couchbase instalation is in: /opt/couchbase

$> ls -la /opt/couchbase
drwxr-xr-x  9 couchbase couchbase  4096 2011-09-29 15:21 .
drwxr-xr-x  5 root      root       4096 2011-09-29 15:21 ..
drwxr-xr-x  2 couchbase couchbase  4096 2011-09-29 15:21 bin
drwxr-xr-x  2 couchbase couchbase  4096 2011-09-29 15:21 docs
drwxr-xr-x  7 couchbase couchbase  4096 2011-09-29 15:21 etc
drwxr-xr-x 14 couchbase couchbase  4096 2011-09-29 15:21 include
drwxr-xr-x  9 couchbase couchbase  4096 2011-09-29 15:21 lib
-rw-r--r--  1 couchbase couchbase 11909 2011-08-18 23:01 licenses.tgz
-rw-r--r--  1 couchbase couchbase  2293 2011-08-18 23:01 LICENSE.txt
-rw-r--r--  1 couchbase couchbase   986 2011-08-18 23:01 manifest.txt
-rw-r--r--  1 couchbase couchbase  3005 2011-08-18 23:01 manifest.xml
drwxr-xr-x  7 couchbase couchbase  4096 2011-09-29 15:21 share
drwxr-xr-x  5 couchbase couchbase  4096 2011-09-29 15:21 var
-rw-r--r--  1 couchbase couchbase    18 2011-08-18 23:01 VERSION.txt

as You can see, all of the catalogs (also recursive) have the same user and group as the runing proces of couchbase:

$> ps axo stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,comm,user|grep couchbase
STAT  EUID  RUID TT       TPGID  SESS  PGRP  PPID   PID %CPU COMMAND         USER
Sl     999   999 ?           -1  6996  6996     1  6997  5.5 beam.smp        couchbase
Ss     999   999 ?           -1  7031  7031  6997  7031  0.0 sh              couchbase
Ss     999   999 ?           -1  7033  7033  6997  7033  0.0 memsup          couchbase
Ss     999   999 ?           -1  7034  7034  6997  7034  0.0 cpu_sup         couchbase
Ss     999   999 ?           -1  7036  7036  6997  7036  0.0 inet_gethost    couchbase
S      999   999 ?           -1  7036  7036  7036  7037  0.0 inet_gethost    couchbase
Ssl    999   999 ?           -1  7116  7116  6997  7116  0.5 memcached       couchbase
Ss     999   999 ?           -1  7117  7117  6997  7117  0.0 sigar_port      couchbase
Ssl    999   999 ?           -1  7196  7196  6997  7196  0.0 moxi            couchbase

I realy wanna to solve this problem, thanks in advance.

Also restar or stop and starting the couchbase-server via cli:

sudo service couchbase-server start|stop|restart

Sometimes remove the data and sometimes doesn't. Idk where is the point of failure here ;/

I also looking at the startup script of membase and in function start they don't check if the membase catalog already exists, but I can not confirmed there is a problem...

Regards.

Top
  • Login or register to post comments
Tue, 10/04/2011 - 00:36
cojack
Offline
Joined: 10/03/2011
Groups: None

Hello,
Yesterday I installed previous version of couchbase 2.0.0r-252-g6036f2c and it works as well. After restart, stop, start the couchbase server data doesn't lose anymore. I have hope you will be able to reproduce this error by your side and find the problem.

Regards.

Top
  • Login or register to post comments
Fri, 10/14/2011 - 03:02
cojack
Offline
Joined: 10/03/2011
Groups: None

Couchbase Manual in section: "Chapter 3. Couchbase Administration" subsection: "Troubleshooting" says about some features that doesn't exists fe:

"Couchbase Server stores its logs in an efficient, space-limited binary format under /var/opt/couchbase/logs. A
Couchbase shell script (/opt/couchbase/bin/browse_logs) will output these logs in a human-readable text format."

Nope, chuck testa.

Those script under this directory after typical instalation doesn't exists, also logs are not stored under /var/opt/couchbase/logs path. Those binary logs exists? However there is a log file (logs are there as plain text) under /opt/couchbase/var/log/couchdb/ path.

Can any one explain it?

Regards.

Top
  • Login or register to post comments
Fri, 10/14/2011 - 12:17
ingenthr
Offline
Joined: 03/16/2010
Groups:

That is unfortunately a documentation bug. The paths and names of some utilities changed between the 1.6 and 1.7 series.

[ingenthr@centos52lmA ~]$ find /opt/membase -name '*browse*'
/opt/membase/bin/mbbrowse_logs
/opt/membase/lib/ns_server/erlang/lib/ns_server-1.7.1/ebin/ns_log_browser.beam
/opt/membase/lib/erlang/lib/gs-1.5.13/examples/src/browser.erl
/opt/membase/lib/erlang/lib/gs-1.5.13/examples/ebin/browser.beam
/opt/membase/lib/erlang/lib/inets-5.5.2/src/http_server/mod_browser.erl
/opt/membase/lib/erlang/lib/inets-5.5.2/ebin/mod_browser.beam
[ingenthr@centos52lmA ~]$ sudo /opt/membase/bin/mbbrowse_logs -n 10 -t progress
rb: reading report...done.
rb: reading report...done.
rb: reading report...done.
 
PROGRESS REPORT  <5883.69.85>                               2011-10-09 17:57:45
===============================================================================
supervisor                                                {local,mb_master_sup}
started
         [{pid,<5883.84.85>},
         {name,auto_failover},
         {mfargs,{auto_failover,start_link,[]}},
         {restart_type,permanent},
         {shutdown,10},
         {child_type,worker}]
 
 
PROGRESS REPORT  <5883.174.0>                               2011-10-09 17:57:45
===============================================================================
supervisor                                                {local,ns_server_sup}
started
         [{pid,<5883.50.85>},
         {name,mb_master},
         {mfargs,{mb_master,start_link,[]}},
         {restart_type,permanent},
         {shutdown,infinity},
         {child_type,supervisor}]
 
 
PROGRESS REPORT  <5883.177.0>                               2011-10-10 04:03:27
===============================================================================
supervisor                                            {local,ns_node_disco_sup}
started
         [{pid,<5883.31741.87>},
         {name,ns_node_disco},
         {mfargs,{ns_node_disco,start_link,[]}},
         {restart_type,permanent},
         {shutdown,1000},
         {child_type,worker}]
 
 
PROGRESS REPORT  <5883.177.0>                               2011-10-10 04:03:27
===============================================================================
supervisor                                            {local,ns_node_disco_sup}
started
         [{pid,<5883.31745.87>},
         {name,ns_node_disco_log},
         {mfargs,{ns_node_disco_log,start_link,[]}},
         {restart_type,permanent},
         {shutdown,1000},
         {child_type,worker}]
 
 
PROGRESS REPORT  <5883.177.0>                               2011-10-10 04:03:27
===============================================================================
supervisor                                            {local,ns_node_disco_sup}
started
         [{pid,<5883.31746.87>},
         {name,ns_node_disco_conf_events},
         {mfargs,{ns_node_disco_conf_events,start_link,[]}},
         {restart_type,permanent},
         {shutdown,1000},
         {child_type,worker}]
 
 
PROGRESS REPORT  <5883.177.0>                               2011-10-10 04:03:27
===============================================================================
supervisor                                            {local,ns_node_disco_sup}
started
         [{pid,<5883.31747.87>},
         {name,ns_config_rep},
         {mfargs,{ns_config_rep,start_link,[]}},
         {restart_type,permanent},
         {shutdown,1000},
         {child_type,worker}]
 
 
PROGRESS REPORT  <5883.31748.87>                            2011-10-10 04:03:27
===============================================================================
supervisor                                                {local,mb_master_sup}
started
         [{pid,<5883.31749.87>},
         {name,ns_orchestrator},
         {mfargs,{ns_orchestrator,start_link,[]}},
         {restart_type,permanent},
         {shutdown,20},
         {child_type,worker}]
 
 
PROGRESS REPORT  <5883.31748.87>                            2011-10-10 04:03:27
===============================================================================
supervisor                                                {local,mb_master_sup}
started
         [{pid,<5883.31752.87>},
         {name,ns_tick},
         {mfargs,{ns_tick,start_link,[]}},
         {restart_type,permanent},
         {shutdown,10},
         {child_type,worker}]
 
 
PROGRESS REPORT  <5883.31748.87>                            2011-10-10 04:03:27
===============================================================================
supervisor                                                {local,mb_master_sup}
started
         [{pid,<5883.31753.87>},
         {name,auto_failover},
         {mfargs,{auto_failover,start_link,[]}},
         {restart_type,permanent},
         {shutdown,10},
         {child_type,worker}]
 
 
PROGRESS REPORT  <5883.174.0>                               2011-10-10 04:03:27
===============================================================================
supervisor                                                {local,ns_server_sup}
started
         [{pid,<5883.31742.87>},
         {name,mb_master},
         {mfargs,{mb_master,start_link,[]}},
         {restart_type,permanent},
         {shutdown,infinity},
         {child_type,supervisor}]

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