Onedrive Creating versions even with --onedrive-no-versions

STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.

What is the problem you are having with rclone?

Any rclone command ignoring the --onedrive-no-versions flag

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

rclone v1.65.0

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

Onedrive Business

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

rclone moveto --onedrive-no-versions --no-modtime  Onedrive:path/file.mkv Onedrive:path/file-720.mkv
[Unit]
Description=RClone Service
Wants=network-online.target
After=network-online.target

[Service]
Type=notify
Environment=RCLONE_CONFIG=/root/.config/rclone/rclone.conf
RestartSec=5
ExecStart=/usr/bin/rclone mount Onedrive_w5vf3:/ /mnt/rclone/Onedrive \
--allow-other \
--dir-cache-time 9999h \
--syslog \
--log-level DEBUG \
--poll-interval 5m \
--user-agent "ISV|rclone.org|rclone/v1.65.0" \
--user-agent "rclone/v1.65.0" \
--rc \
--rc-addr :5572 \
--rc-no-auth \
--cache-dir=/tmp/rclone/vfs \
--vfs-cache-mode full \
--vfs-cache-max-size 20G \
--vfs-read-ahead 256M \
--vfs-cache-max-age 1h \
--no-modtime \
--async-read \
--no-checksum \
--bwlimit=30M \
--onedrive-no-versions \
--tpslimit 4 
ExecStop=/bin/fusermount -uz /mnt/rclone/Onedrive
ExecStartPost=/usr/bin/rclone rc vfs/refresh recursive=true --rc-addr 127.0.0.1:5572 _async=true
Restart=on-failure
User=root
Group=root

[Install]
WantedBy=default.target

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

[Onedrive1]
type = onedrive
client_id = XXX
client_secret = XXX
token = XXX
drive_id = XXX
drive_type = business
server_side_across_configs = true

[Onedrive2]
type = onedrive
client_id = XXX
client_secret = XXX
token = XXX
drive_id = XXX
drive_type = business
server_side_across_configs = true

