What is the problem you are having with rclone?
Cannot run a remote control rc command against a rclone server. I am trying a simple ls command against rclone container local files
What is your rclone version (output from rclone version
)
1.53.2
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Linux 64bit docker
Which cloud storage system are you using? (eg Google Drive)
Local files
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
Server:
$ docker run -it --rm --name=rclone --volume ~/.config/rclone:/config/rclone --volume ~/data:/data:shared -v ~/.ssh/mykey:/keys/mykey -v ~/.ssh/other:/keys/otherkey -v /tmp/rclone:/.cache -p 5572:5572 --user $(id -u):$(id -g) rclone/rclone:1.53.2 rcd -vvv --rc-addr :5572 --rc-user admin --rc-pass admin
Unable to find image 'rclone/rclone:1.53.2' locally
1.53.2: Pulling from rclone/rclone
Digest: sha256:308f3e39436ef56803e1e38ccce91b95181fd937548687ce5281d65a4749676e
Status: Downloaded newer image for rclone/rclone:1.53.2
2020/11/13 11:18:40 DEBUG : rclone: Version "v1.53.2" starting with parameters ["rclone" "rcd" "-vvv" "--rc-addr" ":5572" "--rc-user" "admin" "--rc-pass" "admin"]
2020/11/13 11:18:40 INFO : Using --user admin --pass XXXX as authenticated user
2020/11/13 11:18:40 NOTICE: Serving remote control on http://[::]:5572/
Rc client:
docker run -it --rm rclone/rclone:1.53.2 rc --url=http://my-local-ip:5572 --user admin --pass admin core/command command=ls -a /.cache/
2020/11/13 11:20:57 Failed to rc: Failed to read rc response: 500 Internal Server Error:
The rclone config contents with secrets removed.
[sftp1]
type = sftp
host = sftp1
user = sftpuser1
key_file = /keys/mykey
key_use_agent = false
md5sum_command = none
sha1sum_command = none
[sftp2]
type = sftp
host = sftp2
user = sftpuser2
key_file = /keys/anotherkey
key_use_agent = false
md5sum_command = none
sha1sum_command = none
A log from the command with the -vv
flag
Server logs:
Unable to find image 'rclone/rclone:1.53.2' locally
1.53.2: Pulling from rclone/rclone
Digest: sha256:308f3e39436ef56803e1e38ccce91b95181fd937548687ce5281d65a4749676e
Status: Downloaded newer image for rclone/rclone:1.53.2
2020/11/13 11:18:40 DEBUG : rclone: Version "v1.53.2" starting with parameters ["rclone" "rcd" "-vvv" "--rc-addr" ":5572" "--rc-user" "admin" "--rc-pass" "admin"]
2020/11/13 11:18:40 INFO : Using --user admin --pass XXXX as authenticated user
2020/11/13 11:18:40 NOTICE: Serving remote control on http://[::]:5572/
2020/11/13 11:30:03 DEBUG : rc: "core/command": with parameters map[_request:0xc000222500 _response:0xc0001b0000 arg:[/.cache/] command:ls]
2020/11/13 11:30:03 ERROR : rc: "core/command": error: response object is required
expecting *http.ResponseWriter value for key "_response" (was *http.response)
2020/11/13 11:30:03 ERROR : rc: failed to write JSON output: json: unsupported type: func() (io.ReadCloser, error)