Copying Files from the Root Dir Results in Error

What is the problem you are having with rclone?

Unable to list or copy files from the source directory

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

rclone v1.65.0

  • os/version: Microsoft Windows 10 Pro 20H2 (64 bit)
  • os/kernel: 10.0.19042.1288 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.21.4
  • go/linking: static
  • go/tags: cmount

Are you on the latest version of rclone? You can validate by checking the version listed here: Rclone downloads
--> No

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

None

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

rclone copy --dry-run "D:/" "H:/Backup Delta/D" --min-age 100y --create-empty-src-dirs --metadata

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[Regina]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =

[secure]
type = crypt
remote = Regina:secure
directory_name_encryption = false
password = XXX
password2 = XXX

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

2024/08/15 23:32:59 DEBUG : --min-age 100y to 1924-09-09 
2024/08/15 23:32:59 DEBUG : rclone: Version "v1.65.0" starting with parameters ["rclone" "copy" "--dry-run" "D:/" "H:/Backup Delta/D" "--min-age" "100y" "--create-empty-src-dirs" "-vv" "--metadata"]
2024/08/15 23:32:59 DEBUG : Creating backend with remote "D:/"
Enter configuration password:
password:
2024/08/15 23:33:01 DEBUG : Using config file from "C:\\Users\\S\\AppData\\Roaming\\rclone\\rclone.conf"
2024/08/15 23:33:01 DEBUG : fs cache: renaming cache item "D:/" to be canonical "//?/D:/"
2024/08/15 23:33:01 DEBUG : Creating backend with remote "H:/Backup Delta/D"
2024/08/15 23:33:01 DEBUG : fs cache: renaming cache item "H:/Backup Delta/D" to be canonical "//?/H:/Backup Delta/D"
2024/08/15 23:33:01 ERROR : Local file system at //?/D:/: error reading source root directory: directory not found
2024/08/15 23:33:01 DEBUG : Local file system at //?/H:/Backup Delta/D: Waiting for checks to finish
2024/08/15 23:33:01 DEBUG : Local file system at //?/H:/Backup Delta/D: Waiting for transfers to finish
2024/08/15 23:33:01 ERROR : Attempt 1/1 failed with 1 errors and: directory not found
2024/08/15 23:33:01 NOTICE:
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         1.7s

2024/08/15 23:33:01 DEBUG : 2 go routines active
2024/08/15 23:33:01 Failed to copy: directory not found

I don't get why this happens...

When I run dir D:\, it lists all the files and folders just fine:

>dir D:\         
Volume in drive D is New Volume
Volume Serial Number is 5650-2DCE  

Directory of D:\                                                                                                                                                                                                                              

01/13/2024  10:32 PM    <DIR>          Audacity
10/01/2023  03:36 PM    <DIR>          csgo-mm-server-picker
05/15/2014  03:33 AM    <DIR>          Pokémon Diamond and Pearl
07/20/2024  01:07 AM    <DIR>          Schism-Tracker
12/12/2021  05:40 PM    <DIR>          Steins;Gate
10/04/2023  06:56 PM    <DIR>          Wireshark

The part that's even weirder is when I copy a file or a folder inside D:\, like this:

rclone copy --dry-run "D:/Pokémon Diamond and Pearl" "H:/Backup Delta/D" --min-age 100y --create-empty-src-dirs --metadata

It works without any issues!

Am I missing something here?

welcome to the forum,

can update rclone, rclone selfupdate and test again

what is d:? local, usb or what?
and not sure it matters but the dir command is missing a line
Volume Serial Number is 223C-F3F8

try removing the quotes and to keep the logs small, use --retries=1
rclone lsd d:/ -vv --retries=1

D: is a local drive.

>rclone lsd d:/ -vv --retries=1

