What is the problem you are having with rclone?
I'm experiencing intermittent upload failures when using rclone to sync .xlsx
files to an enterprise SharePoint site. After a few files are successfully uploaded, subsequent uploads fail with the following error:
ERROR : datadir/Daily-reports/file20250214.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: {"error":{"code":"itemNotFound","message":"The upload session was not found"}}
The issue is not constant — it happens after several files have been uploaded. Additionally, I see Failed to cancel multipart upload
notices with similar itemNotFound
messages. This suggests that the upload session is either timing out or being lost.
Run the command 'rclone version' and share the full output of the command.
rclone -V :
rclone v1.69.2
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.0-133-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.24.2
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
OneDrive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone sync "/SharePoint-Libraries/serv_Switzerland/Data-repository/" "onedrivesharepoint:Data-repository/" --exclude "Z_archive/**" --exclude "Z_Archive/" --exclude ".*" --exclude "*.tmp" --exclude "*.bak" --exclude "~$*" --copy-links=false --links=false --log-file=/var/log/rclone-sync.log -P
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[onedrivesharepoint]
type = onedrive
token = XXX
drive_id = XXX
drive_type = documentLibrary
A log from the command that you were trying to run with the -vv
flag
2025/05/20 11:56:40 ERROR : atria/Daily-reports/OTV_QCR10_Report_20250206.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2025/05/20 11:56:40 NOTICE: atria/Daily-reports/OTV_QCR10_Report_20250207.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: "{\"er
ror\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}")
2025/05/20 11:56:40 ERROR : atria/Daily-reports/OTV_QCR10_Report_20250207.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2025/05/20 11:56:40 NOTICE: atria/Daily-reports/OTV_QCR10_Report_20250208.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: "{\"er
ror\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}")
2025/05/20 11:56:40 ERROR : atria/Daily-reports/OTV_QCR10_Report_20250208.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2025/05/20 11:56:41 NOTICE: atria/Daily-reports/OTV_QCR10_Report_20250209.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: "{\"er
ror\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}")
2025/05/20 11:56:41 ERROR : atria/Daily-reports/OTV_QCR10_Report_20250209.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2025/05/20 11:56:41 NOTICE: atria/Daily-reports/OTV_QCR10_Report_20250210.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: "{\"er
ror\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}")
2025/05/20 11:56:41 ERROR : atria/Daily-reports/OTV_QCR10_Report_20250210.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2025/05/20 11:56:42 NOTICE: datadir/Daily-reports/file20250212.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: "{\"er
ror\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}")
2025/05/20 11:56:42 ERROR : datadir/Daily-reports/file20250212.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2025/05/20 11:56:42 NOTICE: datadir/Daily-reports/file20250213.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: "{\"er
ror\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}")
2025/05/20 11:56:42 ERROR : datadir/Daily-reports/file20250213.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2025/05/20 11:56:42 NOTICE: datadir/Daily-reports/file20250214.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: "{\"er
ror\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}")
2025/05/20 11:56:42 ERROR : datadir/Daily-reports/file20250214.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2025/05/20 11:56:42 NOTICE: datadir/Daily-reports/file20250215.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: "{\"er
ror\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}")
2025/05/20 11:56:42 ERROR : datadir/Daily-reports/file20250215.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2025/05/20 11:56:43 NOTICE: datadir/Daily-reports/file20250217.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: "{\"er
ror\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}")
2025/05/20 11:56:43 ERROR : datadir/Daily-reports/file20250217.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"
2025/05/20 11:56:43 NOTICE: datadir/Daily-reports/file20250216.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: "{\"er
ror\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}")
2025/05/20 11:56:43 ERROR : datadir/Daily-reports/file20250216.xlsx: Failed to copy: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"The upload session was not found\"}}"