From user-return-10278-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Mon Apr 26 15:34:59 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 40669 invoked from network); 26 Apr 2010 15:34:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Apr 2010 15:34:59 -0000 Received: (qmail 7595 invoked by uid 500); 26 Apr 2010 15:34:58 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 7560 invoked by uid 500); 26 Apr 2010 15:34:58 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 7552 invoked by uid 99); 26 Apr 2010 15:34:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Apr 2010 15:34:58 +0000 X-ASF-Spam-Status: No, hits=1.7 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of naren.salem@gmail.com designates 209.85.221.177 as permitted sender) Received: from [209.85.221.177] (HELO mail-qy0-f177.google.com) (209.85.221.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Apr 2010 15:34:51 +0000 Received: by qyk7 with SMTP id 7so1902989qyk.14 for ; Mon, 26 Apr 2010 08:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=3MmHHHF24PxGbKecpyd9y8An6hwr2vYUFHMi/JS3CM4=; b=vvnosF/O1+h/BTzXAyFgWigMBNwnDpC5pmJcTu6pEhI5znw+1rusvHvaWRh4Z4ggDk vqPojSYJrnmVp4lRb3BNJ28rCpRWdy76/kRZYFquZMukIWMfo2oYcliRXZz9tIDX20fx 06ZuK72xEJk3WKWw5AAtfbjsy31n1KFeYPabc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=dA2zdrFBylpgIVTiiHtsVYngOrcu8CCLLahyCe+EZvsr7ZnoDonb8OgySj0g0tmz6M XL2NRpnCtZael1cIe1f5Qkf6Vxcqb87iObik0A8HLCOKNG8Pwyf5zDMH6sXhmQ83J3wq Mp3Gf/3TURgZeTkqHfXvF7sfnoVMK58aGUkzs= MIME-Version: 1.0 Received: by 10.229.248.211 with SMTP id mh19mr4847123qcb.104.1272296068345; Mon, 26 Apr 2010 08:34:28 -0700 (PDT) Received: by 10.229.95.144 with HTTP; Mon, 26 Apr 2010 08:34:28 -0700 (PDT) In-Reply-To: References: <3520C895-329D-41C1-9E63-547D670184D4@apache.org> Date: Mon, 26 Apr 2010 10:34:28 -0500 Message-ID: Subject: Re: Compact fails From: naren To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016e6465166342a120485258372 --0016e6465166342a120485258372 Content-Type: text/plain; charset=UTF-8 Yup. I was able to do this over the weekend and it worked. Is there a plan for a fix for this? On Thu, Apr 22, 2010 at 4:29 PM, naren wrote: > > Thanks guys. I can live with that. That's better than the other plan I was > hatching to delete the db and recreating it :) I will try it the next time I > get a chance to shut down CouchDB and let you know if it worked. > > On Thu, Apr 22, 2010 at 3:03 PM, Dave Ray wrote: > >> Adam is right. If you look in your db folder, you'll see two files, >> "mydb.couch" and "mydb.couch.compact" (or something like that). I >> think CouchDB creates the compacted file and then tries to replace the >> original database with it, but fails due to Windows restrictions on >> fiddling with open files. FWIW, you can shutdown CouchDB and manually >> do the replace and you'll have a compacted database. >> >> Dave >> >> On Thu, Apr 22, 2010 at 3:56 PM, Adam Kocoloski >> wrote: >> > Hi Naren, I'm not a Windows expert, but I believe compaction is broken >> on Windows because we try to rename an open file. Regards, >> > >> > Adam >> > >> > On Apr 22, 2010, at 3:55 PM, naren wrote: >> > >> >> I am using 0.10 on Windows and tried to do a 'compact database' from >> Sofa. I >> >> got the following error message on the CouchDB window. I am lost for an >> >> explanation of what may be happening. Any help is much appreciated. >> >> >> >> Thanks >> >> Naren >> >> >> >> ================ >> >> >> >> 1> [info] [<0.2312.24>] Starting compaction for db "mydatabase" >> >> 1> [info] [<0.26559.24>] 10.0.39.177 - - 'POST' /mydatabase/_compact >> 202 >> >> 1> [error] [<0.2312.24>] ** Generic server <0.2312.24> terminating >> >> ** Last message in was {'$gen_cast', >> >> {compact_done, >> >> >> >> "../var/lib/couchdb/mydatabase.couch.compact"} >> >> } >> >> ** When Server state == {db,<0.2311.24>,<0.2312.24>,<0.26565.24>, >> >> >> <<"1271954425451970">>,<0.2309.24>,<0.2314.24>, >> >> {db_header,4,508350,0, >> >> {4253011781,{33710,17864}}, >> >> {4253014027,51574}, >> >> nil,0,nil,nil,1000}, >> >> 508350, >> >> {btree,<0.2309.24>, >> >> {4253011781,{33710,17864}}, >> >> #Fun, >> >> #Fun, >> >> #Fun, >> >> #Fun}, >> >> {btree,<0.2309.24>, >> >> {4253014027,51574}, >> >> #Fun, >> >> #Fun, >> >> #Fun, >> >> #Fun}, >> >> {btree,<0.2309.24>,nil, >> >> #Fun, >> >> #Fun, >> >> #Fun,nil}, >> >> 508350,<<"mydatabase">>, >> >> "../var/lib/couchdb/mydatabase.couch",[],[], >> >> nil, >> >> {user_ctx,null,[]}, >> >> nil,1000, >> >> [before_header,after_header,on_file_open]} >> >> ** Reason for termination == >> >> ** {{badmatch,{error,eacces}}, >> >> [{couch_db_updater,handle_cast,2}, >> >> {gen_server,handle_msg,5}, >> >> {proc_lib,init_p_do_apply,3}]} >> >> >> >> 1> >> >> =ERROR REPORT==== 22-Apr-2010::14:48:00 === >> >> ** Generic server <0.2312.24> terminating >> >> ** Last message in was {'$gen_cast', >> >> {compact_done, >> >> >> >> "../var/lib/couchdb/mydatabase.couch.compact"} >> >> } >> >> ** When Server state == {db,<0.2311.24>,<0.2312.24>,<0.26565.24>, >> >> >> <<"1271954425451970">>,<0.2309.24>,<0.2314.24>, >> >> {db_header,4,508350,0, >> >> {4253011781,{33710,17864}}, >> >> {4253014027,51574}, >> >> nil,0,nil,nil,1000}, >> >> 508350, >> >> {btree,<0.2309.24>, >> >> {4253011781,{33710,17864}}, >> >> #Fun, >> >> #Fun, >> >> #Fun, >> >> #Fun}, >> >> {btree,<0.2309.24>, >> >> {4253014027,51574}, >> >> #Fun, >> >> #Fun, >> >> #Fun, >> >> #Fun}, >> >> {btree,<0.2309.24>,nil, >> >> #Fun, >> >> #Fun, >> >> #Fun,nil}, >> >> 508350,<<"mydatabase">>, >> >> "../var/lib/couchdb/mydatabase.couch",[],[], >> >> nil, >> >> {user_ctx,null,[]}, >> >> nil,1000, >> >> [before_header,after_header,on_file_open]} >> >> ** Reason for termination == >> >> ** {{badmatch,{error,eacces}}, >> >> [{couch_db_updater,handle_cast,2}, >> >> {gen_server,handle_msg,5}, >> >> {proc_lib,init_p_do_apply,3}]} >> >> 1> [error] [<0.2312.24>] {error_report,<0.24.0>, >> >> {<0.2312.24>,crash_report, >> >> [[{initial_call,{couch_db_updater,init,['Argument__1']}}, >> >> {pid,<0.2312.24>}, >> >> {registered_name,[]}, >> >> {error_info,{exit,{{badmatch,{error,eacces}}, >> >> [{couch_db_updater,handle_cast,2}, >> >> {gen_server,handle_msg,5}, >> >> {proc_lib,init_p_do_apply,3}]}, >> >> [{gen_server,terminate,6}, >> >> {proc_lib,init_p_do_apply,3}]}}, >> >> >> >> {ancestors,[<0.2311.24>,couch_server,couch_primary_services, >> >> couch_server_sup,<0.1.0>]}, >> >> {messages,[]}, >> >> {links,[<0.2311.24>]}, >> >> {dictionary,[]}, >> >> {trap_exit,false}, >> >> {status,running}, >> >> {heap_size,1597}, >> >> {stack_size,24}, >> >> {reductions,25515552}], >> >> []]}} >> >> 1> [info] [<0.3052.24>] Shutting down view group server, monitored db >> is >> >> closing >> >> . >> >> 1> >> > >> > >> > > --0016e6465166342a120485258372--