Issue with uploading .xlsx and .txt file to sharepoint

What is the problem you are having with rclone?

For the past 1 month I've tried to come up with the inventory handling tool for the team in order to have better control over the items in stock and be better ackoledged about reordering needs. Officially the .xlsx file used for the database is stored at the company's sharepoint, and at some point I've got it to work by simply running a sync script, starting from last week when it was meant to actually air the program, rclone stopped working while trying to upload files back to the location, and throwing HTTP error 404 (404 Not Found) errors that made me to switch to the office365-REST-python-client, which worked even worse as I've had consistent problem with granting our program the correct permissions that initially threw us back to use rclone again.
What I've tried:

  • to apply different flags to the script inlcuding move, copy and so on
  • set the database .xlsx file to public
  • recreating the link between the source and destination path

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

rclone v1.66.0

  • os/version: Microsoft Windows 10 Enterprise 21H2 (64 bit)
  • os/kernel: 10.0.19044.4291 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.22.1
  • go/linking: static
  • go/tags: cmount

Are you on the latest version of rclone? You can validate by checking the version listed here: Rclone downloads
--> Yes

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

Onedrive (sharepoint)

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

*** stands for the actual username in my system
Originally the script was just

@echo off
"C:\Users\***\Documents\Work\InvMgmt\rclone\rclone.exe" move "C:\Users\***\Documents\Work\InvMgmt" "IMT:/invmgmt" --update --progress

But for debugging purpose, it was changed to the following version:

@echo off
"C:\Users\***\Documents\Work\InvMgmt\rclone\rclone.exe" move "C:\Users\***\Documents\Work\InvMgmt" "IMT:/invmgmt"  --include "*.xlsx" --onedrive-chunk-size 10M --retries 5 --low-level-retries 5 --log-level DEBUG --log-file rclone-log.txt

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[IMT]
type = onedrive
client_id = XXX
client_secret = XXX
token = XXX
drive_id = XXX
drive_type = documentLibrary
### Double check the config for sensitive info before posting publicly

A log from the command that you were trying to run with the -vv flag

