Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A960ECC5C for ; Sun, 14 Jul 2013 13:18:44 +0000 (UTC) Received: (qmail 55268 invoked by uid 500); 14 Jul 2013 13:18:43 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 55147 invoked by uid 500); 14 Jul 2013 13:18:43 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 55139 invoked by uid 99); 14 Jul 2013 13:18:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jul 2013 13:18:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kxepal@gmail.com designates 74.125.82.177 as permitted sender) Received: from [74.125.82.177] (HELO mail-we0-f177.google.com) (74.125.82.177) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jul 2013 13:18:36 +0000 Received: by mail-we0-f177.google.com with SMTP id m19so9302631wev.36 for ; Sun, 14 Jul 2013 06:18:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=bKQXDCDzrouTtrk2hrVQ2TpMEVOzEkoFC599d2IFfME=; b=c6hjJSfD+hj0kmBjIXQcYopfvAF5ZRLjIBR5zNTUhVgBu88ZA1fdSGV/kGOYKe5iNo gxEIPJ15/+rWziyStikgdtcll4pSeQz3ILOjpi8qzNWm/K2Jn9GxDBN6VllABSBzNm/O Et2WJwMHy6oZVkrpjLhhVp9HJ+Sh4alK1a/z4yOM5ohIr/7U0e71So//FdW9e4GddbIV wGaawdKz9Iub4zjID5BLP/zkoQuLbCvrgH74PIN0VH3VJ1fTQTs+PYv/nvB1vOzpCG3B AeBerZzMvw8Dvy11433VS8rS3Q5ly3SWgRJ0OMU6h9V/yRXtllRCBLHzNc4gR7Qj9r5L GAvg== MIME-Version: 1.0 X-Received: by 10.194.19.3 with SMTP id a3mr29995072wje.54.1373807895681; Sun, 14 Jul 2013 06:18:15 -0700 (PDT) Received: by 10.180.98.10 with HTTP; Sun, 14 Jul 2013 06:18:15 -0700 (PDT) In-Reply-To: <0EF5AE31-8206-41BB-8461-DADA77F2BDB8@apache.org> References: <4B6ADDC9-A4B2-430A-B21A-9F13CC0FAF71@apache.org> <5F8E822E-9EF0-4981-AFF1-DE69D01EACD7@apache.org> <0EF5AE31-8206-41BB-8461-DADA77F2BDB8@apache.org> Date: Sun, 14 Jul 2013 17:18:15 +0400 Message-ID: Subject: Re: couchdb -n vs couchdb -n -a couch.ini From: Alexander Shorin To: "dev@couchdb.apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org To see what happening: $ couchdb -n -a /tmp/couch.ini -c /tmp/couch.ini -- ,,,^..^,,, On Sun, Jul 14, 2013 at 1:39 PM, Jan Lehnardt wrote: > > On Jul 14, 2013, at 11:30 , Jan Lehnardt wrote: > >> >> On Jul 14, 2013, at 11:23 , Jan Lehnardt wrote: >> >>> >>> On Jul 14, 2013, at 11:13 , Jan Lehnardt wrote: >>> >>>> Heya, >>>> >>>> I=E2=80=99m running into an odd issue: >>>> >>>> couchdb -n starts just fine >>>> couchdb -n -a couch.ini (where couch.ini is an empty file) fails: >>>> >>>> Apache CouchDB 1.3.0 (LogLevel=3Dinfo) is starting. >>>> {"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_a= pp,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couc= hdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}},[{couch_server_sup,s= tart_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_maste= r,start_it_old,4,[{file,"application_master.erl"},{line,274}]}]}}}}}},[{cou= ch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start= _em,1,[]}]}} >>>> >>>> Why would that be? :) >>> >>> It is because CouchDB expects at least two ini files. Thanks all :) >> >> Hm, no, that=E2=80=99s not it. >> >> Stay tuned for more live debugging. (no seriously, any help would be gre= atly appreciated :) > > it seems like couchdb -n still keeps the system default ini files and cou= chdb -n /tmp/couchdb.ini uses only this empty one and CouchDB can=E2=80=99t= start without any ini files (which it should, but doesn=E2=80=99t) > > So, both the description of -n (that it resets *all* ini files, including= the system defaults) is incorrect as well as CouchDB not starting without = default.ini (at least) should be a bug > > Jan > -- > > >> >> >>> >>> >>>> >>>> (note that the ini files you see in the trace are hardcoded on build-t= ime and are not actually used here.) >>>> >>>> Best >>>> Jan >>>> -- >>>> >>> >> >