From user-return-22414-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Sun Oct 7 20:28:55 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 3384D99E4 for ; Sun, 7 Oct 2012 20:28:55 +0000 (UTC) Received: (qmail 87567 invoked by uid 500); 7 Oct 2012 20:28:53 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 87523 invoked by uid 500); 7 Oct 2012 20:28:53 -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 87515 invoked by uid 99); 7 Oct 2012 20:28:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Oct 2012 20:28:53 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nslater@tumbolia.org designates 209.85.223.180 as permitted sender) Received: from [209.85.223.180] (HELO mail-ie0-f180.google.com) (209.85.223.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Oct 2012 20:28:46 +0000 Received: by mail-ie0-f180.google.com with SMTP id e10so7587499iej.11 for ; Sun, 07 Oct 2012 13:28:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tumbolia.org; s=google; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=17q0I+I63BYvEpAUHdLfIA4fjkIZqYNPGJG3l70S9xg=; b=at7NS6PkmSkX5RcbFvPXp+rnsT5IGy1090gBPxLluwfx8xrLJ7GfnM7pn/9MTSw7dh pAzdu3mJoiQErXu97RzfAnkhkOTa/1TXyzCZ0KgtEhufzkMD8iwllU7gqFpxLbEo2YJv q7tMFiJgkaNtNWvutikA5RPDFMdev2P1Vr+B0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=17q0I+I63BYvEpAUHdLfIA4fjkIZqYNPGJG3l70S9xg=; b=BgZVIYHBRE56ZmjT+RQOHJhltenEO6Dg6JU3L9/vTQeqxD8zP7dAp9Tbk3Jazt54Xp dMDuOAxgUddQuFiFVN+/TQbHLwQwhB/x2YsScnekF0VsNyMc9BaA0/JLI8sD46NbR4w0 DeADzZDKHHBM4aWi+ZHBrGLdaB3pahDcIkyLR7QfsmBsHg947BetP7kwt+1+hB8DPC1e dAeOzZn0HeWRkZEBHrx1hJwgsRrb0FmVdqT37+9J4TcS+XXcqMGTwMz/2mBffaIyrJ9v ho4fWpSUBijUiZVfVLzf7ebwF/m4aljjOpFFrT1Qpg4E6HuF7B52+c8J4uj2WTDA9bs/ oKYA== MIME-Version: 1.0 Received: by 10.50.173.41 with SMTP id bh9mr4133120igc.52.1349641703455; Sun, 07 Oct 2012 13:28:23 -0700 (PDT) Received: by 10.64.63.19 with HTTP; Sun, 7 Oct 2012 13:28:23 -0700 (PDT) X-Originating-IP: [79.97.124.139] 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:28:23 +0100 Message-ID: Subject: Re: eacces error From: Noah Slater To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=e89a8f50352e4efa9c04cb7df27c X-Gm-Message-State: ALoCoQlmwHMmvDW1RlDdcILp6ElP6Bd5IWtPk9EH8L8tleE1GqS0EO+W7r8zz/ARBa0nZooGUcGO --e89a8f50352e4efa9c04cb7df27c Content-Type: text/plain; charset=ISO-8859-1 `dirname $0` in sh. I am confused here. There are three things which are candidates for permission errors. The init.d script attempts to execute `couchdb` from the `couchdb` user's shell. The `couchdb` script itself. The Erlang process. When Bob mentioned the problem about not being in a guaranteed readable dir, which one did he mean? The `couchdb` script itself sometimes spits out files into the `pwd` so we can't have it automatically switch dirs. If it is the Erlang process itself, then that is another matter entirely. Do we have to wait for OTP for that? And what has the shell synatax Benoit quotes have to do with anything? Sorry for my confusion. On Sun, Oct 7, 2012 at 8:38 PM, Dave Cottlehuber wrote: > On 7 October 2012 21:18, Benoit Chesneau wrote: > > 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 > > Thanks Benoit, > > I put it into a simple shell script & it only returns the command-name > for me. How do you extract the runtime base dir using that syntax? I'm > assuming this will be embarassingly obvious. > > A+ > Dave > -- NS --e89a8f50352e4efa9c04cb7df27c--