CouchDB
  1. CouchDB
  2. COUCHDB-256

Replicating from a write-protected server fails

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Database Core
    • Labels:
      None
    • Environment:

      SVN r743373 (2/11/09); Mac OS X 10.5.6; current DarwinPorts versions of dependencies.

      Description

      I attempted to follow the example in jchris's "My Couch Of Yours?" post (http://jchris.mfdz.com/code/2008/11/my_couch_or_yours__shareable_ap), pulling a copy of his Twitter client CouchApp from his server. Unfortunately the replication fails. In his reply to my mailing list post, Jan said "At the moment, replication does not fully work with authentication-enabled replication sources. But this is being worked on [...] I don't think we have an open JIRA ticket for this." So I'm filing a ticket for it.

      The Replicator in the Futon interface doesn't show any errors, it just never stops the spinny progress indicator. But this immediately gets dumped to the log file:

      [Sun, 15 Feb 2009 03:58:57 GMT] [error] [emulator] Error in process <0.214.0> with exit value: nocatch,{unauthorized,<<39 bytes>>,[

      {couch_db,validate_doc_update,3},{couch_db,'-update_docs/4-lc$^1/1-8-',2},{lists,zipwith,3},{couch_db,update_docs,4},{couch_rep,save_docs_buffer,3}]}

      [Sun, 15 Feb 2009 03:58:57 GMT] [error] [<0.49.0>] {error_report,<0.22.0>,
      {<0.49.0>,std_error,
      {mochiweb_socket_server,235,
      {child_error,
      {{nocatch,
      {unauthorized,
      <<"You are not a server or database admin.">>}},
      [{couch_db,validate_doc_update,3}

      ,

      {couch_db,'-update_docs/4-lc$^1/1-8-',2}

      ,

      {lists,zipwith,3}

      ,

      {couch_db,update_docs,4}

      ,

      {couch_rep,save_docs_buffer,3}

      ]}}}}}

        Activity

        Hide
        Adam Kocoloski added a comment -

        Hi Jens, would you care to try this again with a new checkout? There shouldn't be any problem replicating from a protected source server. You can also replicate to a write-protected server if you supply the proper credentials in the POST body.

        If you do encounter the problem, can you include the syntax you used to trigger the replication in a comment? Thanks,

        Adam

        Show
        Adam Kocoloski added a comment - Hi Jens, would you care to try this again with a new checkout? There shouldn't be any problem replicating from a protected source server. You can also replicate to a write-protected server if you supply the proper credentials in the POST body. If you do encounter the problem, can you include the syntax you used to trigger the replication in a comment? Thanks, Adam
        Hide
        Jan Lehnardt added a comment -

        no feedback in a while. Please re-open if this still occurs.

        Show
        Jan Lehnardt added a comment - no feedback in a while. Please re-open if this still occurs.

          People

          • Assignee:
            Adam Kocoloski
            Reporter:
            Jens Alfke
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development