Hi,
I am quite excited about couchdb. I installed the latest ryan version,
but cannot run the example.
I get "couchdb doesn't seem to be running" and some warnings and an
exception. I copy pasted from the console below.
Any ideas?
Kurt Miebach
I am on ubuntu intrepid server:
ad@pc202:~/www/ryan/application_example$ pwd
/home/ad/www/ryan/application_example
ad@pc202:~/www/ryan/application_example$ sudo /etc/init.d/couchdb
restart
* Restarting database server couchdb
...done.
ad@pc202:~/www/ryan/application_example$ ps aux|grep couchdb
couchdb 1240 0.0 0.3 1844 576 pts/1 S 19:58 0:00 /bin/
sh -e /usr/local/bin/couchdb -c \"/usr/local/etc/couchdb/default.ini\"
-c \"/usr/local/etc/couchdb/local.ini\" -b -r 5 -p /usr/local/var/run/
couchdb.pid -o /dev/null -e /dev/null -R
couchdb 1277 0.0 0.1 1844 256 pts/1 S 19:58 0:00 /bin/
sh -e /usr/local/bin/couchdb -c \"/usr/local/etc/couchdb/default.ini\"
-c \"/usr/local/etc/couchdb/local.ini\" -b -r 5 -p /usr/local/var/run/
couchdb.pid -o /dev/null -e /dev/null -R
couchdb 1278 6.0 4.1 27480 7296 pts/1 Sl 19:58 0:00 /usr/
lib/erlang/erts-5.6.3/bin/beam -Bd -K true -- -root /usr/lib/erlang -
progname erl -- -home /usr/local/var/lib/couchdb -noshell -noinput -
smp auto -sasl errlog_type error -pa /usr/local/lib/couchdb/erlang/lib/
couch-0.9.0/ebin /usr/local/lib/couchdb/erlang/lib/mochiweb-r97/ebin /
usr/local/lib/couchdb/erlang/lib/ibrowse-1.4.1/ebin -eval
application:load(ibrowse) -eval application:load(crypto) -eval
application:load(couch) -eval crypto:start() -eval ibrowse:start() -
eval couch_server:start([ "/usr/local/etc/couchdb/default.ini", "/usr/
local/etc/couchdb/local.ini"]), receive done -> done end. -pidfile /
usr/local/var/run/couchdb.pid -heart
couchdb 1283 0.0 0.2 1628 428 ? Ss 19:59 0:00 heart
-pid 1278 -ht 11
ad 1289 0.0 0.4 3236 788 pts/1 S+ 19:59 0:00 grep
couchdb
ad@pc202:~/www/ryan/application_example$ telnet localhost 5984
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
QUIT
Connection closed by foreign host.
ad@pc202:~/www/ryan/application_example$ sudo lsof -i|grep couch
beam 1278 couchdb 10u IPv4 49076 TCP localhost:5984
(LISTEN)
ad@pc202:~/www/ryan/application_example$ ryan
Loading standard library from /usr/lib/erlang/lib/reia/lib... done.
! CouchDB doesn't seem to be running
Starting up Ryan...
Loading
retem.re :229: Warning: this clause cannot match because of
different types/sizes
ryan.re session.re controller.re :7: Warning: this clause cannot match
because of different types/sizes
:8: Warning: this clause cannot match because of different types/sizes
model.re done.
Loading
todo.re
exception: {exception,{throw,{error,nofile}}}
stacktrace: [{reia_class,build_parent_from_ancestry,1},
{reia_class,build,2},
{erl_eval,do_apply,5},
{eval_shim,exprs,2},
{reia_erl,erl_funcall,3},
{'Eval',exprs,2},
{'Eval',string,2},
{'Main',load,2}]
ad@pc202:~/www/ryan/application_example$
ad@pc202:~/www/ryan/application_example$ cd ..
ad@pc202:~/www/ryan$ git log|head
commit d194f47a8cf20d35dde05aafc5e0c7582f4ca3ed
Author: Phil Pirj <
pi...@mail.ru>
Date: Thu May 28 13:55:11 2009 +0400
getting rid handlers, get use of callbacks
commit 16a84d454c515eac1fd05fb31de95878183a47ae
Author: Phil Pirj <
pi...@mail.ru>
Date: Thu May 28 01:51:43 2009 +0400
ad@pc202:~/www/ryan$ sudo make install
(cd deps/erlang_couchdb;make)
make[1]: Entering directory `/home/ad/www/ryan/deps/erlang_couchdb'
mkdir -p ebin/
(cd src;make)
make[2]: Entering directory `/home/ad/www/ryan/deps/erlang_couchdb/
src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/ad/www/ryan/deps/erlang_couchdb/src'
make[1]: Leaving directory `/home/ad/www/ryan/deps/erlang_couchdb'
(cd deps/leex;make)
make[1]: Entering directory `/home/ad/www/ryan/deps/leex'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ad/www/ryan/deps/leex'
(cd deps/mochiweb;make)
make[1]: Entering directory `/home/ad/www/ryan/deps/mochiweb'
(cd src;make all)
make[2]: Entering directory `/home/ad/www/ryan/deps/mochiweb/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/ad/www/ryan/deps/mochiweb/src'
make[1]: Leaving directory `/home/ad/www/ryan/deps/mochiweb'
mkdir -p ebin
erlc -o ebin +debug_info src/**/*.erl
src/core/mochi_shim.erl:16: Warning: variable 'Accept' is unused
erlc -o ebin +debug_info deps/engejson.erl
rm -rf /usr/local/lib/erlang/lib/ryan
rm -f /usr/local/bin/ryan
rm -f /usr/local/bin/behave
mkdir /usr/local/lib/erlang/lib/ryan
mkdir /usr/local/lib/erlang/lib/ryan/ebin
cp deps/mochiweb/ebin/*.beam /usr/local/lib/erlang/lib/ryan/ebin
cp deps/erlang_couchdb/ebin/erlang_couchdb.beam /usr/local/lib/erlang/
lib/ryan/ebin
cp LICENSE /usr/local/lib/erlang/lib/ryan
cp README.md /usr/local/lib/erlang/lib/ryan
cp -r ebin /usr/local/lib/erlang/lib/ryan
cp src/behave/
behave.re /usr/local/lib/erlang/lib/ryan
cp src/retem/
retem.re /usr/local/lib/erlang/lib/ryan
cp src/core/
ryan.re /usr/local/lib/erlang/lib/ryan
cp src/core/
session.re /usr/local/lib/erlang/lib/ryan
cp src/core/
controller.re /usr/local/lib/erlang/lib/ryan
cp src/core/
model.re /usr/local/lib/erlang/lib/ryan
mkdir -p /usr/local/bin
rm -rf /usr/local/bin/ryan
cp bin/ryan /usr/local/bin
cp bin/behave /usr/local/bin
chmod 0755 /usr/local/bin/ryan
chmod 0755 /usr/local/bin/behave
ad@pc202:~/www/ryan$
ad@pc202:~/www/ryan$ cd ~/reia
ad@pc202:~/reia$ git pull
Already up-to-date.
ad@pc202:~/reia$