You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Alexander Krauss <kr...@in.tum.de> on 2010/03/18 17:23:04 UTC
Replication over proxy: attachment_request_failed,premature_end
Dear list,
I have set up Apache as reverse proxy for couchdb, but I have problems
replicating. The idea of the setup is that Apache should later handle
authentication. However, even when this is all disabled, I get the
following failure when trying to replicate:
$ curl -X POST http://localhost:5984/_replicate \
-d '{"source": "http://remote:80/db", "target": "db"}'
Here, apache runs on port 80, forwarding to couchdb. The error I get is:
{"error":"json_encode","reason":"{bad_term,\n
{attachment_request_failed,premature_end,\n
[{doc,<<\"6b3f102ef5d66e7784194f3893655c09\">>,\n {2,\n
[<<180,32,59,185,5,151,66,81,254,207,95,186,136,76,142,46>>,\n
<<46,33,59,145,90,146,248,153,249,243,207,78,49,178,29,8>>]},\n
{[{<<\"successful\">>,true},\n {<<\"revs\">>,\n
[<<\"f57de4a9eb9c43fdb18dd1f97f44e24066483947\">>,\n
<<\"bb42338875caca819c393585f581650fbb8a0653\">>]},\n
{<<\"data\">>,\n {[{<<\"timing\">>,\n
{[{<<\"HOL-Abstract-Hoare-Logics\">>,\n
{[{<<\"elapsed\">>,55},\n
{<<\"elapsed_inner\">>,<<\"30.253\">>},\n
{<<\"threads\">>,4},\n
{<<\"gc\">>,<<\"11.413\">>},\n
{<<\"cpu_inner\">>,<<\"72.309\">>},\n
{<<\"cpu\">>,82}]}}]}},\n
{<<\"host\">>,<<\"lxlabbroy15\">>}]}},\n
{<<\"conf\">>,<<\"Abstract-Hoare-Logics\">>}]},\n
[{att,<<\"log\">>,<<\"text/plain\">>,1015,<<>>,2,\n
#Fun<couch_rep_att.0.90652905>}],\n false,[]}]}}"}
Most of the error is part of a docment in the database, but the actual
document where this occurs seems to vary. I was unable to reproduce this
behaviour with a smaller database (well, this one is also just a few
MB). I already tried dumping and reloading the database contents, but
nothing changed.
My proxy configuration is as follows and, I hope, fairly standard:
ProxyRequests Off
AllowEncodedSlashes On
ProxyPass / http://127.0.0.1:5984/ nocanon
ProxyPassReverse / http://127.0.0.1:5984/
Normal requests to couchdb and the futon interface seem to be working
fine through the proxy.
Any ideas what the problem could be?
Thanks,
Alex