Failed to copy: context cancelled while using Onedrive

What is the problem you are having with rclone?

I've mounted a crypt remote but pasting a file there doesn't seems to just fill up the cache and upon ctrl+c it spits out errors with Failed to copy: context cancelled.

Run the command 'rclone version' and share the full output of the command.

rclone v1.68.2

  • os/version: Microsoft Windows 11 Home 23H2 (64 bit)
  • os/kernel: 10.0.22631.4460 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.23.3
  • go/linking: static
  • go/tags: cmount

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

Onedrive sharepoint site

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

rclone mount spencrypt: L: --vfs-cache-mode full

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 = business

[sharepoint]
type = onedrive
token = XXX
drive_id = XXX
drive_type = documentLibrary

[spencrypt]
type = crypt
remote = sharepoint:Encrypted
password = XXX
### Double check the config for sensitive info before posting publicly

A log from the command that you were trying to run with the -vv flag

2024/12/24 17:57:41 DEBUG : rclone: Version "v1.68.2" starting with parameters ["C:\\rclone\\rclone.exe" "mount" "spencrypt:" "L:" "--vfs-cache-mode" "full" "-vv"]
2024/12/24 17:57:41 DEBUG : Creating backend with remote "spencrypt:"
2024/12/24 17:57:41 DEBUG : Using config file from "C:\\Users\\Danh\\AppData\\Roaming\\rclone\\rclone.conf"
2024/12/24 17:57:41 DEBUG : Creating backend with remote "sharepoint:Encrypted"
2024/12/24 17:57:45 DEBUG : OneDrive root 'Encrypted': Next delta token is: NDslMjM0OyUyMzE7MzthYjQ2OGQ4Ni0zZDgwLTRhMGEtYjRkOC1lNGVhNDE4MWQyNzk7NjM4NzA2MzQ2Njg4MTAwMDAwOzEyMTgzMjQ1NTc7JTIzOyUyMzslMjMwOyUyMw
2024/12/24 17:57:45 DEBUG : vfs cache: root is "C:\\Users\\Danh\\AppData\\Local\\rclone"
2024/12/24 17:57:45 DEBUG : vfs cache: data root is "\\\\?\\C:\\Users\\Danh\\AppData\\Local\\rclone\\vfs\\spencrypt"
2024/12/24 17:57:45 DEBUG : vfs cache: metadata root is "\\\\?\\C:\\Users\\Danh\\AppData\\Local\\rclone\\vfsMeta\\spencrypt"
2024/12/24 17:57:45 DEBUG : Creating backend with remote ":local,encoding='Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot':C:/Users/Danh/AppData/Local/rclone/vfs/spencrypt/"
2024/12/24 17:57:45 DEBUG : :local: detected overridden config - adding "{fbZPM}" suffix to name
2024/12/24 17:57:45 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot':C:/Users/Danh/AppData/Local/rclone/vfs/spencrypt/" to be canonical ":local{fbZPM}://?/C:/Users/Danh/AppData/Local/rclone/vfs/spencrypt"
2024/12/24 17:57:45 DEBUG : Creating backend with remote ":local,encoding='Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot':C:/Users/Danh/AppData/Local/rclone/vfsMeta/spencrypt/"
2024/12/24 17:57:45 DEBUG : :local: detected overridden config - adding "{fbZPM}" suffix to name
2024/12/24 17:57:45 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot':C:/Users/Danh/AppData/Local/rclone/vfsMeta/spencrypt/" to be canonical ":local{fbZPM}://?/C:/Users/Danh/AppData/Local/rclone/vfsMeta/spencrypt"
2024/12/24 17:57:45 DEBUG : Media/Movies/Fight Club/Fight Club (1999) (1080p BluRay x265 HEVC 10bit AAC 5.1 Tigole)/Fight Club (1999) (1080p BluRay x265 10bit Tigole).mkv: vfs cache: removed metadata from cache as cache file doesn't exist
2024/12/24 17:57:45 DEBUG : New Text Document (2).txt: vfs cache: removed metadata from cache as cache file doesn't exist
2024/12/24 17:57:45 DEBUG : removing 1 level 4 directories
2024/12/24 17:57:45 INFO  : Media/Movies/Fight Club/Fight Club (1999) (1080p BluRay x265 HEVC 10bit AAC 5.1 Tigole): Removing directory
2024/12/24 17:57:45 DEBUG : removing 1 level 3 directories
2024/12/24 17:57:45 INFO  : Media/Movies/Fight Club: Removing directory
2024/12/24 17:57:45 DEBUG : removing 1 level 2 directories
2024/12/24 17:57:45 INFO  : Media/Movies: Removing directory
2024/12/24 17:57:45 DEBUG : removing 1 level 1 directories
2024/12/24 17:57:45 INFO  : Media: Removing directory
2024/12/24 17:57:45 DEBUG : Network mode mounting is disabled
2024/12/24 17:57:45 DEBUG : Mounting on "L:" ("spencrypt")
2024/12/24 17:57:45 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item Media/Movies/Fight Club/Fight Club (1999) (1080p BluRay x265 HEVC 10bit AAC 5.1 Tigole)/Fight Club (1999) (1080p BluRay x265 10bit Tigole).mkv not removed, freed 0 bytes
2024/12/24 17:57:45 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item New Text Document (2).txt not removed, freed 0 bytes
2024/12/24 17:57:45 INFO  : vfs cache: cleaned: objects 2 (was 2) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/12/24 17:57:45 DEBUG : Encrypted drive 'spencrypt:': Mounting with options: ["-o" "attr_timeout=1" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=spencrypt"]
2024/12/24 17:57:45 DEBUG : Encrypted drive 'spencrypt:': Init:
2024/12/24 17:57:45 DEBUG : Encrypted drive 'spencrypt:': >Init:
2024/12/24 17:57:45 DEBUG : /: Statfs:
2024/12/24 17:57:45 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:6710886400 Bfree:6710873646 Bavail:6710873646 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2024/12/24 17:57:45 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:45 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:45 DEBUG : /: Readlink:
2024/12/24 17:57:45 DEBUG : /: >Readlink: linkPath="", errc=-40
2024/12/24 17:57:45 DEBUG : /: Getxattr: name="non-existant-a11ec902d22f4ec49003af15282d3b00"
2024/12/24 17:57:45 DEBUG : /: >Getxattr: errc=-40, value=""
The service rclone has been started.
2024/12/24 17:57:45 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:45 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:45 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:45 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:45 DEBUG : /: Opendir:
2024/12/24 17:57:45 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2024/12/24 17:57:45 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2024/12/24 17:57:45 DEBUG : /: >Opendir: errc=0, fh=0x0
2024/12/24 17:57:45 DEBUG : /: Statfs:
2024/12/24 17:57:45 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:6710886400 Bfree:6710873646 Bavail:6710873646 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2024/12/24 17:57:45 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:45 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:45 DEBUG : /: Releasedir: fh=0x0
2024/12/24 17:57:45 DEBUG : /: >Releasedir: errc=0
2024/12/24 17:57:45 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:45 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:45 DEBUG : /: Opendir:
2024/12/24 17:57:45 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2024/12/24 17:57:45 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2024/12/24 17:57:45 DEBUG : /: >Opendir: errc=0, fh=0x0
2024/12/24 17:57:45 DEBUG : /: Releasedir: fh=0x0
2024/12/24 17:57:45 DEBUG : /: >Releasedir: errc=0
2024/12/24 17:57:45 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:45 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:45 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:45 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:45 DEBUG : /: Opendir:
2024/12/24 17:57:45 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2024/12/24 17:57:45 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2024/12/24 17:57:45 DEBUG : /: >Opendir: errc=0, fh=0x0
2024/12/24 17:57:45 DEBUG : /: Releasedir: fh=0x0
2024/12/24 17:57:45 DEBUG : /: >Releasedir: errc=0
2024/12/24 17:57:48 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:49 DEBUG : /autorun.inf: >Getattr: errc=-2
2024/12/24 17:57:49 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:49 DEBUG : /autorun.inf: >Getattr: errc=-2
2024/12/24 17:57:49 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:49 DEBUG : /autorun.inf: >Getattr: errc=-2
2024/12/24 17:57:49 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:49 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:49 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:49 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:49 DEBUG : /: Opendir:
2024/12/24 17:57:49 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2024/12/24 17:57:49 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2024/12/24 17:57:49 DEBUG : /: >Opendir: errc=0, fh=0x0
2024/12/24 17:57:49 DEBUG : /: Releasedir: fh=0x0
2024/12/24 17:57:49 DEBUG : /: >Releasedir: errc=0
2024/12/24 17:57:49 DEBUG : /AutoRun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:49 DEBUG : /AutoRun.inf: >Getattr: errc=-2
2024/12/24 17:57:49 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:49 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:49 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:49 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:49 DEBUG : /: Opendir:
2024/12/24 17:57:49 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2024/12/24 17:57:49 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2024/12/24 17:57:49 DEBUG : /: >Opendir: errc=0, fh=0x0
2024/12/24 17:57:49 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:49 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:49 DEBUG : /: Statfs:
2024/12/24 17:57:49 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:6710886400 Bfree:6710873646 Bavail:6710873646 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2024/12/24 17:57:49 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:49 DEBUG : /: Releasedir: fh=0x0
2024/12/24 17:57:49 DEBUG : /: >Releasedir: errc=0
2024/12/24 17:57:49 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:49 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:49 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:49 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:49 DEBUG : /: Opendir:
2024/12/24 17:57:49 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2024/12/24 17:57:49 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2024/12/24 17:57:49 DEBUG : /: >Opendir: errc=0, fh=0x0
2024/12/24 17:57:49 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:49 DEBUG : /: Releasedir: fh=0x0
2024/12/24 17:57:49 DEBUG : /: >Releasedir: errc=0
2024/12/24 17:57:49 DEBUG : /: Opendir:
2024/12/24 17:57:49 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2024/12/24 17:57:49 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2024/12/24 17:57:49 DEBUG : /: >Opendir: errc=0, fh=0x0
2024/12/24 17:57:49 DEBUG : /: Releasedir: fh=0x0
2024/12/24 17:57:49 DEBUG : /: >Releasedir: errc=0
2024/12/24 17:57:49 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:49 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:49 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2024/12/24 17:57:49 DEBUG : /: >Getattr: errc=0
2024/12/24 17:57:49 DEBUG : /: Opendir:
2024/12/24 17:57:49 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2024/12/24 17:57:49 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2024/12/24 17:57:49 DEBUG : /: >Opendir: errc=0, fh=0x0
2024/12/24 17:57:49 DEBUG : /: Releasedir: fh=0x0
2024/12/24 17:57:49 DEBUG : /: >Releasedir: errc=0```

You described how rclone mount works when you terminate it with ctrl-c. It is all correct.

Do not press ctrl-c if you want your upload completed.