Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 15631 invoked from network); 11 Nov 2008 03:29:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Nov 2008 03:29:56 -0000 Received: (qmail 61208 invoked by uid 500); 11 Nov 2008 03:30:02 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 61175 invoked by uid 500); 11 Nov 2008 03:30:02 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 61164 invoked by uid 99); 11 Nov 2008 03:30:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2008 19:30:02 -0800 X-ASF-Spam-Status: No, hits=4.7 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.46.154] (HELO yw-out-1718.google.com) (74.125.46.154) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2008 03:28:42 +0000 Received: by yw-out-1718.google.com with SMTP id 5so1090437ywr.0 for ; Mon, 10 Nov 2008 19:29:24 -0800 (PST) Received: by 10.90.68.12 with SMTP id q12mr6781520aga.100.1226374132278; Mon, 10 Nov 2008 19:28:52 -0800 (PST) Received: by 10.90.90.17 with HTTP; Mon, 10 Nov 2008 19:28:52 -0800 (PST) Message-ID: <64a10fff0811101928q36c862fayb5532f92be342467@mail.gmail.com> Date: Mon, 10 Nov 2008 22:28:52 -0500 From: "Dean Landolt" To: couchdb-user@incubator.apache.org Subject: Re: action servers In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_100796_3953071.1226374132247" References: <64a10fff0811101758g33973bbau1fff53f4c789f11e@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_100796_3953071.1226374132247 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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 > 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((void0))@ > > > 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((void0))@ > > > 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? > > > ------=_Part_100796_3953071.1226374132247--