Can not list Onedrive

I am using rclone to migrate data between two onedrive accounts. I added two remotes, assuming their names are drive1 and drive2, and it just started working fine, I am using
rclone copy drive1:/path/ dirve2:/path -P
to migrate the data. In the afternoon, I found out that there was an error interruption. Then I used rclone lsd drive1 and got the following error message:

2024/10/30 21:51:09 ERROR : : error listing: couldn't list files: invalidRequest: The item does not reside in the drive
2024/10/30 21:51:09 NOTICE: Failed to lsd with 2 errors: last error was: couldn't list files: invalidRequest: The item does not reside in the drive
I removed the config for remote drive1 and re-added it, still the same error result, however, I am using the command
rclone lsd drive2:
I can list the directory and it works fine.
I have tried to operate drive1 both locally and on the server with the same error, but when I log in to the onedrive page of drive1, it works fine.

How can I fix this error? Thank you for your help!

rclone version: rclone v1.68.1
os: win11 / Rocky 9.4
go version: 1.23.1

welcome to the forum,

some of the answers in the template were not answered?

  1. output of rclone version
  2. output of rclone config redacted
  3. output of compete debug log. use -vv --retries=1

and post the output of rclone lsd drive1: -vv

what server?

  1. rclone version:
    rclone version
    rclone v1.68.1
  • os/version: Microsoft Windows 11 Home 23H2 (64 bit)
  • os/kernel: 10.0.22631.4317 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.23.1
  • go/linking: static
  • go/tags: cmount

rclone v1.68.1

  • os/version: rocky 9.4 (64 bit)
  • os/kernel: 5.14.0-427.22.1.el9_4.x86_64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.23.1
  • go/linking: static
  • go/tags: none

rclone config
[drive1]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal

[drive2]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal

  1. 2024/10/31 01:27:00 DEBUG : rclone: Version "v1.68.1" starting with parameters ["rclone" "lsd" "drive1:" "-vv" "--retries=1"]
    2024/10/31 01:27:00 DEBUG : Creating backend with remote "drive1:"
    2024/10/31 01:27:00 DEBUG : Using config file from "C:\Users\xxx\AppData\Roaming\rclone\rclone.conf"
    2024/10/31 01:27:01 ERROR : : error listing: couldn't list files: invalidRequest: The item does not reside in the drive
    2024/10/31 01:27:01 DEBUG : 4 go routines active
    2024/10/31 01:27:01 NOTICE: Failed to lsd with 2 errors: last error was: couldn't list files: invalidRequest: The item does not reside in the drive

for all testing, use --retires=1 -vv

post the output of rclone about drive1:

for a deeper look, try --dump=headers

After testing the above instructions, I solved the problem later, the reason for the problem may be that I logged into more than one OneDrive account in the same browser, which led to the confusion of the token, I deleted the cookie and logged in again, and then I can use it normally, thank you for your help.

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