2024/08/16 01:03:03 DEBUG : rclone: Version "v1.65.0" starting with parameters ["rclone" "lsd" "d:/" "-vv" "--retries=1"]
2024/08/16 01:03:03 DEBUG : Creating backend with remote "d:/"
Enter configuration password:
password:
2024/08/16 01:03:13 DEBUG : Using config file from "C:\\Users\\S\\AppData\\Roaming\\rclone\\rclone.conf"
2024/08/16 01:03:13 DEBUG : fs cache: renaming cache item "d:/" to be canonical "//?/d:/"
2024/08/16 01:03:13 ERROR : : error listing: directory not found
2024/08/16 01:03:13 DEBUG : 2 go routines active
2024/08/16 01:03:13 Failed to lsd with 2 errors: last error was: directory not found

rclone lsd d:\ -vv --retries=1

>rclone lsd d:\ -vv --retries=1

2024/08/16 01:07:31 DEBUG : rclone: Version "v1.65.0" starting with parameters ["rclone" "lsd" "d:\\" "-vv" "--retries=1"]
2024/08/16 01:07:31 DEBUG : Creating backend with remote "d:\\"
Enter configuration password:
password:
2024/08/16 01:07:38 DEBUG : Using config file from "C:\\Users\\S\\AppData\\Roaming\\rclone\\rclone.conf"
2024/08/16 01:07:38 DEBUG : fs cache: renaming cache item "d:\\" to be canonical "//?/d:/"
2024/08/16 01:07:38 ERROR : : error listing: directory not found
2024/08/16 01:07:38 DEBUG : 2 go routines active
2024/08/16 01:07:38 Failed to lsd with 2 errors: last error was: directory not found

well, you still have not updated rclone?

something is weird with your setup.
that command line, dos, powershell or what?

Tried CMD and Powershell, both running as admin—still results in the same output.

This issue occurs on all local drives' root dirs

odds are it will not matter but should update, so we do not have to spend more time on that, ok?
rclone selfupdate

for testing, just use that, ok?

I'm holding off on the update because I think it might obsolete some of the flags I still rely on now and then.

> is the shell prompt in CMD and Powershell

Sure, I'll stick with CMD :slight_smile:

thanks, just to keep it as simple as possible.

these commands and CMD are as basic as it gets. very strange behavior?

maybe an issue with your command line parsing.
what is the output of echo %prompt%

can you post rclone config redacted

>echo %prompt%
$P$G
>rclone config redacted

[Regina]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =

[secure]
type = crypt
remote = Regina:secure
directory_name_encryption = false
password = XXX
password2 = XXX

i do not use rclone for local to local, but whenever i do, as in testing now, it always works fine.

what i am confused about is > being the prompt for cmd?
are you editing the output before you post?

then should see something like

C:\data\rclone>rclone lsd d:/
           0 2024-08-15 12:20:42        -1 zork

Uhh, yeah, It does have the directories preceding the prompt, but I thought it didn't make a difference sharing it here;

Well, If you want it:

H:\Backup Delta\E\rClone - v1.65.0>rclone lsd h:/
Enter configuration password:
password:
2024/08/16 01:45:13 ERROR : : error listing: directory not found
2024/08/16 01:45:13 Failed to lsd with 2 errors: last error was: directory not found

correct, just having a hard time understanding the root cause. so any minor thing might matter.
going foward, no need to share that.

There was indeed a known issue in v1.65 affecting listing local directories on Windows.

You should update, but if you reeeeeeally don't want to, you can probably get around it by manually building rclone v1.65 with go1.21.5 or later (as technically the source of the bug was go, not rclone.)

nice find.

can use my workaround, in the same topic as @nielash mentioned
1.65 fails listing local folders - #7 by asdffdsa

mklink /j d:\root c:\

type c:\file.ext
rclone rocks!

c:\data\rclone\rclone.exe cat d:\root\file.ext
rclone rocks!
1 Like

Yes, indeed. This is a pretty old issue, you could have saved much time/work...

Sure, I'll try building rclone v1.65.0 with the updated Go. :slight_smile:

Thanks a ton to everyone who pitched in!

Apologies if I took up your time. :frowning:

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