[Onedrive3]
type = onedrive
client_id = XXX
client_secret = XXX
token = XXX
drive_id = XXX
drive_type = business
server_side_across_configs = true
[Onedrive4]
type = onedrive
token = {"access_token":
drive_id = xxxx
drive_type = personal

[Onedrive5]
type = onedrive
token = {"access_token":
drive_id = xxxx
drive_type = personal

[Onedrive1-Crypt]
type = crypt
remote = Onedrive1:path01
filename_encryption = standard
directory_name_encryption = true
password = xxxxxxxx
password2 = xxxxxxxxxxx
filename_encoding = base64

[Onedrive2-Crypt]
type = crypt
remote = Onedrive2:path01
filename_encryption = standard
directory_name_encryption = true
password = xxxxxxxx
password2 = xxxxxxxxxxx
filename_encoding = base64

[Onedrive3-Crypt]
type = crypt
remote = Onedrive3:path01
filename_encryption = standard
directory_name_encryption = true
password = xxxxxxxx
password2 = xxxxxxxxxxx
filename_encoding = base64

[Onedrive4-Crypt]
type = crypt
remote = Onedrive4:path01
filename_encryption = standard
directory_name_encryption = true
password = xxxxxxxx
password2 = xxxxxxxxxxx
filename_encoding = base64

[Onedrive5-Crypt]
type = crypt
remote = Onedrive5:path01
filename_encryption = standard
directory_name_encryption = true
password = xxxxxxxx
password2 = xxxxxxxxxxx
filename_encoding = base64

[Onedrive]
type = union
upstreams = Onedrive1-Crypt: Onedrive2-Crypt: Onedrive3-Crypt: Onedrive4-Crypt: Onedrive5-Crypt:


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

Paste  log here

Onedrive personal can't currently delete versions so don't use this flag there

if you think otherwise, then please post a full debug log

Hi, I ended up putting the wrong information, now the information is correct, I'm using Onedrive Business, I know that Onedrive Personal doesn't create versions and isn't even compatible with --onedrive-no-versions

can you post a full debug log?

the docs mention "uploads new files overwriting an existing one"
maybe it only works from local to onedrive, but not server-side.

maybe does not work over union remote, did you try with a onedrive remote?
maybe does not work with moveto ?

So I started to notice this these days, I believe I didn't have this problem before and the most annoying thing is that after renaming the files I have to run the cleanup command and then I end up being limited by Microsoft

Here is the output of the command I ran

edson@Optiplex:~# rclone moveto --onedrive-no-versions -vv --no-update-modtime "Onedrive1-E:/Series/CSI New York/S02 1080p/CSI NY S02E01 - Summer In The City.mkv" "Onedrive1-E:/Series/CSI New York/S02/CSI NY S02E01 - Summer in the City [HDTV-1080p].mkv"
2023/12/14 14:28:54 DEBUG : rclone: Version "v1.65.0" starting with parameters ["rclone" "moveto" "--onedrive-no-versions" "-vv" "--no-update-modtime" "Onedrive1-E:/Series/CSI New York/S02 1080p/CSI NY S02E01 - Summer In The City.mkv" "Onedrive1-E:/Series/CSI New York/S02/CSI NY S02E01 - Summer in the City [HDTV-1080p].mkv"]
2023/12/14 14:28:54 DEBUG : Creating backend with remote "Onedrive1-E:/Series/CSI New York/S02 1080p/CSI NY S02E01 - Summer In The City.mkv"
2023/12/14 14:28:54 DEBUG : Using RCLONE_CONFIG_PASS password.
2023/12/14 14:28:54 DEBUG : Using config file from "/edson/.config/rclone/rclone.conf"
2023/12/14 14:28:54 DEBUG : Creating backend with remote "Onedrive1:/AXzlC_kho9e4c4lH7552hw/-nYYiSRB91GHupePQB4atw/MR_2ZVbOrHukxKaNDCiXIA/Iaf0h76hPOBfuR5wf4-sp-Pu80f08g_-7VLQl6DbvzcRX6rgVoiAGcCG_A8ywUto"
2023/12/14 14:28:54 DEBUG : Onedrive1: detected overridden config - adding "{kWaC5}" suffix to name
2023/12/14 14:28:56 DEBUG : fs cache: adding new entry for parent of "Onedrive1:/AXzlC_kho9e4c4lH7552hw/-nYYiSRB91GHupePQB4atw/MR_2ZVbOrHukxKaNDCiXIA/Iaf0h76hPOBfuR5wf4-sp-Pu80f08g_-7VLQl6DbvzcRX6rgVoiAGcCG_A8ywUto", "Onedrive1{kWaC5}:AXzlC_kho9e4c4lH7552hw/-nYYiSRB91GHupePQB4atw/MR_2ZVbOrHukxKaNDCiXIA"
2023/12/14 14:28:56 DEBUG : Creating backend with remote "Onedrive1-E:/Series/CSI New York/S02/"
2023/12/14 14:28:56 DEBUG : Creating backend with remote "Onedrive1:/AXzlC_kho9e4c4lH7552hw/-nYYiSRB91GHupePQB4atw/UUHMFeq1VJxXMPuJ6uVQiQ"
2023/12/14 14:28:56 DEBUG : Onedrive1: detected overridden config - adding "{kWaC5}" suffix to name
2023/12/14 14:28:57 DEBUG : fs cache: renaming cache item "Onedrive1:/AXzlC_kho9e4c4lH7552hw/-nYYiSRB91GHupePQB4atw/UUHMFeq1VJxXMPuJ6uVQiQ" to be canonical "Onedrive1{kWaC5}:AXzlC_kho9e4c4lH7552hw/-nYYiSRB91GHupePQB4atw/UUHMFeq1VJxXMPuJ6uVQiQ"
2023/12/14 14:28:57 DEBUG : fs cache: switching user supplied name "Onedrive1:/AXzlC_kho9e4c4lH7552hw/-nYYiSRB91GHupePQB4atw/UUHMFeq1VJxXMPuJ6uVQiQ" for canonical name "Onedrive1{kWaC5}:AXzlC_kho9e4c4lH7552hw/-nYYiSRB91GHupePQB4atw/UUHMFeq1VJxXMPuJ6uVQiQ"
2023/12/14 14:28:57 DEBUG : CSI NY S02E01 - Summer In The City.mkv: Need to transfer - File not found at Destination
2023/12/14 14:28:58 INFO  : CSI NY S02E01 - Summer In The City.mkv: Moved (server-side) to: CSI NY S02E01 - Summer in the City [HDTV-1080p].mkv
2023/12/14 14:28:58 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Checks:                 1 / 1, 100%
Renamed:                1
Server Side Moves:      1 @ 798.811 MiB
Elapsed time:         3.6s

2023/12/14 14:28:58 DEBUG : 8 go routines active

Do you know if the same behavior happens if you rename/move the file using the Onedrive website? Do a new version get created if you touch the file "rclone touch"?

I would imagine that the flag only works when rclone is writing content to the file and not just moving parameters (moving/touching, etc)

Next would be to see if it's rclone not sending the correct flags to avoid creating the version, or if it's a onedrive API limitation.

So if I rename it in the browser it doesn't create another version and about a month ago the flag worked perfectly even moving, renaming and copying. I'm thinking that Microsoft changed something recently in its Api

Try downgrading to 1.64.2 and try to see if it still happens. Lot of changes happened in 1.65.0 for Onedrive that might have created this. If it still happens with older versions, we can most likely infer it's Microsoft issue and we need to report it there.

Hi person!!

I downgraded rclone and ran the synchronization copy and mount commands and moveto (renaming) and rclone still creates the versions, but if I rename or copy in the Onedrive web interface it does not create versions.

As for the logs, there is no information.

All Commands executed were without the union bakend.

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