For the newly created remotes under Linux, there is an error in using any operation related to the remotes: failed to decode rest XML response

What is the problem you are having with rclone?

For the newly created remotes under Linux, there are errors in any operation related to the remotes, such as the copy command: rclone ls -vv test: ,But it works on windows .

What is your rclone version (output from rclone version)

v1.49.5

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Red Hat 4.8.5-16 x86_64

Which cloud storage system are you using? (eg Google Drive)

Amazon S3
This is the configuration:
[test]
type = s3
provider = Minio
env_auth = false
access_key_id =***
secret_access_key = ***
endpoint = http://cloud-gf.focuxy.com
acl = public-read-write
bucket_acl = public-read

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone ls -vv test:

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

2019/10/23 10:28:00 DEBUG : rclone: Version "v1.49.5" starting with parameters ["rclone" "ls" "-vv" "test:"]
2019/10/23 10:28:00 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2019/10/23 10:28:00 Failed to ls: SerializationError: failed to decode REST XML response
status code: 200, request id:
caused by: XML syntax error on line 17: invalid character entity & (no semicolon)

This looks like incorrect encoding by minio.... Do you know what version it is? I suspect it might be an old one.

It would be worth trying the latest beta to see if that makes any difference

I used the same Linux kernel to do the same configuration and operation on another machine, but it was successful. It should not be the problem of Minio. It's not good to change the latest rclone beta. Is there any software rclone relies on in Linux environment? What else may be the cause of this problem?

No other than the kernel/networking stack.

Try running with rclone ls -vv --dump bodies test: - rclone will show the responses from minio. One of them will be invalid XML. Can you post that?

[root@10-2-147-67 rclone-v1.49.5-linux-amd64]# ./rclone ls -vv --dump bodies remote:
2019/10/24 17:07:54 DEBUG : rclone: Version "v1.49.5" starting with parameters ["./rclone" "ls" "-vv" "--dump" "bodies" "remote:"]
2019/10/24 17:07:54 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2019/10/24 17:07:54 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2019/10/24 17:07:54 DEBUG : HTTP REQUEST (req 0xc0004a5800)
2019/10/24 17:07:54 DEBUG : GET / HTTP/1.1
Host: cloud-gf.focuxy.com
User-Agent: rclone/v1.49.5
Authorization: XXXX
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20191024T090754Z
Accept-Encoding: gzip

2019/10/24 17:07:54 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2019/10/24 17:07:54 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2019/10/24 17:07:54 DEBUG : HTTP RESPONSE (req 0xc0004a5800)
2019/10/24 17:07:54 DEBUG : HTTP/1.0 302 Moved Temporarily
Connection: close
Content-Length: 14
Content-Type: text/html;
Location: http://1.1.1.3/disable/disable.htm?url_type=访问网站/未分类&plc_name=测试室网络权限

Moved

2019/10/24 17:07:54 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 2019/10/24 17:07:54 DEBUG : HTTP REQUEST (req 0xc00014c200) 2019/10/24 17:07:54 DEBUG : GET /disable/disable.htm?url_type=%E8%AE%BF%E9%97%AE%E7%BD%91%E7%AB%99/%E6%9C%AA%E5%88%86%E7%B1%BB&plc_name=%E6%B5%8B%E8%AF%95%E5%AE%A4%E7%BD%91%E7%BB%9C%E6%9D%83%E9%99%90 HTTP/1.1 Host: 1.1.1.3 User-Agent: rclone/v1.49.5 Referer: http://cloud-gf.focuxy.com/ X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 X-Amz-Date: 20191024T090754Z Accept-Encoding: gzip

2019/10/24 17:07:54 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2019/10/24 17:07:54 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2019/10/24 17:07:54 DEBUG : HTTP RESPONSE (req 0xc00014c200)
2019/10/24 17:07:54 DEBUG : HTTP/1.1 200 OK
Content-Length: 2578
Accept-Ranges: bytes
Cache-Control: max-age=86400
Connection: keep-alive
Content-Type: text/html
Date: Thu, 24 Oct 2019 09:07:54 GMT
Etag: "5d511864-a12"
Expires: Fri, 25 Oct 2019 09:07:54 GMT
Last-Modified: Mon, 12 Aug 2019 07:42:28 GMT
X-Frame-Options: SAMEORIGIN

URL过滤

访问被拒绝

您尝试访问的网站类型属于[]已经被上网策略[]拒绝访问。如果有疑问,请联系网络管理员。

2019/10/24 17:07:54 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 2019/10/24 17:07:54 Failed to ls: SerializationError: failed to decode REST XML response status code: 200, request id: caused by: XML syntax error on line 17: invalid character entity & (no semicolon)

It looks like it's blocked by the company's firewall. I'll ask the network administrator later to see if it can be solved. Thank you very much!

Glad we got to the bottom of it :slight_smile:

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