Rclone trying to access previously deleted OneDrive files

What is the problem you are having with rclone?

I deleted some files from my OneDrive online and when I try to mount OneDrive using rclone, it tries to locate the deleted files and mount them (I think). Before I deleted the files, I was trying to move them into a different folder, but it didn't work. In case that's relevant!

I'm new to Linux, rclone and OneDrive so please write things in layman's terms! All help much appreciated, Thanks!!

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

rclone v1.57.0

  • os/version: ubuntu 20.04 (64 bit)
  • os/kernel: 5.13.0-40-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.2
  • go/linking: static
  • go/tags: none

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

OneDrive for business

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

rclone --vfs-cache-mode writes mount "onedrive":  ~/OneDrive

The rclone config contents with secrets removed.

Edit remote
Option client_id.
OAuth Client Id.
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_id> 
Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret> 
Option region.
Choose national cloud region for OneDrive.
Enter a string value. Press Enter for the default ("global").
Choose a number from below, or type in your own value.
 1 / Microsoft Cloud Global
   \ "global"
 2 / Microsoft Cloud for US Government
   \ "us"
 3 / Microsoft Cloud Germany
   \ "de"
 4 / Azure and Office 365 operated by 21Vianet in China
   \ "cn"
region> 1
Edit advanced config?
y) Yes
n) No (default)
y/n> n
Already have a token - refresh?
y) Yes (default)
n) No
y/n> n
Option config_type.
Type of connection
Enter a string value. Press Enter for the default ("onedrive").
Choose a number from below, or type in an existing value.
 1 / OneDrive Personal or Business
   \ "onedrive"
 2 / Root Sharepoint site
   \ "sharepoint"
   / Sharepoint site name or URL
 3 | E.g. mysite or https://contoso.sharepoint.com/sites/mysite
   \ "url"
 4 / Search for a Sharepoint site
   \ "search"
 5 / Type in driveID (advanced)
   \ "driveid"
 6 / Type in SiteID (advanced)
   \ "siteid"
   / Sharepoint server-relative path (advanced)
 7 | E.g. /teams/hr
   \ "path"
config_type> 1
Drive OK?

Found drive "root" of type "business"
URL: https://ljmu-my.sharepoint.com/........

y) Yes (default)
n) No
y/n> y
--------------------
[onedrive]
type = onedrive
region = global
token =

A log from the command with the -vv flag

I get lots of these error messages for different files I previously deleted:

<3>ERROR : 2022-04-21 Phone images/Pictures/Messenger/received_4335388043192773.jpeg: vfs cache: failed to reload item: reload: failed to add virtual dir entry: file does not exist

And then a list of these:

<3>ERROR : 2022-04-21 Phone images/Pictures/Screenshots/Screenshot_20211128-132009.jpg: Failed to copy: Post "https://graph.microsoft.com/v1.0/drives/b!b_WXNXN32km9NzkK9OZqfnuDNvXidVJEhb2hjAJrIUo7YacLCNxJSrFtl7PZPEpa/items/01GFHSN6QFWIS7EMQHNJFKDJIXDREXTKKD:/Screenshot_20211128-132009.jpg:/createUploadSession": context canceled

I just needed to update rclone :') it didn't update when I ran sudo apt-get update, but sudo rclone selfupdate worked :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.