What is the problem you are having with rclone?
When uploading files to OneDrive using rclone, the first file gets to 100% upload, but then the upload speed drops to 0, and the file is unable to be transferred. On OneDrive itself, the directory the file is going to be uploaded to is created, and OneDrive indicates that there are files (items) in the directory, but when I open the directory, there are no files inside.
I have been successful in uploading files to OneDrive for about 9 months, but have only encountered this issue a few days ago. I have not changed anything in my setup from when I was able to upload files successfully.
I have tried re-configuring the remote, that did not work. I have setup a new remote to send the files to, that did not work. I have tried using a stronger internet connection, that did not help (the setup is using a Raspberry Pi 4 with a SIM card hat, I tried uploading files using a strong wifi connection instead of the hat).
When running the command with the -vv flag for this post, I did notice that the speed was abysmally slow (less than 100 B/s)
Any help would be appreciated.
Run the command 'rclone version' and share the full output of the command.
rclone v1.62.2
- os/version: raspbian 11.2
- os/kernel: 5.4.75-v7l+ (armv7l)
- os/type: linux
- os/arch: arm (ARMv7 compatible)
- go/version: go1.20.2
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Microsoft OneDrive (for Business)
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone copy --progress /home/pi/tarpin/tarpin_connection_hist.log jslab_onedrive:RAFT_Data/$raft_num/tarpin_logs
The rclone config contents with secrets removed.
[jslab_onedrive]
type = onedrive
token = {"access_token":"redacted","token_type":"Bearer","refresh_token":"redacted","expiry":"2023-04-13T11:05:58.28490397-07:00"}
drive_id = redacted
drive_type = business
A log from the command with the -vv
flag
2023/04/13 10:23:39 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "copy" "--progress" "-vv" "/home/pi/tarpin/tarpin_connection_hist.log" "jslab_onedrive:RAFT_Data/RAFT1/tarpin_logs"]
2023/04/13 10:23:39 DEBUG : Creating backend with remote "/home/pi/tarpin/tarpin_connection_hist.log"
2023/04/13 10:23:39 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2023/04/13 10:23:39 DEBUG : fs cache: adding new entry for parent of "/home/pi/tarpin/tarpin_connection_hist.log", "/home/pi/tarpin"
2023/04/13 10:23:39 DEBUG : Creating backend with remote "jslab_onedrive:RAFT_Data/RAFT1/tarpin_logs"
2023-04-13 10:23:44 DEBUG : tarpin_connection_hist.log: Need to transfer - File not found at Destination
2023-04-13 10:23:44 DEBUG : tarpin_connection_hist.log: Starting multipart upload
2023-04-13 10:23:46 DEBUG : tarpin_connection_hist.log: Uploading segment 0/369 size 369
2023-04-13 10:25:49 DEBUG : pacer: low level retry 1/10 (error Put "https://redacted-my.sharepoint.com/personal/redacted/_api/v2.0/drives/b!MlK-YgXOikS6zNJyXjBUUzh0w5hrbYpLqQfI1fWHZkmBQ0Xbqv2fQbaOLEmfsHnf/items/01X7S6X646CXZMOR4JMZHIZIANLOKRXVA5/uploadSession?guid='redacted'&overwrite=True&rename=False&dc=0&tempauth=redacted": read tcp 21.172.205.172:33572->13.107.136.8:443: read: connection reset by peer)
2023-04-13 10:25:49 DEBUG : pacer: Rate limited, increasing sleep to 20ms
Transferred: 369 B / 369 B, 100%, 0 B/s, ETA 0s
Transferred: 0 / 1, 0%
Elapsed time: 2m27.5s
Transferring:
* tarpin_connection_hist.log:100% /369, 0/s, 0s