RE: couchdb crashes while/after couch db compact

Has Anyone used couchdb 1.1.1 with chef-server 10.8? The version I am
currently running is 0.11.2 (from rbel repos). Is it a straight upgrade
to 1.1.1 at the database level?

Randy

-----Original Message-----
From: Van Fossan,Randy
Sent: Monday, February 13, 2012 12:07 PM
To: chef@lists.opscode.com
Subject: couchdb crashes while/after couch db compact

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}],
[]]}}

[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

±-----------------------------------------------------------------------------
| On 2012-02-13 13:35:24, Van Fossan,Randy wrote:
|
| Has Anyone used couchdb 1.1.1 with chef-server 10.8? The version I am
| currently running is 0.11.2 (from rbel repos). Is it a straight upgrade
| to 1.1.1 at the database level?

I’ve tried to get on 1.1.1 a few times on Linux and SmartOS. I keep hitting a
"stack quota exhausted" error, regardless of how large I make the stack size
passed to couchjs (-S argument, see the CouchDB perf page). Happens on both
platforms.

I have no idea if it’s directly related to Chef’s views… I don’t use CouchDB
for anything else.

Cheers.

bdha
cyberpunk is dead. long live cyberpunk.

Last I had read, Chef Server didn't work with CouchDB 1.1.1

This may or may not have been an independent user report, take it with
a spoon of sauce.

--AJ

On 14 February 2012 08:12, Bryan Horstmann-Allen bdha@mirrorshades.net wrote:

+------------------------------------------------------------------------------
| On 2012-02-13 13:35:24, Van Fossan,Randy wrote:
|
| Has Anyone used couchdb 1.1.1 with chef-server 10.8? The version I am
| currently running is 0.11.2 (from rbel repos). Is it a straight upgrade
| to 1.1.1 at the database level?

I've tried to get on 1.1.1 a few times on Linux and SmartOS. I keep hitting a
"stack quota exhausted" error, regardless of how large I make the stack size
passed to couchjs (-S argument, see the CouchDB perf page). Happens on both
platforms.

I have no idea if it's directly related to Chef's views... I don't use CouchDB
for anything else.

Cheers.

bdha
cyberpunk is dead. long live cyberpunk.