Failed to Rmdir: Directory not empty

What is the problem you are having with rclone?

directories are not being deleted with "Failed to Rmdir: directory not empty."

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

rclone v1.58.0

  • os/version: Microsoft Windows Server 2019 Datacenter 1809 (64 bit)
  • os/kernel: 10.0.17763.2803 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.17.8
  • go/linking: dynamic
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

OneDrive Business

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone sync --verbose -vv --log-file=Shipping "E:\Shipping" "OneDriveWyEncryptednew:Shipping"

The rclone config contents with secrets removed.

[OneDriveWy]
type = onedrive
token =
drive_id = b!LshYrNCGAUWnjNcIfrBRKsXCnZUGeHTZulsJAXsRKG
drive_type = business

[OneDriveWyEncryptednew]
type = crypt
remote = OneDriveWy:DTD Server
filename_encryption = standard
directory_name_encryption = false
password =

A log from the command with the -vv flag

2022/04/25 20:05:39 DEBUG : rclone: Version "v1.58.0" starting with parameters ["rclone" "sync" "--verbose" "-vv" "--log-file=Shipping" "E:\\Shipping" "OneDriveWyEncryptednew:Shipping"]
2022/04/25 20:05:39 DEBUG : Creating backend with remote "E:\\Shipping"
2022/04/25 20:05:39 DEBUG : Using config file from "C:\\Users\\Administrator\\AppData\\Roaming\\rclone\\rclone.conf"
2022/04/25 20:05:39 DEBUG : fs cache: renaming cache item "E:\\Shipping" to be canonical "//?/E:/Shipping"
2022/04/25 20:05:39 DEBUG : Creating backend with remote "OneDriveWyEncryptednew:Shipping"
2022/04/25 20:05:40 DEBUG : Creating backend with remote "OneDriveWy:DTD Server/qsvakrtfatdjbdrhlhkj8"
2022/04/25 20:05:42 DEBUG : Creating backend with remote "OneDriveWy:DTD Server/Shipping"
2022/04/25 20:05:43 DEBUG : 2020 ExpressShip License.txt: Size and modification time the same (differ by -668.5007ms, within tolerance 1s)
2022/04/25 20:05:43 DEBUG : 2020 ExpressShip License.txt: Unchanged skipping
2022/04/25 20:05:43 DEBUG : .DS_Store: Size and modification time the same (differ by -5.023ms, within tolerance 1s)
2022/04/25 20:05:43 DEBUG : MediaID.bin: Size and modification time the same (differ by -584.8676ms, within tolerance 1s)
2022/04/25 20:05:43 DEBUG : Desktop.ini: Size and modification time the same (differ by -580.8672ms, within tolerance 1s)
2022/04/25 20:05:43 DEBUG : .DS_Store: Unchanged skipping
2022/04/25 20:05:43 DEBUG : ac0f71fb-a7db-459b-9e74-cd5415197604.pdf: Size and modification time the same (differ by -114.4975ms, within tolerance 1s)
2022/04/25 20:05:43 DEBUG : ac0f71fb-a7db-459b-9e74-cd5415197604.pdf: Unchanged skipping
2022/04/25 20:05:43 DEBUG : MediaID.bin: Unchanged skipping
2022/04/25 20:05:43 DEBUG : Desktop.ini: Unchanged skipping
2022/04/25 20:05:43 DEBUG : abfbol.pdf: Size and modification time the same (differ by -818.9588ms, within tolerance 1s)
2022/04/25 20:05:43 DEBUG : abfbol.pdf: Unchanged skipping
2022/04/25 20:05:43 DEBUG : fxfbol_1932893323.pdf: Size and modification time the same (differ by -491.5512ms, within tolerance 1s)
2022/04/25 20:05:43 DEBUG : fxfbol_1932893323.pdf: Unchanged skipping
2022/04/25 20:05:44 DEBUG : Convertor/COMDLG32.OCX: Size and modification time the same (differ by 0s, within tolerance 1s)
2022/04/25 20:05:44 DEBUG : Convertor/COMDLG32.OCX: Unchanged skipping
2022/04/25 20:05:44 DEBUG : Convertor/Shortcut to Convertor.exe.lnk: Size and modification time the same (differ by -343.75ms, within tolerance 1s)
2022/04/25 20:05:44 DEBUG : Convertor/Shortcut to Convertor.exe.lnk: Unchanged skipping
2022/04/25 20:05:44 DEBUG : Convertor/Icon.ico: Size and modification time the same (differ by 0s, within tolerance 1s)
2022/04/25 20:05:44 DEBUG : Convertor/setup.log: Size and modification time the same (differ by -372.5601ms, within tolerance 1s)
2022/04/25 20:05:44 DEBUG : Convertor/setup.log: Unchanged skipping
2022/04/25 20:05:44 DEBUG : Convertor/Icon.ico: Unchanged skipping
2022/04/25 20:05:46 DEBUG : Database.v5/lwlbackup_200102142914000/zf_UPS_LWL.dat: Unchanged skipping
2022/04/25 20:05:46 DEBUG : Database.v5/lwlbackup_200102142914000/zf_UPS_LWL.idx: Size and modification time the same (differ by -94.8188ms, within tolerance 1s)
2022/04/25 20:05:46 DEBUG : Database.v5/lwlbackup_200102142914000/zf_UPS_LWL.idx: Unchanged skipping
2022/04/25 20:05:47 DEBUG : Database.v5/svcbackup_200423130913818/zf_UPS_SVC.dat: Size and modification time the same (differ by -727.6574ms, within tolerance 1s)
2022/04/25 20:05:47 DEBUG : Database.v5/svcbackup_200423130913818/zf_UPS_SVC.dat: Unchanged skipping
2022/04/25 20:05:47 DEBUG : Database.v5/svcbackup_200423130913818/zf_UPS_SVC.idx: Size and modification time the same (differ by -634.0556ms, within tolerance 1s)
2022/04/25 20:05:47 DEBUG : Database.v5/svcbackup_200423130913818/zf_UPS_SVC.idx: Unchanged skipping
2022/04/25 20:05:47 DEBUG : Database.v5/tpbbackup_200102142914302/zf_UPS_TPB.dat: Size and modification time the same (differ by -1.4164ms, within tolerance 1s)
2022/04/25 20:05:47 DEBUG : Database.v5/tpbbackup_200102142914302/zf_UPS_TPB.dat: Unchanged skipping
2022/04/25 20:05:47 DEBUG : Database.v5/tpbbackup_200102142914302/zf_UPS_TPB.idx: Size and modification time the same (differ by -416.3µs, within tolerance 1s)
2022/04/25 20:05:47 DEBUG : Database.v5/tpbbackup_200102142914302/zf_UPS_TPB.idx: Unchanged skipping
2022/04/25 20:05:47 DEBUG : Database.v5/svtbackup_180919090550982/zf_UPS_SVT.idx: Size and modification time the same (differ by -447.4873ms, within tolerance 1s)
2022/04/25 20:05:47 DEBUG : Database.v5/svtbackup_180919090550982/zf_UPS_SVT.idx: Unchanged skipping
2022/04/25 20:05:47 DEBUG : Database.v5/svtbackup_180919090550982/zf_UPS_SVT.dat: Size and modification time the same (differ by -449.4875ms, within tolerance 1s)
2022/04/25 20:05:47 DEBUG : Database.v5/svtbackup_180919090550982/zf_UPS_SVT.dat: Unchanged skipping
2022/04/25 20:05:47 DEBUG : Database.v5/svdbackup_200423130945371/zf_UPS_SVD.dat: Size and modification time the same (differ by -338.5143ms, within tolerance 1s)
2022/04/25 20:05:47 DEBUG : Database.v5/svdbackup_200423130945371/zf_UPS_SVD.dat: Unchanged skipping
2022/04/25 20:05:47 DEBUG : Database.v5/svdbackup_200423130945371/zf_UPS_SVD.idx: Size and modification time the same (differ by -322.9142ms, within tolerance 1s)
2022/04/25 20:05:47 DEBUG : Database.v5/svdbackup_200423130945371/zf_UPS_SVD.idx: Unchanged skipping
2022/04/25 20:05:47 DEBUG : Database.v5/urcbackup_200114183735130/zf_UPS_URC.dat: Size and modification time the same (differ by -889.5472ms, within tolerance 1s)
2022/04/25 20:05:47 DEBUG : Database.v5/urcbackup_200114183735130/zf_UPS_URC.dat: Unchanged skipping
2022/04/25 20:05:47 DEBUG : Database.v5/urcbackup_200114183735130/zf_UPS_URC.idx: Size and modification time the same (differ by -887.547ms, within tolerance 1s)
2022/04/25 20:05:47 DEBUG : Database.v5/urcbackup_200114183735130/zf_UPS_URC.idx: Unchanged skipping
2022/04/25 20:05:47 DEBUG : Shipping PC Drive C/Apps/osmedia/sources/en-us/~tmpB4_idkan0hlb65umk0krfofh3jhl1bmm6ustskoukg057vvhkhhfb00: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:47 DEBUG : Shipping PC Drive C/Archibald Global/CoreExpress/ReportFiles/JosephL/~tmp71_bjbfsm80v09k88bms3egkvp043dmkmp2c6s0r1h4i4d9250a6ch95m7u3tsrg7pfrb1cp045f4n06: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:47 DEBUG : Shipping PC Drive C/Archibald Global/CoreExpress/ReportFiles/JosephL/~tmpCB_g8t4jm0h54l5ctpteq2nama72t6aehmd0sadenmtftqlo4m42mgd5j4vs9urhni8jdevbs5u00gug: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:47 DEBUG : Shipping PC Drive C/Archibald Global/CoreExpress/ReportFiles/JosephL/~tmpCC_ei7igq50ta4g7t860teshaos9qns5bpkvefm798mchjtquiei7ii2hptsdb4frl4cds93hja39khu: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:48 DEBUG : Shipping PC Drive C/Drivers/video/R307994/Graphics/MediaSDK/ILK/x64/~tmpB5_daij5v8ul8l3bq7bvqfncvakrk: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:48 DEBUG : Shipping PC Drive C/Users/Public/Documents/T-Firm LLC/ExpressShip/Labels/~tmpBA_982ls1gp297rkop6vhmr9fri6qbpi23qdquuckb7dj85t7t9aqlg: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:48 DEBUG : Shipping PC Drive C/Users/Public/Documents/T-Firm LLC/ExpressShip/Labels/~tmpD7_fq50h5j53u8faj24heuc305bhjpjf0a2ofk9g0qiu0ajfbji3klg: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:48 DEBUG : Shipping PC Drive C/Users/Public/Documents/T-Firm LLC/ExpressShip/Database/~tmpAA_itvmsjfbt3alg379evsaf1n63btibbkjsodke84igu1850ln690g: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:48 DEBUG : Shipping PC Drive C/Users/Admin/AppData/LocalLow/AVG Secure Search/cache/~tmp95_2srdfq2np8q8k658678bvqal1i0q5hp7e3tvgc9ljbvi7q14oq10: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:48 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Roaming/Microsoft/Windows/Recent/~tmp0E_14sm427usqubn67g148srjlk78ugta1stm72qm2l7pmamruqt4teov2douqtkj27nr4131v0q69h2: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:49 DEBUG : Shipping PC Drive C/Program Files (x86)/Microsoft Office/root/vfs/ProgramFilesCommonX86/Microsoft Shared/THEMES16/ECHO/~tmpAD_er4rld8gftk28q2ibks5nj6rgs: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:49 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Content.IE5/H0VYTNZ3/~tmpC1_sennh1fhp8d95sr7a0bmek7ilt0jlahgfc6aabtfaf49ejvuab50: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:49 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Content.IE5/DJT2SGHG/~tmp84_1jg7t6k4btlji3o2snou30ae0c: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:49 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Content.IE5/DJT2SGHG/~tmpF3_259seof5ctutqbt83e5q6sjdngkdnko9lojaq1tkt8ijurnje6kg: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:49 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/OneDrive/19.232.1124.0012/images/darkTheme/~tmp38_3nhpvkjd5hj848bas1vom8fedo: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:49 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Low/Content.IE5/1EEFH4KO/~tmp3E_uj5np8vhhudr9ehuth8ms34fl3hfgphcshv5tp6ha149ks6h17pg: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:49 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Low/Content.IE5/065BP881/~tmpC1_l274tsvrvhbamddvtf4tl26lk3bsv626b4tfut1fvii5b9ha4ko0: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:49 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Low/Content.IE5/065BP881/~tmpEE_ga78mfgb0nl599b7hs0bkhci7k: Skipping undecryptable file name: illegal base32 data at input byte 0
2022/04/25 20:05:49 DEBUG : Encrypted drive 'OneDriveWyEncryptednew:Shipping': Waiting for checks to finish
2022/04/25 20:05:49 DEBUG : Encrypted drive 'OneDriveWyEncryptednew:Shipping': Waiting for transfers to finish
2022/04/25 20:05:49 DEBUG : Waiting for deletions to finish
2022/04/25 20:05:49 INFO  : Shipping PC Drive C/Users/Public/Documents/T-Firm LLC/ExpressShip/Labels: Removing directory
2022/04/25 20:05:50 DEBUG : Shipping PC Drive C/Users/Public/Documents/T-Firm LLC/ExpressShip/Labels: Failed to Rmdir: directory not empty
2022/04/25 20:05:50 INFO  : Shipping PC Drive C/Users/Public/Documents/T-Firm LLC/ExpressShip/Database: Removing directory
2022/04/25 20:05:50 DEBUG : Shipping PC Drive C/Users/Public/Documents/T-Firm LLC/ExpressShip/Database: Failed to Rmdir: directory not empty
2022/04/25 20:05:50 INFO  : Shipping PC Drive C/Users/Public/Documents/T-Firm LLC/ExpressShip: Removing directory
2022/04/25 20:05:50 DEBUG : Shipping PC Drive C/Users/Public/Documents/T-Firm LLC/ExpressShip: Failed to Rmdir: directory not empty
2022/04/25 20:05:50 INFO  : Shipping PC Drive C/Users/Public/Documents/T-Firm LLC: Removing directory
2022/04/25 20:05:51 DEBUG : Shipping PC Drive C/Users/Public/Documents/T-Firm LLC: Failed to Rmdir: directory not empty
2022/04/25 20:05:51 INFO  : Shipping PC Drive C/Users/Public/Documents: Removing directory
2022/04/25 20:05:51 DEBUG : Shipping PC Drive C/Users/Public/Documents: Failed to Rmdir: directory not empty
2022/04/25 20:05:51 INFO  : Shipping PC Drive C/Users/Public: Removing directory
2022/04/25 20:05:51 DEBUG : Shipping PC Drive C/Users/Public: Failed to Rmdir: directory not empty
2022/04/25 20:05:51 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Roaming/Microsoft/Windows/Recent: Removing directory
2022/04/25 20:05:52 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Roaming/Microsoft/Windows/Recent: Failed to Rmdir: directory not empty
2022/04/25 20:05:52 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Roaming/Microsoft/Windows: Removing directory
2022/04/25 20:05:52 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Roaming/Microsoft/Windows: Failed to Rmdir: directory not empty
2022/04/25 20:05:52 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Roaming/Microsoft: Removing directory
2022/04/25 20:05:52 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Roaming/Microsoft: Failed to Rmdir: directory not empty
2022/04/25 20:05:52 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Roaming: Removing directory
2022/04/25 20:05:53 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Roaming: Failed to Rmdir: directory not empty
2022/04/25 20:05:53 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Low/Content.IE5/1EEFH4KO: Removing directory
2022/04/25 20:05:53 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Low/Content.IE5/1EEFH4KO: Failed to Rmdir: directory not empty
2022/04/25 20:05:53 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Low/Content.IE5/065BP881: Removing directory
2022/04/25 20:05:53 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Low/Content.IE5/065BP881: Failed to Rmdir: directory not empty
2022/04/25 20:05:53 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Low/Content.IE5: Removing directory
2022/04/25 20:05:54 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Low/Content.IE5: Failed to Rmdir: directory not empty
2022/04/25 20:05:54 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Low: Removing directory
2022/04/25 20:05:54 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Low: Failed to Rmdir: directory not empty
2022/04/25 20:05:54 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Content.IE5/H0VYTNZ3: Removing directory
2022/04/25 20:05:54 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Content.IE5/H0VYTNZ3: Failed to Rmdir: directory not empty
2022/04/25 20:05:54 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Content.IE5/DJT2SGHG: Removing directory
2022/04/25 20:05:55 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Content.IE5/DJT2SGHG: Failed to Rmdir: directory not empty
2022/04/25 20:05:55 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Content.IE5: Removing directory
2022/04/25 20:05:55 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files/Content.IE5: Failed to Rmdir: directory not empty
2022/04/25 20:05:55 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files: Removing directory
2022/04/25 20:05:55 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows/Temporary Internet Files: Failed to Rmdir: directory not empty
2022/04/25 20:05:55 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows: Removing directory
2022/04/25 20:05:56 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/Windows: Failed to Rmdir: directory not empty
2022/04/25 20:05:56 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/OneDrive/19.232.1124.0012/images/darkTheme: Removing directory
2022/04/25 20:05:56 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/OneDrive/19.232.1124.0012/images/darkTheme: Failed to Rmdir: directory not empty
2022/04/25 20:05:56 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/OneDrive/19.232.1124.0012/images: Removing directory
2022/04/25 20:05:56 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/OneDrive/19.232.1124.0012/images: Failed to Rmdir: directory not empty
2022/04/25 20:05:56 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/OneDrive/19.232.1124.0012: Removing directory
2022/04/25 20:05:57 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/OneDrive/19.232.1124.0012: Failed to Rmdir: directory not empty
2022/04/25 20:05:57 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/OneDrive: Removing directory
2022/04/25 20:05:57 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft/OneDrive: Failed to Rmdir: directory not empty
2022/04/25 20:05:57 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft: Removing directory
2022/04/25 20:05:57 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local/Microsoft: Failed to Rmdir: directory not empty
2022/04/25 20:05:57 INFO  : Shipping PC Drive C/Users/JosephL/AppData/Local: Removing directory
2022/04/25 20:05:58 DEBUG : Shipping PC Drive C/Users/JosephL/AppData/Local: Failed to Rmdir: directory not empty
2022/04/25 20:05:58 INFO  : Shipping PC Drive C/Users/JosephL/AppData: Removing directory
2022/04/25 20:05:58 DEBUG : Shipping PC Drive C/Users/JosephL/AppData: Failed to Rmdir: directory not empty
2022/04/25 20:05:58 INFO  : Shipping PC Drive C/Users/JosephL: Removing directory
2022/04/25 20:05:58 DEBUG : Shipping PC Drive C/Users/JosephL: Failed to Rmdir: directory not empty
2022/04/25 20:05:58 INFO  : Shipping PC Drive C/Users/Admin/AppData/LocalLow/AVG Secure Search/cache: Removing directory
2022/04/25 20:05:59 DEBUG : Shipping PC Drive C/Users/Admin/AppData/LocalLow/AVG Secure Search/cache: Failed to Rmdir: directory not empty
2022/04/25 20:05:59 INFO  : Shipping PC Drive C/Users/Admin/AppData/LocalLow/AVG Secure Search: Removing directory
2022/04/25 20:05:59 DEBUG : Shipping PC Drive C/Users/Admin/AppData/LocalLow/AVG Secure Search: Failed to Rmdir: directory not empty
2022/04/25 20:05:59 INFO  : Shipping PC Drive C/Users/Admin/AppData/LocalLow: Removing directory
2022/04/25 20:05:59 DEBUG : Shipping PC Drive C/Users/Admin/AppData/LocalLow: Failed to Rmdir: directory not empty
2022/04/25 20:05:59 INFO  : Shipping PC Drive C/Users/Admin/AppData: Removing directory
2022/04/25 20:06:00 DEBUG : Shipping PC Drive C/Users/Admin/AppData: Failed to Rmdir: directory not empty
2022/04/25 20:06:00 INFO  : Shipping PC Drive C/Users/Admin: Removing directory
2022/04/25 20:06:00 DEBUG : Shipping PC Drive C/Users/Admin: Failed to Rmdir: directory not empty
2022/04/25 20:06:00 INFO  : Shipping PC Drive C/Users: Removing directory
2022/04/25 20:06:00 DEBUG : Shipping PC Drive C/Users: Failed to Rmdir: directory not empty
2022/04/25 20:06:00 INFO  : Shipping PC Drive C/Program Files (x86)/Microsoft Office/root/vfs/ProgramFilesCommonX86/Microsoft Shared/THEMES16/ECHO: Removing directory
2022/04/25 20:06:01 DEBUG : Shipping PC Drive C/Program Files (x86)/Microsoft Office/root/vfs/ProgramFilesCommonX86/Microsoft Shared/THEMES16/ECHO: Failed to Rmdir: directory not empty
2022/04/25 20:06:01 INFO  : Shipping PC Drive C/Program Files (x86)/Microsoft Office/root/vfs/ProgramFilesCommonX86/Microsoft Shared/THEMES16: Removing directory
2022/04/25 20:06:01 DEBUG : Shipping PC Drive C/Program Files (x86)/Microsoft Office/root/vfs/ProgramFilesCommonX86/Microsoft Shared/THEMES16: Failed to Rmdir: directory not empty
2022/04/25 20:06:01 INFO  : Shipping PC Drive C/Program Files (x86)/Microsoft Office/root/vfs/ProgramFilesCommonX86/Microsoft Shared: Removing directory
2022/04/25 20:06:01 DEBUG : Shipping PC Drive C/Program Files (x86)/Microsoft Office/root/vfs/ProgramFilesCommonX86/Microsoft Shared: Failed to Rmdir: directory not empty
2022/04/25 20:06:01 INFO  : Shipping PC Drive C/Program Files (x86)/Microsoft Office/root/vfs/ProgramFilesCommonX86: Removing directory
2022/04/25 20:06:02 DEBUG : Shipping PC Drive C/Program Files (x86)/Microsoft Office/root/vfs/ProgramFilesCommonX86: Failed to Rmdir: directory not empty
2022/04/25 20:06:02 INFO  : Shipping PC Drive C/Program Files (x86)/Microsoft Office/root/vfs: Removing directory
2022/04/25 20:06:02 DEBUG : Shipping PC Drive C/Program Files (x86)/Microsoft Office/root/vfs: Failed to Rmdir: directory not empty
2022/04/25 20:06:02 INFO  : Shipping PC Drive C/Program Files (x86)/Microsoft Office/root: Removing directory
2022/04/25 20:06:02 DEBUG : Shipping PC Drive C/Program Files (x86)/Microsoft Office/root: Failed to Rmdir: directory not empty
2022/04/25 20:06:02 INFO  : Shipping PC Drive C/Program Files (x86)/Microsoft Office: Removing directory
2022/04/25 20:06:03 DEBUG : Shipping PC Drive C/Program Files (x86)/Microsoft Office: Failed to Rmdir: directory not empty
2022/04/25 20:06:03 INFO  : Shipping PC Drive C/Program Files (x86): Removing directory
2022/04/25 20:06:03 DEBUG : Shipping PC Drive C/Program Files (x86): Failed to Rmdir: directory not empty
2022/04/25 20:06:03 INFO  : Shipping PC Drive C/Drivers/video/R307994/Graphics/MediaSDK/ILK/x64: Removing directory
2022/04/25 20:06:03 DEBUG : Shipping PC Drive C/Drivers/video/R307994/Graphics/MediaSDK/ILK/x64: Failed to Rmdir: directory not empty
2022/04/25 20:06:03 INFO  : Shipping PC Drive C/Drivers/video/R307994/Graphics/MediaSDK/ILK: Removing directory
2022/04/25 20:06:04 DEBUG : Shipping PC Drive C/Drivers/video/R307994/Graphics/MediaSDK/ILK: Failed to Rmdir: directory not empty
2022/04/25 20:06:04 INFO  : Shipping PC Drive C/Drivers/video/R307994/Graphics/MediaSDK: Removing directory
2022/04/25 20:06:04 DEBUG : Shipping PC Drive C/Drivers/video/R307994/Graphics/MediaSDK: Failed to Rmdir: directory not empty
2022/04/25 20:06:04 INFO  : Shipping PC Drive C/Drivers/video/R307994/Graphics: Removing directory
2022/04/25 20:06:04 DEBUG : Shipping PC Drive C/Drivers/video/R307994/Graphics: Failed to Rmdir: directory not empty
2022/04/25 20:06:04 INFO  : Shipping PC Drive C/Drivers/video/R307994: Removing directory
2022/04/25 20:06:04 DEBUG : Shipping PC Drive C/Drivers/video/R307994: Failed to Rmdir: directory not empty
2022/04/25 20:06:04 INFO  : Shipping PC Drive C/Drivers/video: Removing directory
2022/04/25 20:06:05 DEBUG : Shipping PC Drive C/Drivers/video: Failed to Rmdir: directory not empty
2022/04/25 20:06:05 INFO  : Shipping PC Drive C/Drivers: Removing directory
2022/04/25 20:06:05 DEBUG : Shipping PC Drive C/Drivers: Failed to Rmdir: directory not empty
2022/04/25 20:06:05 INFO  : Shipping PC Drive C/Archibald Global/CoreExpress/ReportFiles/JosephL: Removing directory
2022/04/25 20:06:06 DEBUG : Shipping PC Drive C/Archibald Global/CoreExpress/ReportFiles/JosephL: Failed to Rmdir: directory not empty
2022/04/25 20:06:06 INFO  : Shipping PC Drive C/Archibald Global/CoreExpress/ReportFiles: Removing directory
2022/04/25 20:06:06 DEBUG : Shipping PC Drive C/Archibald Global/CoreExpress/ReportFiles: Failed to Rmdir: directory not empty
2022/04/25 20:06:06 INFO  : Shipping PC Drive C/Archibald Global/CoreExpress: Removing directory
2022/04/25 20:06:06 DEBUG : Shipping PC Drive C/Archibald Global/CoreExpress: Failed to Rmdir: directory not empty
2022/04/25 20:06:06 INFO  : Shipping PC Drive C/Archibald Global: Removing directory
2022/04/25 20:06:06 DEBUG : Shipping PC Drive C/Archibald Global: Failed to Rmdir: directory not empty
2022/04/25 20:06:06 INFO  : Shipping PC Drive C/Apps/osmedia/sources/en-us: Removing directory
2022/04/25 20:06:07 DEBUG : Shipping PC Drive C/Apps/osmedia/sources/en-us: Failed to Rmdir: directory not empty
2022/04/25 20:06:07 INFO  : Shipping PC Drive C/Apps/osmedia/sources: Removing directory
2022/04/25 20:06:07 DEBUG : Shipping PC Drive C/Apps/osmedia/sources: Failed to Rmdir: directory not empty
2022/04/25 20:06:07 INFO  : Shipping PC Drive C/Apps/osmedia: Removing directory
2022/04/25 20:06:07 DEBUG : Shipping PC Drive C/Apps/osmedia: Failed to Rmdir: directory not empty
2022/04/25 20:06:07 INFO  : Shipping PC Drive C/Apps: Removing directory
2022/04/25 20:06:08 DEBUG : Shipping PC Drive C/Apps: Failed to Rmdir: directory not empty
2022/04/25 20:06:08 INFO  : Shipping PC Drive C: Removing directory
2022/04/25 20:06:08 DEBUG : Shipping PC Drive C: Failed to Rmdir: directory not empty
2022/04/25 20:06:08 DEBUG : Encrypted drive 'OneDriveWyEncryptednew:Shipping': failed to delete 57 directories
2022/04/25 20:06:08 INFO  : There was nothing to transfer
2022/04/25 20:06:08 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Checks:               509 / 509, 100%
Deleted:                0 (files), 57 (dirs)
Elapsed time:        28.7s

