incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen Davies <o...@odavies.com>
Subject Re: Macports OSX issues?
Date Thu, 07 Apr 2011 19:16:07 GMT
It's because the new version of Erlang that is installed with Mac
Ports does not work with the current version of CouchDB. You need to
downgrade Erlang to the previous version.

Owen

On 7 April 2011 19:52, Trevor Bain <bainx028@umn.edu> wrote:
> After installing couchdb and adding the launchctl startup item I tried to
> connect to couchdb
>
> localhost :: ~ » 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 :: ~ » 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
>
>
> then I confirmed that the default port was correct
>
> localhost :: ~ » grep port < /opt/local/etc/couchdb/default.ini
> port = 5984
>
>
> then I checked permission and ownership on {prefix}/var/log and
> {prefix}/{lib,etc}
>
> localhost :: ~ » 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 :: ~ » 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
>

Mime
View raw message