[chef] couchdb crashes while/after couch db compact


Chronological Thread 
  • From: "Van Fossan,Randy" < >
  • To: < >
  • Subject: [chef] couchdb crashes while/after couch db compact
  • Date: Mon, 13 Feb 2012 12:07:07 -0500

I want to use the chef-server cookbook's default recipe (compact couchdb
an views).   However, every time I run the following compaction
commands,  couchdb crashes.   I have also noticed that after a week or
so, it will also crash.    Anyone have any ideas?   The relevant log
entries are further down.

curl -H "Content-Type: application/json" -X POST
http://localhost:5984/chef/_compact

/var/log/couchdb/couchdb.log
------------------------------------------------------------
[Mon, 13 Feb 2012 15:21:20 GMT] [info] [<0.18570.15>] 127.0.0.1 - -
'PUT' /chef/9e79ed15-f67c-4af0-b3a9-561759766c81 201

[Mon, 13 Feb 2012 15:21:29 GMT] [info] [<0.129.0>] Starting compaction
for db "chef"

[Mon, 13 Feb 2012 15:21:29 GMT] [info] [<0.18555.15>] 127.0.0.1 - -
'POST' /chef/_compact 202

[Mon, 13 Feb 2012 15:21:42 GMT] [error] [<0.129.0>] ** Generic server
<0.129.0> terminating
** Last message in was {'$gen_cast',
                           {compact_done,
                               "/var/lib/couchdb/chef.couch.compact"}}
** When Server state == {db,<0.128.0>,<0.129.0>,<0.18586.15>,
                            <<"1328803082768366">>,<0.126.0>,<0.130.0>,
                            {db_header,5,43138,0,
                                {6814021223,{1684,41}},
                                {6814023363,1725},
                                nil,0,nil,nil,1000},
                            43138,
                            {btree,<0.126.0>,
                                {6814021223,{1684,41}},
                                #Fun<couch_db_updater.7.82129660>,
                                #Fun<couch_db_updater.8.42953822>,
                                #Fun<couch_btree.5.124754102>,
                                #Fun<couch_db_updater.9.115326703>},
                            {btree,<0.126.0>,
                                {6814023363,1725},
                                #Fun<couch_db_updater.10.103072508>,
                                #Fun<couch_db_updater.11.104248294>,
                                #Fun<couch_btree.5.124754102>,
                                #Fun<couch_db_updater.12.125559248>},
                            {btree,<0.126.0>,nil,
                                #Fun<couch_btree.0.83553141>,
                                #Fun<couch_btree.1.30790806>,
                                #Fun<couch_btree.2.124754102>,nil},
 
43138,<<"chef">>,"/var/lib/couchdb/chef.couch",[],
                            [],nil,
                            {user_ctx,null,[],undefined},
                            nil,1000,
                            [before_header,after_header,on_file_open]}
** Reason for termination ==
** {timeout,
       {gen_server,call,
           [<0.128.0>,
            {db_updated,
                {db,<0.128.0>,<0.129.0>,nil,<<"1328803082768366">>,
                    <0.18598.15>,<0.18600.15>,
                    {db_header,5,43138,0,
                        {47389287,{1684,41}},
                        {46365109,1725},
                        nil,0,nil,nil,1000},
                    43138,
                    {btree,<0.18598.15>,
                        {47389287,{1684,41}},
                        #Fun<couch_db_updater.7.82129660>,
                        #Fun<couch_db_updater.8.42953822>,
                        #Fun<couch_btree.5.124754102>,
                        #Fun<couch_db_updater.9.115326703>},
                    {btree,<0.18598.15>,
                        {46365109,1725},
                        #Fun<couch_db_updater.10.103072508>,
                        #Fun<couch_db_updater.11.104248294>,
                        #Fun<couch_btree.5.124754102>,
                        #Fun<couch_db_updater.12.125559248>},
 
{btree,<0.18598.15>,nil,#Fun<couch_btree.0.83553141>,
                        #Fun<couch_btree.1.30790806>,
                        #Fun<couch_btree.2.124754102>,nil},
 
43138,<<"chef">>,"/var/lib/couchdb/chef.couch",[],[],nil,
                    {user_ctx,null,[],undefined},
                    nil,1000,
                    [before_header,after_header,on_file_open]}}]}}

[Mon, 13 Feb 2012 15:21:42 GMT] [error] [<0.129.0>]
{error_report,<0.28.0>,
    {<0.129.0>,crash_report,
     [[{pid,<0.129.0>},
       {registered_name,[]},
       {error_info,
           {exit,
               {timeout,
                   {gen_server,call,
                       [<0.128.0>,
                        {db_updated,
                            {db,<0.128.0>,<0.129.0>,nil,
                                <<"1328803082768366">>,<0.18598.15>,
                                <0.18600.15>,
                                {db_header,5,43138,0,
                                    {47389287,{1684,41}},
                                    {46365109,1725},
                                    nil,0,nil,nil,1000},
                                43138,
                                {btree,<0.18598.15>,
                                    {47389287,{1684,41}},
                                    #Fun<couch_db_updater.7.82129660>,
                                    #Fun<couch_db_updater.8.42953822>,
                                    #Fun<couch_btree.5.124754102>,
                                    #Fun<couch_db_updater.9.115326703>},
                                {btree,<0.18598.15>,
                                    {46365109,1725},
                                    #Fun<couch_db_updater.10.103072508>,
                                    #Fun<couch_db_updater.11.104248294>,
                                    #Fun<couch_btree.5.124754102>,
 
#Fun<couch_db_updater.12.125559248>},
                                {btree,<0.18598.15>,nil,
                                    #Fun<couch_btree.0.83553141>,
                                    #Fun<couch_btree.1.30790806>,
                                    #Fun<couch_btree.2.124754102>,nil},
                                43138,<<"chef">>,
                                "/var/lib/couchdb/chef.couch",[],[],nil,
                                {user_ctx,null,[],undefined},
                                nil,1000,
 
[before_header,after_header,on_file_open]}}]}},
 
[{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},
       {initial_call,{couch_db_updater,init,['Argument__1']}},
       {ancestors,[<0.128.0>,<0.125.0>]},
 
{messages,[{'EXIT',<0.18586.15>,normal},{'EXIT',<0.128.0>,shutdown}]},
       {links,[]},
       {dictionary,[]},
       {trap_exit,true},
       {status,running},
       {heap_size,1346269},
       {stack_size,23},
       {reductions,74046277806}],
      []]}}

<Restart the couchdb service.....>
[Mon, 13 Feb 2012 15:23:01 GMT] [info] [<0.29.0>] Apache CouchDB has
started on http://127.0.0.1:5984/

[Mon, 13 Feb 2012 15:23:02 GMT] [info] [<0.118.0>] checkpointing view
update at seq 43138 for chef _design/id_map



  • [chef] couchdb crashes while/after couch db compact, Van Fossan,Randy, 02/13/2012

Archive powered by MHonArc 2.6.16.

§