Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 6249 invoked from network); 10 Jan 2011 15:37:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Jan 2011 15:37:55 -0000 Received: (qmail 87358 invoked by uid 500); 10 Jan 2011 15:37:54 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 87133 invoked by uid 500); 10 Jan 2011 15:37:53 -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 87125 invoked by uid 99); 10 Jan 2011 15:37:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jan 2011 15:37:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.82.180] (HELO mail-wy0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jan 2011 15:37:47 +0000 Received: by wyb28 with SMTP id 28so22639203wyb.11 for ; Mon, 10 Jan 2011 07:37:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.170.133 with SMTP id p5mr26208333wel.89.1294672962094; Mon, 10 Jan 2011 07:22:42 -0800 (PST) Received: by 10.216.88.21 with HTTP; Mon, 10 Jan 2011 07:22:42 -0800 (PST) In-Reply-To: References: Date: Mon, 10 Jan 2011 10:22:42 -0500 Message-ID: Subject: Re: problems with Apache HTTP Server Proxying CouchDB From: Chad George To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016363ba3ce01850204997f8a5d --0016363ba3ce01850204997f8a5d Content-Type: text/plain; charset=ISO-8859-1 For what its worth, I've been using a reverse proxy with couchdb for a while now and the only test it fails on is "config" since the ports don't match because of the proxy. I'm not sure what about the test suite is expected not to work with a reverse proxy... I kept tweaking the proxy until it passed everything because it seems to me like it should act exactly like without the proxy...maybe I'm missing something though. - chad On Fri, Jan 7, 2011 at 12:54 PM, Robert Newson wrote: > The test suite can verify the correct of your couchdb installation > when run under supported environments and with supported browsers. > Running it through a reverse proxy is not supported, so the results > are not meaningful. I recommend you run the test suite directly to > verify your install anyway. > > I would try using CouchDB with curl. Try creating databases and > documents and fetching them, deleting them, and so on. Errors there > almost certainly point to problems with your reverse proxy. > > B. > > On Fri, Jan 7, 2011 at 5:39 PM, Fabio Batalha Cunha dos Santos > wrote: > > Ok, > > > > That sounds good!! > > > > And doesn't it represents that couchdb isn't working fine, that's it? > > > > Thanks, > > *Fabio Batalha C. Santos* > > Colegiado SciELO > > www.scielo.org > > FAPESP - CNPq - BIREME - FapUNIFESP > > > > > > > > On Fri, Jan 7, 2011 at 3:31 PM, Robert Newson >wrote: > > > >> The test suite hasn't been verified to work behind a reverse proxy. > >> That it fails doesn't necessarily mean that things are broken in your > >> Apache setup. > >> > >> B. > >> > >> On Fri, Jan 7, 2011 at 4:51 PM, Fabio Batalha Cunha dos Santos > >> wrote: > >> > Hello all! > >> > > >> > Sorry to bother again, but I'm still having problems to proxy the > couchdb > >> > with apache httpd server. I already spent a lot of time looking at the > >> > internet for some solutions but I didn't found nothing that could help > >> me. > >> > > >> > All the "suit tests" are crashing my couchdb. > >> > > >> > I'm using the virtualhost sample from the wiki, and it seems to work > fine > >> to > >> > redirect the access to couchdb once the futon seems to be working > fine. > >> > > >> > > >> > ServerAdmin webmaster@dummy-host.example.com > >> > DocumentRoot "/opt/websites/web/www/dummy" > >> > ServerName couchdb.localhost > >> > AllowEncodedSlashes On > >> > ProxyRequests Off > >> > KeepAlive Off > >> > > >> > Order deny,allow > >> > Deny from all > >> > Allow from 127.0.0.1 > >> > > >> > ProxyPass / http://localhost:5984/ nocanon > >> > ProxyPassReverse / http://localhost:5984/ > >> > ErrorLog "logs/couchdb.localhost-error_log" > >> > CustomLog "logs/couchdb.localhost-access_log" common > >> > > >> > > >> > You can access the futon at homolog.webservices.scielo.org > >> > > >> > Thanks in advance, > >> > > >> > *Fabio Batalha C. Santos* > >> > Colegiado SciELO > >> > www.scielo.org > >> > FAPESP - CNPq - BIREME - FapUNIFESP > >> > > >> > > >> > > >> > On Thu, Jan 6, 2011 at 12:13 PM, Fabio Batalha Cunha dos Santos < > >> > fabio.batalha@scielo.org> wrote: > >> > > >> >> Hello All, > >> >> > >> >> I'm trying to use Apache http Server to proxy the access to couchdb, > >> >> unfortunately I'm having problems to validate the suit tests the > first > >> test > >> >> is crashing the couchDB. > >> >> > >> >> The "BASICS" test from the suit test is not working. This is the > error > >> log: > >> >> > >> >> [info] [<0.110.0>] 187.105.193.182 - - 'GET' /test_suite_db/ 200 > >> >> [info] [<0.118.0>] 187.105.193.182 - - 'GET' > >> >> /test_suite_db/0?rev=3-cac36b6fd7e2c7347b3147626c8cfdaf 200 > >> >> [info] [<0.123.0>] 187.105.193.182 - - 'POST' > >> >> /test_suite_db/_ensure_full_commit 201 > >> >> [info] [<0.95.0>] 187.105.193.182 - - 'POST' /_restart 200 > >> >> [error] [<0.124.0>] {error_report,<0.30.0>, > >> >> {<0.124.0>,crash_report, > >> >> [[{pid,<0.124.0>}, > >> >> {registered_name,[]}, > >> >> {error_info, > >> >> {exit, > >> >> {error,closed}, > >> >> [{mochiweb_socket_server,acceptor_loop,1}, > >> >> {proc_lib,init_p_do_apply,3}]}}, > >> >> > >> >> > {initial_call,{mochiweb_socket_server,acceptor_loop,['Argument__1']}}, > >> >> {ancestors, > >> >> > >> >> [couch_httpd,couch_secondary_services,couch_server_sup,<0.31.0>]}, > >> >> {messages,[]}, > >> >> {links,[<0.94.0>]}, > >> >> {dictionary,[]}, > >> >> {trap_exit,false}, > >> >> {status,running}, > >> >> {heap_size,987}, > >> >> {stack_size,23}, > >> >> {reductions,84}], > >> >> []]}} > >> >> > >> >> =CRASH REPORT==== 6-Jan-2011::11:49:24 === > >> >> crasher: > >> >> pid: <0.124.0> > >> >> registered_name: [] > >> >> exception exit: {error,closed} > >> >> in function mochiweb_socket_server:acceptor_loop/1 > >> >> initial call: mochiweb_socket_server:acceptor_loop/1 > >> >> ancestors: > [couch_httpd,couch_secondary_services,couch_server_sup, > >> >> <0.31.0>] > >> >> messages: [] > >> >> links: [<0.94.0>] > >> >> dictionary: [] > >> >> trap_exit: false > >> >> status: running > >> >> heap_size: 987 > >> >> stack_size: 23 > >> >> reductions: 84 > >> >> neighbours: > >> >> > >> >> > >> >> Thanks in advance for the help! > >> >> > >> >> Regards, > >> >> *Fabio Batalha C. Santos* > >> >> Colegiado SciELO > >> >> www.scielo.org > >> >> FAPESP - CNPq - BIREME - FapUNIFESP > >> >> > >> >> > >> > > >> > > > --0016363ba3ce01850204997f8a5d--