Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1340

Replication: Invalid JSON reported

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.1
    • 1.2, 1.2.1
    • Replication

    Description

      It seems our replication has stopped, reporting an error
      [emulator] Error in process <0.21599.306> nocatch,{invalid_json,<<0 bytes>>,[

      {couch_util,json_decode,1}

      ,

      {couch_rep_reader,'-open_doc_revs/3-lc$^1/1-1-',1},{couch_rep_reader,'-open_doc_revs/3-lc$^1/1-1-',1}

      ,

      {couch_rep_reader,open_doc_revs,3}

      ,{couch_rep_reader,'spawn_document_request/4-fun-0'...

      It was all working until we upgraded some other couches in our replication "web" from couch 1.0.3 to couch 1.1.1. We then set of database and view compactions, and sometime overnight some of the replication links stopped.

      I have curled the command myself, both as a multipart message and a single json response (with header "Accept:application/json" ) and it can be parsed correctly by Python simplejson - I have attached it here aswell - called "troublecurl-redacted.txt" - though it is 18.8mb. The request takes about 6 seconds.

      I don't quite understand why it is reported as invalid JSON? Other reports similar to this that I googled mentioned blank document ids, but I can't see any of these.

      Attachments

        1. target couch error.log
          23 kB
          Alex Markham
        2. source couch error.log
          7 kB
          Alex Markham
        3. replication error wireshark.txt
          8 kB
          Alex Markham
        4. old_rep_qs_encoding.patch
          2 kB
          Filipe David Borba Manana
        5. 9c94ed0e23508f4ec3d18f8949c06a5b replicaton from wireshark cut.txt
          324 kB
          Alex Markham

        Activity

          People

            Unassigned Unassigned
            markabey Alex Markham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: