ns_server process keeps crashing


#1

couchbase 2.2 on gentoo linux, got 66G free mem

I found on my server that the “ns_server” process keep restarting

so the admin console can not communicate to all the bucket, so the 8091 port don’t work

and I found these message in error log:

=========================CRASH REPORT=========================
crasher:
initial call: mc_connection:init/1
pid: <0.20057.3312>
registered_name: []
exception exit: {noproc,
{gen_server,call,
[couch_server,{open,<<“s469/403”>>,[]},infinity]}}
in function gen_server:call/3
in call from couch_server:open/2
in call from mc_connection:do_notify_vbucket_update/3
in call from mc_connection:handle_message/9
in call from mc_connection:read_full_message/2
in call from mc_connection:run_loop/2
ancestors: [mc_conn_sup,mc_sup,ns_server_sup,ns_server_cluster_sup,
<0.57.0>]
messages: []
links: [<0.8052.3312>,#Port<0.9981740>]
dictionary: []
trap_exit: false
status: running
heap_size: 377
stack_size: 24
reductions: 169
neighbours:

any help? many thanks


#2

sorry, It’s not correct

I found "portsigar " process is restarting all the time

and “/opt/couchbase/lib/ns_server/erlang/lib/ns_server/priv/i386-linux-godu” restarting the same time


#3

and couchbase don’t write data to disk any more


#4

I check couch_server log:

it’s full of this:

[couchdb:error,2014-12-10T14:45:35.555,ns_1@10.1.29.12:couch_server<0.22612.136>:couch_log:error:42]Unexpected message, restarting couch_server: {‘EXIT’,<0.24653.136>,
{badarg,
[{gen_event,send,2},
{couch_db_updater,
handle_call,3},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,
3}]}}


#5

I assume as you’re running on Gentoo you’ve built from source. 2.2 is a pretty old release (with a number of issues fixed) so I’d first suggest upgrading to something more recent - either 2.5.1 (most recent 2.X) or the new 3.0.1 release.