2024/05/20 16:03:33 DEBUG : rclone: Version "v1.66.0" starting with parameters ["C:\\Users\\***\\Documents\\Work\\InvMgmt\\rclone\\rclone.exe" "move" "C:\\Users\\***\\Documents\\Work\\InvMgmt" "IMT:/invmgmt" "--include" "*.xlsx" "--onedrive-chunk-size" "10M" "--retries" "5" "--low-level-retries" "5" "--log-level" "DEBUG" "--log-file" "rclone-log.txt"]
2024/05/20 16:03:33 DEBUG : Creating backend with remote "C:\\Users\\***\\Documents\\Work\\InvMgmt"
2024/05/20 16:03:33 DEBUG : Using config file from "C:\\Users\\***\\AppData\\Roaming\\rclone\\rclone.conf"
2024/05/20 16:03:33 DEBUG : fs cache: renaming cache item "C:\\Users\\***\\Documents\\Work\\InvMgmt" to be canonical "//?/C:/Users/***/Documents/Work/InvMgmt"
2024/05/20 16:03:33 DEBUG : Creating backend with remote "IMT:/invmgmt"
2024/05/20 16:03:33 DEBUG : IMT: detected overridden config - adding "{900Qa}" suffix to name
2024/05/20 16:03:33 DEBUG : IMT{900Qa}: Loaded invalid token from config file - ignoring
2024/05/20 16:03:33 DEBUG : Saving config "token" in section "IMT" of the config file
2024/05/20 16:03:33 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2024/05/20 16:03:33 DEBUG : IMT{900Qa}: Saved new token in config file
2024/05/20 16:03:33 DEBUG : fs cache: renaming cache item "IMT:/invmgmt" to be canonical "IMT{900Qa}:invmgmt"
2024/05/20 16:03:34 DEBUG : change_log.txt: Excluded (Path Filter)
2024/05/20 16:03:34 DEBUG : change_log.txt: Excluded
2024/05/20 16:03:34 DEBUG : debug.txt: Excluded (Path Filter)
2024/05/20 16:03:34 DEBUG : debug.txt: Excluded
2024/05/20 16:03:34 DEBUG : inventory_terminal.py: Excluded (Path Filter)
2024/05/20 16:03:34 DEBUG : inventory_terminal.py: Excluded
2024/05/20 16:03:34 DEBUG : README.pdf: Excluded (Path Filter)
2024/05/20 16:03:34 DEBUG : README.pdf: Excluded
2024/05/20 16:03:34 DEBUG : README.url: Excluded (Path Filter)
2024/05/20 16:03:34 DEBUG : README.url: Excluded
2024/05/20 16:03:34 DEBUG : Documentation: Directory modification time the same (differ by -534.2375ms, within tolerance 1s)
2024/05/20 16:03:34 DEBUG : rclone: Directory modification time the same (differ by 0s, within tolerance 1s)
2024/05/20 16:03:34 DEBUG : scripts: Directory modification time the same (differ by -680.8754ms, within tolerance 1s)
2024/05/20 16:03:34 DEBUG : inventory.xlsx: Sizes differ (src 16021 vs dst 34107)
2024/05/20 16:03:34 DEBUG : inventory.xlsx: Starting multipart upload
2024/05/20 16:03:34 DEBUG : scripts/check_branching.bat: Excluded (Path Filter)
2024/05/20 16:03:34 DEBUG : scripts/check_branching.bat: Excluded
2024/05/20 16:03:34 DEBUG : scripts/pull.bat: Excluded (Path Filter)
2024/05/20 16:03:34 DEBUG : scripts/pull.bat: Excluded
2024/05/20 16:03:34 DEBUG : scripts/pull_excel.bat: Excluded (Path Filter)
2024/05/20 16:03:34 DEBUG : scripts/pull_excel.bat: Excluded
2024/05/20 16:03:34 DEBUG : scripts/push.bat: Excluded (Path Filter)
2024/05/20 16:03:34 DEBUG : scripts/push.bat: Excluded
2024/05/20 16:03:34 DEBUG : scripts/push_excel.bat: Excluded (Path Filter)
2024/05/20 16:03:34 DEBUG : scripts/push_excel.bat: Excluded
2024/05/20 16:03:34 DEBUG : scripts/push_log.bat: Excluded (Path Filter)
2024/05/20 16:03:34 DEBUG : scripts/push_log.bat: Excluded
2024/05/20 16:03:34 DEBUG : scripts/readme.bat: Excluded (Path Filter)
2024/05/20 16:03:34 DEBUG : scripts/readme.bat: Excluded
2024/05/20 16:03:34 DEBUG : rclone/git-log.txt: Excluded (Path Filter)
2024/05/20 16:03:34 DEBUG : rclone/git-log.txt: Excluded
2024/05/20 16:03:34 DEBUG : rclone/rclone.1: Excluded (Path Filter)
2024/05/20 16:03:34 DEBUG : rclone/rclone.1: Excluded
2024/05/20 16:03:34 DEBUG : rclone/rclone.exe: Excluded (Path Filter)
2024/05/20 16:03:34 DEBUG : rclone/rclone.exe: Excluded
2024/05/20 16:03:34 DEBUG : rclone/README.txt: Excluded (Path Filter)
2024/05/20 16:03:34 DEBUG : rclone/README.txt: Excluded
2024/05/20 16:03:34 DEBUG : Documentation/pics: Directory modification time the same (differ by -261.19ms, within tolerance 1s)
2024/05/20 16:03:34 DEBUG : OneDrive root 'invmgmt': Waiting for checks to finish
2024/05/20 16:03:34 DEBUG : OneDrive root 'invmgmt': Waiting for transfers to finish
2024/05/20 16:03:35 DEBUG : inventory.xlsx: Uploading segment 0/16021 size 16021
2024/05/20 16:03:35 DEBUG : inventory.xlsx: Cancelling multipart upload: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:35 NOTICE: inventory.xlsx: Failed to cancel multipart upload: itemNotFound: The upload session was not found (upload failed due to: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}")
2024/05/20 16:03:35 DEBUG : info from Update error: 
null
2024/05/20 16:03:35 ERROR : inventory.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:35 ERROR : inventory.xlsx: Not deleting source as copy failed: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:35 ERROR : Attempt 1/5 failed with 1 errors and: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:35 DEBUG : change_log.txt: Excluded (Path Filter)
2024/05/20 16:03:35 DEBUG : change_log.txt: Excluded
2024/05/20 16:03:35 DEBUG : debug.txt: Excluded (Path Filter)
2024/05/20 16:03:35 DEBUG : debug.txt: Excluded
2024/05/20 16:03:35 DEBUG : inventory_terminal.py: Excluded (Path Filter)
2024/05/20 16:03:35 DEBUG : inventory_terminal.py: Excluded
2024/05/20 16:03:35 DEBUG : README.pdf: Excluded (Path Filter)
2024/05/20 16:03:35 DEBUG : README.pdf: Excluded
2024/05/20 16:03:35 DEBUG : README.url: Excluded (Path Filter)
2024/05/20 16:03:35 DEBUG : README.url: Excluded
2024/05/20 16:03:35 DEBUG : Documentation: Directory modification time the same (differ by -534.2375ms, within tolerance 1s)
2024/05/20 16:03:35 DEBUG : rclone: Directory modification time the same (differ by 0s, within tolerance 1s)
2024/05/20 16:03:35 DEBUG : scripts: Directory modification time the same (differ by -680.8754ms, within tolerance 1s)
2024/05/20 16:03:35 DEBUG : inventory.xlsx: Sizes differ (src 16021 vs dst 34107)
2024/05/20 16:03:35 DEBUG : inventory.xlsx: Starting multipart upload
2024/05/20 16:03:35 DEBUG : rclone/git-log.txt: Excluded (Path Filter)
2024/05/20 16:03:35 DEBUG : rclone/git-log.txt: Excluded
2024/05/20 16:03:35 DEBUG : rclone/rclone.1: Excluded (Path Filter)
2024/05/20 16:03:35 DEBUG : rclone/rclone.1: Excluded
2024/05/20 16:03:35 DEBUG : rclone/rclone.exe: Excluded (Path Filter)
2024/05/20 16:03:35 DEBUG : rclone/rclone.exe: Excluded
2024/05/20 16:03:35 DEBUG : rclone/README.txt: Excluded (Path Filter)
2024/05/20 16:03:35 DEBUG : rclone/README.txt: Excluded
2024/05/20 16:03:35 DEBUG : scripts/check_branching.bat: Excluded (Path Filter)
2024/05/20 16:03:35 DEBUG : scripts/check_branching.bat: Excluded
2024/05/20 16:03:35 DEBUG : scripts/pull.bat: Excluded (Path Filter)
2024/05/20 16:03:35 DEBUG : scripts/pull.bat: Excluded
2024/05/20 16:03:35 DEBUG : scripts/pull_excel.bat: Excluded (Path Filter)
2024/05/20 16:03:35 DEBUG : scripts/pull_excel.bat: Excluded
2024/05/20 16:03:35 DEBUG : scripts/push.bat: Excluded (Path Filter)
2024/05/20 16:03:35 DEBUG : scripts/push.bat: Excluded
2024/05/20 16:03:35 DEBUG : scripts/push_excel.bat: Excluded (Path Filter)
2024/05/20 16:03:35 DEBUG : scripts/push_excel.bat: Excluded
2024/05/20 16:03:35 DEBUG : scripts/push_log.bat: Excluded (Path Filter)
2024/05/20 16:03:35 DEBUG : scripts/push_log.bat: Excluded
2024/05/20 16:03:35 DEBUG : scripts/readme.bat: Excluded (Path Filter)
2024/05/20 16:03:35 DEBUG : scripts/readme.bat: Excluded
2024/05/20 16:03:35 DEBUG : Documentation/pics: Directory modification time the same (differ by -261.19ms, within tolerance 1s)
2024/05/20 16:03:36 DEBUG : OneDrive root 'invmgmt': Waiting for checks to finish
2024/05/20 16:03:36 DEBUG : OneDrive root 'invmgmt': Waiting for transfers to finish
2024/05/20 16:03:36 DEBUG : inventory.xlsx: Uploading segment 0/16021 size 16021
2024/05/20 16:03:36 DEBUG : inventory.xlsx: Cancelling multipart upload: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:36 NOTICE: inventory.xlsx: Failed to cancel multipart upload: itemNotFound: The upload session was not found (upload failed due to: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}")
2024/05/20 16:03:36 DEBUG : info from Update error: 
null
2024/05/20 16:03:36 ERROR : inventory.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:36 ERROR : inventory.xlsx: Not deleting source as copy failed: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:36 ERROR : Attempt 2/5 failed with 1 errors and: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:37 DEBUG : change_log.txt: Excluded (Path Filter)
2024/05/20 16:03:37 DEBUG : change_log.txt: Excluded
2024/05/20 16:03:37 DEBUG : debug.txt: Excluded (Path Filter)
2024/05/20 16:03:37 DEBUG : debug.txt: Excluded
2024/05/20 16:03:37 DEBUG : inventory_terminal.py: Excluded (Path Filter)
2024/05/20 16:03:37 DEBUG : inventory_terminal.py: Excluded
2024/05/20 16:03:37 DEBUG : README.pdf: Excluded (Path Filter)
2024/05/20 16:03:37 DEBUG : README.pdf: Excluded
2024/05/20 16:03:37 DEBUG : README.url: Excluded (Path Filter)
2024/05/20 16:03:37 DEBUG : README.url: Excluded
2024/05/20 16:03:37 DEBUG : Documentation: Directory modification time the same (differ by -534.2375ms, within tolerance 1s)
2024/05/20 16:03:37 DEBUG : rclone: Directory modification time the same (differ by 0s, within tolerance 1s)
2024/05/20 16:03:37 DEBUG : scripts: Directory modification time the same (differ by -680.8754ms, within tolerance 1s)
2024/05/20 16:03:37 DEBUG : inventory.xlsx: Sizes differ (src 16021 vs dst 34107)
2024/05/20 16:03:37 DEBUG : inventory.xlsx: Starting multipart upload
2024/05/20 16:03:37 DEBUG : rclone/git-log.txt: Excluded (Path Filter)
2024/05/20 16:03:37 DEBUG : rclone/git-log.txt: Excluded
2024/05/20 16:03:37 DEBUG : rclone/rclone.1: Excluded (Path Filter)
2024/05/20 16:03:37 DEBUG : rclone/rclone.1: Excluded
2024/05/20 16:03:37 DEBUG : rclone/rclone.exe: Excluded (Path Filter)
2024/05/20 16:03:37 DEBUG : rclone/rclone.exe: Excluded
2024/05/20 16:03:37 DEBUG : rclone/README.txt: Excluded (Path Filter)
2024/05/20 16:03:37 DEBUG : rclone/README.txt: Excluded
2024/05/20 16:03:37 DEBUG : Documentation/pics: Directory modification time the same (differ by -261.19ms, within tolerance 1s)
2024/05/20 16:03:37 DEBUG : scripts/check_branching.bat: Excluded (Path Filter)
2024/05/20 16:03:37 DEBUG : scripts/check_branching.bat: Excluded
2024/05/20 16:03:37 DEBUG : scripts/pull.bat: Excluded (Path Filter)
2024/05/20 16:03:37 DEBUG : scripts/pull.bat: Excluded
2024/05/20 16:03:37 DEBUG : scripts/pull_excel.bat: Excluded (Path Filter)
2024/05/20 16:03:37 DEBUG : scripts/pull_excel.bat: Excluded
2024/05/20 16:03:37 DEBUG : scripts/push.bat: Excluded (Path Filter)
2024/05/20 16:03:37 DEBUG : scripts/push.bat: Excluded
2024/05/20 16:03:37 DEBUG : scripts/push_excel.bat: Excluded (Path Filter)
2024/05/20 16:03:37 DEBUG : scripts/push_excel.bat: Excluded
2024/05/20 16:03:37 DEBUG : scripts/push_log.bat: Excluded (Path Filter)
2024/05/20 16:03:37 DEBUG : scripts/push_log.bat: Excluded
2024/05/20 16:03:37 DEBUG : scripts/readme.bat: Excluded (Path Filter)
2024/05/20 16:03:37 DEBUG : scripts/readme.bat: Excluded
2024/05/20 16:03:37 DEBUG : OneDrive root 'invmgmt': Waiting for checks to finish
2024/05/20 16:03:37 DEBUG : OneDrive root 'invmgmt': Waiting for transfers to finish
2024/05/20 16:03:37 DEBUG : inventory.xlsx: Uploading segment 0/16021 size 16021
2024/05/20 16:03:37 DEBUG : inventory.xlsx: Cancelling multipart upload: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:38 NOTICE: inventory.xlsx: Failed to cancel multipart upload: itemNotFound: The upload session was not found (upload failed due to: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}")
2024/05/20 16:03:38 DEBUG : info from Update error: 
null
2024/05/20 16:03:38 ERROR : inventory.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:38 ERROR : inventory.xlsx: Not deleting source as copy failed: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:38 ERROR : Attempt 3/5 failed with 1 errors and: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:38 DEBUG : change_log.txt: Excluded (Path Filter)
2024/05/20 16:03:38 DEBUG : change_log.txt: Excluded
2024/05/20 16:03:38 DEBUG : debug.txt: Excluded (Path Filter)
2024/05/20 16:03:38 DEBUG : debug.txt: Excluded
2024/05/20 16:03:38 DEBUG : inventory_terminal.py: Excluded (Path Filter)
2024/05/20 16:03:38 DEBUG : inventory_terminal.py: Excluded
2024/05/20 16:03:38 DEBUG : README.pdf: Excluded (Path Filter)
2024/05/20 16:03:38 DEBUG : README.pdf: Excluded
2024/05/20 16:03:38 DEBUG : README.url: Excluded (Path Filter)
2024/05/20 16:03:38 DEBUG : README.url: Excluded
2024/05/20 16:03:38 DEBUG : Documentation: Directory modification time the same (differ by -534.2375ms, within tolerance 1s)
2024/05/20 16:03:38 DEBUG : rclone: Directory modification time the same (differ by 0s, within tolerance 1s)
2024/05/20 16:03:38 DEBUG : scripts: Directory modification time the same (differ by -680.8754ms, within tolerance 1s)
2024/05/20 16:03:38 DEBUG : inventory.xlsx: Sizes differ (src 16021 vs dst 34107)
2024/05/20 16:03:38 DEBUG : inventory.xlsx: Starting multipart upload
2024/05/20 16:03:38 DEBUG : Documentation/pics: Directory modification time the same (differ by -261.19ms, within tolerance 1s)
2024/05/20 16:03:38 DEBUG : scripts/check_branching.bat: Excluded (Path Filter)
2024/05/20 16:03:38 DEBUG : scripts/check_branching.bat: Excluded
2024/05/20 16:03:38 DEBUG : scripts/pull.bat: Excluded (Path Filter)
2024/05/20 16:03:38 DEBUG : scripts/pull.bat: Excluded
2024/05/20 16:03:38 DEBUG : scripts/pull_excel.bat: Excluded (Path Filter)
2024/05/20 16:03:38 DEBUG : scripts/pull_excel.bat: Excluded
2024/05/20 16:03:38 DEBUG : scripts/push.bat: Excluded (Path Filter)
2024/05/20 16:03:38 DEBUG : scripts/push.bat: Excluded
2024/05/20 16:03:38 DEBUG : scripts/push_excel.bat: Excluded (Path Filter)
2024/05/20 16:03:38 DEBUG : scripts/push_excel.bat: Excluded
2024/05/20 16:03:38 DEBUG : scripts/push_log.bat: Excluded (Path Filter)
2024/05/20 16:03:38 DEBUG : scripts/push_log.bat: Excluded
2024/05/20 16:03:38 DEBUG : scripts/readme.bat: Excluded (Path Filter)
2024/05/20 16:03:38 DEBUG : scripts/readme.bat: Excluded
2024/05/20 16:03:38 DEBUG : rclone/git-log.txt: Excluded (Path Filter)
2024/05/20 16:03:38 DEBUG : rclone/git-log.txt: Excluded
2024/05/20 16:03:38 DEBUG : rclone/rclone.1: Excluded (Path Filter)
2024/05/20 16:03:38 DEBUG : rclone/rclone.1: Excluded
2024/05/20 16:03:38 DEBUG : rclone/rclone.exe: Excluded (Path Filter)
2024/05/20 16:03:38 DEBUG : rclone/rclone.exe: Excluded
2024/05/20 16:03:38 DEBUG : rclone/README.txt: Excluded (Path Filter)
2024/05/20 16:03:38 DEBUG : rclone/README.txt: Excluded
2024/05/20 16:03:38 DEBUG : OneDrive root 'invmgmt': Waiting for checks to finish
2024/05/20 16:03:38 DEBUG : OneDrive root 'invmgmt': Waiting for transfers to finish
2024/05/20 16:03:38 DEBUG : inventory.xlsx: Uploading segment 0/16021 size 16021
2024/05/20 16:03:39 DEBUG : inventory.xlsx: Cancelling multipart upload: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:39 NOTICE: inventory.xlsx: Failed to cancel multipart upload: itemNotFound: The upload session was not found (upload failed due to: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}")
2024/05/20 16:03:39 DEBUG : info from Update error: 
null
2024/05/20 16:03:39 ERROR : inventory.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:39 ERROR : inventory.xlsx: Not deleting source as copy failed: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:39 ERROR : Attempt 4/5 failed with 1 errors and: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:39 DEBUG : change_log.txt: Excluded (Path Filter)
2024/05/20 16:03:39 DEBUG : change_log.txt: Excluded
2024/05/20 16:03:39 DEBUG : debug.txt: Excluded (Path Filter)
2024/05/20 16:03:39 DEBUG : debug.txt: Excluded
2024/05/20 16:03:39 DEBUG : inventory_terminal.py: Excluded (Path Filter)
2024/05/20 16:03:39 DEBUG : inventory_terminal.py: Excluded
2024/05/20 16:03:39 DEBUG : README.pdf: Excluded (Path Filter)
2024/05/20 16:03:39 DEBUG : README.pdf: Excluded
2024/05/20 16:03:39 DEBUG : README.url: Excluded (Path Filter)
2024/05/20 16:03:39 DEBUG : README.url: Excluded
2024/05/20 16:03:39 DEBUG : Documentation: Directory modification time the same (differ by -534.2375ms, within tolerance 1s)
2024/05/20 16:03:39 DEBUG : rclone: Directory modification time the same (differ by 0s, within tolerance 1s)
2024/05/20 16:03:39 DEBUG : scripts: Directory modification time the same (differ by -680.8754ms, within tolerance 1s)
2024/05/20 16:03:39 DEBUG : inventory.xlsx: Sizes differ (src 16021 vs dst 34107)
2024/05/20 16:03:39 DEBUG : inventory.xlsx: Starting multipart upload
2024/05/20 16:03:39 DEBUG : Documentation/pics: Directory modification time the same (differ by -261.19ms, within tolerance 1s)
2024/05/20 16:03:39 DEBUG : scripts/check_branching.bat: Excluded (Path Filter)
2024/05/20 16:03:39 DEBUG : scripts/check_branching.bat: Excluded
2024/05/20 16:03:39 DEBUG : scripts/pull.bat: Excluded (Path Filter)
2024/05/20 16:03:39 DEBUG : scripts/pull.bat: Excluded
2024/05/20 16:03:39 DEBUG : scripts/pull_excel.bat: Excluded (Path Filter)
2024/05/20 16:03:39 DEBUG : scripts/pull_excel.bat: Excluded
2024/05/20 16:03:39 DEBUG : scripts/push.bat: Excluded (Path Filter)
2024/05/20 16:03:39 DEBUG : scripts/push.bat: Excluded
2024/05/20 16:03:39 DEBUG : scripts/push_excel.bat: Excluded (Path Filter)
2024/05/20 16:03:39 DEBUG : scripts/push_excel.bat: Excluded
2024/05/20 16:03:39 DEBUG : scripts/push_log.bat: Excluded (Path Filter)
2024/05/20 16:03:39 DEBUG : scripts/push_log.bat: Excluded
2024/05/20 16:03:39 DEBUG : scripts/readme.bat: Excluded (Path Filter)
2024/05/20 16:03:39 DEBUG : scripts/readme.bat: Excluded
2024/05/20 16:03:39 DEBUG : rclone/git-log.txt: Excluded (Path Filter)
2024/05/20 16:03:39 DEBUG : rclone/git-log.txt: Excluded
2024/05/20 16:03:39 DEBUG : rclone/rclone.1: Excluded (Path Filter)
2024/05/20 16:03:39 DEBUG : rclone/rclone.1: Excluded
2024/05/20 16:03:39 DEBUG : rclone/rclone.exe: Excluded (Path Filter)
2024/05/20 16:03:39 DEBUG : rclone/rclone.exe: Excluded
2024/05/20 16:03:39 DEBUG : rclone/README.txt: Excluded (Path Filter)
2024/05/20 16:03:39 DEBUG : rclone/README.txt: Excluded
2024/05/20 16:03:39 DEBUG : OneDrive root 'invmgmt': Waiting for checks to finish
2024/05/20 16:03:39 DEBUG : OneDrive root 'invmgmt': Waiting for transfers to finish
2024/05/20 16:03:40 DEBUG : inventory.xlsx: Uploading segment 0/16021 size 16021
2024/05/20 16:03:40 DEBUG : inventory.xlsx: Cancelling multipart upload: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:40 NOTICE: inventory.xlsx: Failed to cancel multipart upload: itemNotFound: The upload session was not found (upload failed due to: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}")
2024/05/20 16:03:40 DEBUG : info from Update error: 
null
2024/05/20 16:03:40 ERROR : inventory.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:40 ERROR : inventory.xlsx: Not deleting source as copy failed: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:40 ERROR : Attempt 5/5 failed with 1 errors and: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2024/05/20 16:03:40 INFO  : 
Transferred:   	   78.228 KiB / 78.228 KiB, 100%, 10.403 KiB/s, ETA 0s
Errors:                 1 (retrying may help)
Checks:                 5 / 5, 100%
Elapsed time:         9.8s

2024/05/20 16:03:40 DEBUG : 10 go routines active
2024/05/20 16:03:40 Failed to move: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"

SharePoint seems to have some weird glitches with certain Office files where it fails. Check this post where somebody had a pretty similar issue and was able to find a workaround:

This is not really an rclone issue but more of a Microsoft glitch.

1 Like

Hi,

Thanks for replying! I think I somehow managed to find a work around for this. At the time when the flag is "sync", it shows the message that "namealreadyexist" or something like this, so what I decided to try was to first pull the version from the SharePoint, then delete it, and then after the modifications, sync it back again. By doing this, it appears that it's working!

I know that there's the latency problem and also the risk of loss of data, about the latency there's not so much I can do, but maybe having some kind of backup mechanism would help to resolve it?

Thanks for giving the headsup by listing some similar issues!

If you got space, you could have a backup folder, delete the contents there, move the files from there to your backup folder and sync the new files? You might be able to just move and overwrite and no need to delete the backup beforehand, not sure if you would face the same issue as files are already in SharePoint.

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