Rclone cat broken in v1.65 Windows

What is the problem you are having with rclone?

Hi,
My first bug here after using rclone for 3+ years. It's very simple to reproduce if Im not wrong. After updating several machines to v1.65 a simple "rclone cat" of a local file in Windows (any) says ERROR : : error listing: directory not found.
I checked several previous versions work as usual with just:

rclone.old.exe cat file

Also Linux does not look to have the problem.

Regards,
Manuel

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

rclone v1.65.0

  • os/version: Microsoft Windows Server 2012 R2 Standard (64 bit
  • os/kernel: 6.3.9600.20721 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.21.4
  • go/linking: static
  • go/tags: cmount

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 cat file

The rclone config contents with secrets removed.

No config. Just local cat
rclone cat file.ext -vv
2023/12/05 09:41:25 DEBUG : rclone: Version "v1.65.0" starting with parameters ["rclone" "cat" "file.ext" "-vv"]
2023/12/05 09:41:25 DEBUG : Creating backend with remote "file.ext"
2023/12/05 09:41:25 DEBUG : Using config file from "c:\\data\\rclone\\rclone.conf"
2023/12/05 09:41:25 DEBUG : fs cache: adding new entry for parent of "file.ext", "//?/c:/data/rclone"
rclone rocks!
2023/12/05 09:41:25 DEBUG : 3 go routines active

pls see here.

1 Like

yes, i am aware of that open issue.

you wrote that "rclone cat" of a local file in Windows (any) says ERROR
i have just shown that rclone cat works with v1.65.0

so far, you have not provided the exact command and full debug log???

rclone_1.64.2.exe cat nosuchfile.ext
2023/12/05 10:00:23 ERROR : : error listing: directory not found
2023/12/05 10:00:23 Failed to cat with 2 errors: last error was: directory not found

rclone_1.65.0.exe cat nosuchfile.ext
2023/12/05 10:03:03 ERROR : : error listing: directory not found
2023/12/05 10:03:03 Failed to cat with 2 errors: last error was: directory not found

for a given source path

  1. rclone checks to see if the path is a file.
  2. if the file does not exist, then rclone checks to see if the path is a directory.
  3. if the directory does not exist, then rclone errors with directory not found

if the file exists, then rclone will output
adding new entry for parent of "file.ext", "//?/c:/data/rclone"

if the file does not exist, then rclone will output
renaming cache item "nosuchfile.ext" to be canonical "//?/c:/data/rclone/nosuchfile.ext"

I suspect what might be broken is

rclone cat c:\file.ext

Which would be the issue already linked.

1 Like

sorry, i had tested that, it worked, but i did not post it.

c:\>c:\data\rclone\rclone.exe cat d:\zork\file.ext -vv
2023/12/05 11:05:41 DEBUG : rclone: Version "v1.65.0" starting with parameters ["c:\\data\\rclone\\rclone.exe" "cat" "d:\\zork\\file.ext" "-vv"]
2023/12/05 11:05:41 DEBUG : Creating backend with remote "d:\\zork\\file.ext"
2023/12/05 11:05:41 DEBUG : Using config file from "c:\\data\\rclone\\rclone.conf"
2023/12/05 11:05:41 DEBUG : fs cache: adding new entry for parent of "d:\\zork\\file.ext", "//?/d:/zork"
rclone rocks!

maybe the issue is when the path is on the root of the drive.
in any event, i guess we have to wait for the upstream fix.

The only place I saw it working (v1.65 of course) is when the file is where the binary.

Correction, ncw was right, it fails for files in the root folder. But that's where I most usually put them (sorry for that)

It makes sense "go" maybe the "culprit"

PS Z:> rclone.165.exe ls rc7.ps1 -vv 2023/12/05 17:22:01 DEBUG : rclone: Version "v1.65.0" starting with parameters ["C:\windows\rclone.165.exe" "ls" "rc7.ps1" "-vv"] 2023/12/05 17:22:01 DEBUG : Creating backend with remote "rc7.ps1" 2023/12/05 17:22:01 DEBUG : Using config file from "C:\windows\rclone.conf" 2023/12/05 17:22:01 DEBUG : fs cache: adding new entry for parent of "rc7.ps1", "//?/Z:" 2023/12/05 17:22:01 ERROR : : error listing: directory not found 2023/12/05 17:22:01 DEBUG : 2 go routines active 2023/12/05 17:22:01 Failed to ls with 2 errors: last error was: directory not found

Thanks everyone for finding out

In the other post, the root issue is already fixed in the beta.

This would be the same as cat doesn't matter, ls would produce the same result.

Update to the beta and test.

hi, i did not see that, where is that beta discussed?

in the meantime, as a workaround,

mklink /j d:\root c:\

E:\>type c:\file.ext
rclone rocks!

E:\>c:\data\rclone\rclone.exe cat d:\root\file.ext
rclone rocks!

I don't think this issue is fixed yet, we are waiting for go1.21.5 to be released which it hasn't been yet.

Mixing issues up.

check that bug introduced in go 1.21.4 is fixed in go 1.21.5 · Issue #7468 · rclone/rclone (github.com)

Point being, this is a duplicate of the issue already raised and the same thing.

1 Like

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