From user-return-15718-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Fri Apr 08 10:40:56 2011 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 94499 invoked from network); 8 Apr 2011 10:40:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Apr 2011 10:40:56 -0000 Received: (qmail 72016 invoked by uid 500); 8 Apr 2011 10:40:54 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 71986 invoked by uid 500); 8 Apr 2011 10:40:54 -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 71977 invoked by uid 99); 8 Apr 2011 10:40:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Apr 2011 10:40:54 +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 rgabo@rgabostyle.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Apr 2011 10:40:48 +0000 Received: by bwj24 with SMTP id 24so5092662bwj.11 for ; Fri, 08 Apr 2011 03:40:27 -0700 (PDT) Received: by 10.204.20.139 with SMTP id f11mr1894679bkb.177.1302259227078; Fri, 08 Apr 2011 03:40:27 -0700 (PDT) Received: from [192.168.1.208] (catv-89-132-175-14.catv.broadband.hu [89.132.175.14]) by mx.google.com with ESMTPS id q18sm1570586bka.3.2011.04.08.03.40.24 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Apr 2011 03:40:25 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Macports OSX issues? From: Gabor Ratky In-Reply-To: Date: Fri, 8 Apr 2011 12:40:22 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1084) Use homebrew and get rid of MacPorts for good. http://github.com/mxcl/homebrew `brew install couchdb` Gabor On Apr 7, 2011, at 8:52 PM, Trevor Bain wrote: > After installing couchdb and adding the launchctl startup item I tried = to > connect to couchdb >=20 > 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 >=20 >=20 > then I confirmed that it was indeed running >=20 > 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 ~ -- = -noshell > -noinput -sasl errlog_type error -couch_ini = /opt/local/etc/couchdb/default.ini > /opt/local/etc/couchdb/local.ini -s couch >=20 >=20 > then I confirmed that the default port was correct >=20 > localhost :: ~ =BB grep port < /opt/local/etc/couchdb/default.ini > port =3D 5984 >=20 >=20 > then I checked permission and ownership on {prefix}/var/log and > {prefix}/{lib,etc} >=20 > localhost :: ~ =BB l /opt/local/var/log/couchdb /opt/local/lib/couchdb > /opt/local/etc/couchdb >=20 > /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 >=20 > /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 >=20 > /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 >=20 >=20 > I should note that I created couch.log with >=20 > sudo -u couchdb touch /opt/local/var/log/couchdb/couch.log >=20 >=20 > I did this because I noticed that couchdb wasn't logging anything. > I also enabled debug level logging in my local.ini. >=20 > Finally, if I run kill the launchctl owned couchdb > (sudo launchctl remove couchdb) and do >=20 > localhost :: ~ =BB sudo -u couchdb /opt/local/bin/couchdb > Password: >=20 >=20 > The terminal sits and doesn't print the expected permissions error > message that I read I should see if this is a permissions error. >=20 > 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. >=20 > What else should/can I do? >=20 >=20 > Thanks much, > Trevor