"./operations.test -test.v -test.timeout 1h0m0s -remote TestMega: -verbose -test.run '^(TestApplyTransforms|TestCopyFile|TestCopyFileBackupDir|TestCopyFileCompareDest|TestCopyFileMaxTransfer|TestDeduplicateFirst|TestDeduplicateLargest|TestDeduplicateOldest|TestDeduplicateRename|TestDeduplicateSizeOnly|TestDeduplicateSkip|TestDeduplicateSmallest|TestDirMove|TestHashSums|TestListDirSorted|TestListDirSortedFn|TestListJSON|TestLs|TestLsLong|TestLsWithFilesFrom|TestLsd|TestMaxDeleteSize|TestMergeDirs|TestStatJSON)$'" - Starting (try 3/5) 2025/11/22 01:52:50 DEBUG : Creating backend with remote "TestMega:rclone-test-pamebix5kohe" 2025/11/22 01:52:50 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2025/11/22 01:52:50 DEBUG : mega root 'rclone-test-pamebix5kohe': Using previously stored session ID and master key to initialize the Mega API 2025/11/22 01:53:07 DEBUG : Creating backend with remote "/tmp/rclone1897544710" === RUN TestApplyTransforms 2025/11/22 01:53:07 DEBUG : Creating backend with remote "TestMega:rclone-test-zupexod7loga" 2025/11/22 01:53:07 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2025/11/22 01:53:07 DEBUG : mega root 'rclone-test-zupexod7loga': Using previously stored session ID and master key to initialize the Mega API 2025/11/22 01:53:18 DEBUG : mega root 'rclone-test-zupexod7loga': login with previous auth keys failed: unexpected end of JSON input 2025/11/22 01:53:18 DEBUG : Creating backend with remote "/tmp/rclone4101917269" run.go:185: Remote "mega root 'rclone-test-zupexod7loga'", Local "Local file system at /tmp/rclone4101917269", Modify Window "876000h0m0s" run.go:242: Failed to mkdir "mega root 'rclone-test-zupexod7loga'": Invalid arguments 2025/11/22 01:53:18 DEBUG : mega root 'rclone-test-zupexod7loga': Purge remote 2025/11/22 01:53:18 NOTICE: purge failed: Invalid arguments --- FAIL: TestApplyTransforms (10.68s) === RUN TestCopyFile run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" 2025/11/22 01:53:18 DEBUG : file1: Need to transfer - File not found at Destination 2025/11/22 01:53:21 DEBUG : sub/file2: size = 14 OK 2025/11/22 01:53:21 INFO : file1: Copied (new) to: sub/file2 2025/11/22 01:53:21 DEBUG : sub/file2: size = 14 OK 2025/11/22 01:53:21 DEBUG : file1: Sizes identical 2025/11/22 01:53:21 DEBUG : file1: Unchanged skipping 2025/11/22 01:53:21 DEBUG : mega root 'rclone-test-pamebix5kohe': don't need to copy/move sub/file2, it is already at target location run.go:130: removing dir "sub" failed - try 1/3: directory not empty --- PASS: TestCopyFile (7.33s) === RUN TestCopyFileBackupDir run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" run.go:290: Failed to put "dst/file1" to "mega root 'rclone-test-pamebix5kohe'": failed to finish upload: unexpected end of JSON input --- FAIL: TestCopyFileBackupDir (12.76s) === RUN TestCopyFileCompareDest run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" 2025/11/22 01:53:38 DEBUG : Creating backend with remote "TestMega:rclone-test-pamebix5kohe/dst" 2025/11/22 01:53:38 DEBUG : mega root 'rclone-test-pamebix5kohe/dst': Using previously stored session ID and master key to initialize the Mega API 2025/11/22 01:53:55 DEBUG : Creating backend with remote "TestMega:rclone-test-pamebix5kohe/CompareDest" 2025/11/22 01:53:55 DEBUG : mega root 'rclone-test-pamebix5kohe/CompareDest': Using previously stored session ID and master key to initialize the Mega API 2025/11/22 01:54:12 DEBUG : one: Need to transfer - File not found at Destination 2025/11/22 01:54:15 DEBUG : one: size = 3 OK 2025/11/22 01:54:15 INFO : one: Copied (new) fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:292: Sleeping for 6s just to make sure 2025/11/22 01:54:22 DEBUG : one: size = 5 (Local file system at /tmp/rclone1897544710) 2025/11/22 01:54:22 DEBUG : one: size = 3 (mega root 'rclone-test-pamebix5kohe/dst') 2025/11/22 01:54:22 DEBUG : one: Sizes differ 2025/11/22 01:54:25 DEBUG : one: size = 5 OK 2025/11/22 01:54:25 INFO : one: Copied (replaced existing) fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:292: Sleeping for 6s just to make sure run.go:290: Failed to put "dst/one" to "mega root 'rclone-test-pamebix5kohe'": upload file failed to create session: unexpected end of JSON input --- FAIL: TestCopyFileCompareDest (65.34s) === RUN TestCopyFileMaxTransfer run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" 2025/11/22 01:54:44 DEBUG : TestCopyFileMaxTransfer/file1: Need to transfer - File not found at Destination 2025/11/22 01:54:55 DEBUG : TestCopyFileMaxTransfer/file1: size = 14 OK 2025/11/22 01:54:55 INFO : TestCopyFileMaxTransfer/file1: Copied (new) 2025/11/22 01:54:55 DEBUG : TestCopyFileMaxTransfer/file2: Need to transfer - File not found at Destination 2025/11/22 01:54:55 ERROR : TestCopyFileMaxTransfer/file2: Failed to copy: upload failed to read data: max transfer limit reached as set by --max-transfer 2025/11/22 01:54:55 DEBUG : TestCopyFileMaxTransfer/file3: Need to transfer - File not found at Destination 2025/11/22 01:54:55 DEBUG : TestCopyFileMaxTransfer/file4: Need to transfer - File not found at Destination 2025/11/22 01:55:08 DEBUG : TestCopyFileMaxTransfer/file4: size = 2062 OK 2025/11/22 01:55:08 INFO : TestCopyFileMaxTransfer/file4: Copied (new) run.go:130: removing dir "TestCopyFileMaxTransfer" failed - try 1/3: directory not empty --- PASS: TestCopyFileMaxTransfer (30.02s) === RUN TestDeduplicateSkip run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" 2025/11/22 01:55:16 INFO : mega root 'rclone-test-pamebix5kohe': Looking for duplicate names using skip mode. 2025/11/22 01:55:16 NOTICE: one: Found 2 files with duplicate names 2025/11/22 01:55:16 NOTICE: one: Skipping 2 files with duplicate names fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:292: Sleeping for 6s just to make sure --- PASS: TestDeduplicateSkip (10.55s) === RUN TestDeduplicateSizeOnly run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" 2025/11/22 01:55:38 INFO : mega root 'rclone-test-pamebix5kohe': Looking for duplicate names using skip mode. 2025/11/22 01:55:38 NOTICE: one: Found 3 files with duplicate names 2025/11/22 01:55:38 NOTICE: one: Deleting 1/2 identical duplicates (size 11) 2025/11/22 01:55:40 INFO : one: Deleted 2025/11/22 01:55:40 NOTICE: one: Skipping 2 files with duplicate names --- PASS: TestDeduplicateSizeOnly (19.98s) === RUN TestDeduplicateFirst run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" 2025/11/22 01:55:49 INFO : mega root 'rclone-test-pamebix5kohe': Looking for duplicate names using first mode. 2025/11/22 01:55:49 NOTICE: one: Found 3 files with duplicate names 2025/11/22 01:55:49 INFO : one: Deleted 2025/11/22 01:55:49 INFO : one: Deleted 2025/11/22 01:55:49 NOTICE: one: Deleted 2 extra copies --- PASS: TestDeduplicateFirst (7.25s) === RUN TestDeduplicateOldest run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" 2025/11/22 01:55:56 INFO : mega root 'rclone-test-pamebix5kohe': Looking for duplicate names using oldest mode. 2025/11/22 01:55:56 NOTICE: one: Found 3 files with duplicate names 2025/11/22 01:55:56 INFO : one: Deleted 2025/11/22 01:55:56 INFO : one: Deleted 2025/11/22 01:55:56 NOTICE: one: Deleted 2 extra copies --- PASS: TestDeduplicateOldest (4.86s) === RUN TestDeduplicateLargest run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" 2025/11/22 01:56:02 INFO : mega root 'rclone-test-pamebix5kohe': Looking for duplicate names using largest mode. 2025/11/22 01:56:02 NOTICE: one: Found 3 files with duplicate names 2025/11/22 01:56:05 INFO : one: Deleted 2025/11/22 01:56:05 INFO : one: Deleted 2025/11/22 01:56:05 NOTICE: one: Deleted 2 extra copies --- PASS: TestDeduplicateLargest (10.65s) === RUN TestDeduplicateSmallest run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" 2025/11/22 01:56:13 INFO : mega root 'rclone-test-pamebix5kohe': Looking for duplicate names using smallest mode. 2025/11/22 01:56:13 NOTICE: one: Found 3 files with duplicate names 2025/11/22 01:56:15 INFO : one: Deleted 2025/11/22 01:56:17 INFO : one: Deleted 2025/11/22 01:56:17 NOTICE: one: Deleted 2 extra copies fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:292: Sleeping for 6s just to make sure --- PASS: TestDeduplicateSmallest (20.37s) === RUN TestDeduplicateRename run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" run.go:290: Failed to put "one.txt" to "mega root 'rclone-test-pamebix5kohe'": upload file failed to create session: unexpected end of JSON input --- FAIL: TestDeduplicateRename (10.62s) === RUN TestMergeDirs run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" run.go:290: Failed to put "dupe1/one.txt" to "mega root 'rclone-test-pamebix5kohe'": mkdir create node failed: unexpected end of JSON input --- FAIL: TestMergeDirs (10.79s) === RUN TestListDirSorted run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" run.go:290: Failed to put "zend.txt" to "mega root 'rclone-test-pamebix5kohe'": failed to finish upload: unexpected end of JSON input --- FAIL: TestListDirSorted (23.90s) === RUN TestListDirSortedFn run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" run.go:290: Failed to put "a.txt" to "mega root 'rclone-test-pamebix5kohe'": upload file failed to create session: unexpected end of JSON input --- FAIL: TestListDirSortedFn (10.99s) === RUN TestListJSON run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" === RUN TestListJSON/Default === RUN TestListJSON/FilesOnly === RUN TestListJSON/DirsOnly === RUN TestListJSON/Recurse === RUN TestListJSON/SubDir === RUN TestListJSON/NoModTime === RUN TestListJSON/NoMimeType === RUN TestListJSON/ShowHash === RUN TestListJSON/HashTypes 2025/11/22 01:57:28 ERROR : file1: Failed to read hash: hash type not supported === RUN TestListJSON/Metadata === NAME TestListJSON run.go:130: removing dir "sub" failed - try 1/3: directory not empty --- PASS: TestListJSON (8.65s) --- PASS: TestListJSON/Default (0.00s) --- PASS: TestListJSON/FilesOnly (0.00s) --- PASS: TestListJSON/DirsOnly (0.00s) --- PASS: TestListJSON/Recurse (0.00s) --- PASS: TestListJSON/SubDir (0.00s) --- PASS: TestListJSON/NoModTime (0.00s) --- PASS: TestListJSON/NoMimeType (0.00s) --- PASS: TestListJSON/ShowHash (0.00s) --- PASS: TestListJSON/HashTypes (0.00s) --- PASS: TestListJSON/Metadata (0.00s) === RUN TestStatJSON run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" === RUN TestStatJSON/Root === RUN TestStatJSON/RootFilesOnly === RUN TestStatJSON/RootDirsOnly === RUN TestStatJSON/Dir === RUN TestStatJSON/DirWithTrailingSlash === RUN TestStatJSON/File === RUN TestStatJSON/NotFound === RUN TestStatJSON/DirFilesOnly === RUN TestStatJSON/FileFilesOnly === RUN TestStatJSON/NotFoundFilesOnly === RUN TestStatJSON/DirDirsOnly === RUN TestStatJSON/FileDirsOnly === RUN TestStatJSON/NotFoundDirsOnly === RUN TestStatJSON/RootNotFound 2025/11/22 01:57:36 DEBUG : Creating backend with remote "TestMega:rclone-test-pamebix5kohe/notfound" 2025/11/22 01:57:36 DEBUG : mega root 'rclone-test-pamebix5kohe/notfound': Using previously stored session ID and master key to initialize the Mega API --- PASS: TestStatJSON (25.65s) --- PASS: TestStatJSON/Root (0.00s) --- PASS: TestStatJSON/RootFilesOnly (0.00s) --- PASS: TestStatJSON/RootDirsOnly (0.00s) --- PASS: TestStatJSON/Dir (0.00s) --- PASS: TestStatJSON/DirWithTrailingSlash (0.00s) --- PASS: TestStatJSON/File (0.00s) --- PASS: TestStatJSON/NotFound (0.00s) --- PASS: TestStatJSON/DirFilesOnly (0.00s) --- PASS: TestStatJSON/FileFilesOnly (0.00s) --- PASS: TestStatJSON/NotFoundFilesOnly (0.00s) --- PASS: TestStatJSON/DirDirsOnly (0.00s) --- PASS: TestStatJSON/FileDirsOnly (0.00s) --- PASS: TestStatJSON/NotFoundDirsOnly (0.00s) --- PASS: TestStatJSON/RootNotFound (17.27s) === RUN TestLsd run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" --- PASS: TestLsd (5.93s) === RUN TestLs run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:292: Sleeping for 6s just to make sure --- PASS: TestLs (11.60s) === RUN TestLsWithFilesFrom run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" 2025/11/22 01:58:18 DEBUG : empty space: Excluded (FilesFrom Filter) 2025/11/22 01:58:18 DEBUG : empty space: Excluded fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:292: Sleeping for 6s just to make sure --- PASS: TestLsWithFilesFrom (12.17s) === RUN TestLsLong run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:292: Sleeping for 6s just to make sure --- PASS: TestLsLong (14.26s) === RUN TestHashSums run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" run.go:290: Failed to put "potato2" to "mega root 'rclone-test-pamebix5kohe'": failed to finish upload: unexpected end of JSON input --- FAIL: TestHashSums (11.14s) === RUN TestMaxDeleteSize run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" run.go:290: Failed to put "large" to "mega root 'rclone-test-pamebix5kohe'": failed to finish upload: unexpected end of JSON input --- FAIL: TestMaxDeleteSize (23.23s) === RUN TestDirMove run.go:185: Remote "mega root 'rclone-test-pamebix5kohe'", Local "Local file system at /tmp/rclone1897544710", Modify Window "876000h0m0s" run.go:290: Failed to put "A1/one" to "mega root 'rclone-test-pamebix5kohe'": mkdir create node failed: unexpected end of JSON input --- FAIL: TestDirMove (10.95s) FAIL 2025/11/22 01:59:27 DEBUG : mega root 'rclone-test-pamebix5kohe': Purge remote "./operations.test -test.v -test.timeout 1h0m0s -remote TestMega: -verbose -test.run '^(TestApplyTransforms|TestCopyFile|TestCopyFileBackupDir|TestCopyFileCompareDest|TestCopyFileMaxTransfer|TestDeduplicateFirst|TestDeduplicateLargest|TestDeduplicateOldest|TestDeduplicateRename|TestDeduplicateSizeOnly|TestDeduplicateSkip|TestDeduplicateSmallest|TestDirMove|TestHashSums|TestListDirSorted|TestListDirSortedFn|TestListJSON|TestLs|TestLsLong|TestLsWithFilesFrom|TestLsd|TestMaxDeleteSize|TestMergeDirs|TestStatJSON)$'" - Finished ERROR in 6m47.837718429s (try 3/5): exit status 1: Failed [TestApplyTransforms TestCopyFileBackupDir TestCopyFileCompareDest TestDeduplicateRename TestMergeDirs TestListDirSorted TestListDirSortedFn TestHashSums TestMaxDeleteSize TestDirMove]