When running "s3cmd sync . s3://some_bucket/some_directory/", one of the files failed, s3cmd retried on lower speed, and then threw the following exception:

Problem: ParseError: mismatched tag: line 5, column 2
S3cmd:   1.0.0

Traceback (most recent call last):
  File "/usr/bin/s3cmd", line 2006, in <module>
    main()
  File "/usr/bin/s3cmd", line 1950, in main
    cmd_func(args)
  File "/usr/bin/s3cmd", line 1211, in cmd_sync
    return cmd_sync_local2remote(args)
  File "/usr/bin/s3cmd", line 1180, in cmd_sync_local2remote
    response = s3.object_put(src, uri, extra_headers, extra_label = seq_label)
  File "/usr/share/s3cmd/S3/S3.py", line 277, in object_put
    response = self.send_file(request, file, labels)
  File "/usr/share/s3cmd/S3/S3.py", line 575, in send_file
    return self.send_file(request, file, labels, throttle, retries - 1)
  File "/usr/share/s3cmd/S3/S3.py", line 617, in send_file
    warning("Upload failed: %s (%s)" % (resource['uri'], S3Error(response)))
  File "/usr/share/s3cmd/S3/Exceptions.py", line 48, in __init__
    tree = getTreeFromXml(response["data"])
  File "/usr/share/s3cmd/S3/Utils.py", line 66, in getTreeFromXml
    tree = ET.fromstring(xml)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1301, in XML
    parser.feed(text)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1643, in feed
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1507, in _raiseerror
    raise err
ParseError: mismatched tag: line 5, column 2


Regards,
Daniel Serodio