Cannot send the file to onedrive

What is the problem you are having with rclone?

We can mount the onedrive path to the remote server but we cannot send the file to onedrive

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

rclone v1.68.1

  • os/version: sles 15.5 (64 bit)
  • os/kernel: 5.14.21-150500.55.68-default (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)

Onedrive

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

rclone copy /tmp/test.txt onedrive:

Please run 'rclone config redacted' and share the full output. If you get

[onedrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal

[onedrive2]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal

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

2024/11/08 18:29:37 DEBUG : rclone: Version "v1.68.1" starting with parameters ["rclone" "copy" "/tmp/test.txt" "onedrive:" "-vv"]
2024/11/08 18:29:37 DEBUG : Creating backend with remote "/tmp/test.txt"
2024/11/08 18:29:37 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2024/11/08 18:29:37 DEBUG : fs cache: adding new entry for parent of "/tmp/test.txt", "/tmp"
2024/11/08 18:29:37 DEBUG : Creating backend with remote "onedrive:"
2024/11/08 18:29:38 DEBUG : test.txt: Need to transfer - File not found at Destination
2024/11/08 18:29:38 DEBUG : test.txt: Starting multipart upload
2024/11/08 18:29:38 DEBUG : test.txt: Uploading segment 0/83 size 83
2024/11/08 18:29:38 DEBUG : test.txt: Cancelling multipart upload: Put "https://api.onedrive.com/rup/a5eb3d2ddd8b26fb/eyJSZXNvdXJjZUlEIjoiQTVFQjNEMkRERDhCMjZGQiExMDEiLCJSZWxhdGlvbnNoaXBOYW1lIjoidGVzdC50eHQifQ/4mhGZ4um3K1Fo7tz-yya-CXvfl3iNrgdhiZaWgDmBKew8CiXKbEZGiYdmDQLfPNQ9nIZSq5J0PdylTkWk8CWmzK2GMzD7PbvX7TsMgCchVcnk/eyJmaWxlU3lzdGVtSW5mbyI6eyJDcmVhdGVkRGF0ZVRpbWUiOiIyMDI0LTExLTA4VDA4OjE3OjI3LjQxKzAwOjAwIiwiTGFzdE1vZGlmaWVkRGF0ZVRpbWUiOiIyMDI0LTExLTA4VDA4OjE3OjI3LjQxKzAwOjAwIn0sIm5hbWUiOiJ0ZXN0LnR4dCIsIkBuYW1lLmNvbmZsaWN0QmVoYXZpb3IiOiJyZXBsYWNlIn0/4wBql7TMmpEu73HGc7lJxwvXI0U5WdVBngS1OGtZBo42MgLZLErGQvmYFhMIkBCxUsuREGwkUHsOA-_pyE6BdkgeWDvJGHyWnTUzPurnHqzY9uU4cVkLTPS5FU7kdw_W4wtgLsQ18IYVqCY2geMc_yotp3Nu3xZ0XOQeXA2OLB7AtvrqjAlm81QGkkhVTzwOKjyamkmum8vAkkhml2VXDT7jdrWNKKL3KbvybIPQMtsY5pHEBg0p2xe02aidISj51qOuLdl7GuA-rf965QAf3DOp4wtA01lXCRBOHbvGFh2gFEriF-bmw-VvG9jFpKn835aZgUi1FXSML8LfWVBhlerOu7K0IVOiZk5ylhPB1FbU9jKq5zaJqqw0mra_C0dyMy0XJh2U0PJX9lfD_KKBvDYiQwVorSJi33ggn1hfK4jZT4DMNRXEzLy6ligp3V_6PaVauJjGjiU5S2loOM1NNQ5zALPPr--9CSAs5cUIwfHBFltJgCAIPBswFXhbyfGi7uKcSShC8-sh_bqhwwZTSbLI5o8GWZEF5rB-Prcwenp4qtkORHDzPLGnOS9IxzqqnqjnmLetD73G9QG67frn9YH_NRq0tJKH3GXF1kpu9d0HiJJTxL_ZokKXagxvQw38jP": Forbidden
2024/11/08 18:29:38 NOTICE: test.txt: Failed to cancel multipart upload: Delete "https://api.onedrive.com/rup/a5eb3d2ddd8b26fb/eyJSZXNvdXJjZUlEIjoiQTVFQjNEMkRERDhCMjZGQiExMDEiLCJSZWxhdGlvbnNoaXBOYW1lIjoidGVzdC50eHQifQ/4mhGZ4um3K1Fo7tz-yya-CXvfl3iNrgdhiZaWgDmBKew8CiXKbEZGiYdmDQLfPNQ9nIZSq5J0PdylTkWk8CWmzK2GMzD7PbvX7TsMgCchVcnk/eyJmaWxlU3lzdGVtSW5mbyI6eyJDcmVhdGVkRGF0ZVRpbWUiOiIyMDI0LTExLTA4VDA4OjE3OjI3LjQxKzAwOjAwIiwiTGFzdE1vZGlmaWVkRGF0ZVRpbWUiOiIyMDI0LTExLTA4VDA4OjE3OjI3LjQxKzAwOjAwIn0sIm5hbWUiOiJ0ZXN0LnR4dCIsIkBuYW1lLmNvbmZsaWN0QmVoYXZpb3IiOiJyZXBsYWNlIn0/4wBql7TMmpEu73HGc7lJxwvXI0U5WdVBngS1OGtZBo42MgLZLErGQvmYFhMIkBCxUsuREGwkUHsOA-_pyE6BdkgeWDvJGHyWnTUzPurnHqzY9uU4cVkLTPS5FU7kdw_W4wtgLsQ18IYVqCY2geMc_yotp3Nu3xZ0XOQeXA2OLB7AtvrqjAlm81QGkkhVTzwOKjyamkmum8vAkkhml2VXDT7jdrWNKKL3KbvybIPQMtsY5pHEBg0p2xe02aidISj51qOuLdl7GuA-rf965QAf3DOp4wtA01lXCRBOHbvGFh2gFEriF-bmw-VvG9jFpKn835aZgUi1FXSML8LfWVBhlerOu7K0IVOiZk5ylhPB1FbU9jKq5zaJqqw0mra_C0dyMy0XJh2U0PJX9lfD_KKBvDYiQwVorSJi33ggn1hfK4jZT4DMNRXEzLy6ligp3V_6PaVauJjGjiU5S2loOM1NNQ5zALPPr--9CSAs5cUIwfHBFltJgCAIPBswFXhbyfGi7uKcSShC8-sh_bqhwwZTSbLI5o8GWZEF5rB-Prcwenp4qtkORHDzPLGnOS9IxzqqnqjnmLetD73G9QG67frn9YH_NRq0tJKH3GXF1kpu9d0HiJJTxL_ZokKXagxvQw38jP": Forbidden

welcome to the forum,

often, when rclone mount starts, it does connect to the remote server.
so, a valid test - copy a file from local to the rclone mountpoint and see what happens.

that could be a permissions issue.
what about a simple command, rclone lsd onedrive: -vv

Many thanks for your reply.

Let me answer your question.

When we run the command """rclone lsd onedrive: -vv""" the output shown as below.

"""2024/11/09 03:15:50 DEBUG : rclone: Version "v1.68.1" starting with parameters ["rclone" "lsd" "onedrive:" "-vv"]
2024/11/09 03:15:50 DEBUG : Creating backend with remote "onedrive:"
2024/11/09 03:15:50 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
-1 2024-11-05 15:55:46 2 Documents
-1 2024-11-05 15:55:46 0 Pictures
2024/11/09 03:15:51 DEBUG : 6 go routines active"""

But there are the files in onedrive different from the local drive so I check with the nohup.out from mount command and see the same error.

"""2024/11/09 03:15:04 NOTICE: Documents/btp_acn_import_20241104.csv: Failed to cancel multipart upload: Delete "https://api.onedrive.c
om/rup/a5eb3d2ddd8b26fb/eyJSZXNvdXJjZUlEIjoiQTVFQjNEMkRERDhCMjZGQiExMDQiLCJSZWxhdGlvbnNoaXBOYW1lIjoiYnRwX2Fjbl9pbXBvcnRfMjAyNDExMDQu
Y3N2In0/4mQJT8m8YKTsu_2blq5AcFwH5Fb20ww5zWkj67lc-jdpqTlXQp0f2cDKkEbjQug1GysWdPdsKINwf3HfvdHDA8zVJ5VMJklZ3vPPMfYmGdgl0/eyJmaWxlU3lzdG
VtSW5mbyI6eyJDcmVhdGVkRGF0ZVRpbWUiOiIyMDI0LTExLTA2VDExOjM0OjUxKzAwOjAwIiwiTGFzdE1vZGlmaWVkRGF0ZVRpbWUiOiIyMDI0LTExLTA2VDExOjM0OjUxKz
AwOjAwIn0sIm5hbWUiOiJidHBfYWNuX2ltcG9ydF8yMDI0MTEwNC5jc3YiLCJAbmFtZS5jb25mbGljdEJlaGF2aW9yIjoicmVwbGFjZSJ9/4wRvU3pfhlssJfIIoHKgsIRDM
3-189zuoNHiCuFgndJ7Gkb8HqNXnuitPBdyXRc5KUBHnEB1wN7t4YqGb2uqAzWTwrv6wLMYIzT_JXydT4-RWH8hFpg8RtK2Bsu7HO8EmhPgY1Fx2dRqs4hr_QbI4ORzF4jcC
sJq2CHgKzbAfAZZlgJ4jykU1S4wZJBTeTbERN9JTWXFSS8RzAAeMKeIXisSkUIjMf5rVsxsQlNuB24xW4GzYgzkzjFovpq5d3BiZ1DfXQNqpsUNNKZwgr0ei72DthhRgYq1D
lekzbgmbpLo0bwLcr1RaR4Y1g4zTHl0SXSgPHg_wfx4Zq3OZWW-KY4QinGVD07gJb-rrRGeeqYn4J38IkE_YZcJgvaZ8KhNopogmEPgcgoUWo6itzqvDmadu6JMkiL_J-hZc
Vsxxoz7wMfwW-3jTHUIGyDJ3bIslSIhWZBn8ek2KbIOaHYawQ82Q5sVJ1EId1LlRy790mMhH0DI77jx4maHIfJf8mr7XvRj7VStB95MeOVyR2LZKcWvWci0ypmH_ChXo6aCx
xkESbMnutvWr2D_F3dKMFYS5T9gNIhaa-qhlnpeMtrXQ0IqLE-K_QDgHh76tNbRTy4HFTc8cQBb_pdILrB3OJOk3Z": Forbidden"""

do you have the same issue with onedrive2 ?
if so, i would test an older version of rclone, perhaps v1.67.0

looks likes a permission issue. rclone lacks permission to access the files.
try creating your own client_id.

if you log into onedrive website, can you download, upload and delete files?

fwiw, best not to test using rclone mount, instead use rclone copy|move|delete
can you download files, upload files?

Many thanks for your reply and let us sorry for late reply.

Right now we found the root cause of this issue, it's related to the proxy server.
the proxy server denied the requests to https://api.onedrive.com.
So we requested the network to allow it and retest again. And it's working.

So let me thank you to you again for your support for this case.

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