Skip to content

mc diff error : "Unable to list comparison retrying.. XML syntax error on line 2: expected attribute name in element" #5151

@boomballa

Description

@boomballa

Expected behavior

After performing data migration using mc mirror, you want to perform data validation properly via mc diff.

Actual behavior

In fact, at the mc diff step, an error is thrown all the time and data validation is not possible

debug.log

Steps to reproduce the behavior

  1. mc alias list info
minio-online-cmpri:~$ mc alias list
cm-minio
  URL       :  http://192.168.50.50:8380
  AccessKey : minioadmin
  SecretKey : xxxxxxxxxx
  API       : s3v4
  Path      : auto
  Src       : /home/dba/.mc/config.json


rich-media-resource-16
  URL       : http://192.168.56.16:9091
  AccessKey : xxxxxxxxxx
  SecretKey : xxxxxxxxxx
  API       : s3v4
  Path      : auto
  Src       : /home/dba/.mc/config.json
  1. Data validation after completion of data migration
    execute a command: mc diff --debug rich-media-resource-16/rich-media-resource cm-minio/rich-media-resource
  2. After about ten seconds of execution, it outputs an error
mc: <ERROR> Unable to list comparison retrying.. XML syntax error on line 2: expected attribute name in element
 (1) difference.go:244 cmd.differenceInternal(..) Tags: [http://192.168.56.16:9091/rich-media-resource/, http://192.168.50.50:8380/rich-media-resource/]
 (0) client-s3.go:2416 cmd.(*S3Client).listRecursiveInRoutine(..)
 Commit:1681e4497c09 | Release-Tag:RELEASE.2024-11-21T17-21-54Z | Host:mongodb10-online-cmpri.gy.ntes | OS:linux | Arch:amd64 | Lang:go1.23.4 | Mem:9.9 MiB/33 MiB | Heap:9.9 MiB/22 MiB

Detailed execution debug log in the attached debug.log 。

mc --version

mc version RELEASE.2024-11-21T17-21-54Z (commit-id=1681e4497c09d7438a34e846f76dbde972ab7daf)
Runtime: go1.23.4 linux/amd64
Copyright (c) 2015-2024 MinIO, Inc.
License GNU AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html

System information

Linux minio10-online 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions