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 0F6D496FC for ; Mon, 19 Mar 2012 13:06:39 +0000 (UTC) Received: (qmail 45522 invoked by uid 500); 19 Mar 2012 13:06:37 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 45484 invoked by uid 500); 19 Mar 2012 13:06:37 -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 45476 invoked by uid 99); 19 Mar 2012 13:06:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2012 13:06:37 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of marty.schoch@gmail.com designates 209.85.210.180 as permitted sender) Received: from [209.85.210.180] (HELO mail-iy0-f180.google.com) (209.85.210.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2012 13:06:33 +0000 Received: by iage36 with SMTP id e36so12542618iag.11 for ; Mon, 19 Mar 2012 06:06:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=7P01cstjBG0Z/HZI9HtDT5sfBQGu+fa3zYXffKgfLBI=; b=WgJVlVbfmamXItN5nvHBl5c4qPtBtkALfGtJUUBPz7TCfvd6jGSZeb4AA9959wShWY lO++gO608PIE23wVfdseN72bHM5oOJ/ZA7VpGBrUVFt/8CCVxFSzbxml++kqFRswMaa/ Li8RF9FXrTVL6f/ZlUjq0WjECufNytVx8HUqaTZRmY1+aCvbMUaQypqrDP34XTTwXE9i +pdwj7cRrzXgyJ94vMpA0NVWtvhBRt5Bro+clRLMitBe5n147CjKBrcsn/JT2V/HMtPy JpAXSfVWl9rsn42PuWCtEiN2Qb/IiBbwU9MKHdQVeXAkT3XO8OeRT1ZLYkWawJqTDsYK dxcg== MIME-Version: 1.0 Received: by 10.50.188.199 with SMTP id gc7mr5994703igc.40.1332162372384; Mon, 19 Mar 2012 06:06:12 -0700 (PDT) Received: by 10.42.145.136 with HTTP; Mon, 19 Mar 2012 06:06:12 -0700 (PDT) In-Reply-To: References: Date: Mon, 19 Mar 2012 09:06:12 -0400 Message-ID: Subject: Re: Bad utf8 character code error From: Marty Schoch To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Can you check which version of Couchbase Mobile for Android is in use? We found/resolved an issue with the replicator in December. http://www.couchbase.com/issues/browse/CBMA-22 If I remember correctly, the "bad_utf8_character_code" is a red herring caused by us logging some binary attachment data. The fix for this bug was included in the latest release. marty On Mon, Mar 19, 2012 at 5:29 AM, Karoly Szanto wr= ote: > Hi Paul, > Thanks for the fast reply. > > I am replicating from couchDB instances running on Android phones towards > the server (and the other way around). The couchDB for Android is > https://github.com/couchbase/Android-Couchbase =A0which is probably based= on > a different (older) version of couchDB. > > The sever is running *version:"1.1.1"* > * > * > Karoly > > On Mon, Mar 19, 2012 at 10:21 AM, Paul Davis wrote: > >> Are you replicating between different versions of CouchDB? My first >> guess is that you've replicating older to newer and its hitting a >> stricter enforcement of Unicode semantics in surrogate pairs. >> >> On Mon, Mar 19, 2012 at 3:04 AM, Karoly Szanto >> wrote: >> > Hi, >> > During the replication proces I get the following error in the couchdb >> > server log: >> > >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {<0.13261.0>,crash_report, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0[[{initial_call, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {mochiweb_acceptor= ,init, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0['Argument__1',= 'Argument__2','Argument__3']}}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{pid,<0.13261.0>}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{registered_name,[]= }, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{error_info, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {exit, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{ucs,{bad_utf8_= character_code}}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0[{xmerl_ucs,fro= m_utf8,1}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {mochijson2,js= on_encode_string,2}, >> > >> > =A0{mochijson2,'-json_encode_proplist/2-fun-0-',3}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {lists,foldl,3= }, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {mochijson2,js= on_encode_proplist,2}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {couch_httpd,s= end_json,4}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {couch_httpd,h= andle_request_int,5}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {mochiweb_http= ,headers,5}]}}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{ancestors, >> > >> [https,couch_secondary_services,couch_server_sup, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<0.35.0>]}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{messages, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 [{#Ref<0.0.8.97038= >, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {ok, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{proc,<0.77= 74.0>,<<"javascript">>, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 [{<<"_desi= gn/monarcaserver">>, >> > >> > =A0<<"469-a002d8a3c537c48875b315164d8eadb6">>}], >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {couch_os_= process,prompt}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {couch_os_= process,set_timeout}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {couch_os_= process,stop}}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{[{<<"reduc= e_limit">>,true}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{<<"tim= eout">>,30000}]}}}]}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{links,[<0.136.0>]}= , >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{dictionary, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 [{mochiweb_request= _body,<<>>}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{mochiweb_reque= st_qs, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 [{"filter","mo= narcaserver/userfilter"}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{"userid","= 70"}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{"feed","co= ntinuous"}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{"heartbeat= ","10000"}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{"style","a= ll_docs"}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{"since","0= "}]}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{jsonp,no_jsonp= }, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{mochiweb_reque= st_cookie,[]}]}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{trap_exit,false}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{status,running}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{heap_size,4108475}= , >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{stack_size,24}, >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{reductions,5319640= }], >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 []]}} >> > >> > My first guess is that this might be solved by specifying the charset = in >> > the replication header but I'd like to know your opinion as well. >> > >> > Thank you, >> > Karoly >>