Folders not deleted on remote

What is the problem you are having with rclone?

Hi all, I'm using rclone sync to synchronize one NAS folder to OneDrive. I noted that some folders that have been removed from source are still present in OneDrive. I can see these folders on the root of my remote OneDrive folder and I don't know if there are other subfolders not deleted on remote. I raised the log level to DEBUG but I don't detect any errors regarding these folders except the following error that appears from time to time:

2020/12/04 06:15:01 DEBUG : One drive root 'Data': Waiting for checks to finish
2020/12/04 06:15:01 DEBUG : One drive root 'Data': Waiting for transfers to finish
2020/12/04 06:15:01 ERROR : One drive root 'Data': not deleting files as there were IO errors
2020/12/04 06:15:01 ERROR : One drive root 'Data': not deleting directories as there were IO errors

What is your rclone version (output from rclone version)

I'm using rclone v1.53.2.

Which OS you are using and how many bits (eg Windows 7, 64 bit)

The NAS is a CentOS 6 system 32 bit.

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

The cloud storage I'm using is OneDrive.

The rclone config contents with secrets removed.

[OneDrive]
type = onedrive
token = {xxxxx}
drive_id = xxxxx
drive_type = business

hi,
there should be some errors in the debug log as per this message
One drive root 'Data': not deleting files as there were IO errors

you left out the important parts

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

Paste command here

A log from the command with the -vv flag

Paste  log here

Many thanks for you answer. This is the log with his context:

2020/12/05 04:34:14 DEBUG : folder1/file1: Size and modification time the same (differ by 0s, within tolerance 1s)
2020/12/05 04:34:14 DEBUG : folder1/file1: Unchanged skipping
2020/12/05 04:34:14 DEBUG : One drive root 'Data': Waiting for transfers to finish
2020/12/05 04:34:14 ERROR : One drive root 'Data': not deleting files as there were IO errors
2020/12/05 04:34:14 ERROR : One drive root 'Data': not deleting directories as there were IO errors
2020/12/05 04:34:14 ERROR : Attempt 1/3 failed with 11 errors and: 400 Bad Request:
2020/12/05 04:34:14 DEBUG : folder2/file2: Size and modification time the same (differ by -919.445804ms, within tolerance 1s)
2020/12/05 04:34:14 DEBUG : folder2/file2: Unchanged skipping

It is hard to understand which file or folder this ERROR is related to.

Regards.

There should be an ERROR line which says the name of the file/folder with the problem.

These are all the log lines where the word ERROR appears (I have put PATH instead of filepath):

