What is the problem you are having with rclone?
I can't upload my files to OneDrive - says I'm Unauthenticated.
I can use the rclone lsd odrive:
command, and it's output is correct. When I try to upload, the directory structure is created on the remote, but no files are uploaded. I have more than enough free space.
I've also tried to remove and add the remote again, but no success. I've followed the guide here
Also ran the command without the filter flags, but no luck either. I don't know where to go next from here
Run the command 'rclone version' and share the full output of the command.
rclone v1.63.1
- os/version: Microsoft Windows 10 Home 22H2 (64 bit)
- os/kernel: 10.0.19045.3324 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.20.6
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Microsoft OneDrive, Personal
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone sync C:\Users\Mark\Documents\Gnucash\ odrive:Mark/gnucash --filter "- *.log" --filter "- *.gnucash.*.gnucash" --filter "- *.csv" --filter "- *.xlsx" --filter "- *.zip"
The rclone config contents with secrets removed.
[odrive]
type = onedrive
token = {"access_token":"secret","token_type":"Bearer","refresh_token":"secret","expiry":"2023-08-21T21:01:23.5260245+02:00"}
drive_id = secret
drive_type = personal
A log from the command with the -vv
flag
C:\Users\Mark>rclone sync C:\Users\Mark\Documents\Gnucash\ odrive:Mark\gnucash --filter "- *.log" --filter "- *.gnucash.*.gnucash" --filter "- *.csv" --filter "- *.xlsx" --filter "- *.zip" -vv
2023/08/21 20:13:58 DEBUG : rclone: Version "v1.63.1" starting with parameters ["rclone" "sync" "C:\\Users\\Mark\\Documents\\Gnucash\\" "odrive:Mark\\gnucash" "--filter" "- *.log" "--filter" "- *.gnucash.*.gnucash" "--filter" "- *.csv" "--filter" "- *.xlsx" "--filter" "- *.zip" "-vv"]
2023/08/21 20:13:58 DEBUG : Creating backend with remote "C:\\Users\\Mark\\Documents\\Gnucash\\"
2023/08/21 20:13:58 DEBUG : Using config file from "C:\\Users\\Mark\\AppData\\Roaming\\rclone\\rclone.conf"
2023/08/21 20:13:58 DEBUG : fs cache: renaming cache item "C:\\Users\\Mark\\Documents\\Gnucash\\" to be canonical "//?/C:/Users/Mark/Documents/Gnucash"
2023/08/21 20:13:58 DEBUG : Creating backend with remote "odrive:Mark\\gnucash"
2023/08/21 20:13:59 DEBUG : fs cache: renaming cache item "odrive:Mark\\gnucash" to be canonical "odrive:Mark/gnucash"
2023/08/21 20:13:59 DEBUG : OTP/export.gnucash: Need to transfer - File not found at Destination
2023/08/21 20:13:59 DEBUG : OTP/export.gnucash: Starting multipart upload
2023/08/21 20:14:00 DEBUG : expanses/expanses.gnucash: Need to transfer - File not found at Destination
2023/08/21 20:14:00 DEBUG : expanses/expanses.gnucash: Starting multipart upload
2023/08/21 20:14:00 DEBUG : OTP/gnu - Copy/zxc.gnucash: Need to transfer - File not found at Destination
2023/08/21 20:14:00 DEBUG : OTP/gnu - Copy/zxc.gnucash: Starting multipart upload
2023/08/21 20:14:00 DEBUG : OTP/gnu/zxc.gnucash: Need to transfer - File not found at Destination
2023/08/21 20:14:00 DEBUG : OneDrive root 'Mark/gnucash': Waiting for checks to finish
2023/08/21 20:14:00 DEBUG : OneDrive root 'Mark/gnucash': Waiting for transfers to finish
2023/08/21 20:14:00 DEBUG : OTP/gnu/zxc.gnucash: Starting multipart upload
2023/08/21 20:14:00 DEBUG : expanses/expanses.gnucash: Uploading segment 0/44471 size 44471
2023/08/21 20:14:00 DEBUG : OTP/export.gnucash: Uploading segment 0/15226 size 15226
2023/08/21 20:14:00 DEBUG : OTP/gnu - Copy/zxc.gnucash: Uploading segment 0/62804 size 62804
2023/08/21 20:14:00 DEBUG : OTP/gnu/zxc.gnucash: Uploading segment 0/79715 size 79715
2023/08/21 20:14:01 DEBUG : OTP/gnu - Copy/zxc.gnucash: Cancelling multipart upload: unauthenticated: Unauthenticated
2023/08/21 20:14:01 DEBUG : OTP/gnu/zxc.gnucash: Cancelling multipart upload: unauthenticated: Unauthenticated
2023/08/21 20:14:01 DEBUG : expanses/expanses.gnucash: Cancelling multipart upload: unauthenticated: Unauthenticated
2023/08/21 20:14:01 DEBUG : OTP/export.gnucash: Cancelling multipart upload: unauthenticated: Unauthenticated
2023/08/21 20:14:01 NOTICE: OTP/gnu - Copy/zxc.gnucash: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2023/08/21 20:14:01 ERROR : OTP/gnu - Copy/zxc.gnucash: Failed to copy: unauthenticated: Unauthenticated
2023/08/21 20:14:01 NOTICE: OTP/gnu/zxc.gnucash: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2023/08/21 20:14:01 ERROR : OTP/gnu/zxc.gnucash: Failed to copy: unauthenticated: Unauthenticated
2023/08/21 20:14:01 NOTICE: expanses/expanses.gnucash: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2023/08/21 20:14:01 ERROR : expanses/expanses.gnucash: Failed to copy: unauthenticated: Unauthenticated
2023/08/21 20:14:01 NOTICE: OTP/export.gnucash: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2023/08/21 20:14:01 ERROR : OTP/export.gnucash: Failed to copy: unauthenticated: Unauthenticated
2023/08/21 20:14:01 ERROR : OneDrive root 'Mark/gnucash': not deleting files as there were IO errors
2023/08/21 20:14:01 ERROR : OneDrive root 'Mark/gnucash': not deleting directories as there were IO errors
2023/08/21 20:14:01 ERROR : Attempt 1/3 failed with 4 errors and: unauthenticated: Unauthenticated
2023/08/21 20:14:01 DEBUG : OTP/export.gnucash: Need to transfer - File not found at Destination
2023/08/21 20:14:01 DEBUG : OTP/export.gnucash: Starting multipart upload
2023/08/21 20:14:01 DEBUG : expanses/expanses.gnucash: Need to transfer - File not found at Destination
2023/08/21 20:14:01 DEBUG : expanses/expanses.gnucash: Starting multipart upload
2023/08/21 20:14:01 DEBUG : OTP/gnu/zxc.gnucash: Need to transfer - File not found at Destination
2023/08/21 20:14:01 DEBUG : OTP/gnu/zxc.gnucash: Starting multipart upload
2023/08/21 20:14:01 DEBUG : OTP/gnu - Copy/zxc.gnucash: Need to transfer - File not found at Destination
2023/08/21 20:14:01 DEBUG : OneDrive root 'Mark/gnucash': Waiting for checks to finish
2023/08/21 20:14:01 DEBUG : OneDrive root 'Mark/gnucash': Waiting for transfers to finish
2023/08/21 20:14:01 DEBUG : OTP/gnu - Copy/zxc.gnucash: Starting multipart upload
2023/08/21 20:14:02 DEBUG : OTP/export.gnucash: Uploading segment 0/15226 size 15226
2023/08/21 20:14:02 DEBUG : expanses/expanses.gnucash: Uploading segment 0/44471 size 44471
2023/08/21 20:14:02 DEBUG : OTP/export.gnucash: Cancelling multipart upload: unauthenticated: Unauthenticated
2023/08/21 20:14:02 DEBUG : OTP/gnu/zxc.gnucash: Uploading segment 0/79715 size 79715
2023/08/21 20:14:02 DEBUG : expanses/expanses.gnucash: Cancelling multipart upload: unauthenticated: Unauthenticated
2023/08/21 20:14:02 NOTICE: OTP/export.gnucash: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2023/08/21 20:14:02 ERROR : OTP/export.gnucash: Failed to copy: unauthenticated: Unauthenticated
2023/08/21 20:14:02 DEBUG : OTP/gnu/zxc.gnucash: Cancelling multipart upload: unauthenticated: Unauthenticated
2023/08/21 20:14:02 NOTICE: expanses/expanses.gnucash: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2023/08/21 20:14:02 ERROR : expanses/expanses.gnucash: Failed to copy: unauthenticated: Unauthenticated
2023/08/21 20:14:02 DEBUG : OTP/gnu - Copy/zxc.gnucash: Uploading segment 0/62804 size 62804
2023/08/21 20:14:02 NOTICE: OTP/gnu/zxc.gnucash: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2023/08/21 20:14:02 ERROR : OTP/gnu/zxc.gnucash: Failed to copy: unauthenticated: Unauthenticated
2023/08/21 20:14:02 DEBUG : OTP/gnu - Copy/zxc.gnucash: Cancelling multipart upload: unauthenticated: Unauthenticated
2023/08/21 20:14:02 NOTICE: OTP/gnu - Copy/zxc.gnucash: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2023/08/21 20:14:02 ERROR : OTP/gnu - Copy/zxc.gnucash: Failed to copy: unauthenticated: Unauthenticated
2023/08/21 20:14:02 ERROR : OneDrive root 'Mark/gnucash': not deleting files as there were IO errors
2023/08/21 20:14:02 ERROR : OneDrive root 'Mark/gnucash': not deleting directories as there were IO errors
2023/08/21 20:14:02 ERROR : Attempt 2/3 failed with 4 errors and: unauthenticated: Unauthenticated
2023/08/21 20:14:02 DEBUG : expanses/expanses.gnucash: Need to transfer - File not found at Destination
2023/08/21 20:14:02 DEBUG : expanses/expanses.gnucash: Starting multipart upload
2023/08/21 20:14:03 DEBUG : OTP/export.gnucash: Need to transfer - File not found at Destination
2023/08/21 20:14:03 DEBUG : OTP/export.gnucash: Starting multipart upload
2023/08/21 20:14:03 DEBUG : OTP/gnu - Copy/zxc.gnucash: Need to transfer - File not found at Destination
2023/08/21 20:14:03 DEBUG : OTP/gnu - Copy/zxc.gnucash: Starting multipart upload
2023/08/21 20:14:03 DEBUG : OTP/gnu/zxc.gnucash: Need to transfer - File not found at Destination
2023/08/21 20:14:03 DEBUG : OneDrive root 'Mark/gnucash': Waiting for checks to finish
2023/08/21 20:14:03 DEBUG : OneDrive root 'Mark/gnucash': Waiting for transfers to finish
2023/08/21 20:14:03 DEBUG : OTP/gnu/zxc.gnucash: Starting multipart upload
2023/08/21 20:14:03 DEBUG : OTP/export.gnucash: Uploading segment 0/15226 size 15226
2023/08/21 20:14:03 DEBUG : expanses/expanses.gnucash: Uploading segment 0/44471 size 44471
2023/08/21 20:14:03 DEBUG : OTP/export.gnucash: Cancelling multipart upload: unauthenticated: Unauthenticated
2023/08/21 20:14:03 DEBUG : expanses/expanses.gnucash: Cancelling multipart upload: unauthenticated: Unauthenticated
2023/08/21 20:14:03 NOTICE: OTP/export.gnucash: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2023/08/21 20:14:03 ERROR : OTP/export.gnucash: Failed to copy: unauthenticated: Unauthenticated
2023/08/21 20:14:03 NOTICE: expanses/expanses.gnucash: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2023/08/21 20:14:03 ERROR : expanses/expanses.gnucash: Failed to copy: unauthenticated: Unauthenticated
2023/08/21 20:14:03 DEBUG : OTP/gnu/zxc.gnucash: Uploading segment 0/79715 size 79715
2023/08/21 20:14:03 DEBUG : OTP/gnu - Copy/zxc.gnucash: Uploading segment 0/62804 size 62804
2023/08/21 20:14:03 DEBUG : OTP/gnu - Copy/zxc.gnucash: Cancelling multipart upload: unauthenticated: Unauthenticated
2023/08/21 20:14:03 DEBUG : OTP/gnu/zxc.gnucash: Cancelling multipart upload: unauthenticated: Unauthenticated
2023/08/21 20:14:03 NOTICE: OTP/gnu - Copy/zxc.gnucash: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2023/08/21 20:14:03 ERROR : OTP/gnu - Copy/zxc.gnucash: Failed to copy: unauthenticated: Unauthenticated
2023/08/21 20:14:03 NOTICE: OTP/gnu/zxc.gnucash: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)
2023/08/21 20:14:03 ERROR : OTP/gnu/zxc.gnucash: Failed to copy: unauthenticated: Unauthenticated
2023/08/21 20:14:03 ERROR : OneDrive root 'Mark/gnucash': not deleting files as there were IO errors
2023/08/21 20:14:03 ERROR : OneDrive root 'Mark/gnucash': not deleting directories as there were IO errors
2023/08/21 20:14:03 ERROR : Attempt 3/3 failed with 4 errors and: unauthenticated: Unauthenticated
2023/08/21 20:14:03 INFO :
Transferred: 592.430 KiB / 592.430 KiB, 100%, 130.706 KiB/s, ETA 0s
Errors: 4 (retrying may help)
Elapsed time: 5.0s
2023/08/21 20:14:03 DEBUG : 17 go routines active
2023/08/21 20:14:03 Failed to sync with 4 errors: last error was: unauthenticated: Unauthenticated