Rclone can't parser the respone from Minio

Rclone version info:
rclone v1.57.0

  • os/version: centos 7.5.1804 (64 bit)
  • os/kernel: 3.10.0-862.el7.x86_64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.2
  • go/linking: static
  • go/tags: none

Minio Version is: 2021-10-10T16:53:30Z

My rclone config of minio is:type = s3
provider = Minio
access_key_id = video-platform
secret_access_key = video-platform
endpoint = http://10.0.176.82:9999/
acl = private

My problem is:
When I excute the command:rclone ls -vv --dump bodies oldminio:video-common-bucket

Rclone tell me he can't parser the xml(the respone of minio)

This is the debug info of Rclone:

2022/03/21 17:04:56 DEBUG : HTTP REQUEST (req 0xc000a16b00)
2022/03/21 17:04:56 DEBUG : GET /video-common-bucket?delimiter=&encoding-type=url&max-keys=1000&prefix= HTTP/1.1
Host: 10.0.176.82:9999
User-Agent: rclone/v1.57.0
Authorization: XXXX
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20220321T090456Z
Accept-Encoding: gzip

2022/03/21 17:04:56 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/03/21 17:04:56 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/03/21 17:04:56 DEBUG : HTTP RESPONSE (req 0xc000a16b00)
2022/03/21 17:04:56 DEBUG : HTTP/1.1 200 OK
Connection: close
Content-Length: 2976
Accept-Ranges: bytes
Content-Type: text/html; charset=utf-8
Date: Mon, 21 Mar 2022 09:04:56 GMT
Last-Modified: Mon, 21 Mar 2022 09:04:56 GMT
Server: MinIO Console
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Xss-Protection: 1; mode=block

<!doctype html>MinIO ConsoleYou need to enable JavaScript to run this app.


2022/03/21 17:04:56 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/03/21 17:04:56 DEBUG : 2 go routines active
2022/03/21 17:04:56 Failed to ls: SerializationError: failed to decode REST XML response
status code: 200, request id:
caused by: XML syntax error on line 1: element closed by

I'd guess you've given rclone the port number of the webapp, not the API which is usually on port 9000

Thanks,I got it,you are right,because the port of this endpoint 9999 is of the Minio console,then I change to the minio's API port,the problem work out.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.