[MB-7092] Json encoder/decoder throws Server error during processing:{what,{ucs,{bad_utf8_character_code}}},mochijson2,json_encode_array,2}, Created: 04/Nov/12  Updated: 10/Jan/13  Resolved: 05/Nov/12

Status: Closed
Project: Couchbase Server
Component/s: ns_server, UI
Affects Version/s: 2.0
Fix Version/s: 2.0
Security Level: Public

Type: Bug Priority: Blocker
Reporter: Ketaki Gangal Assignee: Aliaksey Artamonau
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: 2.0-1930
http://builds.hq.northscale.net/latestbuilds/CHANGES_couchbase-server-2.0.0-1930-rel.txt

System uptime - 48 Hours +


 Description   
Setup:
----------
1. Setup a 10:10 node xdcr replication on 2 buckets, with bidirectional xdcr and unidirectional xdcr on the buckets.
2. XCDR is working as expected.

Unable to read any information from server, getting error
Server error during processing: ["web request failed",
{path,"/pools/default/tasks"},
{type,exit},
{what,{ucs,{bad_utf8_character_code}}},
{trace,
[{xmerl_ucs,from_utf8,1},
{mochijson2,json_encode_string,2},
{mochijson2,'-json_encode_array/2-fun-0-',
3},
{lists,foldl,3},
{mochijson2,json_encode_array,2},
{mochijson2,
'-json_encode_proplist/2-fun-0-',3},
{lists,foldl,3},
{mochijson2,json_encode_proplist,2}]}] (repeated 11 times)

Unable to get any task definitions
http://ec2-175-41-184-132.ap-southeast-1.compute.amazonaws.com:8091/pools/default/tasks
http://ec2-122-248-222-144.ap-southeast-1.compute.amazonaws.com:8091/pools/default/tasks

Seeing this after running the cluster for 1-2 days, not seen similar errors on the begining of the test.

[Dont have cluster ssh access currently and will upload logs shortly.]
The clusters are accessible at
http://ec2-175-41-184-132.ap-southeast-1.compute.amazonaws.com:8091/
http://ec2-177-71-147-19.sa-east-1.compute.amazonaws.com:8091/

@Abhinav - Can we add the complete diags on this one?





 Comments   
Comment by Ketaki Gangal [ 05/Nov/12 ]
Checked w/ Alk.A moving this back to ns_server.

Also bug http://www.couchbase.com/issues/browse/MB-5925 shows a similar error, need to check.
Comment by Abhinav Dangeti [ 05/Nov/12 ]
https://s3.amazonaws.com/bugdb/MB-7092/ec2-122-248-222-144.ap-southeast-1.compute.amazonaws.com-8091-diag.txt.gz
https://s3.amazonaws.com/bugdb/MB-7092/ec2-175-41-184-132.ap-southeast-1.compute.amazonaws.com-8091-diag.txt.gz
https://s3.amazonaws.com/bugdb/MB-7092/ec2-177-71-147-19.sa-east-1.compute.amazonaws.com-8091-diag.txt.gz
https://s3.amazonaws.com/bugdb/MB-7092/ec2-54-232-10-39.sa-east-1.compute.amazonaws.com-8091-diag.txt.gz
Comment by Steve Yen [ 05/Nov/12 ]
blocker'ed per bug scrub mtg
Comment by Aliaksey Artamonau [ 05/Nov/12 ]
http://review.couchbase.org/22278
Comment by kzeller [ 09/Nov/12 ]
  RN: Errors had occurred performing replication via XDCR due to improper
     handling of non- UTF-8 characters. We now handle errors due to
     non- UTF-8 characters and can continue replication via XDCR for
     JSON documents containing non- UTF-8.
Generated at Fri Nov 28 06:15:32 CST 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.