From user-return-5260-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Wed Jun 24 07:19:49 2009 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 45555 invoked from network); 24 Jun 2009 07:19:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jun 2009 07:19:49 -0000 Received: (qmail 92183 invoked by uid 500); 24 Jun 2009 07:19:59 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 92086 invoked by uid 500); 24 Jun 2009 07:19:59 -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 92076 invoked by uid 99); 24 Jun 2009 07:19:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2009 07:19:59 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hhsuper@gmail.com designates 209.85.216.185 as permitted sender) Received: from [209.85.216.185] (HELO mail-px0-f185.google.com) (209.85.216.185) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2009 07:19:49 +0000 Received: by pxi15 with SMTP id 15so505921pxi.13 for ; Wed, 24 Jun 2009 00:19:28 -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 :from:date:message-id:subject:to:content-type; bh=iSrLJ7KOyZn9mmrMV+96AasAcKj/zlIz+JEt3Wp+bXw=; b=hy4G0BdWkjtrugkgghHJzi4m3PZfahJLWNKNZBMU9YdjziVHrfUgOaZneEELYFmPvQ 9LECEqQoOHNp1s5SMvNeh1uUn3E+4r685kJ26GYkG5jSFxPSsE7pcZeFu9WSBi90B5wV VB9m3j6NZqbjjJWdgNCdEylk0z7Cx5Vul4Yt4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=C4uU4WqATpYG1gvmGXwdrNaz98VRIpntlO7h83yZfRFZlNl0mOOWlq6TMR8/wxfyqB CXTzKTLaFcPrKcSGp1mwMpU5QNguxi2bE+JOWvovWYfvpmrKutYxs7iocBhyeeNW3U30 BsBSfFFFkLiTmrsfRKVOgKt2Kp4V9puMWxhwM= MIME-Version: 1.0 Received: by 10.114.157.1 with SMTP id f1mr1517078wae.155.1245827968407; Wed, 24 Jun 2009 00:19:28 -0700 (PDT) In-Reply-To: References: <7AC0D97469D66A468B50FA88A9AC4F174DD64A@genesis_mail.vitalhuber.local> <69a992ac0906231810w6e7f76b7l677c503ab11a62d6@mail.gmail.com> <69a992ac0906232350v660a49e6kf384fedb6bfdc2e4@mail.gmail.com> From: hhsuper Date: Wed, 24 Jun 2009 15:19:08 +0800 Message-ID: <69a992ac0906240019h4511b5dbk62fcdec383a3e1e1@mail.gmail.com> Subject: Re: Restoring CouchDB To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001636456fd68217ff046d12ed80 X-Virus-Checked: Checked by ClamAV on apache.org --001636456fd68217ff046d12ed80 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thx Chris, this maybe a method, I'll do a test On Wed, Jun 24, 2009 at 2:56 PM, Chris Anderson wrote: > On Tue, Jun 23, 2009 at 11:50 PM, hhsuper wrote: > > I can access remote couchdb in browser which need input the ldap user/pwd > > but when replicate there is no chance to input that(futon not support) > > > > when i use local couchdb's futon replicate the remote db to my local, i > > input the remote db address http://remote.domain/sourcedb > > and then select the local couchdb, when click the replicate button, the > > error pop out: > > > > Replication failed: {error, > > {{bad_return_value, > > {invalid_json, > > <<" > 2.0//EN\">\n\n401 Authorization > > Required\n\n

Authorization Required

\n

This > > server could not verify that you\nare authorized to access the > > document\nrequested. Either you supplied the wrong\ncredentials (e.g., > bad > > password), or your\nbrowser doesn't understand how to supply\nthe > > credentials required.

\n
\n
Apache/2.2.11 (Ubuntu) DAV/2 > > SVN/1.5.4 PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch mod_ssl/2.2.11 > > OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 Server at > > couchdb.babelcentral.com Port 80
\n\n">>}}, > > {child,undefined,"7c2ce9689bfdbceab88aeea97d4c8bc0", > > {gen_server,start_link, > > [couch_rep, > > ["7c2ce9689bfdbceab88aeea97d4c8bc0", > > {remote, > > <<"http://couchdb.babelcentral.com/prod_recresult/ > > ">>,[]}, > > > {local,<<"prod_recresult">>,{user_ctx,null,[<<"_admin">>]}}], > > []]}, > > transient,1,worker, > > [couch_rep]}}} > > > > obvoiusly the remote couchdb need ldap authentication, any suggestion? > > > > not sure about ldap (it looks like you are using http basic auth) so > try putting a URL of the form: > > http://user:pass@couchdb.babelcentral.com/prod_recresult/ > > into the replicator. > > > > On Wed, Jun 24, 2009 at 2:39 PM, Chris Anderson > wrote: > > > >> On Tue, Jun 23, 2009 at 6:10 PM, hhsuper wrote: > >> > I have the same question, my remote server have ladp authentication, i > >> can > >> > operate it with browser(use ldap user/pwd to login) , > >> > so the replicate doesn't work, is there any other ways to restore the > >> remote > >> > couchdb database to my local > >> > > >> > >> If you can access CouchDB with a browser you can replicate from it > >> using a CouchDB on your local machine. > >> > >> However, if you meant you *can't* access it with a browser, then there > >> are other options. The simplest is probably to copy the database file > >> (.couch) to your local machine using rsync or some other remote copy > >> utility. This requires that you be running the same CouchDB version on > >> both machines. > >> > >> > Thx > >> > > >> > On Tue, Jun 23, 2009 at 8:01 PM, Ajay Pawaskar < > >> APawaskar@genesisinfo.com>wrote: > >> > > >> >> Hi, > >> >> > >> >> i want to restore the CouchDB Documents & Views from One server to > >> >> another (on clients server) > >> >> there is option for replication (remote server)..but i don't have > access > >> >> to that server...(so i can't Replicate DB on that server using > >> >> Replicator) > >> >> ..but i need to deploy the Db on that server > >> >> .. also in future maybe i will be needing the documents from client > >> >> server for debugging purpose > >> >> how i can do this? > >> >> > >> >> > >> >> > >> >> Thx & Regards > >> >> > >> >> Ajay J. Pawaskar > >> >> > >> >> > >> > > >> > > >> > -- > >> > Yours sincerely > >> > > >> > Jack Su > >> > > >> > >> > >> > >> -- > >> Chris Anderson > >> http://jchrisa.net > >> http://couch.io > >> > > > > > > > > -- > > Yours sincerely > > > > Jack Su > > > > > > -- > Chris Anderson > http://jchrisa.net > http://couch.io > -- Yours sincerely Jack Su --001636456fd68217ff046d12ed80--