"go test -v -timeout 1h0m0s -remote TestOneDrive: -verbose -test.run '^TestIntegration$/^FsMkdir$/^(FsMkdirMetadata|FsPutError)$|^TestIntegration$/^FsMkdir$/^FsPutFiles$/^Internal$/^(TestDirectoryMetadata|TestMetadataMapper|TestReadMetadata|TestReadPermissions|TestServerSideCopyMove|TestUploadSinglePart|TestWritePermissions)$'" - Starting (try 4/5) 2026/01/26 04:37:45 DEBUG : Creating backend with remote "TestOneDrive:rclone-test-warobig1qoqa" 2026/01/26 04:37:45 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2026/01/26 04:37:45 DEBUG : TestOneDrive: Set overridden config ["user_agent"] for backend startup 2026/01/26 04:37:46 DEBUG : Creating backend with remote "/tmp/rclone4031424805" === RUN TestIntegration fstests.go:438: Using remote "TestOneDrive:" 2026/01/26 04:37:46 DEBUG : Creating backend with remote "TestOneDrive:rclone-test-memucon0jozo" 2026/01/26 04:37:46 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2026/01/26 04:37:46 DEBUG : TestOneDrive: Set overridden config ["user_agent"] for backend startup === RUN TestIntegration/FsMkdir === RUN TestIntegration/FsMkdir/FsPutError 2026/01/26 04:37:52 DEBUG : hello? sausage/êé/Hello, 世界/ " ' @ < > & ? + ≠/z.txt: Starting multipart upload 2026/01/26 04:37:52 DEBUG : hello? sausage/êé/Hello, 世界/ " ' @ < > & ? + ≠/z.txt: Uploading segment 0/10240 size 10240 2026/01/26 04:37:52 DEBUG : hello? sausage/êé/Hello, 世界/ " ' @ < > & ? + ≠/z.txt: Cancelling multipart upload: Put "https://my.microsoftpersonalcontent.com/personal/71a96798e7b1d253/_api/v2.0/drives/b!vKC3DXjgjk-Lp7XrVMpysWhcKnHtT8dLkaHuPSl-l2DGmC7WzjOlT7z5hN2HZRn_/items/01C6Y6553ERASFHU7OHJELBKYA6IKI3RZJ/uploadSession?guid='af189f5f-3014-43a8-96e5-706562edebe4'&overwrite=True&rename=False&dc=0&tempauth=v1e.eyJzaXRlaWQiOiIwZGI3YTBiYy1lMDc4LTRmOGUtOGJhNy1iNWViNTRjYTcyYjEiLCJhcHBfZGlzcGxheW5hbWUiOiJyY2xvbmUiLCJhcHBpZCI6ImIxNTY2NWQ5LWVkYTYtNDA5Mi04NTM5LTBlZWMzNzZhZmQ1OSIsImF1ZCI6IjAwMDAwMDAzLTAwMDAtMGZmMS1jZTAwLTAwMDAwMDAwMDAwMC9teS5taWNyb3NvZnRwZXJzb25hbGNvbnRlbnQuY29tQDkxODgwNDBkLTZjNjctNGM1Yi1iMTEyLTM2YTMwNGI2NmRhZCIsImV4cCI6IjE3Njk0ODg2NzIifQ.HtRCmb4RKhceXGu6j07-Ygmis8UJxp_DEM7L45ZPQnrLI6nLtgxzQAOPbyYXIe6T6YFgMzuxk3pS2WYBiuMf5p54JqqeugWhQBGbX7Tmddmkg1V9H-f9vI2j88yZL3n0Vbo7SiPE3qo4qHYZQJvfGdjmn5ZV0iNvOdLEXBSpW1A2yetFGiqG6pdOs7OwcCzvf5Tc2QuvEb2gaI4KQ6FaQ_E9sxfxy-mxdzV4cu6YhmfoGVSq9EwFUkmzv3esJLtXChiR3P7Xm9y5JBFcsJLPGHzTJhRPvto8M4HA_-BrR02DI5lYTR1k4vbk6G07ccc2OmSkf5qDQjfndpeMucWtLk18omtQdjt9F5CZPViaBUjoWN_BQK13qtQWEfrVw997P6FV7bdwJEi-2wXoxwuDk0WVUTPr8pjCTcczRD7jaUtbGZQALppvmfJuxwZuLgo6B2epejjuuqfHSao5jPlmOA.aL-LcMeBqiEoweWGoHDmJWznOnU8t2QwizGKEPyBe58": potato 2026/01/26 04:37:53 NOTICE: hello? sausage/êé/Hello, 世界/ " ' @ < > & ? + ≠/z.txt: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: Put "https://my.microsoftpersonalcontent.com/personal/71a96798e7b1d253/_api/v2.0/drives/b!vKC3DXjgjk-Lp7XrVMpysWhcKnHtT8dLkaHuPSl-l2DGmC7WzjOlT7z5hN2HZRn_/items/01C6Y6553ERASFHU7OHJELBKYA6IKI3RZJ/uploadSession?guid='af189f5f-3014-43a8-96e5-706562edebe4'&overwrite=True&rename=False&dc=0&tempauth=v1e.eyJzaXRlaWQiOiIwZGI3YTBiYy1lMDc4LTRmOGUtOGJhNy1iNWViNTRjYTcyYjEiLCJhcHBfZGlzcGxheW5hbWUiOiJyY2xvbmUiLCJhcHBpZCI6ImIxNTY2NWQ5LWVkYTYtNDA5Mi04NTM5LTBlZWMzNzZhZmQ1OSIsImF1ZCI6IjAwMDAwMDAzLTAwMDAtMGZmMS1jZTAwLTAwMDAwMDAwMDAwMC9teS5taWNyb3NvZnRwZXJzb25hbGNvbnRlbnQuY29tQDkxODgwNDBkLTZjNjctNGM1Yi1iMTEyLTM2YTMwNGI2NmRhZCIsImV4cCI6IjE3Njk0ODg2NzIifQ.HtRCmb4RKhceXGu6j07-Ygmis8UJxp_DEM7L45ZPQnrLI6nLtgxzQAOPbyYXIe6T6YFgMzuxk3pS2WYBiuMf5p54JqqeugWhQBGbX7Tmddmkg1V9H-f9vI2j88yZL3n0Vbo7SiPE3qo4qHYZQJvfGdjmn5ZV0iNvOdLEXBSpW1A2yetFGiqG6pdOs7OwcCzvf5Tc2QuvEb2gaI4KQ6FaQ_E9sxfxy-mxdzV4cu6YhmfoGVSq9EwFUkmzv3esJLtXChiR3P7Xm9y5JBFcsJLPGHzTJhRPvto8M4HA_-BrR02DI5lYTR1k4vbk6G07ccc2OmSkf5qDQjfndpeMucWtLk18omtQdjt9F5CZPViaBUjoWN_BQK13qtQWEfrVw997P6FV7bdwJEi-2wXoxwuDk0WVUTPr8pjCTcczRD7jaUtbGZQALppvmfJuxwZuLgo6B2epejjuuqfHSao5jPlmOA.aL-LcMeBqiEoweWGoHDmJWznOnU8t2QwizGKEPyBe58": potato) 2026/01/26 04:37:53 DEBUG : info from Update error: null fstests.go:143: FsPutError: test object does not exist error: object is present - low level retry 1/10 fstests.go:143: FsPutError: test object does not exist error: object is present - low level retry 2/10 fstests.go:143: FsPutError: test object does not exist error: object is present - low level retry 3/10 fstests.go:143: FsPutError: test object does not exist error: object is present - low level retry 4/10 fstests.go:143: FsPutError: test object does not exist error: object is present - low level retry 5/10 fstests.go:143: FsPutError: test object does not exist error: object is present - low level retry 6/10 fstests.go:143: FsPutError: test object does not exist error: object is present - low level retry 7/10 fstests.go:143: FsPutError: test object does not exist error: object is present - low level retry 8/10 fstests.go:143: FsPutError: test object does not exist error: object is present - low level retry 9/10 fstests.go:143: FsPutError: test object does not exist error: object is present - low level retry 10/10 fstests.go:146: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstests/fstests.go:146 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstests/fstests.go:761 Error: Received unexpected error: object is present Test: TestIntegration/FsMkdir/FsPutError Messages: FsPutError: test object does not exist === RUN TestIntegration/FsMkdir/FsPutFiles 2026/01/26 04:38:15 DEBUG : file name.txt: Starting multipart upload 2026/01/26 04:38:16 DEBUG : file name.txt: Uploading segment 0/100 size 100 2026/01/26 04:38:17 DEBUG : hello? sausage/êé/Hello, 世界/ " ' @ < > & ? + ≠/z.txt: Starting multipart upload 2026/01/26 04:38:17 DEBUG : hello? sausage/êé/Hello, 世界/ " ' @ < > & ? + ≠/z.txt: Uploading segment 0/100 size 100 2026/01/26 04:38:18 DEBUG : file name.txt: Starting multipart upload 2026/01/26 04:38:18 DEBUG : file name.txt: skipping unsupported metadata item: rclonetest: potato 2026/01/26 04:38:18 INFO : file name.txt: no writeable metadata found: map[rclonetest:potato] 2026/01/26 04:38:18 DEBUG : file name.txt: Uploading segment 0/100 size 100 === RUN TestIntegration/FsMkdir/FsPutFiles/Internal 2026/01/26 04:38:19 DEBUG : Creating backend with remote "TestOneDrive:rclone-test-yomaxep2kiho" 2026/01/26 04:38:19 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2026/01/26 04:38:19 DEBUG : TestOneDrive: Set overridden config ["user_agent"] for backend startup 2026/01/26 04:38:20 DEBUG : Creating backend with remote "/tmp/rclone3843106226" run.go:185: Remote "OneDrive root 'rclone-test-yomaxep2kiho'", Local "Local file system at /tmp/rclone3843106226", Modify Window "1s" === RUN TestIntegration/FsMkdir/FsPutFiles/Internal/TestWritePermissions 2026/01/26 04:38:21 DEBUG : some file-nicagac3.txt: Starting multipart upload 2026/01/26 04:38:21 DEBUG : info from Update error: null fstests.go:146: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstests/fstests.go:146 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstests/fstests.go:162 /home/rclone/go/src/github.com/rclone/rclone/backend/onedrive/onedrive_internal_test.go:382 /home/rclone/go/src/github.com/rclone/rclone/backend/onedrive/onedrive_internal_test.go:55 /usr/local/go/src/runtime/asm_amd64.s:1700 Error: Received unexpected error: invalidRequest: Invalid request Test: TestIntegration/FsMkdir/FsPutFiles/Internal/TestWritePermissions Messages: Put 2026/01/26 04:38:21 DEBUG : OneDrive root 'rclone-test-yomaxep2kiho': Purge remote 2026/01/26 04:38:21 DEBUG : Creating backend with remote "TestOneDrive:rclone-test-rupavap2qowa" 2026/01/26 04:38:21 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2026/01/26 04:38:21 DEBUG : TestOneDrive: Set overridden config ["user_agent"] for backend startup 2026/01/26 04:38:22 DEBUG : Creating backend with remote "/tmp/rclone2005925388" === NAME TestIntegration/FsMkdir/FsPutFiles/Internal run.go:185: Remote "OneDrive root 'rclone-test-rupavap2qowa'", Local "Local file system at /tmp/rclone2005925388", Modify Window "1s" === RUN TestIntegration/FsMkdir/FsPutFiles/Internal/TestUploadSinglePart 2026/01/26 04:38:23 DEBUG : some file-hafavad7.txt: Starting singlepart upload 2026/01/26 04:38:24 DEBUG : perms: [ { "id": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ", "grantedTo": { "user": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com" }, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": {} }, "grantedToV2": { "user": {}, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com", "loginName": "i:0#.f|membership|nick@craig-wood.com" } }, "link": { "webUrl": "https://1drv.ms/t/c/71A96798E7B1D253/AWdytTjv01pBtE0QAFlX0Po" }, "roles": [ "owner" ], "shareId": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ" } ] 2026/01/26 04:38:25 DEBUG : some file-hafavad7.txt: sortPermissions: will add permission: &{ 0xc0005ccd80 [0xc0005ccf00] [] [read] } [read] 2026/01/26 04:38:25 DEBUG : some file-hafavad7.txt: skipping remove permission -- can't remove 'owner' role 2026/01/26 04:38:25 DEBUG : some file-hafavad7.txt: metadata permissions: to add: 1 to update: 0 to remove: 0 2026/01/26 04:38:25 ERROR : some file-hafavad7.txt: Failed to add permission: invalidRequest: RequireSignIn and SendInvitation cannot both be false 2026/01/26 04:38:25 ERROR : some file-hafavad7.txt: error writing permissions: failed to process permissions: failed to set permissions: invalidRequest: RequireSignIn and SendInvitation cannot both be false 2026/01/26 04:38:25 DEBUG : info from Update error: null fstests.go:146: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstests/fstests.go:146 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstests/fstests.go:162 /home/rclone/go/src/github.com/rclone/rclone/backend/onedrive/onedrive_internal_test.go:382 /home/rclone/go/src/github.com/rclone/rclone/backend/onedrive/onedrive_internal_test.go:55 Error: Received unexpected error: failed to fetch and update metadata: failed to process permissions: failed to set permissions: invalidRequest: RequireSignIn and SendInvitation cannot both be false Test: TestIntegration/FsMkdir/FsPutFiles/Internal/TestUploadSinglePart Messages: Put 2026/01/26 04:38:25 DEBUG : OneDrive root 'rclone-test-rupavap2qowa': Purge remote 2026/01/26 04:38:25 DEBUG : Creating backend with remote "TestOneDrive:rclone-test-mufahiy3roje" 2026/01/26 04:38:25 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2026/01/26 04:38:25 DEBUG : TestOneDrive: Set overridden config ["user_agent"] for backend startup 2026/01/26 04:38:25 DEBUG : TestOneDrive: Token expired 2026/01/26 04:38:25 DEBUG : TestOneDrive: No updated token found in the config file 2026/01/26 04:38:26 DEBUG : TestOneDrive: Token refresh successful 2026/01/26 04:38:26 DEBUG : Saving config "token" in section "TestOneDrive" of the config file 2026/01/26 04:38:26 DEBUG : TestOneDrive: Saved new token in config file 2026/01/26 04:38:26 DEBUG : Creating backend with remote "/tmp/rclone3656944859" === NAME TestIntegration/FsMkdir/FsPutFiles/Internal run.go:185: Remote "OneDrive root 'rclone-test-mufahiy3roje'", Local "Local file system at /tmp/rclone3656944859", Modify Window "1s" === RUN TestIntegration/FsMkdir/FsPutFiles/Internal/TestReadPermissions 2026/01/26 04:38:27 DEBUG : some file-caluwum8.txt: Starting singlepart upload 2026/01/26 04:38:28 DEBUG : perms: [ { "id": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ", "grantedTo": { "user": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com" }, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": {} }, "grantedToV2": { "user": {}, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com", "loginName": "i:0#.f|membership|nick@craig-wood.com" } }, "link": { "webUrl": "https://1drv.ms/t/c/71A96798E7B1D253/AWmvBqfpbrhHmiDupSEjT3w" }, "roles": [ "owner" ], "shareId": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ" } ] 2026/01/26 04:38:29 DEBUG : perms: [ { "id": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ", "grantedTo": { "user": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com" }, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": {} }, "grantedToV2": { "user": {}, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com", "loginName": "i:0#.f|membership|nick@craig-wood.com" } }, "link": { "webUrl": "https://1drv.ms/t/c/71A96798E7B1D253/AWmvBqfpbrhHmiDupSEjT3w" }, "roles": [ "owner" ], "shareId": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ" } ] 2026/01/26 04:38:29 DEBUG : some file-caluwum8.txt: Starting singlepart upload 2026/01/26 04:38:30 DEBUG : perms: [ { "id": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ", "grantedTo": { "user": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com" }, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": {} }, "grantedToV2": { "user": {}, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com", "loginName": "i:0#.f|membership|nick@craig-wood.com" } }, "link": { "webUrl": "https://1drv.ms/t/c/71A96798E7B1D253/AWmvBqfpbrhHmiDupSEjT3w" }, "roles": [ "owner" ], "shareId": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ" } ] 2026/01/26 04:38:31 DEBUG : perms: [ { "id": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ", "grantedTo": { "user": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com" }, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": {} }, "grantedToV2": { "user": {}, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com", "loginName": "i:0#.f|membership|nick@craig-wood.com" } }, "link": { "webUrl": "https://1drv.ms/t/c/71A96798E7B1D253/AWmvBqfpbrhHmiDupSEjT3w" }, "roles": [ "owner" ], "shareId": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ" } ] onedrive_internal_test.go:141: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/backend/onedrive/onedrive_internal_test.go:141 Error: Should be false Test: TestIntegration/FsMkdir/FsPutFiles/Internal/TestReadPermissions Messages: permissions metadata key was unexpectedly found: [{"id":"aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ","grantedTo":{"user":{"displayName":"Nick Craig-Wood","id":"4","email":"nick@craig-wood.com"},"application":{},"device":{},"group":{},"siteGroup":{},"siteUser":{}},"grantedToV2":{"user":{},"application":{},"device":{},"group":{},"siteGroup":{},"siteUser":{"displayName":"Nick Craig-Wood","id":"4","email":"nick@craig-wood.com","loginName":"i:0#.f|membership|nick@craig-wood.com"}},"link":{"webUrl":"https://1drv.ms/t/c/71A96798E7B1D253/AWmvBqfpbrhHmiDupSEjT3w"},"roles":["owner"],"shareId":"aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ"}] 2026/01/26 04:38:31 DEBUG : OneDrive root 'rclone-test-mufahiy3roje': Purge remote 2026/01/26 04:38:32 DEBUG : Creating backend with remote "TestOneDrive:rclone-test-kuroqem6tani" 2026/01/26 04:38:32 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2026/01/26 04:38:32 DEBUG : TestOneDrive: Set overridden config ["user_agent"] for backend startup 2026/01/26 04:38:33 DEBUG : Creating backend with remote "/tmp/rclone2099945366" === NAME TestIntegration/FsMkdir/FsPutFiles/Internal run.go:185: Remote "OneDrive root 'rclone-test-kuroqem6tani'", Local "Local file system at /tmp/rclone2099945366", Modify Window "1s" === RUN TestIntegration/FsMkdir/FsPutFiles/Internal/TestReadMetadata 2026/01/26 04:38:33 DEBUG : some file-lojover3.txt: Starting singlepart upload 2026/01/26 04:38:34 DEBUG : perms: [ { "id": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ", "grantedTo": { "user": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com" }, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": {} }, "grantedToV2": { "user": {}, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com", "loginName": "i:0#.f|membership|nick@craig-wood.com" } }, "link": { "webUrl": "https://1drv.ms/t/c/71A96798E7B1D253/AaENrNGH4A1LhgB8_HrykOE" }, "roles": [ "owner" ], "shareId": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ" } ] 2026/01/26 04:38:35 DEBUG : some file-lojover3.txt: sortPermissions: will add permission: &{ 0xc0005ccc00 [0xc0005ccd80] [] [write] } [write] 2026/01/26 04:38:35 DEBUG : some file-lojover3.txt: skipping remove permission -- can't remove 'owner' role 2026/01/26 04:38:35 DEBUG : some file-lojover3.txt: metadata permissions: to add: 1 to update: 0 to remove: 0 2026/01/26 04:38:35 ERROR : some file-lojover3.txt: Failed to add permission: invalidRequest: RequireSignIn and SendInvitation cannot both be false 2026/01/26 04:38:35 ERROR : some file-lojover3.txt: error writing permissions: failed to process permissions: failed to set permissions: invalidRequest: RequireSignIn and SendInvitation cannot both be false 2026/01/26 04:38:35 DEBUG : info from Update error: null fstests.go:146: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstests/fstests.go:146 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstests/fstests.go:162 /home/rclone/go/src/github.com/rclone/rclone/backend/onedrive/onedrive_internal_test.go:382 /home/rclone/go/src/github.com/rclone/rclone/backend/onedrive/onedrive_internal_test.go:156 /usr/local/go/src/runtime/asm_amd64.s:1700 Error: Received unexpected error: failed to fetch and update metadata: failed to process permissions: failed to set permissions: invalidRequest: RequireSignIn and SendInvitation cannot both be false Test: TestIntegration/FsMkdir/FsPutFiles/Internal/TestReadMetadata Messages: Put 2026/01/26 04:38:35 DEBUG : OneDrive root 'rclone-test-kuroqem6tani': Purge remote 2026/01/26 04:38:35 DEBUG : Creating backend with remote "TestOneDrive:rclone-test-putezuy8fado" 2026/01/26 04:38:35 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2026/01/26 04:38:35 DEBUG : TestOneDrive: Set overridden config ["user_agent"] for backend startup 2026/01/26 04:38:35 DEBUG : OneDrive root 'rclone-test-memucon0jozo': Background refresher detected expired token but no uploads in progress - doing nothing 2026/01/26 04:38:35 DEBUG : OneDrive root 'rclone-test-yomaxep2kiho': Background refresher detected expired token but no uploads in progress - doing nothing 2026/01/26 04:38:35 DEBUG : OneDrive root 'rclone-test-warobig1qoqa': Background refresher detected expired token but no uploads in progress - doing nothing 2026/01/26 04:38:35 DEBUG : OneDrive root 'rclone-test-rupavap2qowa': Background refresher detected expired token but no uploads in progress - doing nothing 2026/01/26 04:38:36 DEBUG : Creating backend with remote "/tmp/rclone721614342" === NAME TestIntegration/FsMkdir/FsPutFiles/Internal run.go:185: Remote "OneDrive root 'rclone-test-putezuy8fado'", Local "Local file system at /tmp/rclone721614342", Modify Window "1s" === RUN TestIntegration/FsMkdir/FsPutFiles/Internal/TestDirectoryMetadata 2026/01/26 04:38:36 DEBUG : subdir: Making directory with metadata 2026/01/26 04:38:37 DEBUG : subdir: skipping unsupported metadata item: content-type: inode/directory onedrive_internal_test.go:208: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/backend/onedrive/onedrive_internal_test.go:208 Error: Received unexpected error: resourceModified: The resource has changed since the caller last read it; usually an eTag mismatch Test: TestIntegration/FsMkdir/FsPutFiles/Internal/TestDirectoryMetadata onedrive_internal_test.go:209: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/backend/onedrive/onedrive_internal_test.go:209 Error: Expected value not to be nil. Test: TestIntegration/FsMkdir/FsPutFiles/Internal/TestDirectoryMetadata 2026/01/26 04:38:37 DEBUG : OneDrive root 'rclone-test-putezuy8fado': Purge remote 2026/01/26 04:38:38 DEBUG : Creating backend with remote "TestOneDrive:rclone-test-zitedib0dudo" 2026/01/26 04:38:38 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2026/01/26 04:38:38 DEBUG : TestOneDrive: Set overridden config ["user_agent"] for backend startup 2026/01/26 04:38:39 DEBUG : Creating backend with remote "/tmp/rclone3946180023" === NAME TestIntegration/FsMkdir/FsPutFiles/Internal run.go:185: Remote "OneDrive root 'rclone-test-zitedib0dudo'", Local "Local file system at /tmp/rclone3946180023", Modify Window "1s" === RUN TestIntegration/FsMkdir/FsPutFiles/Internal/TestServerSideCopyMove 2026/01/26 04:38:39 DEBUG : some file-zuroxaq3.txt: Starting singlepart upload 2026/01/26 04:38:40 DEBUG : perms: [ { "id": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ", "grantedTo": { "user": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com" }, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": {} }, "grantedToV2": { "user": {}, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com", "loginName": "i:0#.f|membership|nick@craig-wood.com" } }, "link": { "webUrl": "https://1drv.ms/t/c/71A96798E7B1D253/AQpGwiXtRRlPqb6hr-yuCLo" }, "roles": [ "owner" ], "shareId": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ" } ] 2026/01/26 04:38:41 DEBUG : some file-zuroxaq3.txt: sortPermissions: will add permission: &{ 0xc000674600 [0xc000674780] [] [read] } [read] 2026/01/26 04:38:41 DEBUG : some file-zuroxaq3.txt: skipping remove permission -- can't remove 'owner' role 2026/01/26 04:38:41 DEBUG : some file-zuroxaq3.txt: metadata permissions: to add: 1 to update: 0 to remove: 0 2026/01/26 04:38:41 ERROR : some file-zuroxaq3.txt: Failed to add permission: invalidRequest: RequireSignIn and SendInvitation cannot both be false 2026/01/26 04:38:41 ERROR : some file-zuroxaq3.txt: error writing permissions: failed to process permissions: failed to set permissions: invalidRequest: RequireSignIn and SendInvitation cannot both be false 2026/01/26 04:38:41 DEBUG : info from Update error: null fstests.go:146: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstests/fstests.go:146 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstests/fstests.go:162 /home/rclone/go/src/github.com/rclone/rclone/backend/onedrive/onedrive_internal_test.go:382 /home/rclone/go/src/github.com/rclone/rclone/backend/onedrive/onedrive_internal_test.go:293 /usr/local/go/src/runtime/asm_amd64.s:1700 Error: Received unexpected error: failed to fetch and update metadata: failed to process permissions: failed to set permissions: invalidRequest: RequireSignIn and SendInvitation cannot both be false Test: TestIntegration/FsMkdir/FsPutFiles/Internal/TestServerSideCopyMove Messages: Put 2026/01/26 04:38:41 DEBUG : OneDrive root 'rclone-test-zitedib0dudo': Purge remote === RUN TestIntegration/FsMkdir/FsPutFiles/Internal/TestMetadataMapper 2026/01/26 04:38:42 DEBUG : some file-hatedot8.txt: Starting singlepart upload 2026/01/26 04:38:42 DEBUG : Metadata mapper sent: { "SrcFs": "/tmp/rclone3946180023", "SrcFsType": "local", "DstFs": "TestOneDrive:rclone-test-zitedib0dudo", "DstFsType": "onedrive", "Remote": "some file-hatedot8.txt", "Size": 0, "MimeType": "text/plain; charset=utf-8", "ModTime": "2020-02-29T12:34:56.789Z", "IsDir": false, "Metadata": { "atime": "2020-02-29T12:34:56.789Z", "btime": "2026-01-26T04:38:41.688092418Z", "gid": "1000", "mode": "100600", "mtime": "2020-02-29T12:34:56.789Z", "uid": "1000" } } 2026/01/26 04:38:42 DEBUG : some file-hatedot8.txt: Calling metadata mapper echo "{""Metadata"":{""permissions"":""[{\""grantedToIdentities\"":[{\""user\"":{\""id\"":\""ryan@contoso.com\""}}],\""roles\"":[\""read\""]}]""}}" 2026/01/26 04:38:42 DEBUG : Metadata mapper received: {"Metadata":{"permissions":"[{\"grantedToIdentities\":[{\"user\":{\"id\":\"ryan@contoso.com\"}}],\"roles\":[\"read\"]}]"}} 2026/01/26 04:38:42 DEBUG : some file-hatedot8.txt: Metadata mapper returned in 5.028115ms 2026/01/26 04:38:43 DEBUG : perms: [ { "id": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ", "grantedTo": { "user": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com" }, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": {} }, "grantedToV2": { "user": {}, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com", "loginName": "i:0#.f|membership|nick@craig-wood.com" } }, "link": { "webUrl": "https://1drv.ms/t/c/71A96798E7B1D253/AXUcuaCZmdtNnFfQ-2-iKuA" }, "roles": [ "owner" ], "shareId": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ" } ] 2026/01/26 04:38:43 DEBUG : some file-hatedot8.txt: sortPermissions: will add permission: &{ [0xc000675500] [] [read] } [read] 2026/01/26 04:38:43 DEBUG : some file-hatedot8.txt: skipping remove permission -- can't remove 'owner' role 2026/01/26 04:38:43 DEBUG : some file-hatedot8.txt: metadata permissions: to add: 1 to update: 0 to remove: 0 2026/01/26 04:38:43 ERROR : some file-hatedot8.txt: Failed to add permission: invalidRequest: RequireSignIn and SendInvitation cannot both be false 2026/01/26 04:38:43 ERROR : some file-hatedot8.txt: error writing permissions: failed to process permissions: failed to set permissions: invalidRequest: RequireSignIn and SendInvitation cannot both be false 2026/01/26 04:38:43 DEBUG : info from Update error: null 2026/01/26 04:38:43 ERROR : some file-gicixoq3.txt: Failed to copy: failed to fetch and update metadata: failed to process permissions: failed to set permissions: invalidRequest: RequireSignIn and SendInvitation cannot both be false onedrive_internal_test.go:345: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/backend/onedrive/onedrive_internal_test.go:345 Error: Received unexpected error: failed to fetch and update metadata: failed to process permissions: failed to set permissions: invalidRequest: RequireSignIn and SendInvitation cannot both be false Test: TestIntegration/FsMkdir/FsPutFiles/Internal/TestMetadataMapper 2026/01/26 04:38:44 DEBUG : perms: [ { "id": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ", "grantedTo": { "user": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com" }, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": {} }, "grantedToV2": { "user": {}, "application": {}, "device": {}, "group": {}, "siteGroup": {}, "siteUser": { "displayName": "Nick Craig-Wood", "id": "4", "email": "nick@craig-wood.com", "loginName": "i:0#.f|membership|nick@craig-wood.com" } }, "link": { "webUrl": "https://1drv.ms/t/c/71A96798E7B1D253/AXUcuaCZmdtNnFfQ-2-iKuA" }, "roles": [ "owner" ], "shareId": "aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ" } ] onedrive_internal_test.go:368: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/backend/onedrive/onedrive_internal_test.go:368 Error: Should be true Test: TestIntegration/FsMkdir/FsPutFiles/Internal/TestMetadataMapper Messages: no permission found with expected role (want: {"Metadata":{"permissions":"[{\"grantedToIdentities\":[{\"user\":{\"id\":\"ryan@contoso.com\"}}],\"roles\":[\"read\"]}]"}} got: map[btime:2026-01-26T04:38:43Z content-type:text/plain created-by-display-name:Nick Craig-Wood created-by-id:71A96798E7B1D253 id:71A96798E7B1D253#71A96798E7B1D253!sa0b91c7599994ddb9c57d0fb6fa22ae0 last-modified-by-display-name:Nick Craig-Wood last-modified-by-id:71A96798E7B1D253 malware-detected:false mtime:2026-01-26T04:38:43Z permissions:[{"id":"aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ","grantedTo":{"user":{"displayName":"Nick Craig-Wood","id":"4","email":"nick@craig-wood.com"},"application":{},"device":{},"group":{},"siteGroup":{},"siteUser":{}},"grantedToV2":{"user":{},"application":{},"device":{},"group":{},"siteGroup":{},"siteUser":{"displayName":"Nick Craig-Wood","id":"4","email":"nick@craig-wood.com","loginName":"i:0#.f|membership|nick@craig-wood.com"}},"link":{"webUrl":"https://1drv.ms/t/c/71A96798E7B1D253/AXUcuaCZmdtNnFfQ-2-iKuA"},"roles":["owner"],"shareId":"aTowIy5mfG1lbWJlcnNoaXB8bmlja0BjcmFpZy13b29kLmNvbQ"}] utime:2026-01-26T04:38:43Z] ) onedrive_internal_test.go:369: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/backend/onedrive/onedrive_internal_test.go:369 Error: Not equal: expected: 1 actual : 0 Test: TestIntegration/FsMkdir/FsPutFiles/Internal/TestMetadataMapper Messages: expected to find exactly 1 match 2026/01/26 04:38:44 DEBUG : OneDrive root 'rclone-test-zitedib0dudo': Purge remote 2026/01/26 04:38:44 DEBUG : OneDrive root 'rclone-test-zitedib0dudo': Purge remote 2026/01/26 04:38:44 NOTICE: purge failed: directory not found 2026/01/26 04:38:44 DEBUG : OneDrive root 'rclone-test-putezuy8fado': Purge remote 2026/01/26 04:38:44 NOTICE: purge failed: directory not found 2026/01/26 04:38:44 DEBUG : OneDrive root 'rclone-test-kuroqem6tani': Purge remote 2026/01/26 04:38:44 NOTICE: purge failed: directory not found 2026/01/26 04:38:44 DEBUG : OneDrive root 'rclone-test-mufahiy3roje': Purge remote 2026/01/26 04:38:45 NOTICE: purge failed: directory not found 2026/01/26 04:38:45 DEBUG : OneDrive root 'rclone-test-rupavap2qowa': Purge remote 2026/01/26 04:38:45 DEBUG : TestOneDrive: Token expired 2026/01/26 04:38:45 DEBUG : TestOneDrive: Loaded fresh token from config file 2026/01/26 04:38:45 DEBUG : TestOneDrive: Loaded new refresh token from config file 2026/01/26 04:38:45 DEBUG : TestOneDrive: Token refresh successful 2026/01/26 04:38:45 NOTICE: purge failed: directory not found 2026/01/26 04:38:45 DEBUG : OneDrive root 'rclone-test-yomaxep2kiho': Purge remote 2026/01/26 04:38:45 DEBUG : TestOneDrive: Token expired 2026/01/26 04:38:45 DEBUG : TestOneDrive: Loaded fresh token from config file 2026/01/26 04:38:45 DEBUG : TestOneDrive: Loaded new refresh token from config file 2026/01/26 04:38:45 DEBUG : TestOneDrive: Token refresh successful 2026/01/26 04:38:45 NOTICE: purge failed: directory not found === RUN TestIntegration/FsMkdir/FsMkdirMetadata 2026/01/26 04:38:45 DEBUG : TestOneDrive: Token expired 2026/01/26 04:38:45 DEBUG : TestOneDrive: Loaded fresh token from config file 2026/01/26 04:38:45 DEBUG : TestOneDrive: Loaded new refresh token from config file 2026/01/26 04:38:45 DEBUG : TestOneDrive: Token refresh successful 2026/01/26 04:38:46 DEBUG : dir-metadata: skipping unsupported metadata item: potato: jersey fstest.go:127: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:127 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:613 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstests/fstests.go:2682 Error: Should be true Test: TestIntegration/FsMkdir/FsMkdirMetadata Messages: dir-metadata: Modification time difference too big |-218952h33m39.500000001s| > 1s (want 2001-02-03 04:05:06.499999999 +0000 UTC vs got 2026-01-26 04:38:46 +0000 UTC) (precision 1s) fstest.go:127: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:127 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:613 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstests/fstests.go:2683 Error: Should be true Test: TestIntegration/FsMkdir/FsMkdirMetadata Messages: dir-metadata: Modification time difference too big |-218952h33m39.500000001s| > 1s (want 2001-02-03 04:05:06.499999999 +0000 UTC vs got 2026-01-26 04:38:46 +0000 UTC) (precision 1s) === RUN TestIntegration/FsMkdir/FsMkdirMetadata/Update 2026/01/26 04:38:46 DEBUG : dir-metadata: skipping unsupported metadata item: potato: king edwards === RUN TestIntegration/FsMkdir/FsMkdirMetadata/CheckDirectory 2026/01/26 04:38:48 ERROR : error listing: directory not found --- FAIL: TestIntegration (62.37s) --- FAIL: TestIntegration/FsMkdir (60.28s) --- FAIL: TestIntegration/FsMkdir/FsPutError (26.85s) --- FAIL: TestIntegration/FsMkdir/FsPutFiles (30.04s) --- FAIL: TestIntegration/FsMkdir/FsPutFiles/Internal (26.31s) --- FAIL: TestIntegration/FsMkdir/FsPutFiles/Internal/TestWritePermissions (0.91s) --- FAIL: TestIntegration/FsMkdir/FsPutFiles/Internal/TestUploadSinglePart (2.61s) --- FAIL: TestIntegration/FsMkdir/FsPutFiles/Internal/TestReadPermissions (4.93s) --- FAIL: TestIntegration/FsMkdir/FsPutFiles/Internal/TestReadMetadata (2.19s) --- FAIL: TestIntegration/FsMkdir/FsPutFiles/Internal/TestDirectoryMetadata (1.41s) --- FAIL: TestIntegration/FsMkdir/FsPutFiles/Internal/TestServerSideCopyMove (2.33s) --- FAIL: TestIntegration/FsMkdir/FsPutFiles/Internal/TestMetadataMapper (2.35s) --- FAIL: TestIntegration/FsMkdir/FsMkdirMetadata (2.20s) --- PASS: TestIntegration/FsMkdir/FsMkdirMetadata/Update (0.59s) --- PASS: TestIntegration/FsMkdir/FsMkdirMetadata/CheckDirectory (0.00s) FAIL 2026/01/26 04:38:48 DEBUG : OneDrive root 'rclone-test-warobig1qoqa': Purge remote 2026/01/26 04:38:48 DEBUG : TestOneDrive: Token expired 2026/01/26 04:38:48 DEBUG : TestOneDrive: Loaded fresh token from config file 2026/01/26 04:38:48 DEBUG : TestOneDrive: Loaded new refresh token from config file 2026/01/26 04:38:48 DEBUG : TestOneDrive: Token refresh successful 2026/01/26 04:38:49 NOTICE: purge failed: directory not found exit status 1 FAIL github.com/rclone/rclone/backend/onedrive 64.019s "go test -v -timeout 1h0m0s -remote TestOneDrive: -verbose -test.run '^TestIntegration$/^FsMkdir$/^(FsMkdirMetadata|FsPutError)$|^TestIntegration$/^FsMkdir$/^FsPutFiles$/^Internal$/^(TestDirectoryMetadata|TestMetadataMapper|TestReadMetadata|TestReadPermissions|TestServerSideCopyMove|TestUploadSinglePart|TestWritePermissions)$'" - Finished ERROR in 1m6.053388274s (try 4/5): exit status 1: Failed [TestIntegration/FsMkdir/FsPutError TestIntegration/FsMkdir/FsPutFiles/Internal/TestWritePermissions TestIntegration/FsMkdir/FsPutFiles/Internal/TestUploadSinglePart TestIntegration/FsMkdir/FsPutFiles/Internal/TestReadPermissions TestIntegration/FsMkdir/FsPutFiles/Internal/TestReadMetadata TestIntegration/FsMkdir/FsPutFiles/Internal/TestDirectoryMetadata TestIntegration/FsMkdir/FsPutFiles/Internal/TestServerSideCopyMove TestIntegration/FsMkdir/FsPutFiles/Internal/TestMetadataMapper TestIntegration/FsMkdir/FsMkdirMetadata]