What is the problem you are having with rclone?
When moving a file in a mounted remote, the mv
command fails with File or Directory not found
.
What is your rclone version (output from rclone version
)
My main version is
rclone v1.56.0
- os/version: arch 21.2.0 (64 bit)
- os/kernel: 5.14.13-1-MANJARO (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.16.5
- go/linking: static
- go/tags: none
I tried also downgrading to 1.55.1
, using the current master (unfortunately, I didn't record the version number), and the "latest" beta v1.57.0-beta.5801.bb11803f1
.
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Manjaro 64bit (I can reproduce on Arch as well.)
Which cloud storage system are you using? (eg Google Drive)
premiumize.me
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
I have created the extra directory test/
and within two directories: test/OldDir
and test/NewDir
. I want to move the existing file test/OldDir/OldFile.bin
to test/NewFile/NewFile.bin
.
It worked at some point but downgrading doesn't help, so I guess PremiumizeMe changed something which need to be adapted.
rclone mount -vv --log-file ./from-mount.log premiumize:test ./mount
mv "mount/OldDir/OldFile.bin" "premiumize/NewDir/NewFile.bin"
mv
failes with
mv: cannot move 'OldDir/OldFile.bin' to 'NewDir/NewFile.bin': No such file or directory
Right after this failed attempt, the file OldDir/OldFile.bin
disappears from the mount directory but
after a short time (maybe a minute?) in the OldDir/
directory, the renamed file OldDir/NewFile.bin
appears.
The rclone config contents with secrets removed.
[premiumize]
type = premiumizeme
token = <redacted>
A log from the command with the -vv
flag
2021/10/26 20:17:48 DEBUG : rclone: Version "v1.56.0" starting with parameters ["rclone" "mount" "-vv" "--log-file" "./rclone.log" "premiumize:test" "./mount"]
2021/10/26 20:17:48 DEBUG : Creating backend with remote "premiumize:test"
2021/10/26 20:17:48 DEBUG : Using config file from "<my_config>"
2021/10/26 20:17:48 INFO : premiumize.me root 'test': poll-interval is not supported by this remote
2021/10/26 20:17:48 NOTICE: premiumize.me root 'test': --vfs-cache-mode writes or full is recommended for this remote as it can't stream
2021/10/26 20:17:48 DEBUG : premiumize.me root 'test': Mounting on "./mount"
2021/10/26 20:17:48 DEBUG : : Root:
2021/10/26 20:17:48 DEBUG : : >Root: node=/, err=<nil>
2021/10/26 20:17:48 DEBUG : /: Lookup: name=".Trash"
2021/10/26 20:17:48 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2021/10/26 20:17:48 DEBUG : /: Lookup: name=".Trash-60110"
2021/10/26 20:17:48 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2021/10/26 20:17:57 DEBUG : /: Attr:
2021/10/26 20:17:57 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/10/26 20:18:00 DEBUG : /: Attr:
2021/10/26 20:18:00 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/10/26 20:18:00 DEBUG : /: ReadDirAll:
2021/10/26 20:18:00 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/10/26 20:18:00 DEBUG : /: Lookup: name="NewDir"
2021/10/26 20:18:00 DEBUG : /: >Lookup: node=NewDir/, err=<nil>
2021/10/26 20:18:00 DEBUG : NewDir/: Attr:
2021/10/26 20:18:00 DEBUG : NewDir/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/10/26 20:18:00 DEBUG : /: Lookup: name="OldDir"
2021/10/26 20:18:00 DEBUG : /: >Lookup: node=OldDir/, err=<nil>
2021/10/26 20:18:00 DEBUG : OldDir/: Attr:
2021/10/26 20:18:00 DEBUG : OldDir/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/10/26 20:18:00 DEBUG : NewDir/: ReadDirAll:
2021/10/26 20:18:00 DEBUG : NewDir/: >ReadDirAll: item=2, err=<nil>
2021/10/26 20:18:00 DEBUG : OldDir/: ReadDirAll:
2021/10/26 20:18:00 DEBUG : OldDir/: >ReadDirAll: item=3, err=<nil>
2021/10/26 20:18:00 DEBUG : OldDir/: Lookup: name="OldFile.bin"
2021/10/26 20:18:00 DEBUG : OldDir/: >Lookup: node=OldDir/OldFile.bin, err=<nil>
2021/10/26 20:18:00 DEBUG : OldDir/OldFile.bin: Attr:
2021/10/26 20:18:00 DEBUG : OldDir/OldFile.bin: >Attr: a=valid=1s ino=0 size=5242880 mode=-rw-r--r--, err=<nil>
2021/10/26 20:18:15 DEBUG : /: Lookup: name="OldDir"
2021/10/26 20:18:15 DEBUG : /: >Lookup: node=OldDir/, err=<nil>
2021/10/26 20:18:15 DEBUG : OldDir/: Attr:
2021/10/26 20:18:15 DEBUG : OldDir/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/10/26 20:18:15 DEBUG : /: Lookup: name="NewDir"
2021/10/26 20:18:15 DEBUG : /: >Lookup: node=NewDir/, err=<nil>
2021/10/26 20:18:15 DEBUG : NewDir/: Attr:
2021/10/26 20:18:15 DEBUG : NewDir/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/10/26 20:18:15 DEBUG : OldDir/: Lookup: name="OldFile.bin"
2021/10/26 20:18:15 DEBUG : OldDir/: >Lookup: node=OldDir/OldFile.bin, err=<nil>
2021/10/26 20:18:15 DEBUG : OldDir/OldFile.bin: Attr:
2021/10/26 20:18:15 DEBUG : OldDir/OldFile.bin: >Attr: a=valid=1s ino=0 size=5242880 mode=-rw-r--r--, err=<nil>
2021/10/26 20:18:15 DEBUG : NewDir/: Lookup: name="NewFile.bin"
2021/10/26 20:18:15 DEBUG : NewDir/: >Lookup: node=<nil>, err=no such file or directory
2021/10/26 20:18:15 DEBUG : NewDir/: Lookup: name="NewFile.bin"
2021/10/26 20:18:15 DEBUG : NewDir/: >Lookup: node=<nil>, err=no such file or directory
2021/10/26 20:18:15 DEBUG : NewDir/: Lookup: name="NewFile.bin"
2021/10/26 20:18:15 DEBUG : NewDir/: >Lookup: node=<nil>, err=no such file or directory
2021/10/26 20:18:15 DEBUG : OldDir/: Rename: oldName="OldFile.bin", newName="NewFile.bin", newDir=NewDir/
2021/10/26 20:18:16 ERROR : OldDir/OldFile.bin: Couldn't move: object not found
2021/10/26 20:18:16 ERROR : NewDir/NewFile.bin: File.Rename error: object not found
2021/10/26 20:18:16 ERROR : OldDir/OldFile.bin: Dir.Rename error: object not found
2021/10/26 20:18:16 DEBUG : OldDir/: >Rename: err=no such file or directory
2021/10/26 20:18:16 DEBUG : NewDir/: Lookup: name="NewFile.bin"
2021/10/26 20:18:16 DEBUG : NewDir/: >Lookup: node=<nil>, err=no such file or directory
2021/10/26 20:18:16 DEBUG : NewDir/: Lookup: name="NewFile.bin"
2021/10/26 20:18:16 DEBUG : NewDir/: >Lookup: node=<nil>, err=no such file or directory
2021/10/26 20:21:01 DEBUG : /: Attr:
2021/10/26 20:21:01 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/10/26 20:21:01 DEBUG : /: ReadDirAll:
2021/10/26 20:21:01 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2021/10/26 20:21:01 DEBUG : /: Lookup: name="NewDir"
2021/10/26 20:21:01 DEBUG : /: >Lookup: node=NewDir/, err=<nil>
2021/10/26 20:21:01 DEBUG : NewDir/: Attr:
2021/10/26 20:21:01 DEBUG : NewDir/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/10/26 20:21:01 DEBUG : /: Lookup: name="OldDir"
2021/10/26 20:21:01 DEBUG : /: >Lookup: node=OldDir/, err=<nil>
2021/10/26 20:21:01 DEBUG : OldDir/: Attr:
2021/10/26 20:21:01 DEBUG : OldDir/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/10/26 20:21:01 DEBUG : NewDir/: ReadDirAll:
2021/10/26 20:21:01 DEBUG : NewDir/: >ReadDirAll: item=2, err=<nil>
2021/10/26 20:21:01 DEBUG : OldDir/: ReadDirAll:
2021/10/26 20:21:01 DEBUG : OldDir/: >ReadDirAll: item=3, err=<nil>
2021/10/26 20:21:01 DEBUG : OldDir/: Lookup: name="NewFile.bin"
2021/10/26 20:21:01 DEBUG : OldDir/: >Lookup: node=<nil>, err=no such file or directory
2021/10/26 20:22:11 DEBUG : /: Attr:
2021/10/26 20:22:11 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>