You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Zachary Zolton <za...@gmail.com> on 2010/07/15 16:52:29 UTC

Replication failure

Couchers,

I'm trying to replicate a database down to my local workstation, but
the replication seems to fail after a certain point:

$ curl -X POST http://*******:*******@localhost:5984/_replicate -d
'{"source":"http://*******:*******@couch.mydomain.com:5984/backlogger","target":"backlogger","create_target":true}'

{"error":"json_encode","reason":"{bad_term,{couch_rep_reader,'-open_doc_revs/3-fun-1-',\n
                           [{[{<<\"error\">>,<<\"unauthorized\">>},\n
                             {<<\"reason\">>,\n
        <<\"You are not authorized to access this db.\">>}]},\n

{http_db,\"http://*******:*******@couch.mydomain.com:5984/backlogger/\",\n
                                     [],[],\n
            [{\"User-Agent\",\"CouchDB/1.0.0\"},\n
                  {\"Accept\",\"application/json\"},\n
                      {\"Accept-Encoding\",\"gzip\"}],\n
                       [],get,nil,\n
   [{response_format,binary},\n
{inactivity_timeout,30000},\n
{max_sessions,10},\n
{max_pipeline_size,10}],\n
10,500,nil}]}}"}

Note that it did create the database locally, and that 130 out of the
137 docs seem to have made it over:

$ curl localhost:5984/backlogger

{"db_name":"backlogger","doc_count":130,"doc_del_count":32,"update_seq":162,"purge_seq":0,"compact_running":false,"disk_size":348249,"instance_start_time":"1279204723544778","disk_format_version":5}

$ curl http://*******:*******@couch.mydomain.com:5984/backlogger

{"db_name":"backlogger","doc_count":137,"doc_del_count":39,"update_seq":402,"purge_seq":0,"compact_running":false,"disk_size":290909,"instance_start_time":"1279204391630006","disk_format_version":5}

I re-ran the replication, and the number of docs locally went up to
135, but it still failed with the same error message. After that,
re-running the replication seemed to cause no further changes to my
local database.

Any ideas how I can complete the replication?

FYI, I'm running 1.0.0 locally and 0.11.0 on the remote server.


Cheers,

Zach