Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 37351 invoked from network); 21 Mar 2010 22:35:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Mar 2010 22:35:07 -0000 Received: (qmail 52801 invoked by uid 500); 21 Mar 2010 22:35:02 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 52773 invoked by uid 500); 21 Mar 2010 22:35:02 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 52765 invoked by uid 99); 21 Mar 2010 22:35:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Mar 2010 22:35:02 +0000 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=AWL,FREEMAIL_FROM,FS_REPLICA,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of randall.leeds@gmail.com designates 209.85.218.214 as permitted sender) Received: from [209.85.218.214] (HELO mail-bw0-f214.google.com) (209.85.218.214) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Mar 2010 22:34:56 +0000 Received: by bwz6 with SMTP id 6so4684402bwz.33 for ; Sun, 21 Mar 2010 15:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=IFBLWdgEu5lqiozd5z5dZjFZQKZlsCWm9IM9nYroxgE=; b=qjloHiLRIBDklAFO4/H37SKm+00UgAYmtG3wjth3hbutfVWN1JCrCTqZ0VFs39gprW 490E+5V//Td+o/D3VnUEJJdIrQ3n2fLvWg27jVbEsf3Iiek2vivCemTbJoj8Gs6Y1rNx RnEBTVGLva2LvT8+q+zjI2512Qf5sYCLXtw6o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=qW2tNei/jjY/8IUD1pDaWiwf22Npsj3P8XSzymttRst/EiuSt5dcTlGqBdj6XUkj9N dRMX1EsOlIqUMC4bgZahU+OXTAN4OP31r2Gee0UpMOanGYqSDsXhO3wRPdA97S/T+4j+ HL9HQ6xYF700UaPV26gI5Cbw7zn56DJ1QpQQ4= MIME-Version: 1.0 Received: by 10.204.75.35 with SMTP id w35mr4526591bkj.194.1269210874518; Sun, 21 Mar 2010 15:34:34 -0700 (PDT) In-Reply-To: <3679B3D5-EC91-46CD-B74D-5FFBBCF7D921@stephanejolicoeur.com> References: <3679B3D5-EC91-46CD-B74D-5FFBBCF7D921@stephanejolicoeur.com> Date: Sun, 21 Mar 2010 15:34:34 -0700 Message-ID: Subject: Re: replication and error 500 From: Randall Leeds To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016e6d6456052210b0482572fbf --0016e6d6456052210b0482572fbf Content-Type: text/plain; charset=UTF-8 CouchDB is trying to open the replication log on the remote server. This log is a document with the _local prefix you see in the log. If it's not found (normal for first replication) the remote couch (the replication target in your case) returns a 404 with a json body describing the error. Expecting this json the source couch is trying to json decode the response which appears to be xhtml instead. Boom. Check to see if your hosting provider is rewriting the 404 reply with a custom response body and disable this if you can. You can test by trying to fetch any document or database that does not exist. You should get a json response, not xhtml. Cheers, Randall On Mar 21, 2010 2:07 PM, "Stephane&Jolicoeur" wrote: Hello, I am a first time couchDB user and up until replication things were going fine ... My setup : I installed a couchDB instance on my webfaction account listening on a port supplied by them hence it is behind an apache server. on that instance there is an admin user with password and a different secret passphrase. and then I have couchDB running on my local laptop. I wanted to replicate data from my laptop (Mac OS X + curl 7.19.4 ) to the server on webfaction but I seem to be getting 500 errors in futon even with authentication. What could be happening ? Thank you for any help, Stephane here's the trace from futon : Starting CouchDB... Eshell V5.7.3 (abort with ^G) 1> Apache CouchDB 0.10.1 (LogLevel=info) is starting. 1> Apache CouchDB has started. Time to relax. 1> [info] [<0.1.0>] Apache CouchDB has started on http://127.0.0.1:5984/ 1> [info] [<0.66.0>] 127.0.0.1 - - 'GET' /_all_dbs 200 1> [info] [<0.70.0>] 127.0.0.1 - - 'GET' / 200 1> [error] [<0.84.0>] {error_report,<0.23.0>, {<0.84.0>,crash_report, [[{initial_call,{couch_rep,init,['Argument__1']}}, {pid,<0.84.0>}, {registered_name,[]}, {error_info, {exit, {bad_return_value, {invalid_json, <<"\n\n404 Not Found\n\n

Not Found

\n

The requested URL /baseball/_local/711ad469b7a597fc798e24388dfde992 was not found on this server.

\n\n">>}}, [{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}}, {ancestors, [couch_rep_sup,couch_primary_services,couch_server_sup,<0.1.0>]}, {messages,[]}, {links,[<0.51.0>]}, {dictionary,[]}, {trap_exit,true}, {status,running}, {heap_size,2584}, {stack_size,24}, {reductions,1148}], []]}} 1> [error] [<0.66.0>] Uncaught error in HTTP request: {error, {case_clause, {error, {{bad_return_value, {invalid_json, <<"\n\n404 Not Found\n\n

Not Found

\n

The requested URL /baseball/_local/711ad469b7a597fc798e24388dfde992 was not found on this server.

\n\n">>}}, {child,undefined, "711ad469b7a597fc798e24388dfde992", {gen_server,start_link, [couch_rep, ["711ad469b7a597fc798e24388dfde992", {[{<<"source">>,<<"test">>}, {<<"target">>, <<"http://admin:xxx@xxxx /baseball">>}]}, {user_ctx,null,[<<"_admin">>]}], []]}, temporary,1,worker, [couch_rep]}}}}} 1> [info] [<0.66.0>] Stacktrace: [{couch_rep,start_replication_server,1}, {couch_rep,replicate,2}, {couch_httpd_misc_handlers,handle_replicate_req,1}, {couch_httpd,handle_request,5}, {mochiweb_http,headers,5}, {proc_lib,init_p_do_apply,3}] 1> [info] [<0.66.0>] 127.0.0.1 - - 'POST' /_replicate 500 1> --0016e6d6456052210b0482572fbf--