"./vfs.test -test.v -test.timeout 1h0m0s -remote TestMega: -verbose -test.run '^(TestDirRemove|TestFileMethods|TestFileRemove|TestRWFileHandleMethodsWrite|TestRWFileHandleReleaseRead|TestReadFileHandleFlush|TestReadFileHandleReadAt|TestVFSOpenFile|TestWriteFileHandleMethods)$|^TestFileRename$/^(full,forceCache=false|minimal,forceCache=false|minimal,forceCache=true|off,forceCache=false|writes,forceCache=false|writes,forceCache=true)$'" - Starting (try 5/5) 2026/07/09 06:04:50 DEBUG : Creating backend with remote "TestMega:rclone-test-qalonaz8zele" 2026/07/09 06:04:50 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2026/07/09 06:04:50 DEBUG : mega root 'rclone-test-qalonaz8zele': Using previously stored session ID and master key to initialize the Mega API 2026/07/09 06:05:08 DEBUG : Creating backend with remote "/tmp/rclone1247823292" === RUN TestDirRemove run.go:198: Remote "mega root 'rclone-test-qalonaz8zele'", Local "Local file system at /tmp/rclone1247823292", Modify Window "876000h0m0s" 2026/07/09 06:05:08 INFO : mega root 'rclone-test-qalonaz8zele': poll-interval is not supported by this remote 2026/07/09 06:05:08 NOTICE: mega root 'rclone-test-qalonaz8zele': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2026/07/09 06:05:14 ERROR : dir/: Dir.Remove not empty 2026/07/09 06:05:14 DEBUG : dir/file1: Remove: 2026/07/09 06:05:14 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/07/09 06:05:14 DEBUG : dir/file1: >Remove: err= 2026/07/09 06:05:14 DEBUG : Added virtual directory entry vDel: "dir" 2026/07/09 06:05:14 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:05:14 DEBUG : Looking for writers 2026/07/09 06:05:14 DEBUG : >WaitForWriters: --- PASS: TestDirRemove (5.78s) === RUN TestFileMethods run.go:198: Remote "mega root 'rclone-test-qalonaz8zele'", Local "Local file system at /tmp/rclone1247823292", Modify Window "876000h0m0s" 2026/07/09 06:05:14 INFO : mega root 'rclone-test-qalonaz8zele': poll-interval is not supported by this remote 2026/07/09 06:05:14 NOTICE: mega root 'rclone-test-qalonaz8zele': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2026/07/09 06:05:14 DEBUG : dir/file1: Set virtual modtime to 2026-07-09 06:05:14 +0000 UTC 2026/07/09 06:05:14 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:05:14 DEBUG : dir: Looking for writers 2026/07/09 06:05:14 DEBUG : file1: reading active writers 2026/07/09 06:05:14 DEBUG : Looking for writers 2026/07/09 06:05:14 DEBUG : dir: reading active writers 2026/07/09 06:05:14 DEBUG : >WaitForWriters: --- PASS: TestFileMethods (11.60s) === RUN TestFileRemove run.go:198: Remote "mega root 'rclone-test-qalonaz8zele'", Local "Local file system at /tmp/rclone1247823292", Modify Window "876000h0m0s" 2026/07/09 06:05:26 INFO : mega root 'rclone-test-qalonaz8zele': poll-interval is not supported by this remote 2026/07/09 06:05:26 NOTICE: mega root 'rclone-test-qalonaz8zele': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2026/07/09 06:05:26 DEBUG : dir/file1: Remove: 2026/07/09 06:05:26 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/07/09 06:05:26 DEBUG : dir/file1: >Remove: err= 2026/07/09 06:05:26 DEBUG : dir/file1: Remove: 2026/07/09 06:05:26 DEBUG : dir/file1: >Remove: err=Read only file system 2026/07/09 06:05:26 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:05:26 DEBUG : dir: Looking for writers 2026/07/09 06:05:26 DEBUG : Looking for writers 2026/07/09 06:05:26 DEBUG : dir: reading active writers 2026/07/09 06:05:26 DEBUG : >WaitForWriters: --- PASS: TestFileRemove (0.72s) === RUN TestFileRename === RUN TestFileRename/off,forceCache=false run.go:198: Remote "mega root 'rclone-test-qalonaz8zele'", Local "Local file system at /tmp/rclone1247823292", Modify Window "876000h0m0s" 2026/07/09 06:05:27 INFO : mega root 'rclone-test-qalonaz8zele': poll-interval is not supported by this remote 2026/07/09 06:05:27 NOTICE: mega root 'rclone-test-qalonaz8zele': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2026/07/09 06:05:27 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:05:27 DEBUG : dir: Looking for writers 2026/07/09 06:05:27 DEBUG : file1: reading active writers 2026/07/09 06:05:27 DEBUG : Looking for writers 2026/07/09 06:05:27 DEBUG : dir: reading active writers 2026/07/09 06:05:27 DEBUG : >WaitForWriters: 2026/07/09 06:05:27 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/07/09 06:05:27 DEBUG : newLeaf: Updating file with newLeaf 0x787970365b0 2026/07/09 06:05:27 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/07/09 06:05:27 DEBUG : Added virtual directory entry vAddFile: "newLeaf" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:301: Flushing the directory cache fstest.go:305: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:305 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:358 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 /usr/local/go/src/runtime/asm_amd64.s:1771 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:358 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "file1" 2026/07/09 06:05:35 INFO : newLeaf: Moved (server-side) to: dir/file1 2026/07/09 06:05:35 DEBUG : dir/file1: Updating file with dir/file1 0x787970365b0 2026/07/09 06:05:35 DEBUG : Added virtual directory entry vDel: "newLeaf" 2026/07/09 06:05:35 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:301: Flushing the directory cache fstest.go:305: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:305 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:358 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 /usr/local/go/src/runtime/asm_amd64.s:1771 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (14) fstest.go:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:358 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:358 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "dir/file1" 2026/07/09 06:05:42 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2026/07/09 06:05:42 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2026/07/09 06:05:42 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/07/09 06:05:42 DEBUG : dir/file1: File is currently open, delaying rename 0x787970365b0 2026/07/09 06:05:42 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/07/09 06:05:42 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/07/09 06:05:42 DEBUG : mega root 'rclone-test-qalonaz8zele': File to upload is small (25 bytes), uploading instead of streaming 2026/07/09 06:05:42 DEBUG : dir/file1: size = 25 OK 2026/07/09 06:05:42 NOTICE: mega root 'rclone-test-qalonaz8zele': --checksum is in use but the source and destination have no hashes in common; falling back to --size-only 2026/07/09 06:05:42 DEBUG : dir/file1: Size of src and dst objects identical 2026/07/09 06:05:42 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/07/09 06:05:42 DEBUG : newLeaf: Running delayed rename now 2026/07/09 06:05:42 INFO : newLeaf: Deleted 2026/07/09 06:05:43 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/07/09 06:05:43 DEBUG : newLeaf: Updating file with newLeaf 0x787970365b0 2026/07/09 06:05:43 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:05:43 DEBUG : dir: Looking for writers 2026/07/09 06:05:43 DEBUG : Looking for writers 2026/07/09 06:05:43 DEBUG : dir: reading active writers 2026/07/09 06:05:43 DEBUG : newLeaf: reading active writers 2026/07/09 06:05:43 DEBUG : >WaitForWriters: 2026/07/09 06:05:43 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:05:43 DEBUG : dir: Looking for writers 2026/07/09 06:05:43 DEBUG : Looking for writers 2026/07/09 06:05:43 DEBUG : dir: reading active writers 2026/07/09 06:05:43 DEBUG : newLeaf: reading active writers 2026/07/09 06:05:43 DEBUG : >WaitForWriters: === RUN TestFileRename/minimal,forceCache=false run.go:198: Remote "mega root 'rclone-test-qalonaz8zele'", Local "Local file system at /tmp/rclone1247823292", Modify Window "876000h0m0s" 2026/07/09 06:05:43 INFO : mega root 'rclone-test-qalonaz8zele': poll-interval is not supported by this remote 2026/07/09 06:05:43 NOTICE: mega root 'rclone-test-qalonaz8zele': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2026/07/09 06:05:43 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: root is "/home/rclone/.cache/rclone" 2026/07/09 06:05:43 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:05:43 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:05:43 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:05:43 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/07/09 06:05:43 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:05:43 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:05:43 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/07/09 06:05:43 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:05:43 INFO : mega root 'rclone-test-qalonaz8zele': vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2026/07/09 06:05:43 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:05:43 DEBUG : dir: Looking for writers 2026/07/09 06:05:43 DEBUG : file1: reading active writers 2026/07/09 06:05:43 DEBUG : Looking for writers 2026/07/09 06:05:43 DEBUG : dir: reading active writers 2026/07/09 06:05:43 DEBUG : >WaitForWriters: 2026/07/09 06:05:44 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/07/09 06:05:44 DEBUG : newLeaf: Updating file with newLeaf 0x787971aa270 2026/07/09 06:05:44 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/07/09 06:05:44 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/07/09 06:05:50 INFO : newLeaf: Moved (server-side) to: dir/file1 2026/07/09 06:05:50 DEBUG : dir/file1: Updating file with dir/file1 0x787971aa270 2026/07/09 06:05:50 DEBUG : Added virtual directory entry vDel: "newLeaf" 2026/07/09 06:05:50 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:301: Flushing the directory cache fstest.go:305: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:305 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:358 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 /usr/local/go/src/runtime/asm_amd64.s:1771 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:358 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "dir/file1" 2026/07/09 06:05:57 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2026/07/09 06:05:57 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2026/07/09 06:05:57 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/07/09 06:05:57 DEBUG : dir/file1: File is currently open, delaying rename 0x787971aa270 2026/07/09 06:05:57 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/07/09 06:05:57 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/07/09 06:05:57 DEBUG : mega root 'rclone-test-qalonaz8zele': File to upload is small (25 bytes), uploading instead of streaming 2026/07/09 06:06:03 DEBUG : dir/file1: size = 25 OK 2026/07/09 06:06:03 DEBUG : dir/file1: Size of src and dst objects identical 2026/07/09 06:06:03 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/07/09 06:06:03 DEBUG : newLeaf: Running delayed rename now 2026/07/09 06:06:06 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/07/09 06:06:06 DEBUG : newLeaf: Updating file with newLeaf 0x787971aa270 2026/07/09 06:06:06 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:06:06 DEBUG : dir: Looking for writers 2026/07/09 06:06:06 DEBUG : Looking for writers 2026/07/09 06:06:06 DEBUG : dir: reading active writers 2026/07/09 06:06:06 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:06 DEBUG : >WaitForWriters: 2026/07/09 06:06:06 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:06:06 DEBUG : dir: Looking for writers 2026/07/09 06:06:06 DEBUG : Looking for writers 2026/07/09 06:06:06 DEBUG : dir: reading active writers 2026/07/09 06:06:06 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:06 DEBUG : >WaitForWriters: 2026/07/09 06:06:06 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: cleaner exiting === RUN TestFileRename/minimal,forceCache=true run.go:198: Remote "mega root 'rclone-test-qalonaz8zele'", Local "Local file system at /tmp/rclone1247823292", Modify Window "876000h0m0s" 2026/07/09 06:06:06 INFO : mega root 'rclone-test-qalonaz8zele': poll-interval is not supported by this remote 2026/07/09 06:06:06 NOTICE: mega root 'rclone-test-qalonaz8zele': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2026/07/09 06:06:06 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: root is "/home/rclone/.cache/rclone" 2026/07/09 06:06:06 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:06:06 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:06:06 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:06:06 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/07/09 06:06:06 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:06:06 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:06:06 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/07/09 06:06:06 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:06:06 INFO : mega root 'rclone-test-qalonaz8zele': vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2026/07/09 06:06:07 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2026/07/09 06:06:07 DEBUG : dir/file1: newRWFileHandle: 2026/07/09 06:06:07 DEBUG : dir/file1(0x7879744e580): openPending: 2026/07/09 06:06:07 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2026/07/09 06:06:07 DEBUG : dir/file1: vfs cache: truncate to size=14 2026/07/09 06:06:07 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/07/09 06:06:07 DEBUG : dir/file1(0x7879744e580): >openPending: err= 2026/07/09 06:06:07 DEBUG : dir/file1: vfs cache: truncate to size=0 2026/07/09 06:06:07 DEBUG : dir/file1: >newRWFileHandle: err= 2026/07/09 06:06:07 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/07/09 06:06:07 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/07/09 06:06:07 DEBUG : dir/file1(0x7879744e580): _writeAt: size=14, off=0 2026/07/09 06:06:07 DEBUG : dir/file1(0x7879744e580): >_writeAt: n=14, err= 2026/07/09 06:06:07 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2026/07/09 06:06:07 DEBUG : dir/file1(0x7879744e580): close: 2026/07/09 06:06:07 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2026/07/09 06:06:07 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2026/07/09 06:06:07 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2026/07/09 06:06:07 DEBUG : dir/file1(0x7879744e580): >close: err= 2026/07/09 06:06:07 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:06:07 DEBUG : dir: Looking for writers 2026/07/09 06:06:07 DEBUG : file1: reading active writers 2026/07/09 06:06:07 DEBUG : Looking for writers 2026/07/09 06:06:07 DEBUG : dir: reading active writers 2026/07/09 06:06:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2026/07/09 06:06:07 DEBUG : dir: Looking for writers 2026/07/09 06:06:07 DEBUG : file1: reading active writers 2026/07/09 06:06:07 DEBUG : Looking for writers 2026/07/09 06:06:07 DEBUG : dir: reading active writers 2026/07/09 06:06:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2026/07/09 06:06:07 DEBUG : dir: Looking for writers 2026/07/09 06:06:07 DEBUG : file1: reading active writers 2026/07/09 06:06:07 DEBUG : Looking for writers 2026/07/09 06:06:07 DEBUG : dir: reading active writers 2026/07/09 06:06:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2026/07/09 06:06:07 DEBUG : dir: Looking for writers 2026/07/09 06:06:07 DEBUG : file1: reading active writers 2026/07/09 06:06:07 DEBUG : Looking for writers 2026/07/09 06:06:07 DEBUG : dir: reading active writers 2026/07/09 06:06:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2026/07/09 06:06:07 DEBUG : dir/file1: vfs cache: starting upload 2026/07/09 06:06:07 DEBUG : dir: Looking for writers 2026/07/09 06:06:07 DEBUG : file1: reading active writers 2026/07/09 06:06:07 DEBUG : Looking for writers 2026/07/09 06:06:07 DEBUG : dir: reading active writers 2026/07/09 06:06:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2026/07/09 06:06:07 DEBUG : dir: Looking for writers 2026/07/09 06:06:07 DEBUG : file1: reading active writers 2026/07/09 06:06:07 DEBUG : Looking for writers 2026/07/09 06:06:07 DEBUG : dir: reading active writers 2026/07/09 06:06:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2026/07/09 06:06:07 DEBUG : dir/file1: size = 14 OK 2026/07/09 06:06:07 INFO : dir/file1: Copied (replaced existing) 2026/07/09 06:06:07 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2026/07/09 06:06:07 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2026/07/09 06:06:07 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/07/09 06:06:07 INFO : dir/file1: vfs cache: upload succeeded try #1 2026/07/09 06:06:07 DEBUG : dir: Looking for writers 2026/07/09 06:06:07 DEBUG : file1: reading active writers 2026/07/09 06:06:07 DEBUG : Looking for writers 2026/07/09 06:06:07 DEBUG : dir: reading active writers 2026/07/09 06:06:07 DEBUG : >WaitForWriters: 2026/07/09 06:06:07 DEBUG : dir/file1: Open: flags=O_RDONLY 2026/07/09 06:06:07 DEBUG : dir/file1: newRWFileHandle: 2026/07/09 06:06:07 DEBUG : dir/file1: >newRWFileHandle: err= 2026/07/09 06:06:07 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/07/09 06:06:07 DEBUG : dir/file1(0x787911606c0): _readAt: size=512, off=0 2026/07/09 06:06:07 DEBUG : dir/file1(0x787911606c0): openPending: 2026/07/09 06:06:07 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2026/07/09 06:06:07 DEBUG : dir/file1: vfs cache: truncate to size=14 (not needed as size correct) 2026/07/09 06:06:07 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/07/09 06:06:07 DEBUG : dir/file1(0x787911606c0): >openPending: err= 2026/07/09 06:06:07 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2026/07/09 06:06:07 DEBUG : dir/file1(0x787911606c0): >_readAt: n=14, err=EOF 2026/07/09 06:06:07 DEBUG : dir/file1(0x787911606c0): close: 2026/07/09 06:06:07 DEBUG : dir/file1(0x787911606c0): >close: err= 2026/07/09 06:06:07 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/07/09 06:06:07 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2026/07/09 06:06:07 DEBUG : newLeaf: Updating file with newLeaf 0x78790e6a680 2026/07/09 06:06:07 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/07/09 06:06:07 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/07/09 06:06:10 INFO : newLeaf: Moved (server-side) to: dir/file1 2026/07/09 06:06:10 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2026/07/09 06:06:10 DEBUG : dir/file1: Updating file with dir/file1 0x78790e6a680 2026/07/09 06:06:10 DEBUG : Added virtual directory entry vDel: "newLeaf" 2026/07/09 06:06:10 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 2s for list eventual consistency: 2/3 2026/07/09 06:06:12 DEBUG : dir/file1: vfs cache: setting modification time to 2026-07-09 06:06:07 +0000 UTC fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:301: Flushing the directory cache fstest.go:305: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:305 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:358 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 /usr/local/go/src/runtime/asm_amd64.s:1771 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:358 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: Unexpected file "dir/file1" 2026/07/09 06:06:17 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2026/07/09 06:06:17 DEBUG : dir/file1: newRWFileHandle: 2026/07/09 06:06:17 DEBUG : dir/file1(0x787911619c0): openPending: 2026/07/09 06:06:17 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2026/07/09 06:06:17 DEBUG : dir/file1: vfs cache: truncate to size=14 (not needed as size correct) 2026/07/09 06:06:17 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/07/09 06:06:17 DEBUG : dir/file1(0x787911619c0): >openPending: err= 2026/07/09 06:06:17 DEBUG : dir/file1: vfs cache: truncate to size=0 2026/07/09 06:06:17 DEBUG : dir/file1: >newRWFileHandle: err= 2026/07/09 06:06:17 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/07/09 06:06:17 DEBUG : dir/file1(0x787911619c0): _writeAt: size=25, off=0 2026/07/09 06:06:17 DEBUG : dir/file1(0x787911619c0): >_writeAt: n=25, err= 2026/07/09 06:06:18 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/07/09 06:06:18 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2026/07/09 06:06:18 DEBUG : newLeaf: Updating file with newLeaf 0x78790e6a680 2026/07/09 06:06:18 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/07/09 06:06:18 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/07/09 06:06:18 DEBUG : newLeaf(0x787911619c0): close: 2026/07/09 06:06:18 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2026/07/09 06:06:18 DEBUG : newLeaf: vfs cache: setting modification time to 2026-07-09 06:06:17.079730484 +0000 UTC m=+86.276815055 2026/07/09 06:06:18 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2026/07/09 06:06:18 DEBUG : newLeaf(0x787911619c0): >close: err= 2026/07/09 06:06:18 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:06:18 DEBUG : dir: Looking for writers 2026/07/09 06:06:18 DEBUG : Looking for writers 2026/07/09 06:06:18 DEBUG : dir: reading active writers 2026/07/09 06:06:18 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:18 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2026/07/09 06:06:18 DEBUG : dir: Looking for writers 2026/07/09 06:06:18 DEBUG : Looking for writers 2026/07/09 06:06:18 DEBUG : dir: reading active writers 2026/07/09 06:06:18 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:18 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2026/07/09 06:06:18 DEBUG : dir: Looking for writers 2026/07/09 06:06:18 DEBUG : Looking for writers 2026/07/09 06:06:18 DEBUG : dir: reading active writers 2026/07/09 06:06:18 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:18 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2026/07/09 06:06:18 DEBUG : dir: Looking for writers 2026/07/09 06:06:18 DEBUG : Looking for writers 2026/07/09 06:06:18 DEBUG : dir: reading active writers 2026/07/09 06:06:18 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:18 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2026/07/09 06:06:18 DEBUG : newLeaf: vfs cache: starting upload 2026/07/09 06:06:18 DEBUG : dir: Looking for writers 2026/07/09 06:06:18 DEBUG : Looking for writers 2026/07/09 06:06:18 DEBUG : dir: reading active writers 2026/07/09 06:06:18 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:18 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2026/07/09 06:06:18 DEBUG : dir: Looking for writers 2026/07/09 06:06:18 DEBUG : Looking for writers 2026/07/09 06:06:18 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:18 DEBUG : dir: reading active writers 2026/07/09 06:06:18 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2026/07/09 06:06:18 DEBUG : dir: Looking for writers 2026/07/09 06:06:18 DEBUG : Looking for writers 2026/07/09 06:06:18 DEBUG : dir: reading active writers 2026/07/09 06:06:18 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:18 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2026/07/09 06:06:19 DEBUG : dir: Looking for writers 2026/07/09 06:06:19 DEBUG : Looking for writers 2026/07/09 06:06:19 DEBUG : dir: reading active writers 2026/07/09 06:06:19 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:19 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/07/09 06:06:20 DEBUG : dir: Looking for writers 2026/07/09 06:06:20 DEBUG : Looking for writers 2026/07/09 06:06:20 DEBUG : dir: reading active writers 2026/07/09 06:06:20 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:20 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/07/09 06:06:21 DEBUG : dir: Looking for writers 2026/07/09 06:06:21 DEBUG : Looking for writers 2026/07/09 06:06:21 DEBUG : dir: reading active writers 2026/07/09 06:06:21 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:21 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/07/09 06:06:22 DEBUG : dir: Looking for writers 2026/07/09 06:06:22 DEBUG : Looking for writers 2026/07/09 06:06:22 DEBUG : dir: reading active writers 2026/07/09 06:06:22 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:22 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/07/09 06:06:23 DEBUG : dir: Looking for writers 2026/07/09 06:06:23 DEBUG : Looking for writers 2026/07/09 06:06:23 DEBUG : dir: reading active writers 2026/07/09 06:06:23 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:23 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/07/09 06:06:24 DEBUG : dir: Looking for writers 2026/07/09 06:06:24 DEBUG : Looking for writers 2026/07/09 06:06:24 DEBUG : dir: reading active writers 2026/07/09 06:06:24 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:24 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/07/09 06:06:25 DEBUG : dir: Looking for writers 2026/07/09 06:06:25 DEBUG : Looking for writers 2026/07/09 06:06:25 DEBUG : dir: reading active writers 2026/07/09 06:06:25 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:25 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/07/09 06:06:26 DEBUG : dir: Looking for writers 2026/07/09 06:06:26 DEBUG : Looking for writers 2026/07/09 06:06:26 DEBUG : dir: reading active writers 2026/07/09 06:06:26 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/07/09 06:06:27 DEBUG : newLeaf: size = 25 OK 2026/07/09 06:06:27 INFO : newLeaf: Copied (replaced existing) 2026/07/09 06:06:27 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2026/07/09 06:06:27 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2026/07/09 06:06:27 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/07/09 06:06:27 INFO : newLeaf: vfs cache: upload succeeded try #1 2026/07/09 06:06:27 DEBUG : dir: Looking for writers 2026/07/09 06:06:27 DEBUG : Looking for writers 2026/07/09 06:06:27 DEBUG : dir: reading active writers 2026/07/09 06:06:27 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:27 DEBUG : >WaitForWriters: 2026/07/09 06:06:27 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:06:27 DEBUG : dir: Looking for writers 2026/07/09 06:06:27 DEBUG : Looking for writers 2026/07/09 06:06:27 DEBUG : dir: reading active writers 2026/07/09 06:06:27 DEBUG : newLeaf: reading active writers 2026/07/09 06:06:27 DEBUG : >WaitForWriters: 2026/07/09 06:06:27 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=false run.go:198: Remote "mega root 'rclone-test-qalonaz8zele'", Local "Local file system at /tmp/rclone1247823292", Modify Window "876000h0m0s" 2026/07/09 06:06:39 INFO : mega root 'rclone-test-qalonaz8zele': poll-interval is not supported by this remote 2026/07/09 06:06:39 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: root is "/home/rclone/.cache/rclone" 2026/07/09 06:06:39 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:06:39 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:06:39 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:06:39 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/07/09 06:06:39 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:06:39 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:06:39 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/07/09 06:06:39 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:06:39 INFO : mega root 'rclone-test-qalonaz8zele': vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2026/07/09 06:06:42 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:06:42 DEBUG : dir: Looking for writers 2026/07/09 06:06:42 DEBUG : file1: reading active writers 2026/07/09 06:06:42 DEBUG : Looking for writers 2026/07/09 06:06:42 DEBUG : dir: reading active writers 2026/07/09 06:06:42 DEBUG : >WaitForWriters: 2026/07/09 06:06:43 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/07/09 06:06:43 DEBUG : newLeaf: Updating file with newLeaf 0x78797378750 2026/07/09 06:06:43 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/07/09 06:06:43 DEBUG : Added virtual directory entry vAddFile: "newLeaf" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:301: Flushing the directory cache fstest.go:305: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:305 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:358 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 /usr/local/go/src/runtime/asm_amd64.s:1771 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:358 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "file1" 2026/07/09 06:06:52 INFO : newLeaf: Moved (server-side) to: dir/file1 2026/07/09 06:06:52 DEBUG : dir/file1: Updating file with dir/file1 0x78797378750 2026/07/09 06:06:52 DEBUG : Added virtual directory entry vDel: "newLeaf" 2026/07/09 06:06:52 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:301: Flushing the directory cache fstest.go:305: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:305 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:358 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 /usr/local/go/src/runtime/asm_amd64.s:1771 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (14) fstest.go:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:358 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:358 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "dir/file1" 2026/07/09 06:06:59 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2026/07/09 06:06:59 DEBUG : dir/file1: newRWFileHandle: 2026/07/09 06:06:59 DEBUG : dir/file1(0x7879130a040): openPending: 2026/07/09 06:06:59 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2026/07/09 06:06:59 DEBUG : dir/file1: vfs cache: truncate to size=14 2026/07/09 06:06:59 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/07/09 06:06:59 DEBUG : dir/file1(0x7879130a040): >openPending: err= 2026/07/09 06:06:59 DEBUG : dir/file1: vfs cache: truncate to size=0 2026/07/09 06:06:59 DEBUG : dir/file1: >newRWFileHandle: err= 2026/07/09 06:06:59 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/07/09 06:06:59 DEBUG : dir/file1(0x7879130a040): _writeAt: size=25, off=0 2026/07/09 06:06:59 DEBUG : dir/file1(0x7879130a040): >_writeAt: n=25, err= 2026/07/09 06:07:03 INFO : newLeaf: Deleted 2026/07/09 06:07:03 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/07/09 06:07:03 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2026/07/09 06:07:03 DEBUG : newLeaf: Updating file with newLeaf 0x78797378750 2026/07/09 06:07:03 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/07/09 06:07:03 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/07/09 06:07:03 DEBUG : newLeaf(0x7879130a040): close: 2026/07/09 06:07:03 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2026/07/09 06:07:03 DEBUG : newLeaf: vfs cache: setting modification time to 2026-07-09 06:06:59.77327242 +0000 UTC m=+128.970357011 2026/07/09 06:07:03 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2026/07/09 06:07:03 DEBUG : newLeaf(0x7879130a040): >close: err= 2026/07/09 06:07:03 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:07:03 DEBUG : dir: Looking for writers 2026/07/09 06:07:03 DEBUG : Looking for writers 2026/07/09 06:07:03 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:03 DEBUG : dir: reading active writers 2026/07/09 06:07:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2026/07/09 06:07:03 DEBUG : dir: Looking for writers 2026/07/09 06:07:03 DEBUG : Looking for writers 2026/07/09 06:07:03 DEBUG : dir: reading active writers 2026/07/09 06:07:03 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2026/07/09 06:07:03 DEBUG : dir: Looking for writers 2026/07/09 06:07:03 DEBUG : Looking for writers 2026/07/09 06:07:03 DEBUG : dir: reading active writers 2026/07/09 06:07:03 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2026/07/09 06:07:03 DEBUG : dir: Looking for writers 2026/07/09 06:07:03 DEBUG : Looking for writers 2026/07/09 06:07:03 DEBUG : dir: reading active writers 2026/07/09 06:07:03 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2026/07/09 06:07:03 DEBUG : newLeaf: vfs cache: starting upload 2026/07/09 06:07:03 DEBUG : dir: Looking for writers 2026/07/09 06:07:03 DEBUG : Looking for writers 2026/07/09 06:07:03 DEBUG : dir: reading active writers 2026/07/09 06:07:03 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2026/07/09 06:07:03 DEBUG : dir: Looking for writers 2026/07/09 06:07:03 DEBUG : Looking for writers 2026/07/09 06:07:03 DEBUG : dir: reading active writers 2026/07/09 06:07:03 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2026/07/09 06:07:04 DEBUG : dir: Looking for writers 2026/07/09 06:07:04 DEBUG : Looking for writers 2026/07/09 06:07:04 DEBUG : dir: reading active writers 2026/07/09 06:07:04 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2026/07/09 06:07:04 DEBUG : newLeaf: size = 25 OK 2026/07/09 06:07:04 INFO : newLeaf: Copied (replaced existing) 2026/07/09 06:07:04 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2026/07/09 06:07:04 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2026/07/09 06:07:04 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/07/09 06:07:04 INFO : newLeaf: vfs cache: upload succeeded try #1 2026/07/09 06:07:04 DEBUG : dir: Looking for writers 2026/07/09 06:07:04 DEBUG : Looking for writers 2026/07/09 06:07:04 DEBUG : dir: reading active writers 2026/07/09 06:07:04 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:04 DEBUG : >WaitForWriters: 2026/07/09 06:07:04 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:07:04 DEBUG : dir: Looking for writers 2026/07/09 06:07:04 DEBUG : Looking for writers 2026/07/09 06:07:04 DEBUG : dir: reading active writers 2026/07/09 06:07:04 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:04 DEBUG : >WaitForWriters: 2026/07/09 06:07:04 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=true run.go:198: Remote "mega root 'rclone-test-qalonaz8zele'", Local "Local file system at /tmp/rclone1247823292", Modify Window "876000h0m0s" 2026/07/09 06:07:05 INFO : mega root 'rclone-test-qalonaz8zele': poll-interval is not supported by this remote 2026/07/09 06:07:05 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: root is "/home/rclone/.cache/rclone" 2026/07/09 06:07:05 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:07:05 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:07:05 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:07:05 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/07/09 06:07:05 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:07:05 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:07:05 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/07/09 06:07:05 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:07:05 INFO : mega root 'rclone-test-qalonaz8zele': vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2026/07/09 06:07:06 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2026/07/09 06:07:06 DEBUG : dir/file1: newRWFileHandle: 2026/07/09 06:07:06 DEBUG : dir/file1(0x787912c9b00): openPending: 2026/07/09 06:07:06 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2026/07/09 06:07:06 DEBUG : dir/file1: vfs cache: truncate to size=14 2026/07/09 06:07:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/07/09 06:07:06 DEBUG : dir/file1(0x787912c9b00): >openPending: err= 2026/07/09 06:07:06 DEBUG : dir/file1: vfs cache: truncate to size=0 2026/07/09 06:07:06 DEBUG : dir/file1: >newRWFileHandle: err= 2026/07/09 06:07:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/07/09 06:07:06 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/07/09 06:07:06 DEBUG : dir/file1(0x787912c9b00): _writeAt: size=14, off=0 2026/07/09 06:07:06 DEBUG : dir/file1(0x787912c9b00): >_writeAt: n=14, err= 2026/07/09 06:07:06 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2026/07/09 06:07:06 DEBUG : dir/file1(0x787912c9b00): close: 2026/07/09 06:07:06 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2026/07/09 06:07:06 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2026/07/09 06:07:06 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2026/07/09 06:07:06 DEBUG : dir/file1(0x787912c9b00): >close: err= 2026/07/09 06:07:06 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:07:06 DEBUG : dir: Looking for writers 2026/07/09 06:07:06 DEBUG : file1: reading active writers 2026/07/09 06:07:06 DEBUG : Looking for writers 2026/07/09 06:07:06 DEBUG : dir: reading active writers 2026/07/09 06:07:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2026/07/09 06:07:06 DEBUG : dir: Looking for writers 2026/07/09 06:07:06 DEBUG : file1: reading active writers 2026/07/09 06:07:06 DEBUG : Looking for writers 2026/07/09 06:07:06 DEBUG : dir: reading active writers 2026/07/09 06:07:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2026/07/09 06:07:06 DEBUG : dir: Looking for writers 2026/07/09 06:07:06 DEBUG : file1: reading active writers 2026/07/09 06:07:06 DEBUG : Looking for writers 2026/07/09 06:07:06 DEBUG : dir: reading active writers 2026/07/09 06:07:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2026/07/09 06:07:06 DEBUG : dir: Looking for writers 2026/07/09 06:07:06 DEBUG : file1: reading active writers 2026/07/09 06:07:06 DEBUG : Looking for writers 2026/07/09 06:07:06 DEBUG : dir: reading active writers 2026/07/09 06:07:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2026/07/09 06:07:06 DEBUG : dir/file1: vfs cache: starting upload 2026/07/09 06:07:06 DEBUG : dir: Looking for writers 2026/07/09 06:07:06 DEBUG : file1: reading active writers 2026/07/09 06:07:06 DEBUG : Looking for writers 2026/07/09 06:07:06 DEBUG : dir: reading active writers 2026/07/09 06:07:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2026/07/09 06:07:06 DEBUG : dir: Looking for writers 2026/07/09 06:07:06 DEBUG : file1: reading active writers 2026/07/09 06:07:06 DEBUG : Looking for writers 2026/07/09 06:07:06 DEBUG : dir: reading active writers 2026/07/09 06:07:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2026/07/09 06:07:06 DEBUG : dir: Looking for writers 2026/07/09 06:07:06 DEBUG : file1: reading active writers 2026/07/09 06:07:06 DEBUG : Looking for writers 2026/07/09 06:07:06 DEBUG : dir: reading active writers 2026/07/09 06:07:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2026/07/09 06:07:07 DEBUG : dir: Looking for writers 2026/07/09 06:07:07 DEBUG : file1: reading active writers 2026/07/09 06:07:07 DEBUG : Looking for writers 2026/07/09 06:07:07 DEBUG : dir: reading active writers 2026/07/09 06:07:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/07/09 06:07:08 DEBUG : dir: Looking for writers 2026/07/09 06:07:08 DEBUG : file1: reading active writers 2026/07/09 06:07:08 DEBUG : Looking for writers 2026/07/09 06:07:08 DEBUG : dir: reading active writers 2026/07/09 06:07:08 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/07/09 06:07:08 DEBUG : dir/file1: size = 14 OK 2026/07/09 06:07:08 INFO : dir/file1: Copied (replaced existing) 2026/07/09 06:07:08 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2026/07/09 06:07:08 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2026/07/09 06:07:08 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/07/09 06:07:08 INFO : dir/file1: vfs cache: upload succeeded try #1 2026/07/09 06:07:09 DEBUG : dir: Looking for writers 2026/07/09 06:07:09 DEBUG : file1: reading active writers 2026/07/09 06:07:09 DEBUG : Looking for writers 2026/07/09 06:07:09 DEBUG : dir: reading active writers 2026/07/09 06:07:09 DEBUG : >WaitForWriters: 2026/07/09 06:07:09 DEBUG : dir/file1: Open: flags=O_RDONLY 2026/07/09 06:07:09 DEBUG : dir/file1: newRWFileHandle: 2026/07/09 06:07:09 DEBUG : dir/file1: >newRWFileHandle: err= 2026/07/09 06:07:09 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/07/09 06:07:09 DEBUG : dir/file1(0x787913d6180): _readAt: size=512, off=0 2026/07/09 06:07:09 DEBUG : dir/file1(0x787913d6180): openPending: 2026/07/09 06:07:09 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2026/07/09 06:07:09 DEBUG : dir/file1: vfs cache: truncate to size=14 (not needed as size correct) 2026/07/09 06:07:09 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/07/09 06:07:09 DEBUG : dir/file1(0x787913d6180): >openPending: err= 2026/07/09 06:07:09 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2026/07/09 06:07:09 DEBUG : dir/file1(0x787913d6180): >_readAt: n=14, err=EOF 2026/07/09 06:07:09 DEBUG : dir/file1(0x787913d6180): close: 2026/07/09 06:07:09 DEBUG : dir/file1(0x787913d6180): >close: err= 2026/07/09 06:07:09 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/07/09 06:07:09 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2026/07/09 06:07:09 DEBUG : newLeaf: Updating file with newLeaf 0x7879142c0d0 2026/07/09 06:07:09 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/07/09 06:07:09 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/07/09 06:07:09 INFO : newLeaf: Moved (server-side) to: dir/file1 2026/07/09 06:07:09 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2026/07/09 06:07:09 DEBUG : dir/file1: Updating file with dir/file1 0x7879142c0d0 2026/07/09 06:07:09 DEBUG : Added virtual directory entry vDel: "newLeaf" 2026/07/09 06:07:09 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 4s for list eventual consistency: 3/3 2026/07/09 06:07:14 DEBUG : dir/file1: vfs cache: setting modification time to 2026-07-09 06:07:06 +0000 UTC fstest.go:301: Flushing the directory cache fstest.go:305: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:305 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:358 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 /usr/local/go/src/runtime/asm_amd64.s:1771 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:358 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: Unexpected file "dir/file1" 2026/07/09 06:07:16 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2026/07/09 06:07:16 DEBUG : dir/file1: newRWFileHandle: 2026/07/09 06:07:16 DEBUG : dir/file1(0x78790be1200): openPending: 2026/07/09 06:07:16 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2026/07/09 06:07:16 DEBUG : dir/file1: vfs cache: truncate to size=14 (not needed as size correct) 2026/07/09 06:07:16 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/07/09 06:07:16 DEBUG : dir/file1(0x78790be1200): >openPending: err= 2026/07/09 06:07:16 DEBUG : dir/file1: vfs cache: truncate to size=0 2026/07/09 06:07:16 DEBUG : dir/file1: >newRWFileHandle: err= 2026/07/09 06:07:16 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/07/09 06:07:16 DEBUG : dir/file1(0x78790be1200): _writeAt: size=25, off=0 2026/07/09 06:07:16 DEBUG : dir/file1(0x78790be1200): >_writeAt: n=25, err= 2026/07/09 06:07:28 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/07/09 06:07:28 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2026/07/09 06:07:28 DEBUG : newLeaf: Updating file with newLeaf 0x7879142c0d0 2026/07/09 06:07:28 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/07/09 06:07:28 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/07/09 06:07:28 DEBUG : newLeaf(0x78790be1200): close: 2026/07/09 06:07:28 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2026/07/09 06:07:28 DEBUG : newLeaf: vfs cache: setting modification time to 2026-07-09 06:07:16.944401828 +0000 UTC m=+146.141486429 2026/07/09 06:07:28 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2026/07/09 06:07:28 DEBUG : newLeaf(0x78790be1200): >close: err= 2026/07/09 06:07:28 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:07:28 DEBUG : dir: Looking for writers 2026/07/09 06:07:28 DEBUG : Looking for writers 2026/07/09 06:07:28 DEBUG : dir: reading active writers 2026/07/09 06:07:28 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:28 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2026/07/09 06:07:28 DEBUG : dir: Looking for writers 2026/07/09 06:07:28 DEBUG : Looking for writers 2026/07/09 06:07:28 DEBUG : dir: reading active writers 2026/07/09 06:07:28 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:28 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2026/07/09 06:07:28 DEBUG : dir: Looking for writers 2026/07/09 06:07:28 DEBUG : Looking for writers 2026/07/09 06:07:28 DEBUG : dir: reading active writers 2026/07/09 06:07:28 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:28 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2026/07/09 06:07:28 DEBUG : dir: Looking for writers 2026/07/09 06:07:28 DEBUG : Looking for writers 2026/07/09 06:07:28 DEBUG : dir: reading active writers 2026/07/09 06:07:28 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:28 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2026/07/09 06:07:28 DEBUG : newLeaf: vfs cache: starting upload 2026/07/09 06:07:28 DEBUG : dir: Looking for writers 2026/07/09 06:07:28 DEBUG : Looking for writers 2026/07/09 06:07:28 DEBUG : dir: reading active writers 2026/07/09 06:07:28 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:28 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2026/07/09 06:07:28 DEBUG : dir: Looking for writers 2026/07/09 06:07:28 DEBUG : Looking for writers 2026/07/09 06:07:28 DEBUG : dir: reading active writers 2026/07/09 06:07:28 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:28 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2026/07/09 06:07:29 DEBUG : dir: Looking for writers 2026/07/09 06:07:29 DEBUG : Looking for writers 2026/07/09 06:07:29 DEBUG : dir: reading active writers 2026/07/09 06:07:29 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:29 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2026/07/09 06:07:29 DEBUG : newLeaf: size = 25 OK 2026/07/09 06:07:29 INFO : newLeaf: Copied (replaced existing) 2026/07/09 06:07:29 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2026/07/09 06:07:29 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2026/07/09 06:07:29 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/07/09 06:07:29 INFO : newLeaf: vfs cache: upload succeeded try #1 2026/07/09 06:07:29 DEBUG : dir: Looking for writers 2026/07/09 06:07:29 DEBUG : Looking for writers 2026/07/09 06:07:29 DEBUG : dir: reading active writers 2026/07/09 06:07:29 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:29 DEBUG : >WaitForWriters: 2026/07/09 06:07:29 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:07:29 DEBUG : dir: Looking for writers 2026/07/09 06:07:29 DEBUG : Looking for writers 2026/07/09 06:07:29 DEBUG : newLeaf: reading active writers 2026/07/09 06:07:29 DEBUG : dir: reading active writers 2026/07/09 06:07:29 DEBUG : >WaitForWriters: 2026/07/09 06:07:29 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: cleaner exiting === RUN TestFileRename/full,forceCache=false run.go:198: Remote "mega root 'rclone-test-qalonaz8zele'", Local "Local file system at /tmp/rclone1247823292", Modify Window "876000h0m0s" 2026/07/09 06:07:46 INFO : mega root 'rclone-test-qalonaz8zele': poll-interval is not supported by this remote 2026/07/09 06:07:46 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: root is "/home/rclone/.cache/rclone" 2026/07/09 06:07:46 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:07:46 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:07:46 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:07:46 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/07/09 06:07:46 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:07:46 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:07:46 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/07/09 06:07:46 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:07:46 INFO : mega root 'rclone-test-qalonaz8zele': vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) run.go:303: Failed to put "dir/file1" to "mega root 'rclone-test-qalonaz8zele'": mkdir create node failed: unexpected end of JSON input 2026/07/09 06:07:57 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:07:57 DEBUG : Looking for writers 2026/07/09 06:07:57 DEBUG : >WaitForWriters: 2026/07/09 06:07:57 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: cleaner exiting --- FAIL: TestFileRename (150.29s) --- FAIL: TestFileRename/off,forceCache=false (16.48s) --- FAIL: TestFileRename/minimal,forceCache=false (23.06s) --- FAIL: TestFileRename/minimal,forceCache=true (32.56s) --- FAIL: TestFileRename/writes,forceCache=false (26.26s) --- FAIL: TestFileRename/writes,forceCache=true (41.10s) --- FAIL: TestFileRename/full,forceCache=false (10.83s) === RUN TestReadFileHandleReadAt run.go:198: Remote "mega root 'rclone-test-qalonaz8zele'", Local "Local file system at /tmp/rclone1247823292", Modify Window "876000h0m0s" 2026/07/09 06:07:57 INFO : mega root 'rclone-test-qalonaz8zele': poll-interval is not supported by this remote 2026/07/09 06:07:57 NOTICE: mega root 'rclone-test-qalonaz8zele': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2026/07/09 06:07:58 DEBUG : dir/file1: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2026/07/09 06:07:58 DEBUG : dir/file1: Open: flags=O_RDONLY 2026/07/09 06:07:58 DEBUG : dir/file1: >Open: fd=dir/file1 (r), err= 2026/07/09 06:07:58 DEBUG : dir/file1: >OpenFile: fd=dir/file1 (r), err= 2026/07/09 06:07:58 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2026/07/09 06:07:58 DEBUG : dir/file1: ChunkedReader.Read at 0 length 1 chunkOffset 0 chunkSize 134217728 2026/07/09 06:07:58 DEBUG : dir/file1: waiting for in-sequence read to 5 for 20ms 2026/07/09 06:07:59 DEBUG : dir/file1: aborting in-sequence read wait, off=5 2026/07/09 06:07:59 DEBUG : dir/file1: failed to wait for in-sequence read to 5 2026/07/09 06:07:59 DEBUG : dir/file1: ReadFileHandle.seek from 1 to 5 (fs.RangeSeeker) 2026/07/09 06:07:59 DEBUG : dir/file1: ChunkedReader.RangeSeek from 1 to 5 length -1 2026/07/09 06:07:59 DEBUG : dir/file1: ChunkedReader.Read at -1 length 1 chunkOffset 5 chunkSize 134217728 2026/07/09 06:07:59 DEBUG : dir/file1: ChunkedReader.openRange at 5 length 134217728 2026/07/09 06:07:59 DEBUG : dir/file1: ReadFileHandle.seek from 6 to 1 (fs.RangeSeeker) 2026/07/09 06:07:59 DEBUG : dir/file1: ChunkedReader.RangeSeek from 6 to 1 length -1 2026/07/09 06:07:59 DEBUG : dir/file1: ChunkedReader.Read at -1 length 1 chunkOffset 1 chunkSize 134217728 2026/07/09 06:07:59 DEBUG : dir/file1: ChunkedReader.openRange at 1 length 134217728 2026/07/09 06:07:59 DEBUG : dir/file1: waiting for in-sequence read to 10 for 20ms 2026/07/09 06:07:59 DEBUG : dir/file1: aborting in-sequence read wait, off=10 2026/07/09 06:07:59 DEBUG : dir/file1: failed to wait for in-sequence read to 10 2026/07/09 06:07:59 DEBUG : dir/file1: ReadFileHandle.seek from 2 to 10 (fs.RangeSeeker) 2026/07/09 06:07:59 DEBUG : dir/file1: ChunkedReader.RangeSeek from 2 to 10 length -1 2026/07/09 06:07:59 DEBUG : dir/file1: ChunkedReader.Read at -1 length 6 chunkOffset 10 chunkSize 134217728 2026/07/09 06:07:59 DEBUG : dir/file1: ChunkedReader.openRange at 10 length 134217728 2026/07/09 06:07:59 DEBUG : dir/file1: ReadFileHandle.seek from 16 to 10 (fs.RangeSeeker) 2026/07/09 06:07:59 DEBUG : dir/file1: ChunkedReader.RangeSeek from 16 to 10 length -1 2026/07/09 06:07:59 DEBUG : dir/file1: ChunkedReader.Read at -1 length 256 chunkOffset 10 chunkSize 134217728 2026/07/09 06:07:59 DEBUG : dir/file1: ChunkedReader.openRange at 10 length 134217728 2026/07/09 06:07:59 DEBUG : dir/file1: waiting for in-sequence read to 100 for 20ms 2026/07/09 06:07:59 DEBUG : dir/file1: aborting in-sequence read wait, off=100 2026/07/09 06:07:59 DEBUG : dir/file1: failed to wait for in-sequence read to 100 2026/07/09 06:07:59 DEBUG : dir/file1: ReadFileHandle.Read attempt to read beyond end of file: 100 > 16 2026/07/09 06:07:59 DEBUG : dir/file1: waiting for in-sequence read to 100 for 20ms 2026/07/09 06:07:59 DEBUG : dir/file1: aborting in-sequence read wait, off=100 2026/07/09 06:07:59 DEBUG : dir/file1: failed to wait for in-sequence read to 100 2026/07/09 06:07:59 ERROR : dir/file1: ReadFileHandle.Read error: Bad file descriptor 2026/07/09 06:07:59 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:07:59 DEBUG : dir: Looking for writers 2026/07/09 06:07:59 DEBUG : file1: reading active writers 2026/07/09 06:07:59 DEBUG : Looking for writers 2026/07/09 06:07:59 DEBUG : dir: reading active writers 2026/07/09 06:07:59 DEBUG : >WaitForWriters: --- PASS: TestReadFileHandleReadAt (13.35s) === RUN TestReadFileHandleFlush run.go:198: Remote "mega root 'rclone-test-qalonaz8zele'", Local "Local file system at /tmp/rclone1247823292", Modify Window "876000h0m0s" 2026/07/09 06:08:10 INFO : mega root 'rclone-test-qalonaz8zele': poll-interval is not supported by this remote 2026/07/09 06:08:10 NOTICE: mega root 'rclone-test-qalonaz8zele': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2026/07/09 06:08:11 DEBUG : dir/file1: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2026/07/09 06:08:11 DEBUG : dir/file1: Open: flags=O_RDONLY 2026/07/09 06:08:11 DEBUG : dir/file1: >Open: fd=dir/file1 (r), err= 2026/07/09 06:08:11 DEBUG : dir/file1: >OpenFile: fd=dir/file1 (r), err= 2026/07/09 06:08:11 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2026/07/09 06:08:11 DEBUG : dir/file1: ChunkedReader.Read at 0 length 256 chunkOffset 0 chunkSize 134217728 2026/07/09 06:08:11 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:08:11 DEBUG : dir: Looking for writers 2026/07/09 06:08:11 DEBUG : file1: reading active writers 2026/07/09 06:08:11 DEBUG : Looking for writers 2026/07/09 06:08:11 DEBUG : dir: reading active writers 2026/07/09 06:08:11 DEBUG : >WaitForWriters: --- PASS: TestReadFileHandleFlush (1.14s) === RUN TestRWFileHandleReleaseRead run.go:198: Remote "mega root 'rclone-test-qalonaz8zele'", Local "Local file system at /tmp/rclone1247823292", Modify Window "876000h0m0s" 2026/07/09 06:08:11 INFO : mega root 'rclone-test-qalonaz8zele': poll-interval is not supported by this remote 2026/07/09 06:08:11 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: root is "/home/rclone/.cache/rclone" 2026/07/09 06:08:11 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:08:11 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:08:11 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:08:11 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/07/09 06:08:11 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:08:11 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:08:11 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/07/09 06:08:11 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:08:11 INFO : mega root 'rclone-test-qalonaz8zele': vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2026/07/09 06:08:15 DEBUG : dir/file1: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2026/07/09 06:08:15 DEBUG : dir/file1: Open: flags=O_RDONLY 2026/07/09 06:08:15 DEBUG : dir/file1: newRWFileHandle: 2026/07/09 06:08:15 DEBUG : dir/file1: >newRWFileHandle: err= 2026/07/09 06:08:15 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/07/09 06:08:15 DEBUG : dir/file1: >OpenFile: fd=dir/file1 (rw), err= 2026/07/09 06:08:15 DEBUG : dir/file1(0x78790f23680): _readAt: size=256, off=0 2026/07/09 06:08:15 DEBUG : dir/file1(0x78790f23680): openPending: 2026/07/09 06:08:15 DEBUG : dir/file1: vfs cache: checking remote fingerprint "16" against cached fingerprint "" 2026/07/09 06:08:15 DEBUG : dir/file1: vfs cache: truncate to size=16 2026/07/09 06:08:15 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/07/09 06:08:15 DEBUG : dir/file1(0x78790f23680): >openPending: err= 2026/07/09 06:08:15 DEBUG : vfs cache: looking for range={Pos:0 Size:16} in [] - present false 2026/07/09 06:08:15 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2026/07/09 06:08:15 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2026/07/09 06:08:15 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2026/07/09 06:08:15 DEBUG : dir/file1(0x78790f23680): >_readAt: n=16, err=EOF 2026/07/09 06:08:15 DEBUG : dir/file1(0x78790f23680): RWFileHandle.Release 2026/07/09 06:08:15 DEBUG : dir/file1(0x78790f23680): close: 2026/07/09 06:08:15 DEBUG : dir/file1(0x78790f23680): >close: err= 2026/07/09 06:08:15 DEBUG : dir/file1(0x78790f23680): RWFileHandle.Release 2026/07/09 06:08:15 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:08:15 DEBUG : dir: Looking for writers 2026/07/09 06:08:15 DEBUG : file1: reading active writers 2026/07/09 06:08:15 DEBUG : Looking for writers 2026/07/09 06:08:15 DEBUG : dir: reading active writers 2026/07/09 06:08:15 DEBUG : >WaitForWriters: 2026/07/09 06:08:15 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: cleaner exiting --- PASS: TestRWFileHandleReleaseRead (7.31s) === RUN TestRWFileHandleMethodsWrite run.go:198: Remote "mega root 'rclone-test-qalonaz8zele'", Local "Local file system at /tmp/rclone1247823292", Modify Window "876000h0m0s" 2026/07/09 06:08:19 INFO : mega root 'rclone-test-qalonaz8zele': poll-interval is not supported by this remote 2026/07/09 06:08:19 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: root is "/home/rclone/.cache/rclone" 2026/07/09 06:08:19 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:08:19 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:08:19 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:08:19 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/07/09 06:08:19 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:08:19 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:08:19 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/07/09 06:08:19 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele" 2026/07/09 06:08:19 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2026/07/09 06:08:19 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2026/07/09 06:08:19 DEBUG : file1: newRWFileHandle: 2026/07/09 06:08:19 DEBUG : file1(0x78796f30280): openPending: 2026/07/09 06:08:19 DEBUG : file1: vfs cache: truncate to size=0 (not needed as size correct) 2026/07/09 06:08:19 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item file1 not removed, freed 0 bytes 2026/07/09 06:08:19 INFO : mega root 'rclone-test-qalonaz8zele': vfs cache: cleaned: objects 1 (was 1) in use 1, to upload 0, uploading 0, total size 0 (was 0) 2026/07/09 06:08:19 DEBUG : Added virtual directory entry vAddFile: "file1" 2026/07/09 06:08:19 DEBUG : file1(0x78796f30280): >openPending: err= 2026/07/09 06:08:19 DEBUG : file1: >newRWFileHandle: err= 2026/07/09 06:08:19 DEBUG : Added virtual directory entry vAddFile: "file1" 2026/07/09 06:08:19 DEBUG : file1: >Open: fd=file1 (rw), err= 2026/07/09 06:08:19 DEBUG : file1: >OpenFile: fd=file1 (rw), err= 2026/07/09 06:08:19 DEBUG : file1(0x78796f30280): _writeAt: size=5, off=0 2026/07/09 06:08:19 DEBUG : file1(0x78796f30280): >_writeAt: n=5, err= 2026/07/09 06:08:19 DEBUG : file1(0x78796f30280): _writeAt: size=7, off=5 2026/07/09 06:08:19 DEBUG : file1(0x78796f30280): >_writeAt: n=7, err= 2026/07/09 06:08:19 DEBUG : file1: vfs cache: truncate to size=11 2026/07/09 06:08:19 DEBUG : file1(0x78796f30280): close: 2026/07/09 06:08:19 DEBUG : file1: vfs cache: setting modification time to 2026-07-09 06:08:19.160510788 +0000 UTC m=+208.357595369 2026/07/09 06:08:19 INFO : file1: vfs cache: queuing for upload in 100ms 2026/07/09 06:08:19 DEBUG : file1(0x78796f30280): >close: err= 2026/07/09 06:08:19 DEBUG : file1(0x78796f30280): close: 2026/07/09 06:08:19 DEBUG : file1(0x78796f30280): >close: err=file already closed 2026/07/09 06:08:19 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:08:19 DEBUG : Looking for writers 2026/07/09 06:08:19 DEBUG : file1: reading active writers 2026/07/09 06:08:19 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2026/07/09 06:08:19 DEBUG : Looking for writers 2026/07/09 06:08:19 DEBUG : file1: reading active writers 2026/07/09 06:08:19 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2026/07/09 06:08:19 DEBUG : Looking for writers 2026/07/09 06:08:19 DEBUG : file1: reading active writers 2026/07/09 06:08:19 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2026/07/09 06:08:19 DEBUG : Looking for writers 2026/07/09 06:08:19 DEBUG : file1: reading active writers 2026/07/09 06:08:19 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2026/07/09 06:08:19 DEBUG : file1: vfs cache: starting upload 2026/07/09 06:08:19 DEBUG : Looking for writers 2026/07/09 06:08:19 DEBUG : file1: reading active writers 2026/07/09 06:08:19 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2026/07/09 06:08:19 DEBUG : Looking for writers 2026/07/09 06:08:19 DEBUG : file1: reading active writers 2026/07/09 06:08:19 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2026/07/09 06:08:19 DEBUG : Looking for writers 2026/07/09 06:08:19 DEBUG : file1: reading active writers 2026/07/09 06:08:19 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2026/07/09 06:08:20 DEBUG : Looking for writers 2026/07/09 06:08:20 DEBUG : file1: reading active writers 2026/07/09 06:08:20 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/07/09 06:08:20 ERROR : dir/file1: vfs cache: item close failed: vfs cache item: failed to write metadata: open /home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele/dir/file1: no such file or directory 2026/07/09 06:08:20 ERROR : dir/file1: vfs cache: close after grace period failed: vfs cache item: failed to write metadata: open /home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qalonaz8zele/dir/file1: no such file or directory 2026/07/09 06:08:21 DEBUG : file1: size = 11 OK 2026/07/09 06:08:21 INFO : file1: Copied (new) 2026/07/09 06:08:21 DEBUG : file1: vfs cache: fingerprint now "11" 2026/07/09 06:08:21 DEBUG : file1: vfs cache: writeback object to VFS layer 2026/07/09 06:08:21 DEBUG : Added virtual directory entry vAddFile: "file1" 2026/07/09 06:08:21 INFO : file1: vfs cache: upload succeeded try #1 2026/07/09 06:08:21 DEBUG : Looking for writers 2026/07/09 06:08:21 DEBUG : file1: reading active writers 2026/07/09 06:08:21 DEBUG : >WaitForWriters: 2026/07/09 06:08:21 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:08:21 DEBUG : Looking for writers 2026/07/09 06:08:21 DEBUG : file1: reading active writers 2026/07/09 06:08:21 DEBUG : >WaitForWriters: 2026/07/09 06:08:21 DEBUG : mega root 'rclone-test-qalonaz8zele': vfs cache: cleaner exiting --- PASS: TestRWFileHandleMethodsWrite (2.34s) === RUN TestVFSOpenFile run.go:198: Remote "mega root 'rclone-test-qalonaz8zele'", Local "Local file system at /tmp/rclone1247823292", Modify Window "876000h0m0s" 2026/07/09 06:08:21 INFO : mega root 'rclone-test-qalonaz8zele': poll-interval is not supported by this remote 2026/07/09 06:08:21 NOTICE: mega root 'rclone-test-qalonaz8zele': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2026/07/09 06:08:25 DEBUG : file1: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2026/07/09 06:08:25 DEBUG : file1: Open: flags=O_RDONLY 2026/07/09 06:08:25 DEBUG : file1: >Open: fd=file1 (r), err= 2026/07/09 06:08:25 DEBUG : file1: >OpenFile: fd=file1 (r), err= 2026/07/09 06:08:25 DEBUG : dir: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2026/07/09 06:08:25 DEBUG : dir: >OpenFile: fd=dir/ (r), err= 2026/07/09 06:08:25 DEBUG : dir/new_file.txt: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2026/07/09 06:08:25 DEBUG : dir/new_file.txt: >OpenFile: fd=, err=file does not exist 2026/07/09 06:08:25 DEBUG : dir/new_file.txt: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2026/07/09 06:08:25 DEBUG : dir/new_file.txt: Open: flags=O_WRONLY|O_CREATE 2026/07/09 06:08:25 DEBUG : dir: Added virtual directory entry vAddFile: "new_file.txt" 2026/07/09 06:08:25 DEBUG : dir/new_file.txt: >Open: fd=dir/new_file.txt (w), err= 2026/07/09 06:08:25 DEBUG : dir/new_file.txt: >OpenFile: fd=dir/new_file.txt (w), err= 2026/07/09 06:08:25 DEBUG : dir: Added virtual directory entry vAddFile: "new_file.txt" 2026/07/09 06:08:25 DEBUG : mega root 'rclone-test-qalonaz8zele': File to upload is small (0 bytes), uploading instead of streaming 2026/07/09 06:08:26 DEBUG : dir/new_file.txt: size = 0 OK 2026/07/09 06:08:26 DEBUG : dir/new_file.txt: Size of src and dst objects identical 2026/07/09 06:08:26 DEBUG : dir: Added virtual directory entry vAddFile: "new_file.txt" 2026/07/09 06:08:26 DEBUG : not found/new_file.txt: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2026/07/09 06:08:26 DEBUG : not found/new_file.txt: >OpenFile: fd=, err=file does not exist 2026/07/09 06:08:26 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:08:26 DEBUG : dir: Looking for writers 2026/07/09 06:08:26 DEBUG : file2: reading active writers 2026/07/09 06:08:26 DEBUG : new_file.txt: reading active writers 2026/07/09 06:08:26 DEBUG : Looking for writers 2026/07/09 06:08:26 DEBUG : dir: reading active writers 2026/07/09 06:08:26 DEBUG : file1: reading active writers 2026/07/09 06:08:26 DEBUG : >WaitForWriters: --- PASS: TestVFSOpenFile (5.75s) === RUN TestWriteFileHandleMethods run.go:198: Remote "mega root 'rclone-test-qalonaz8zele'", Local "Local file system at /tmp/rclone1247823292", Modify Window "876000h0m0s" 2026/07/09 06:08:27 INFO : mega root 'rclone-test-qalonaz8zele': poll-interval is not supported by this remote 2026/07/09 06:08:27 NOTICE: mega root 'rclone-test-qalonaz8zele': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2026/07/09 06:08:27 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2026/07/09 06:08:27 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2026/07/09 06:08:27 DEBUG : Added virtual directory entry vAddFile: "file1" 2026/07/09 06:08:27 DEBUG : file1: >Open: fd=file1 (w), err= 2026/07/09 06:08:27 DEBUG : file1: >OpenFile: fd=file1 (w), err= 2026/07/09 06:08:27 DEBUG : Added virtual directory entry vAddFile: "file1" 2026/07/09 06:08:27 ERROR : file1: WriteFileHandle: Read: Can't read and write to file without --vfs-cache-mode >= minimal 2026/07/09 06:08:27 ERROR : file1: WriteFileHandle: ReadAt: Can't read and write to file without --vfs-cache-mode >= minimal 2026/07/09 06:08:27 ERROR : file1: WriteFileHandle: Truncate: Can't change size without --vfs-cache-mode >= writes 2026/07/09 06:08:27 DEBUG : mega root 'rclone-test-qalonaz8zele': File to upload is small (5 bytes), uploading instead of streaming 2026/07/09 06:08:27 DEBUG : file1: size = 5 OK 2026/07/09 06:08:27 DEBUG : file1: Size of src and dst objects identical 2026/07/09 06:08:27 DEBUG : Added virtual directory entry vAddFile: "file1" 2026/07/09 06:08:27 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2026/07/09 06:08:27 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2026/07/09 06:08:27 DEBUG : Added virtual directory entry vAddFile: "file1" 2026/07/09 06:08:27 DEBUG : file1: >Open: fd=file1 (w), err= 2026/07/09 06:08:27 DEBUG : file1: >OpenFile: fd=file1 (w), err= 2026/07/09 06:08:27 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2026/07/09 06:08:27 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2026/07/09 06:08:27 DEBUG : Added virtual directory entry vAddFile: "file1" 2026/07/09 06:08:27 DEBUG : file1: >Open: fd=file1 (w), err= 2026/07/09 06:08:27 DEBUG : file1: >OpenFile: fd=file1 (w), err= 2026/07/09 06:08:27 ERROR : file1: WriteFileHandle: Can't open for write without O_TRUNC on existing file without --vfs-cache-mode >= writes 2026/07/09 06:08:27 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE|O_TRUNC, perm=-rwxrwxrwx 2026/07/09 06:08:27 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE|O_TRUNC 2026/07/09 06:08:27 DEBUG : Added virtual directory entry vAddFile: "file1" 2026/07/09 06:08:27 DEBUG : file1: >Open: fd=file1 (w), err= 2026/07/09 06:08:27 DEBUG : file1: >OpenFile: fd=file1 (w), err= 2026/07/09 06:08:27 DEBUG : Added virtual directory entry vAddFile: "file1" 2026/07/09 06:08:27 DEBUG : mega root 'rclone-test-qalonaz8zele': File to upload is small (0 bytes), uploading instead of streaming 2026/07/09 06:08:27 DEBUG : file1: size = 0 OK 2026/07/09 06:08:27 DEBUG : file1: Size of src and dst objects identical 2026/07/09 06:08:27 DEBUG : Added virtual directory entry vAddFile: "file1" 2026/07/09 06:08:27 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE|O_TRUNC, perm=-rwxrwxrwx 2026/07/09 06:08:27 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE|O_TRUNC 2026/07/09 06:08:27 DEBUG : Added virtual directory entry vAddFile: "file1" 2026/07/09 06:08:27 DEBUG : file1: >Open: fd=file1 (w), err= 2026/07/09 06:08:27 DEBUG : file1: >OpenFile: fd=file1 (w), err= 2026/07/09 06:08:27 DEBUG : Added virtual directory entry vAddFile: "file1" 2026/07/09 06:08:27 DEBUG : mega root 'rclone-test-qalonaz8zele': File to upload is small (7 bytes), uploading instead of streaming 2026/07/09 06:08:28 DEBUG : file1: size = 7 OK 2026/07/09 06:08:28 DEBUG : file1: Size of src and dst objects identical 2026/07/09 06:08:28 DEBUG : Added virtual directory entry vAddFile: "file1" 2026/07/09 06:08:28 DEBUG : WaitForWriters: timeout=30s 2026/07/09 06:08:28 DEBUG : Looking for writers 2026/07/09 06:08:28 DEBUG : file1: reading active writers 2026/07/09 06:08:28 DEBUG : >WaitForWriters: --- PASS: TestWriteFileHandleMethods (1.91s) FAIL 2026/07/09 06:08:29 DEBUG : mega root 'rclone-test-qalonaz8zele': Purge remote "./vfs.test -test.v -test.timeout 1h0m0s -remote TestMega: -verbose -test.run '^(TestDirRemove|TestFileMethods|TestFileRemove|TestRWFileHandleMethodsWrite|TestRWFileHandleReleaseRead|TestReadFileHandleFlush|TestReadFileHandleReadAt|TestVFSOpenFile|TestWriteFileHandleMethods)$|^TestFileRename$/^(full,forceCache=false|minimal,forceCache=false|minimal,forceCache=true|off,forceCache=false|writes,forceCache=false|writes,forceCache=true)$'" - Finished ERROR in 3m38.528618136s (try 5/5): exit status 1: Failed [TestFileRename/off,forceCache=false TestFileRename/minimal,forceCache=false TestFileRename/minimal,forceCache=true TestFileRename/writes,forceCache=false TestFileRename/writes,forceCache=true TestFileRename/full,forceCache=false]