incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dean Landolt" <d...@deanlandolt.com>
Subject Re: action servers
Date Tue, 11 Nov 2008 03:28:52 GMT
Thanks for the response, Paul. I'm fairly certain that's not it -- here's my
default.ini

; etc/couchdb/default.ini.tpl.  Generated from default.ini.tpl.in by
configure.

; Upgrading CouchDB will overwrite this file.

[couchdb]
database_dir = /usr/local/var/lib/couchdb
util_driver_dir =
/usr/local/lib/couchdb/erlang/lib/couch-0.9.0a-incubating/priv/lib
max_document_size = 4294967296 ; 4 GB
view_timeout = 5000 ; 5 seconds

[httpd]
port = 5984
bind_address = 0.0.0.0

[log]
file = /usr/local/var/log/couchdb/couch.log
level = info

[query_servers]
javascript = /usr/local/bin/couchjs /usr/local/share/couchdb/server/main.js

[daemons]
view_manager={couch_view, start_link, []}
db_update_notifier={couch_db_update_notifier_sup, start_link, []}
full_text_query={couch_ft_query, start_link, []}
query_servers={couch_query_servers, start_link, []}
httpd={couch_httpd, start_link, []}
external={couch_external_manager, start_link, []}


[httpd_global_handlers]
/ = {couch_httpd_misc_handlers, handle_welcome_req, <<"Welcome">>}
_utils = {couch_httpd_misc_handlers, handle_utils_dir_req,
"/usr/local/share/couchdb/www"}
_all_dbs = {couch_httpd_misc_handlers, handle_all_dbs_req}
_config = {couch_httpd_misc_handlers, handle_config_req}
_replicate = {couch_httpd_misc_handlers, handle_replicate_req}
_uuids = {couch_httpd_misc_handlers, handle_uuids_req}
_restart = {couch_httpd_misc_handlers, handle_restart_req}

[httpd_db_handlers]
_view = {couch_httpd_view, handle_view_req}
_temp_view = {couch_httpd_view, handle_temp_view_req}
_external = {couch_httpd_external, handle_external_req}

[external]
action={"/usr/local/bin/couchjs /usr/local/share/couchdb/server/action.js",
1}


It's got everything you referenced (and the paths look right -- it's a
strait install). So I'm still at a loss. Ah well -- I'm trying to slap
together an unobtrusive google reader clone so I've gots plenty to do before
I need to worry about persistence. I can just do everything in the browser
in the meantime.

I haven't even gotten started yet and I think I'm starting to love this
javascript + javascript development.


On Mon, Nov 10, 2008 at 10:04 PM, Paul Davis <paul.joseph.davis@gmail.com>wrote:

> Dean,
>
> IIRC, this is an error in the config file. Can you check your
> default.ini and make sure you have these three bits:
>
> [daemons]
> external={couch_external_manager, start_link, []}
>
> [httpd_db_handlers]
> _external = {couch_httpd_external, handle_external_req}
>
> [external]
> action={"/path/to/couchjs /path/to/server/action.js", 1}
>
> At least, I'm fairly certain that's what was causing that error for me.
>
> On Mon, Nov 10, 2008 at 8:58 PM, Dean Landolt <dean@deanlandolt.com>
> wrote:
> > I've been trying to get the action2 branch up and running and but can't
> get
> > an action to generate. Everything installs fine but the two action tests
> > fail...
> >
> > the actions test fails with:
> >
> >   1. *Assertion failed:* xhr.status == 404
> >   2. *Assertion failed:* xhr.status == 404
> >   3. *Exception raised:* {"message":"syntax error","fileName":"
> >   http://dev.deanlandolt.com:5984/_utils/script/json2.js
> >   ","lineNumber":150,"stack":"()@:0\neval(\"()\")@:0\n(\"\")@
> >   http://dev.deanlandolt.com:5984/_utils/script/json2.js:150\n((void<http://dev.deanlandolt.com:5984/_utils/script/json2.js:150%5Cn%28%28void>0))@
> >
> http://dev.deanlandolt.com:5984/_utils/script/couch_tests.js:2163\nrun(0)@http://dev.deanlandolt.com:5984/_utils/script/couch_tests.js:2179\n<http://dev.deanlandolt.com:5984/_utils/script/couch_tests.js:2163%5Cnrun%280%29@http://dev.deanlandolt.com:5984/_utils/script/couch_tests.js:2179%5Cn>
> >   ","name":"SyntaxError"}
> >
> > the action_server_request fails with:
> >
> >
> >   1. *Exception raised:* {"message":"syntax error","fileName":"
> >   http://dev.deanlandolt.com:5984/_utils/script/json2.js
> >   ","lineNumber":150,"stack":"()@:0\neval(\"()\")@:0\n(\"\")@
> >   http://dev.deanlandolt.com:5984/_utils/script/json2.js:150\n((void<http://dev.deanlandolt.com:5984/_utils/script/json2.js:150%5Cn%28%28void>0))@
> >
> http://dev.deanlandolt.com:5984/_utils/script/couch_tests.js:2149\nrun(1)@http://dev.deanlandolt.com:5984/_utils/script/couch_tests.js:2179\n<http://dev.deanlandolt.com:5984/_utils/script/couch_tests.js:2149%5Cnrun%281%29@http://dev.deanlandolt.com:5984/_utils/script/couch_tests.js:2179%5Cn>
> >   ","name":"SyntaxError"}
> >
> > To make sure it wasn't me, I even went and replicated the blogdb example
> (I
> > hope you don't mind my poking around your db internals, jchris) but I'm
> > still failing. When I try to hit the action to generate a feed I get:
> >
> > {mochiweb_socket_server,
> >    235,
> >    {child_error,
> >        {{bad_return_value,{external_process_error,{exit_status,1}}},
> >         {gen_server,
> >             call,
> >             [<0.278.0>,
> >              {execute,
> >                  <<"blogdb">>,
> >                  'GET',
> >                  [<<"couchdb-example-blog">>,<<"atom-posts">>],
> >                  [],
> >                  undefined,
> >                  [],
> >                  []}]}}}}
> >
> > Is there a step somewhere I'm missing?
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message