From user-return-22412-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Sun Oct 7 19:19:15 2012 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 A2E30D8E2 for ; Sun, 7 Oct 2012 19:19:15 +0000 (UTC) Received: (qmail 52382 invoked by uid 500); 7 Oct 2012 19:19:13 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 52341 invoked by uid 500); 7 Oct 2012 19:19:13 -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 52326 invoked by uid 99); 7 Oct 2012 19:19:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Oct 2012 19:19:13 +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 bchesneau@gmail.com designates 74.125.83.52 as permitted sender) Received: from [74.125.83.52] (HELO mail-ee0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Oct 2012 19:19:09 +0000 Received: by mail-ee0-f52.google.com with SMTP id b57so2086232eek.11 for ; Sun, 07 Oct 2012 12:18:47 -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; bh=EEf7hMtHzDphPGj6odA9b4nWd6x521U8gbcJBrutcMQ=; b=pS/UGKDDus4+Xq/ig3G8gK1Hxd/W+thORyPTuFVVxu9QIxOXSKXkPvHOD2soNcD1A+ UpfVPExNJD6sjfQucPmk5aAtSEfQQQcBoxAP07zKkt0Z8g5dBHZuIHRZi7ogT9Tuu3fZ qRXyhnE+oISeqxrgzsonLxjI5KdVq2gHbXs/8d4yHe8Y6x1jph2v4nvX5JYPUj5AyMvm g38FcoaxEnwYJyUSZoGHSjH3a/BxoSKe4Hw8x9rUd2lgKYkZ7rsj7KoD1S09+b81eMIv S1SPmVPYtSr8c7jRKqzh92nm9jdKuqfPTMIK1ZbkO+XLszzJNe0tjJeuviYTmo0pBtsR pEPA== MIME-Version: 1.0 Received: by 10.14.179.136 with SMTP id h8mr19598617eem.6.1349637527795; Sun, 07 Oct 2012 12:18:47 -0700 (PDT) Received: by 10.14.137.204 with HTTP; Sun, 7 Oct 2012 12:18:47 -0700 (PDT) In-Reply-To: References: <1C05AE2905E44F3CBA65FB488C1FBD8A@thenoi.se> <31E705D43C964074AB1FE98B2E1771D2@thenoi.se> <5018D969-4F96-4B51-A9B8-E6AD9934957C@apache.org> <7CEEE59A91D84C19BEEE55E89B3D9A18@thenoi.se> <353118BA-FF98-4656-BCB0-5628517279C6@apache.org> <-4892277256703181100@unknownmsgid> <-7817073813000260813@unknownmsgid> Date: Sun, 7 Oct 2012 21:18:47 +0200 Message-ID: Subject: Re: eacces error From: Benoit Chesneau To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Oct 7, 2012 at 6:59 PM, Noah Slater wrote: > Right, but realistically, it may be a number of months before we have an > OTP release. So a simple patch might be nice for now. Dave's proposal looks > sane to me. > > What is a Dix? And how does an OTP release fix the problem? Anyone? Excuse > me for my ignorance. Not specific to otp but maybe that change could do the trick: https://github.com/refuge/rcouch/blob/master/rel/files/rcouch#L6 > > On Thu, Oct 4, 2012 at 5:46 PM, Robert Newson wrote: > >> Moving to a proper OTP release *is* the fix. There's a Dix on the two >> ways erlang starts. One is called "interactive" and is how couch and, >> I think, bigcouch are started. That mode is the one that includes your >> current working dir. The other mode, the name escapes me, does not. >> >> Sent from the ocean floor >> >> On 4 Oct 2012, at 15:13, Dave Cottlehuber wrote: >> >> > On 4 October 2012 12:58, Noah Slater wrote: >> >> Should we patch this before the move to an OTP system? Does anybody >> have a >> >> patch? >> > >> > I'll take a look, something like chdir to /usr/local/var/run/couchdb >> > or similar might be an approach. I think on Windows at least it >> > matters where CouchDB is running from, but it uses a different method >> > of starting up vs *nix so that should be OK. >> > >> > @Martin does this patch fix it? Just ensure your /usr/* paths match up. >> > >> > --- /usr/local/bin/couchdb 2012-10-04 16:06:16.000000000 +0200 >> > +++ /tmp/couchdb 2012-10-04 16:06:02.000000000 +0200 >> > @@ -27,6 +27,7 @@ >> > KILL=false >> > LOCAL_CONFIG_DIR=/usr/local/etc/couchdb/local.d >> > LOCAL_CONFIG_FILE=/usr/local/etc/couchdb/local.ini >> > +LOCAL_RUN_DIR=/usr/local/var/run/couchdb/ >> > PID_FILE=/usr/local/var/run/couchdb/couchdb.pid >> > RECURSED=false >> > RESET_CONFIG=true >> > @@ -220,13 +221,16 @@ >> > check_environment >> > fi >> > interactive_option="+Bd -noinput" >> > + working_dir=$PWD >> > if test "$INTERACTIVE" = "true"; then >> > interactive_option="" >> > + working_dir=$LOCAL_RUN_DIR >> > fi >> > if test "$BACKGROUND" = "true"; then >> > touch $PID_FILE >> > interactive_option="+Bd -noinput" >> > fi >> > + cd $working_dir >> > command="/usr/local/opt/erlang/bin/erl $interactive_option >> > $ERL_START_OPTIONS \ >> > -env ERL_LIBS >> > /usr/local/Cellar/couchdb/HEAD/lib/couchdb/erlang/lib -couch_ini >> > $start_arguments -s couch" >> > if test "$BACKGROUND" = "true" -a "$RECURSED" = "false"; then >> > >> > I've got a patch against master if this works. >> > >> > A+ >> > Dave >> > > > > -- > NS