Skip to content

SharePoint: Replacing existing Office files returns itemNotFound: The resource could not be found. #3212

Open

Description

@timm187

What is the problem you are having with rclone?

The problem is the upload of Microsoft Office files into a SharePoint library. I can create the files on my local system and upload them just fine. But if i work on these files, then the upload won't work anymore. I tried --ignore-size, but the problem persists.

What is your rclone version (output from rclone version)

rclone v1.47.0-074-g81fad0f0-beta

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

Ubuntu 18.04.2 LTS, 64-Bit

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

OneDrive with a SharePoint library

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

rclone copyto -vv ~/SharePointGruppen/Test2/ test:

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

2019/05/21 14:32:05 DEBUG : rclone: Version "v1.47.0-074-g81fad0f0-beta" starting with parameters ["rclone" "copyto" "-vv" "/home/timm/SharePointGruppen/Test2/" "test:"]
2019/05/21 14:32:05 DEBUG : Using config file from "/home/timm/.config/rclone/rclone.conf"
2019/05/21 14:32:07 INFO : One drive root '': Waiting for checks to finish
2019/05/21 14:32:07 DEBUG : Dokument.docx: Sizes differ (src 13943 vs dst 16851)
2019/05/21 14:32:07 DEBUG : Bildschirmfoto von 2019-05-14 13-27-54.png: Size and modification time the same (differ by -481.563ms, within tolerance 1s)
2019/05/21 14:32:07 DEBUG : Bildschirmfoto von 2019-05-14 13-27-54.png: Unchanged skipping
2019/05/21 14:32:07 INFO : One drive root '': Waiting for transfers to finish
2019/05/21 14:32:07 DEBUG : Dokument.docx: Starting multipart upload
2019/05/21 14:32:10 DEBUG : Dokument.docx: Uploading segment 0/13943 size 13943
2019/05/21 14:32:11 DEBUG : Dokument.docx: Error encountered during upload: itemNotFound: The resource could not be found.
2019/05/21 14:32:11 DEBUG : Dokument.docx: Cancelling multipart upload
2019/05/21 14:32:11 NOTICE: Dokument.docx: Failed to cancel multipart upload: itemNotFound: The resource could not be found.
2019/05/21 14:32:11 ERROR : Dokument.docx: Failed to copy: itemNotFound: The resource could not be found.
2019/05/21 14:32:11 ERROR : Attempt 1/3 failed with 2 errors and: itemNotFound: The resource could not be found.
2019/05/21 14:32:12 DEBUG : Bildschirmfoto von 2019-05-14 13-27-54.png: Size and modification time the same (differ by -481.563ms, within tolerance 1s)
2019/05/21 14:32:12 DEBUG : Dokument.docx: Sizes differ (src 13943 vs dst 18885)
2019/05/21 14:32:12 DEBUG : Dokument.docx: Starting multipart upload
2019/05/21 14:32:12 DEBUG : Bildschirmfoto von 2019-05-14 13-27-54.png: Unchanged skipping
2019/05/21 14:32:12 INFO : One drive root '': Waiting for checks to finish
2019/05/21 14:32:12 INFO : One drive root '': Waiting for transfers to finish
2019/05/21 14:32:14 DEBUG : Dokument.docx: Uploading segment 0/13943 size 13943
2019/05/21 14:32:14 DEBUG : Dokument.docx: Error encountered during upload: itemNotFound: The resource could not be found.
2019/05/21 14:32:14 DEBUG : Dokument.docx: Cancelling multipart upload
2019/05/21 14:32:15 NOTICE: Dokument.docx: Failed to cancel multipart upload: itemNotFound: The resource could not be found.
2019/05/21 14:32:15 ERROR : Dokument.docx: Failed to copy: itemNotFound: The resource could not be found.
2019/05/21 14:32:15 ERROR : Attempt 2/3 failed with 2 errors and: itemNotFound: The resource could not be found.
2019/05/21 14:32:15 DEBUG : Bildschirmfoto von 2019-05-14 13-27-54.png: Size and modification time the same (differ by -481.563ms, within tolerance 1s)
2019/05/21 14:32:15 DEBUG : Bildschirmfoto von 2019-05-14 13-27-54.png: Unchanged skipping
2019/05/21 14:32:15 DEBUG : Dokument.docx: Sizes differ (src 13943 vs dst 18885)
2019/05/21 14:32:15 INFO : One drive root '': Waiting for checks to finish
2019/05/21 14:32:15 INFO : One drive root '': Waiting for transfers to finish
2019/05/21 14:32:15 DEBUG : Dokument.docx: Starting multipart upload
2019/05/21 14:32:17 DEBUG : Dokument.docx: Uploading segment 0/13943 size 13943
2019/05/21 14:32:17 DEBUG : Dokument.docx: Error encountered during upload: itemNotFound: The resource could not be found.
2019/05/21 14:32:17 DEBUG : Dokument.docx: Cancelling multipart upload
2019/05/21 14:32:18 NOTICE: Dokument.docx: Failed to cancel multipart upload: itemNotFound: The resource could not be found.
2019/05/21 14:32:18 ERROR : Dokument.docx: Failed to copy: itemNotFound: The resource could not be found.
2019/05/21 14:32:18 ERROR : Attempt 3/3 failed with 2 errors and: itemNotFound: The resource could not be found.
2019/05/21 14:32:18 Failed to copyto with 2 errors: last error was: itemNotFound: The resource could not be found.

