Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8DC9F72E3 for ; Wed, 28 Sep 2011 16:47:24 +0000 (UTC) Received: (qmail 80237 invoked by uid 500); 28 Sep 2011 16:47:23 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 80204 invoked by uid 500); 28 Sep 2011 16:47:23 -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 80196 invoked by uid 99); 28 Sep 2011 16:47:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2011 16:47:22 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcdcu-couchdb-user@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2011 16:47:17 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R8xHZ-0003yu-GS for user@couchdb.apache.org; Wed, 28 Sep 2011 18:46:53 +0200 Received: from 76-219-201-97.lightspeed.irvnca.sbcglobal.net ([76.219.201.97]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Sep 2011 18:46:53 +0200 Received: from bwcode4u by 76-219-201-97.lightspeed.irvnca.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Sep 2011 18:46:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: user@couchdb.apache.org From: bsquared Subject: Re: how to delete document with empty _id Date: Wed, 28 Sep 2011 09:47:30 -0700 Lines: 45 Message-ID: <8662kcd36l.fsf@gmail.com> References: <86k48vt8mt.fsf@gmail.com> <540B5FB6-9DE8-4913-9ABB-D67C49643893@4things.co.za> <4E816609.7030204@gmail.com> <4E8173B8.3060900@gmail.com> <4E8185D9.1070900@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 76-219-201-97.lightspeed.irvnca.sbcglobal.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:kdZLEiTqCIE/GH/WlPiYKPW9I7s= Christopher Bonhage writes: > couchdb -i > > DbName = <<"database_name_here">>, > DocId = <<>>, > rr(couchdb), > {ok, Db} = couch_db:open(DbName, [{user_ctx, #user_ctx{roles=[<<"_admin">>]}}]), > case couch_db:open_doc(Db, DocId) of > {ok, Doc} -> > couch_db:update_doc(Db, Doc#doc{deleted=true}, []); > Error -> > Error > end. > > I am looking for a user reference for the erlang shell, but so far none found. When I run the first command the response appears to be an error report. [...] crasher: initial call: couch_event_sup:init/1 pid: <0.97.0> registered_name: [] exception exit: {error,{file_error,"/var/log/couchdb/couch.log",eacces}} in function gen_server:init_it/6 ancestors: [couch_primary_services,couch_server_sup,<0.37.0>] messages: [] links: [<0.90.0>,<0.6.0>] dictionary: [] trap_exit: false status: running heap_size: 377 stack_size: 24 reductions: 116 neighbours: [...] 1> If I run as root I do not get an interactive shell. -- Regards, Brian Winfrey