2020/12/05 02:50:52 ERROR :PATH: corrupted on transfer
2020/12/05 03:33:33 ERROR :PATH: Failed to copy
2020/12/05 03:33:33 ERROR :PATH: Failed to copy
2020/12/05 03:33:33 ERROR :PATH: Failed to copy
2020/12/05 03:33:33 ERROR :PATH: Failed to copy
2020/12/05 03:33:33 ERROR :PATH: Failed to copy
2020/12/05 03:34:55 ERROR :PATH: Failed to copy
2020/12/05 03:34:55 ERROR :PATH: Failed to copy
2020/12/05 03:34:55 ERROR :PATH: Failed to copy
2020/12/05 03:34:56 ERROR :PATH: Failed to copy
2020/12/05 03:34:56 ERROR :PATH: Failed to copy
2020/12/05 04:34:14 ERROR :One drive root 'Data': not deleting files as there were IO errors
2020/12/05 04:34:14 ERROR :One drive root 'Data': not deleting directories as there were IO errors
2020/12/05 04:34:14 ERROR :Attempt 1/3 failed with 11 errors and: 400 Bad Request
2020/12/05 05:42:40 ERROR :PATH: Failed to copy
2020/12/05 05:42:40 ERROR :PATH: Failed to copy
2020/12/05 05:42:40 ERROR :PATH: Failed to copy
2020/12/05 05:42:40 ERROR :PATH: Failed to copy
2020/12/05 05:42:40 ERROR :PATH: Failed to copy
2020/12/05 06:11:52 ERROR :PATH: Failed to copy
2020/12/05 06:11:52 ERROR :PATH: Failed to copy
2020/12/05 06:11:52 ERROR :PATH: Failed to copy
2020/12/05 06:11:52 ERROR :PATH: Failed to copy
2020/12/05 06:11:53 ERROR :PATH: Failed to copy
2020/12/05 06:41:12 ERROR :One drive root 'Data': not deleting files as there were IO errors
2020/12/05 06:41:12 ERROR :One drive root 'Data': not deleting directories as there were IO errors
2020/12/05 06:41:12 ERROR :Attempt 2/3 failed with 10 errors and: 400 Bad Request
2020/12/05 08:15:24 ERROR :PATH: Failed to copy
2020/12/05 08:15:24 ERROR :PATH: Failed to copy
2020/12/05 08:15:25 ERROR :PATH: Failed to copy
2020/12/05 08:15:25 ERROR :PATH: Failed to copy
2020/12/05 08:15:25 ERROR :PATH: Failed to copy
2020/12/05 08:34:17 ERROR :PATH: Failed to copy
2020/12/05 08:34:17 ERROR :PATH: Failed to copy
2020/12/05 08:34:17 ERROR :PATH: Failed to copy
2020/12/05 08:34:17 ERROR :PATH: Failed to copy
2020/12/05 08:34:17 ERROR :PATH: Failed to copy
2020/12/05 08:51:51 ERROR :One drive root 'Data': not deleting files as there were IO errors
2020/12/05 08:51:51 ERROR :One drive root 'Data': not deleting directories as there were IO errors
2020/12/05 08:51:51 ERROR :Attempt 3/3 failed with 10 errors and: 400 Bad Request

So there some ERRORs but the lines:

not deleting files as there were IO errors
not deleting directories as there were IO errors
400 Bad Request

seems not to be related to ERRORs above or below the real ERRORs looking at the time. How can I interpret these ERRORs? I think that those lines are some sort of summary of the above ERRORS.

Many thanks.

Regards.

can you include the top of the debug output, the command itself

2020/12/05 02:30:02 DEBUG : rclone: Version "v1.53.2" starting with parameters ["/usr/bin/rclone" "--log-level" "DEBUG" "--log-file" "/var/log/onedrive_sync.log" "sync" "/shares/Data/" "OneDrive:Data"]
2020/12/05 02:30:02 DEBUG : Creating backend with remote "/shares/Data/"
2020/12/05 02:30:02 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2020/12/05 02:30:02 DEBUG : Creating backend with remote "OneDrive:Data"
2020/12/05 02:30:02 DEBUG : OneDrive: Loaded invalid token from config file - ignoring
2020/12/05 02:30:03 DEBUG : Keeping previous permissions for config file: -rw-r--r--
2020/12/05 02:30:03 DEBUG : OneDrive: Saved new token in config file

if you are not willing to post the entire log as is, you need to read the entire log and look for errors.
corrupted on transfer

There is only one ERROR "corrupted on transfer":

2020/12/05 02:50:52 ERROR : PATH: corrupted on transfer: QuickXorHash hash differ "62cdd54abe94180f5a26043dd6fc094175d5da72" vs "6f44620f53eeaec993b4748b2572636ff40e1114"

ok, now that is a real error, not just a snippet.

so all the errors are the same corrupted on transfer?

if you run the command again, what happends?

what is the file extension of the files that have errors?

This synchronization takes up to 6 hours to complete. Because of the DEBUG option the entire log file is 402 MB in size, where for each synced file there is a log line (or more than one).

There is only one ERROR "corrupted on transfer" and is the one I posted above. I think that this file will be in sync tomorrow, no problem. The problem, as stated in the subject of this topic, is that some folders removed on source are still present in the root of remote and there are no errors in the DEBUG log related to this issue. The folders still on remote contains files and they have been deleted from source (I don't know when - I'm keeping logs for just one day now that I'm using the DEBUG option). I will investigate further and will let you know.

Thanks again.

Regards.

if there are errors in the log, then rclone plays it safe, does not delete.

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