2022/04/25 20:06:08 DEBUG : 4 go routines active

This was the first directory to fail and is the cause of the problem.

I would guess there is either a onenote file in there or a deleted file. Take a look in the web interface and with rclone?

rclone purge should be able to delete the directory regardless.

hey nick, thanks for dropping by. you are correct, there are 2 files in there that begin with "~tmp". is that what you're looking for?

Those files will be stopping the directory being deleted - can you remove them manually?

yes i can. i just couldn't imagine a reason why rclone couldn't delete them, and i assume you guys want to know if something doesn't function as intended.

that could be a temp file that is in use by onedrive.

for example, on local, if i open a word.docx, then microsoft word would create a temp local file named
~$word.docx and that file would be marked hidden

and from that debug log, a lot of
Skipping undecryptable file name

i'm not sure how undecrypted files would've made it to that remote. that server using is the only thing sending files, and it's a crypt remote.

Yes it is interesting - thank you for bringing it up :slight_smile:

I would guess that it is possibly partially uploaded large files where the upload failed for some reason.

It is something that has access to the underlying onedrive mount so either the crypt backend or something to do with onedrive, unless you've got the underlying onedrive mounted too?

Could you paste an example of the file name? Does it look like a crypt file name with ~tmp glued on it? Or does it looks like something else?

