What is the problem you are having with rclone?
Unable to copy to/from OneDrive when using IPV6 exclusively from an Amazon EC2 Ubuntu instance. File listings do work (the ls command) which go to api.onedrive.com but getting files accesses domain 1slsvq.bl.files.1drv.com which resolves to an IPV4 address. If I enable IPV4 then the process works. Using Google Drive works when using IPV6, but not OneDrive.
Run the command 'rclone version' and share the full output of the command.
rclone v1.66.0
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 6.5.0-1014-aws (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.1
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
OneDrive Personal
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone -vv copy onedrive:dev/CloudSync/test.txt . --ignore-size --user-agent "ISV|rclone.org|rclone/v1.66.0" --low-level-retries 1
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[onedrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal
A log from the command that you were trying to run with the -vv
flag
2024/03/19 12:55:44 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone-v1.66.0-linux-amd64/rclone" "-vv" "copy" "onedrive:dev/CloudSync/test.txt" "." "--ignore-size" "--user-agent" "ISV|rclone.org|rclone/v1.66.0" "--low-level-retries" "1"]
2024/03/19 12:55:44 DEBUG : Creating backend with remote "onedrive:dev/CloudSync/test.txt"
2024/03/19 12:55:44 DEBUG : Using config file from "/home/ubuntu/.config/rclone/rclone.conf"
2024/03/19 12:55:44 DEBUG : fs cache: adding new entry for parent of "onedrive:dev/CloudSync/test.txt", "onedrive:dev/CloudSync"
2024/03/19 12:55:44 DEBUG : Creating backend with remote "."
2024/03/19 12:55:44 DEBUG : fs cache: renaming cache item "." to be canonical "/home/ubuntu"
2024/03/19 12:55:44 DEBUG : test.txt: Need to transfer - File not found at Destination
2024/03/19 12:56:44 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Transferred: 0 / 1, 0%
Elapsed time: 1m0.6s
Transferring:
* test.txt: transferring
2024/03/19 12:56:44 DEBUG : pacer: low level retry 1/1 (error Get "https://1slsvq.bl.files.1drv.com/{long-potentially-secret-url-sequence}/test.txt": dial tcp 13.107.42.12:443: i/o timeout)
2024/03/19 12:56:44 DEBUG : pacer: Rate limited, increasing sleep to 20ms
2024/03/19 12:56:44 DEBUG : test.txt: Received error: failed to open source object: Get "https://1slsvq.bl.files.1drv.com/{long-potentially-secret-url-sequence}/test.txt": dial tcp 13.107.42.12:443: i/o timeout - low level retry 0/1
2024/03/19 12:56:44 ERROR : test.txt: Failed to copy: failed to open source object: Get "https://1slsvq.bl.files.1drv.com/{long-potentially-secret-url-sequence}/test.txt": dial tcp 13.107.42.12:443: i/o timeout
2024/03/19 12:56:44 ERROR : Attempt 1/3 failed with 1 errors and: failed to open source object: Get "https://1slsvq.bl.files.1drv.com/{long-potentially-secret-url-sequence}/test.txt": dial tcp 13.107.42.12:443: i/o timeout
2024/03/19 12:56:45 DEBUG : pacer: Reducing sleep to 15ms