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 <[EMAIL PROTECTED]> 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 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
> ","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 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
> ","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?
>