Activity

  1. Cnly commented on May 21, 2019

    @Cnly
    Member

    This seems like the same bug as https://forum.rclone.org/t/onedrive-error-on-changed-file/6853/7. Can you confirm that? There's also a workaround in that forum thread.

  2. timm187 commented on May 21, 2019

    @timm187
    Author

    Yes, looks to be the same bug, with the exception that these two lines are added:

    2019/05/21 15:34:23 INFO : One drive root '': Waiting for checks to finish
    2019/05/21 15:34:23 INFO : One drive root '': Waiting for transfers to finish

    I also tried the --ignore-checksum solution and also the --backup-dir workaround, didn't work.

    command:

    rclone sync -vv ~/SharePointGruppen/Test2/ test:zulu/ --backup-dir test:backup/

    result:

    2019/05/21 16:04:17 DEBUG : rclone: Version "v1.47.0-074-g81fad0f0-beta" starting with parameters ["rclone" "sync" "-vv" "/home/timm/SharePointGruppen/Test2/" "test:zulu/" "--backup-dir" "test:backup/"]
    2019/05/21 16:04:17 DEBUG : Using config file from "/home/timm/.config/rclone/rclone.conf"
    2019/05/21 16:04:20 INFO : One drive root 'zulu': Waiting for checks to finish
    2019/05/21 16:04:20 INFO : One drive root 'zulu': Waiting for transfers to finish
    2019/05/21 16:04:22 DEBUG : Bildschirmfoto von 2019-05-14 13-27-54.png: Starting multipart upload
    2019/05/21 16:04:22 DEBUG : Dokument.docx: Starting multipart upload
    2019/05/21 16:04:24 DEBUG : Bildschirmfoto von 2019-05-14 13-27-54.png: Uploading segment 0/224808 size 224808
    2019/05/21 16:04:24 DEBUG : Dokument.docx: Uploading segment 0/13943 size 13943
    2019/05/21 16:04:26 ERROR : Dokument.docx: corrupted on transfer: sizes differ 13943 vs 17027
    2019/05/21 16:04:26 INFO : Dokument.docx: Removing failed copy
    2019/05/21 16:04:27 INFO : Bildschirmfoto von 2019-05-14 13-27-54.png: Copied (new)
    2019/05/21 16:04:27 ERROR : One drive root 'zulu': not deleting files as there were IO errors
    2019/05/21 16:04:27 ERROR : One drive root 'zulu': not deleting directories as there were IO errors
    2019/05/21 16:04:27 ERROR : Attempt 1/3 failed with 2 errors and: corrupted on transfer: sizes differ 13943 vs 17027
    2019/05/21 16:04:29 INFO : One drive root 'zulu': Waiting for checks to finish
    2019/05/21 16:04:29 DEBUG : Dokument.docx: Starting multipart upload
    2019/05/21 16:04:29 DEBUG : Bildschirmfoto von 2019-05-14 13-27-54.png: Size and modification time the same (differ by -481.563ms, within tolerance 1s)
    2019/05/21 16:04:29 DEBUG : Bildschirmfoto von 2019-05-14 13-27-54.png: Unchanged skipping
    2019/05/21 16:04:29 INFO : One drive root 'zulu': Waiting for transfers to finish
    2019/05/21 16:04:31 DEBUG : Dokument.docx: Uploading segment 0/13943 size 13943
    2019/05/21 16:04:35 ERROR : Dokument.docx: corrupted on transfer: sizes differ 13943 vs 17024
    2019/05/21 16:04:35 INFO : Dokument.docx: Removing failed copy
    2019/05/21 16:04:36 ERROR : One drive root 'zulu': not deleting files as there were IO errors
    2019/05/21 16:04:36 ERROR : One drive root 'zulu': not deleting directories as there were IO errors
    2019/05/21 16:04:36 ERROR : Attempt 2/3 failed with 2 errors and: corrupted on transfer: sizes differ 13943 vs 17024
    2019/05/21 16:04:38 DEBUG : Dokument.docx: Starting multipart upload
    2019/05/21 16:04:38 DEBUG : Bildschirmfoto von 2019-05-14 13-27-54.png: Size and modification time the same (differ by -481.563ms, within tolerance 1s)
    2019/05/21 16:04:38 DEBUG : Bildschirmfoto von 2019-05-14 13-27-54.png: Unchanged skipping
    2019/05/21 16:04:38 INFO : One drive root 'zulu': Waiting for checks to finish
    2019/05/21 16:04:38 INFO : One drive root 'zulu': Waiting for transfers to finish
    2019/05/21 16:04:39 DEBUG : Dokument.docx: Uploading segment 0/13943 size 13943
    2019/05/21 16:04:45 ERROR : Dokument.docx: corrupted on transfer: sizes differ 13943 vs 17023
    2019/05/21 16:04:45 INFO : Dokument.docx: Removing failed copy
    2019/05/21 16:04:45 ERROR : One drive root 'zulu': not deleting files as there were IO errors
    2019/05/21 16:04:45 ERROR : One drive root 'zulu': not deleting directories as there were IO errors
    2019/05/21 16:04:45 ERROR : Attempt 3/3 failed with 2 errors and: corrupted on transfer: sizes differ 13943 vs 17023
    2019/05/21 16:04:45 Failed to sync with 2 errors: last error was: corrupted on transfer: sizes differ 13943 vs 17023

  3. Cnly commented on May 21, 2019

    @Cnly
    Member

    Your new logs look like you're hitting the Sharepoint "feature" which modifies your uploaded Office files. Can you use --backup-dir, --ignore-checksum, and --ignore-size at the same time and try again?

    Before this "feature" gets removed by Microsoft, I think they are worth going into the rclone docs...

  4. Cnly commented on May 21, 2019

    @Cnly
    Member

    I've created an upstream issue for this: OneDrive/onedrive-api-docs#1068

  5. changed the title [-]Rclone copyto OneDrive - ressource not found[/-] [+]SharePoint: Replacing existing Office files returns itemNotFound: The resource could not be found.[/+] on May 21, 2019
  6. timm187 commented on May 27, 2019

    @timm187
    Author

    Sorry that my response took so long, had some vacation. It works with all the commands together:

    rclone sync -vv ~/SharePointGruppen/Test2/ test:zulu/ --ignore-checksum --ignore-size --backup-dir test:backup/

  7. added this to the Known Problem milestone on Jan 24, 2020
  8. ivandeex commented on Feb 9, 2021

    @ivandeex
    Member

    @timm187
    This bug is reported against an obsolete version of rclone. Can you reproduce it with rclone 1.54?

  9. ivandeex commented on Mar 16, 2021

    @ivandeex
    Member

    Apparently the reporter had gone.
    But the upstream issue is still there, unsolved.

    Below is the semi-official workaround:

    You're hitting the Sharepoint "feature" which modifies your uploaded Office files. Can you use --backup-dir, --ignore-checksum, and --ignore-size at the same time and try again?
    Before this "feature" gets removed by Microsoft, I think they are worth going into the rclone docs...

    Also reported in #2036 (comment), on the forum and so on

    P.S. This "feature" is reported so frequently that I am going to submit a dedicated documentation request

  10. removed their assignment
    on Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions