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 66D37999C for ; Thu, 4 Oct 2012 14:13:32 +0000 (UTC) Received: (qmail 99236 invoked by uid 500); 4 Oct 2012 14:13:30 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 99164 invoked by uid 500); 4 Oct 2012 14:13:30 -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 99153 invoked by uid 99); 4 Oct 2012 14:13:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2012 14:13:30 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.216.180] (HELO mail-qc0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2012 14:13:22 +0000 Received: by mail-qc0-f180.google.com with SMTP id v28so374865qcm.11 for ; Thu, 04 Oct 2012 07:13:01 -0700 (PDT) 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=EV7yr1Wsi8DBxNst6UWcCQYvi24TwQgFu1XQqD+vu2Q=; b=R5HKufB48dgVStydcdKT8kwYOmtnAPQkaYV7xHl53KCTIgLjLgjOOCAmKEy4orTJ8T ECoLAEptVOYQct7Tgsc9yQnqQQdyfCB+oSR/sowemts0JnTLi+ItPri9PgwawEL+6AUA BX/N9IXePFAadYRgAu5LYgc168g2qf87Y4np5sPCUZmzC484zQmCYUVBjOEWwfvOBzyV s5E410Q0/8Ta0/gQ3dmWJTKvExGzIz0rAqx/13FVTd57yln6rYtZJqEsA4RnKPRMrjb3 cDLmsu/G9MeQsqiuUsgiKjEVIV+SyNZUboFWfGlG5IZYOYu2FQQtIyFzph4AbkGoDrxg aJSQ== MIME-Version: 1.0 Received: by 10.224.19.6 with SMTP id y6mr12537664qaa.17.1349359981387; Thu, 04 Oct 2012 07:13:01 -0700 (PDT) Received: by 10.49.35.48 with HTTP; Thu, 4 Oct 2012 07:13:01 -0700 (PDT) X-Originating-IP: [84.112.19.176] 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> Date: Thu, 4 Oct 2012 16:13:01 +0200 Message-ID: Subject: Re: eacces error From: Dave Cottlehuber To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnA755piyX9hQFMK7XCy+cLZd5bwhnjWM5Pnd1mzqJHDWZ9fzwuBaLgesPQOvXsCmQRV7Yw 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