Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 99277 invoked from network); 29 Jan 2010 13:32:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Jan 2010 13:32:23 -0000 Received: (qmail 43225 invoked by uid 500); 29 Jan 2010 13:32:22 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 43138 invoked by uid 500); 29 Jan 2010 13:32:22 -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 43128 invoked by uid 99); 29 Jan 2010 13:32:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2010 13:32:22 +0000 X-ASF-Spam-Status: No, hits=4.9 required=10.0 tests=FS_REPLICA,HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stephane.mourey@gmail.com designates 209.85.217.212 as permitted sender) Received: from [209.85.217.212] (HELO mail-gx0-f212.google.com) (209.85.217.212) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2010 13:32:13 +0000 Received: by gxk4 with SMTP id 4so1354254gxk.13 for ; Fri, 29 Jan 2010 05:31:52 -0800 (PST) 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 :date:message-id:subject:from:to:content-type; bh=10jsfRC5AdlUjxiCynKwTZLl6KC4FOudRctDwTEACPc=; b=L6QRYk+BI0cCuKauEHXVpPvp0//E4vETktJjR6DfJ0YnlM1mke2wVrbkOnb42Wtlve QjbjJYZ+rOk7lLu+GKriiSfSWGaNovv/9DmkQX9EvnHTnraqqlr9WJv7RnA9Ldy7JyOs /CcNj9xwDnUgYEa0lSp3/ZZOiSclMes+A5Dok= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=u+LwCCfTMdvnzemp2c5hlzh82hPs6ocs8jqRKnZ1vZKrwSWLzOHgvwmOlkJnJpFEYx SrBIdnPXeGUtdwSjV0iv1oc65GoSuo68e42R3lqgoMH7MSfGTa3oFtlgFzVnhxr1wEFh PbMS5z9g6doDmQyj6RsGpFeuDnekpWYD3b7uU= MIME-Version: 1.0 Received: by 10.91.55.26 with SMTP id h26mr954045agk.83.1264771912129; Fri, 29 Jan 2010 05:31:52 -0800 (PST) In-Reply-To: References: <949481561001290122t5359d4bdi178a87df2acf4fd7@mail.gmail.com> <4B62B0B2.3030200@lechat.org> <949481561001290243o50d0b45dt5a816d0f1356361@mail.gmail.com> <4B62BFB2.4050208@lechat.org> <4B62C1A4.3010304@lechat.org> <949481561001290313h5190e54btea90223e179379e0@mail.gmail.com> <4B62CC9C.7020405@lechat.org> <949481561001290509h4b7a57c6kc439a9f0b0f27099@mail.gmail.com> Date: Fri, 29 Jan 2010 14:31:52 +0100 Message-ID: <949481561001290531k43e18077odc4eb0593510c347@mail.gmail.com> Subject: Re: Error trying replicator From: =?UTF-8?Q?St=C3=A9phane_Mourey?= To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001485f90d308b5ed1047e4da8e6 --001485f90d308b5ed1047e4da8e6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Paul, The config of my local server in unchanged. I've bind the correct ip in the config file of the distant db, and can access it from my local host with my browser, but not with the replicator. But you gave me an idear. I've just tried to replicate from one local db to another local db, same server, but adressing the second as a distant (i.e. replicate from local mydb to distant http://127.0.0.1:5984/mydb2). It faile= d too!??! Here is the log: [Fri, 29 Jan 2010 13:23:47 GMT] [error] [<0.13432.0>] {error_report,<0.24.0>, {<0.13432.0>,crash_report, [[{initial_call,{couch_rep,init,['Argument__1']}}, {pid,<0.13432.0>}, {registered_name,[]}, {error_info, {exit, {db_not_found,<<"http://127.0.0.1:5984/mydb2/">>}, [{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}}, {ancestors, [couch_rep_sup,couch_primary_services,couch_server_sup,<0.1.0>]}= , {messages,[]}, {links,[<0.43.0>]}, {dictionary,[]}, {trap_exit,true}, {status,running}, {heap_size,1597}, {stack_size,24}, {reductions,466}], []]}} [Fri, 29 Jan 2010 13:23:47 GMT] [info] [<0.5467.0>] 127.0.0.1 - - 'POST' /_replicate 404 I tried the same thing on the server (just using the bind adresse instead o= f the 127.0.0.1), and it works. So, it seems not to be a net issue, but a local one... Thanks for your help and best regards, Stephane 2010/1/29 Paul Davis > Have you changed your CouchDB bind address? If its still set to > 127.0.0.1 (which is the default) then you will only be able to access > it through 127.0.0.1 (or localhost if your hosts file is normalish). > > If you want to use both 127.0.0.1 and $server_ip, then you should > update the configuration to 0.0.0.0 > > Or alternatively use local replication, or specify 127.0.0.1 instead > of $server_ip. > > I only scanned quickly through the conversation so I may have missed > something. > > Paul > > 2010/1/29 St=C3=A9phane Mourey : > > Thanks for your help. > > I'll try monday, and let you know. > > > > Best regards. > > > > 2010/1/29 zecat > > > >> No definitively, I think you could give me your new googles... (-; No > >> difference, right... > >> > >> Yes you answered the question : if you can access from your browser to > >> server_ip, and your source db runs on the same as browser, yes source = db > can > >> get server_ip. > >> Except if some antivirus or firewall or something else denies to cmd (= or > >> service if running 0.11 - which version are you running 0.9 - 0.11 ? > which > >> os ?) to go out to 5984 to remote, but accepts it when this is initiat= ed > by > >> the browser ? > >> > >> At this point, you should try to sniff the communication to port 5984 > >> between 127.0.0.1 and server_ip to check if they are speaking together > or > >> not. Try wireshark for exemple. You should see that when using hostnam= e, > >> nothing is going out.... > >> > >> > >> To illustrate my first thought : > >> I try two replication : first with ip, second with hostname. As you > could > >> read, when using hostname, the log, with error, is exactly the same yo= u > get > >> . > >> > >> First, replication is made with ip : -> success > >> > >> [Fri, 29 Jan 2010 11:25:12 GMT] [info] [<0.11862.0>] starting > replication > >> "4925b1e30fdce425609eec7e8f3b2202" at <0.11915.0> > >> [Fri, 29 Jan 2010 11:25:12 GMT] [info] [<0.11915.0>] recording a > checkpoint > >> for db1 -> http://10.0.0.2:5984/mydb/ at source update_seq 5 > >> [Fri, 29 Jan 2010 11:25:12 GMT] [info] [<0.11862.0>] 127.0.0.1 - - > 'POST' > >> /_replicate 200 > >> > >> > >> Second, replication is made with hostname : -> fail > >> > >> [Fri, 29 Jan 2010 11:24:10 GMT] [error] [<0.167.0>] > {error_report,<0.24.0>, > >> {<0.167.0>,crash_report, > >> > >> [[{initial_call,{couch_rep,init,['Argument__1']}}, > >> {pid,<0.167.0>}, > >> > >> {registered_name,[]}, > >> {error_info, > >> {exit, > >> {db_not_found, > >> <<"http://server1.mydom.com:5984/mydb/">>}, > >> > >> [{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}}, > >> {ancestors, > >> > [couch_rep_sup,couch_primary_services,couch_server_sup,<0.1.0>]}, > >> {messages,[]}, > >> {links,[<0.43.0>]}, > >> {dictionary,[]}, > >> {trap_exit,true}, > >> {status,running}, > >> {heap_size,987}, > >> {stack_size,24}, > >> {reductions,376}], > >> []]}} > >> [Fri, 29 Jan 2010 11:24:10 GMT] [info] [<0.89.0>] 127.0.0.1 - - 'POST' > >> /_replicate 404 > >> > >> I have no more idea at this time. Sorry. > >> > >> Please let me known if you find some solution. > >> > >> > >> Thierry > >> > >> St=C3=A9phane Mourey a =C3=A9crit : > >> > >>> Thierry, > >>> > >>> > >>> Thanks again. > >>> I cannot see any diffence between your two posts, I may need new > >>> googles... > >>> But I think I get the point. So: > >>> > >>> My source db runs on the same host as my browser (i.e. on my desktop)= , > and > >>> I > >>> try to run the replication from Futon on this host (i.e. > >>> http://127.0.0.1:5984/_utils/replicator.html). I suppose that if my > >>> browser > >>> can access to the remote db (http://server_ip:5984/mydb), my local > >>> couchdb > >>> server can also, am I right? > >>> I suppose this answer your question. > >>> > >>> Any idears? > >>> > >>> Best regards, > >>> > >>> Stephane > >>> > >>> 2010/1/29 zecat > >>> > >>> > >>> > >>>> Ouppss some mistakes in urls: Please use this answer... > >>>> > >>>> St=C3=A9phane, > >>>> > >>>> You open Futon from your browser by calling http://ip1:5984/_utils > >>>> Right ? (ie : http://10.0.0.1:5984/mydb ) > >>>> You have checked you can access the db using > >>>> http://server_ip:5984/mydbfrom your browser. (ie > >>>> > >>>> http://10.0.0.2:5984/mydb ) > >>>> > >>>> > >>>> Have you checked that server IP1 (ie: 10.0.0.1) is able to communica= te > >>>> with > >>>> server_ip (ie 10.0.0.2) on port 5984 ? > >>>> As the replication script runs on IP1 (ie : 10.0.0.1) , it must have > this > >>>> access. > >>>> > >>>> Thierry > >>>> > >>>> zecat a =C3=A9crit : > >>>> > >>>> > >>>> > >>>>> St=C3=A9phane, > >>>>> > >>>>> You open Futon from your browser by calling http://ip1:5984/_utils > >>>>> Right ? (ie : http://10.0.0.1:5984/mydb ) > >>>>> You have checked you can access the db using > >>>>> http://server_ip:5984/mydbfrom your browser. (ie > >>>>> > >>>>> http://10.0.0.2:5984/mydb ) > >>>>> > >>>>> > >>>>> Have you checked that server IP1 (ie: 10.0.0.1) is able to > communicate > >>>>> with server_ip (ie 10.0.0.2) on port 5984 ? > >>>>> As the replication script runs on IP1 (ie : 10.0.0.1) , it must hav= e > >>>>> this > >>>>> access. > >>>>> > >>>>> Thierry > >>>>> > >>>>> St=C3=A9phane Mourey a =C3=A9crit : > >>>>> > >>>>> > >>>>> > >>>>>> Hi Thierry, > >>>>>> > >>>>>> Many thanks for your quick answer. > >>>>>> Butit it's still not working. > >>>>>> Same javascript alert. > >>>>>> The log said: > >>>>>> [Fri, 29 Jan 2010 10:36:15 GMT] [error] [<0.3117.0>] > >>>>>> {error_report,<0.24.0>, > >>>>>> {<0.3117.0>,crash_report, > >>>>>> [[{initial_call,{couch_rep,init,['Argument__1']}}, > >>>>>> {pid,<0.3117.0>}, > >>>>>> {registered_name,[]}, > >>>>>> {error_info, > >>>>>> {exit, > >>>>>> {db_not_found,<<"http://server_ip:5984/mydb/">>}, > >>>>>> > [{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}}, > >>>>>> {ancestors, > >>>>>> > >>>>>> [couch_rep_sup,couch_primary_services,couch_server_sup,<0.1.0>]}, > >>>>>> {messages,[]}, > >>>>>> {links,[<0.43.0>]}, > >>>>>> {dictionary,[]}, > >>>>>> {trap_exit,true}, > >>>>>> {status,running}, > >>>>>> {heap_size,1597}, > >>>>>> {stack_size,24}, > >>>>>> {reductions,473}], > >>>>>> []]}} > >>>>>> > >>>>>> [Fri, 29 Jan 2010 10:36:15 GMT] [info] [<0.3064.0>] 127.0.0.1 - - > >>>>>> 'POST' > >>>>>> /_replicate 404 > >>>>>> > >>>>>> I've checked I can access the db using http://server_ip:5984/mydbf= rom > >>>>>> my browser. > >>>>>> > >>>>>> Any idears, guys? > >>>>>> > >>>>>> Best regards, > >>>>>> > >>>>>> Stephane > >>>>>> > >>>>>> > >>>>>> 2010/1/29 zecat > > >>>>>> > >>>>>> Hi, > >>>>>> > >>>>>> I have experimented this trouble during two days, until I found > >>>>>> that replication (_replicate) is not able to work with hostname = in > >>>>>> from or target field. > >>>>>> > >>>>>> Try only with IP address and you will see that replication is > >>>>>> working very well as expected (-; > >>>>>> > >>>>>> > >>>>>> Thierry > >>>>>> > >>>>>> St=C3=A9phane Mourey a =C3=A9crit : > >>>>>> > >>>>>> Hi everybody, > >>>>>> > >>>>>> I've start to work with Couch just a month ago, and I'm very > >>>>>> enthousiastic > >>>>>> about it. > >>>>>> I'm working on my desktop for development purposes. Now I'm > >>>>>> trying to > >>>>>> replicate my local db on our server. > >>>>>> Both Couchdb server seems to work correctly. I can access > >>>>>> http://127.0.0.1:5984/_utils/database.html?mydb, > >>>>>> http://127.0.0.1:5984/mydb, > >>>>>> http://myserver:5984/_utils/database.html?mydb, > >>>>>> http://myserver:5984/mydbwith my browser, and can add > >>>>>> documents from > >>>>>> > >>>>>> Futon. mydb is empty on the > >>>>>> server, and I'm trying to replicate datas from the local db = to > >>>>>> the server. > >>>>>> For this, I use the Replicator function from Futon on my > >>>>>> localhost. I did > >>>>>> not try from the server, as incomming connections are not > >>>>>> allowed on my lan. > >>>>>> I got this JavaScript alertbox: "Replication failed: could n= ot > >>>>>> open > >>>>>> http://myserver:5984/mydb/". > >>>>>> In the log: I found: > >>>>>> Fri, 29 Jan 2010 08:33:10 GMT] [error] [<0.1851.0>] > >>>>>> {error_report,<0.24.0>, > >>>>>> {<0.1851.0>,crash_report, > >>>>>> [[{initial_call,{couch_rep,init,['Argument__1']}}, > >>>>>> {pid,<0.1851.0>}, > >>>>>> {registered_name,[]}, > >>>>>> {error_info, > >>>>>> {exit, > >>>>>> {db_not_found,<<"http://myserver:5984/mydb/ > ">>}, > >>>>>> > >>>>>> [{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}}, > >>>>>> {ancestors, > >>>>>> > >>>>>> [couch_rep_sup,couch_primary_services,couch_server_sup,<0.1.0>]}, > >>>>>> {messages,[]}, > >>>>>> {links,[<0.43.0>]}, > >>>>>> {dictionary,[]}, > >>>>>> {trap_exit,true}, > >>>>>> {status,running}, > >>>>>> {heap_size,1597}, > >>>>>> {stack_size,24}, > >>>>>> {reductions,460}], > >>>>>> []]}} > >>>>>> > >>>>>> [Fri, 29 Jan 2010 08:33:10 GMT] [info] [<0.1282.0>] 127.0.0.= 1 > >>>>>> - - 'POST' > >>>>>> /_replicate 404 > >>>>>> I googled a while, but did not find anything helpfull for th= e > >>>>>> moment. > >>>>>> Can anyone told what's wrong with this? > >>>>>> > >>>>>> Best regards, > >>>>>> > >>>>>> Stephane Mourey > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>> > >>> > >>> > >> > > > --001485f90d308b5ed1047e4da8e6--