Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 65E7F9104 for ; Tue, 6 Mar 2012 20:53:09 +0000 (UTC) Received: (qmail 81620 invoked by uid 500); 6 Mar 2012 20:53:07 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 81583 invoked by uid 500); 6 Mar 2012 20:53:07 -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 81573 invoked by uid 99); 6 Mar 2012 20:53:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 20:53:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alex.barbalex@gmail.com designates 209.85.160.180 as permitted sender) Received: from [209.85.160.180] (HELO mail-gy0-f180.google.com) (209.85.160.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 20:53:03 +0000 Received: by ghbz12 with SMTP id z12so2941523ghb.11 for ; Tue, 06 Mar 2012 12:52:42 -0800 (PST) Received-SPF: pass (google.com: domain of alex.barbalex@gmail.com designates 10.236.79.138 as permitted sender) client-ip=10.236.79.138; Authentication-Results: mr.google.com; spf=pass (google.com: domain of alex.barbalex@gmail.com designates 10.236.79.138 as permitted sender) smtp.mail=alex.barbalex@gmail.com; dkim=pass header.i=alex.barbalex@gmail.com Received: from mr.google.com ([10.236.79.138]) by 10.236.79.138 with SMTP id i10mr37569520yhe.12.1331067162415 (num_hops = 1); Tue, 06 Mar 2012 12:52:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=KqA+ypLSoUQ0GcgybJV2GlCNpAMmQoy1zFHE7UUk/7U=; b=pBFO2DKViRVRTaWZBBx4GnjJ/taXhu+8qPAlXuMg1qboNcmH8elfeIWts4QGxyy5mJ Wzv+Fy2Ctnu4rOvS9gXDSez6tgC31hVnSJxNMqPJZ9TbPdrS6NlwMMmPrGLdOccpa+oS qFYlXWvhh8K5FMhdPndj6wcOIB/ewfzMMvlFfVWiUs7Ca4UnKaQR0QRazyzgy8VVa/bg JSmBK0sKMf++hKikAtiuPXvUuC3hyij73GvzeSBZryJVGxjZejo44xU30evfmmE1s8ah xy5I9bk1AI0ep2n86fJKfjgPoBIVGlIagJcKsDsD+if3YR2DNTcjEPiVGKu/qmI0mhqv IsOA== MIME-Version: 1.0 Received: by 10.236.79.138 with SMTP id i10mr29779129yhe.12.1331067162320; Tue, 06 Mar 2012 12:52:42 -0800 (PST) Sender: alex.barbalex@gmail.com Received: by 10.147.38.15 with HTTP; Tue, 6 Mar 2012 12:52:39 -0800 (PST) In-Reply-To: References: Date: Tue, 6 Mar 2012 21:52:39 +0100 X-Google-Sender-Auth: g7TKfJ7Xk6NwGa0yI3qev4FTr0s Message-ID: Subject: Re: replication to iriscouch fails From: Alexander Gabriel To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=14dae9d7199e61e15e04ba99395e X-Virus-Checked: Checked by ClamAV on apache.org --14dae9d7199e61e15e04ba99395e Content-Type: text/plain; charset=UTF-8 o.k., this here works: curl -X POST http://127.0.0.1:5984/_replicate -d @replication.json -H "Content-Type:application/json" where the json-Object is in replication.json. Windows blows escaping, no matter how I tried. Only referring to a file worked. So the problem is basically solved. Don't know though why futon would return an error. Is there any worth following this or should I be happy using curl? Thanks for helping!!! Alex 2012/3/6 Robert Newson > add -Hcontent-type:application/json > > If you could find a means to paste the text and not a picture of the > text in future, it would greatly appreciated. > > On 6 March 2012 16:01, Alexander Gabriel wrote: > > Hi Robert & Jason > > > > I am not used to using curl or other command prompts. It gives me this > > error: www.barbalex.ch/downloads/curl.PNG (bad content type, content > type > > must be application/json). > > I remember it is troublesome using curl in windows and I have tried > several > > variants (', "\, ") and this way I got the best result... - maybe I am > just > > using " wrong? Or is this the error thrown by the replication? > > > > My username and password contain only lower- and uppercase letters and > > numbers. > > > > Thanks for checking the logs, Jason. > > > > > > > > > > 2012/3/6 Jason Smith > > > >> Hi, Alex. I looked at your Iris Couch logs, dating back to February. > >> > >> Just to clarify: the illegal name error is on your local couch. There > >> are no such errors, nor are there any 400s or 500s either. > >> > >> I wonder if maybe you have special characters in your username or > >> password for the remote db? For example, a ":" or an "@" might trigger > >> a parsing bug in CouchDB? If so maybe you could escape > >> (encodeURIComponent) them? > >> > >> (I have converted all of my passwords to hexadecimal checksums of the > >> real strings, to avoid this issue. But I am not sure that's what your > >> problem is.) > >> > >> On Tue, Mar 6, 2012 at 12:21 AM, Robert Newson > wrote: > >> > Could you try with curl? It'll make it easier to diagnose. > >> > > >> > B. > >> > > >> > On 5 March 2012 17:05, Alexander Gabriel wrote: > >> >> yep, I can't tell anything illegal about it. > >> >> and I have been using it for a while now, while replicating worked > >> >> I am very positive that nothing in the way I replicate in futon has > >> >> changed, including path and name. > >> >> > >> >> Alex > >> >> > >> >> > >> >> > >> >> 2012/3/5 Robert Newson > >> >> > >> >>> illegal_database_name points pretty solidly to the problem, though > >> >>> 'evab' looks like a legal dbname to me... > >> >>> > >> >>> B. > >> >>> > >> >>> On 5 March 2012 16:23, Alexander Gabriel wrote: > >> >>> > Hi Robert > >> >>> > > >> >>> > Didn't see how to copy the output from futon, so here's a link to > the > >> >>> png: > >> >>> > www.barbalex.ch/downloads/error.PNG > >> >>> > > >> >>> > Alex > >> >>> > > >> >>> > > >> >>> > > >> >>> > 2012/3/5 Robert Newson > >> >>> > > >> >>> >> Hi, > >> >>> >> > >> >>> >> I believe attachments are stripped by the mailing host software, > >> could > >> >>> >> you inline it or use pastebin/friendpaste? > >> >>> >> > >> >>> >> B. > >> >>> >> > >> >>> >> On 5 March 2012 14:00, Alexander Gabriel > wrote: > >> >>> >> > Hi couchers > >> >>> >> > > >> >>> >> > My replication fails with the error attached. > >> >>> >> > Locally I am using futon on couchdb 1.1.1 on windows 7 in > google > >> >>> chrome. > >> >>> >> > I am trying to replicate to iriscouch. > >> >>> >> > > >> >>> >> > My database is 52 MB big and contains appr. 40'000 docs. > >> >>> >> > > >> >>> >> > I have tried to get around this issue by rebuilding the > database > >> using > >> >>> >> curl > >> >>> >> > and also pushing my design document directly to iriscouch using > >> curl. > >> >>> >> This > >> >>> >> > works. But replicating should work too, shouldn't it? > >> >>> >> > > >> >>> >> > I have also locally created a new database and replicated to > this. > >> >>> This > >> >>> >> > works. > >> >>> >> > > >> >>> >> > Above mentioned is what happens on my notebook. On my desktop > pc > >> >>> >> replication > >> >>> >> > sometimes works, sometimes not. As far as I can see the desktop > >> pc has > >> >>> >> the > >> >>> >> > same setup as the notebook. Seems to me that replicating from > the > >> >>> >> notebook > >> >>> >> > has worked sporadically during the last week too. > >> >>> >> > > >> >>> >> > I believe the json data in the db is valid. I have tested it as > >> well > >> >>> as > >> >>> >> > possible on jsonlint and the couchapp runs very nicely both > >> locally > >> >>> and > >> >>> >> on > >> >>> >> > iriscouch. > >> >>> >> > > >> >>> >> > Could this be: > >> >>> >> > - a mistake I make? > >> >>> >> > - a CouchDb issue? > >> >>> >> > - an iriscouch issue? > >> >>> >> > > >> >>> >> > the couchapp is visible > >> >>> >> > here: > >> http://barbalex.iriscouch.com/evab/_design/evab/index.html(log in > >> >>> >> > using user = z and password = z) > >> >>> >> > the code is here: https://github.com/barbalex/EvabMobile > >> >>> >> > > >> >>> >> > thanks for helful pointers! > >> >>> >> > > >> >>> >> > Alex > >> >>> >> > > >> >>> >> > >> >>> > >> > >> > >> > >> -- > >> Iris Couch > >> > --14dae9d7199e61e15e04ba99395e--