What is the problem you are having with rclone?
Sync Failed with "directory already exists, but when i try to delete it, it says the directory actually doesn't exist. i also can't do an "rclone ls", cause it again says "directory not found". i'm not sure if this is a bug with rclone or with microsoft..
Run the command 'rclone version' and share the full output of the command.
rclone v1.68.1
- os/version: debian 12.5 (64 bit)
- os/kernel: 6.8.4-2 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.1
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Microsoft Sharepoint
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone sync --verbose --progress /mnt/datastore/storage1/tier1/.slice/9912 SLSharePointCrypt:tier1/.slice/9912
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[SLSharePoint]
type = onedrive
token = XXX
drive_id = XXX
drive_type = documentLibrary
[SLSharePointCrypt]
type = crypt
remote = SLSharePoint:SLBS1
directory_name_encryption = true
password = XXX
filename_encoding = base32768
A log from the command that you were trying to run with the -vv
flag
rclone sync --verbose --progress /mnt/datastore/storage1/tier1/.slice/9912 SLSharePointCrypt:tier1/.slice/9912 -vv
2024/09/26 21:36:47 DEBUG : rclone: Version "v1.68.1" starting with parameters ["rclone" "sync" "--verbose" "--progress" "/mnt/datastore/storage1/tier1/.slice/9912" "SLSharePointCrypt:tier1/.slice/9912" "-vv"]
2024/09/26 21:36:47 DEBUG : Creating backend with remote "/mnt/datastore/storage1/tier1/.slice/9912"
2024/09/26 21:36:47 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2024/09/26 21:36:47 DEBUG : Creating backend with remote "SLSharePointCrypt:tier1/.slice/9912"
2024/09/26 21:36:47 DEBUG : Creating backend with remote "SLSharePoint:SLBS1/䌶䂶䆱㐳具恽꒶罳䷟/顷倞宽柨䙞闗孽䠕ⲿ/ꈈᰈ䊫ꔌ䡞㳛䰲䛮⎟"
2024/09/26 21:36:50 DEBUG : 991215307755fc65b472166ea59b4a30480eb4ba9ea96b88070f6fb06d56a63c: Need to transfer - File not found at Destination
2024/09/26 21:36:50 DEBUG : Encrypted drive 'SLSharePointCrypt:tier1/.slice/9912': Waiting for checks to finish
2024/09/26 21:36:50 DEBUG : Encrypted drive 'SLSharePointCrypt:tier1/.slice/9912': Waiting for transfers to finish
2024/09/26 21:36:50 ERROR : 991215307755fc65b472166ea59b4a30480eb4ba9ea96b88070f6fb06d56a63c: Failed to copy: failed to make directory: nameAlreadyExists: Name already exists
2024/09/26 21:36:50 ERROR : Encrypted drive 'SLSharePointCrypt:tier1/.slice/9912': not deleting files as there were IO errors
2024/09/26 21:36:50 ERROR : Encrypted drive 'SLSharePointCrypt:tier1/.slice/9912': not deleting directories as there were IO errors
2024/09/26 21:36:50 ERROR : Attempt 1/3 failed with 1 errors and: failed to make directory: nameAlreadyExists: Name already exists
2024/09/26 21:36:50 DEBUG : 991215307755fc65b472166ea59b4a30480eb4ba9ea96b88070f6fb06d56a63c: Need to transfer - File not found at Destination
2024/09/26 21:36:50 DEBUG : Encrypted drive 'SLSharePointCrypt:tier1/.slice/9912': Waiting for checks to finish
2024/09/26 21:36:50 DEBUG : Encrypted drive 'SLSharePointCrypt:tier1/.slice/9912': Waiting for transfers to finish
2024/09/26 21:36:50 ERROR : 991215307755fc65b472166ea59b4a30480eb4ba9ea96b88070f6fb06d56a63c: Failed to copy: failed to make directory: nameAlreadyExists: Name already exists
2024/09/26 21:36:50 ERROR : Encrypted drive 'SLSharePointCrypt:tier1/.slice/9912': not deleting files as there were IO errors
2024/09/26 21:36:50 ERROR : Encrypted drive 'SLSharePointCrypt:tier1/.slice/9912': not deleting directories as there were IO errors
2024/09/26 21:36:50 ERROR : Attempt 2/3 failed with 1 errors and: failed to make directory: nameAlreadyExists: Name already exists
2024/09/26 21:36:51 DEBUG : 991215307755fc65b472166ea59b4a30480eb4ba9ea96b88070f6fb06d56a63c: Need to transfer - File not found at Destination
2024/09/26 21:36:51 DEBUG : Encrypted drive 'SLSharePointCrypt:tier1/.slice/9912': Waiting for checks to finish
2024/09/26 21:36:51 DEBUG : Encrypted drive 'SLSharePointCrypt:tier1/.slice/9912': Waiting for transfers to finish
2024/09/26 21:36:51 ERROR : 991215307755fc65b472166ea59b4a30480eb4ba9ea96b88070f6fb06d56a63c: Failed to copy: failed to make directory: nameAlreadyExists: Name already exists
2024/09/26 21:36:51 ERROR : Encrypted drive 'SLSharePointCrypt:tier1/.slice/9912': not deleting files as there were IO errors
2024/09/26 21:36:51 ERROR : Encrypted drive 'SLSharePointCrypt:tier1/.slice/9912': not deleting directories as there were IO errors
2024/09/26 21:36:51 ERROR : Attempt 3/3 failed with 1 errors and: failed to make directory: nameAlreadyExists: Name already exists
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 3.4s
2024/09/26 21:36:51 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 3.4s
2024/09/26 21:36:51 DEBUG : 7 go routines active
2024/09/26 21:36:51 NOTICE: Failed to sync: failed to make directory: nameAlreadyExists: Name already exists
additionally, here is a log trying to delete said directory:
rclone purge --verbose --progress SLSharePointCrypt:tier1/.slice/9912 -vv
2024/09/26 21:39:16 DEBUG : rclone: Version "v1.68.1" starting with parameters ["rclone" "purge" "--verbose" "--progress" "SLSharePointCrypt:tier1/.slice/9912" "-vv"]
2024/09/26 21:39:16 DEBUG : Creating backend with remote "SLSharePointCrypt:tier1/.slice/9912"
2024/09/26 21:39:16 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2024/09/26 21:39:16 DEBUG : Creating backend with remote "SLSharePoint:SLBS1/䌶䂶䆱㐳具恽꒶罳䷟/顷倞宽柨䙞闗孽䠕ⲿ/ꈈᰈ䊫ꔌ䡞㳛䰲䛮⎟"
2024/09/26 21:39:18 ERROR : Attempt 1/3 failed with 1 errors and: directory not found
2024/09/26 21:39:18 ERROR : Attempt 2/3 failed with 1 errors and: directory not found
2024/09/26 21:39:19 ERROR : Attempt 3/3 failed with 1 errors and: directory not found
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (retrying may help)
Deleted: 0 (files), 3 (dirs), 0 B (freed)
Elapsed time: 2.8s
2024/09/26 21:39:19 DEBUG : 6 go routines active
2024/09/26 21:39:19 NOTICE: Failed to purge: directory not found