From user-return-15700-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Apr 07 18:52:43 2011 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 8316 invoked from network); 7 Apr 2011 18:52:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Apr 2011 18:52:43 -0000 Received: (qmail 25552 invoked by uid 500); 7 Apr 2011 18:52:42 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 25520 invoked by uid 500); 7 Apr 2011 18:52:42 -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 25512 invoked by uid 99); 7 Apr 2011 18:52:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2011 18:52:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of trevor.bain@gmail.com designates 209.85.210.180 as permitted sender) Received: from [209.85.210.180] (HELO mail-iy0-f180.google.com) (209.85.210.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2011 18:52:34 +0000 Received: by iyf40 with SMTP id 40so4476952iyf.11 for ; Thu, 07 Apr 2011 11:52:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type:content-transfer-encoding; bh=6DuTbXnp6qoZUvclUKT+Pt4FyW+VQ5z0d9s/Z/0wGzQ=; b=G+rvaq4AUAgG/V1q9FXg5nQHeGEpzSfjyG0/NhdO/ZMx5g8GDBOSzWYZXBYLc7rgC8 l4yt72ozL6thjFdRTuTlmunQEhf7nfM2W7nx+cMB8AAz3JHRPXNLKOQhZ6KRqVwH1Sr3 qEnquWXUHPDhyPbcToI70ntYuI6l/oYAb7pzQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=EYJ1B/1bQR8QCMopfbM86VURqBPOxAbtpnIgdu0ivv8p3IQU3nW74Fb+4paHwrk7B6 WeQ0o0+Zv8JRt55TT2QuD3Tsfi7SKhIr4ZMf3lK/mGoz2lIqURNrFXouZXFjLA1D4pOk 5PUNglqBLxRxXWQ29ATszxTOH8O5SLsbBzNDs= MIME-Version: 1.0 Received: by 10.231.165.212 with SMTP id j20mr1195409iby.139.1302202332854; Thu, 07 Apr 2011 11:52:12 -0700 (PDT) Sender: trevor.bain@gmail.com Received: by 10.231.16.196 with HTTP; Thu, 7 Apr 2011 11:52:12 -0700 (PDT) Date: Thu, 7 Apr 2011 13:52:12 -0500 X-Google-Sender-Auth: EmT37ktsMehc5yu5gT4ckZ3vPCU Message-ID: Subject: Macports OSX issues? From: Trevor Bain To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org After installing couchdb and adding the launchctl startup item I tried to connect to couchdb localhost :: ~ =BB curl -vX GET http://localhost:5984 * About to connect() to localhost port 5984 (#0) * Trying ::1... Connection refused * Trying fe80::1... Connection refused * Trying 127.0.0.1... Connection refused * couldn't connect to host * Closing connection #0 curl: (7) couldn't connect to host then I confirmed that it was indeed running localhost :: ~ =BB ps -e | grep couchdb 68183 ?? 0:00.43 /opt/local/lib/erlang/erts-5.8.2/bin/beam.smp -Bd = -K true -A 4 -- -root /opt/local/lib/erlang -progname erl -- -home ~ -- -noshe= ll -noinput -sasl errlog_type error -couch_ini /opt/local/etc/couchdb/default.= ini /opt/local/etc/couchdb/local.ini -s couch then I confirmed that the default port was correct localhost :: ~ =BB grep port < /opt/local/etc/couchdb/default.ini port =3D 5984 then I checked permission and ownership on {prefix}/var/log and {prefix}/{lib,etc} localhost :: ~ =BB l /opt/local/var/log/couchdb /opt/local/lib/couchdb /opt/local/etc/couchdb /opt/local/etc/couchdb: total 24 drwxr-xr-x 4 root admin 136 Apr 6 15:41 . drwxr-xr-x 52 root admin 1768 Apr 6 15:41 .. -rw-r--r-- 2 root admin 5266 Apr 6 15:41 default.ini -rw-r--r-- 2 root admin 1613 Apr 6 15:41 local.ini /opt/local/lib/couchdb: total 0 drwxr-xr-x 4 root admin 136 Apr 6 15:41 . drwxr-xr-x 1962 root admin 66708 Apr 6 15:41 .. drwxr-xr-x 3 root admin 102 Apr 6 15:41 bin drwxr-xr-x 3 root admin 102 Apr 6 15:41 erlang /opt/local/var/log/couchdb: total 0 drwxrwxr-x 4 couchdb couchdb 136 Apr 6 15:41 . drwxr-xr-x 6 root admin 204 Apr 6 15:00 .. -rw-r--r-- 2 root couchdb 0 Apr 6 15:41 .turd_couchdb -rw-rw-r-- 1 couchdb couchdb 0 Apr 6 15:26 couch.log I should note that I created couch.log with sudo -u couchdb touch /opt/local/var/log/couchdb/couch.log I did this because I noticed that couchdb wasn't logging anything. I also enabled debug level logging in my local.ini. Finally, if I run kill the launchctl owned couchdb (sudo launchctl remove couchdb) and do localhost :: ~ =BB sudo -u couchdb /opt/local/bin/couchdb Password: The terminal sits and doesn't print the expected permissions error message that I read I should see if this is a permissions error. Strangely enough, I remember being able to curl the default page when installed couchdb several months ago. However, doing a full uninstall, clean, and reinstall doesn't help. What else should/can I do? Thanks much, Trevor