How big are the files?

yes:

no, the onedrive account is not connected to anything else besides a few servers running rclone. there is only one server working on this particular directory though.

hi,

could check;
for the ~tmp files, is there a corresponding file 'real with the same filename?
is there a file that starts with BA_982...`

do you have any rclone mount using that crypt remote as the source?

I think it is safe to conclude that it is some process in Onedrive generating these, but I'm not sure exactly what.

Unfinished multipart uploads are one idea.

I can't find any references to ~tmp files in onedrive when searching but there are some references to ~tmp files and sharepoint automation like this one: https://powerusers.microsoft.com/t5/Building-Flows/tmp-file-being-created-when-trying-to-use-a-Power-Automate/td-p/719833 - do you use any automation like this?

there is not

no. the closest thing i can imagine is, we copied this remote to a different one a while ago, but only with rclone copy.

nope. this is just your classic humble rclone sync from one of our servers. no fancy stuff

this is the only place i have ever seen this, and the only time i ever recall having this issue. perhaps we can chalk it up to 'some process in onedrive' for now :slight_smile:

OK that is all really weird!

That works for me! This thread will be in the archives should it happen again and we can try harder to work out what is causing it.

well by all means. if this causes concern, you're welcome to dig into it. would you like the files?

these days, onedrive is embedded deep into windows os and microsoft office.

we do use the email of that account, but not the onedrive storage of it. except with rclone of course.

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