Rcloe is creating additional **document** folders in different languages in OneDrive, outside the specified remote path

What is the problem you are having with rclone?

Rcloe is creating additional document folders in different languages in OneDrive, outside the specified remote path. e.g: Dokumen, 公文. The issue occur randomly; it lacks a constant pattern, making it impossible to reproduce the issue manually.

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

rclone v1.64.2

  • os/version: debian bookworm/sid (64 bit)
  • os/kernel: 6.5.6-76060506-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.3
  • go/linking: static
  • go/tags: none

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

OneDrive Personal.

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

The bash script runs every 5 mins.

#!/bin/bash

################################################
## Variable
################################################
timestamp=$(date +"%Y%m%d")
repository="onedrive01:/01 Documents"
documents_folder="$HOME/Documents"
rclone_folder="$HOME/.bin/appdata/rclone"
rclone_log_dir=$rclone_folder/logs
rclone_log_file=$rclone_log_dir/rclone-documents-local-to-cloud-$timestamp.log

################################################
## Validation
################################################
if [[ "$(pidof -x $(basename $0) -o %PPID)" ]]; then exit; fi

################################################
## SYNC
################################################
rclone sync \
	"$documents_folder" \
	"$repository" \
	--log-file "$rclone_log_file" \
	--verbose

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

[onedrive01]
type = onedrive
client_id = XXX
client_secret = XXX
token = XXX
drive_id = XXX
drive_type = personal

[onedrive02]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal
client_id = XXX
client_secret = XXX
### 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

I don't have a log file to provide; I will capture a log file with the --vv flag.

Paste  log here

I am 99.99% sure that rclone does not create random folders in random locations neither it randomly "speaks" different languages...

You have to really investigate what/who else is using your onedrive account.

1 Like

Hey @kapitainsky, thanks for your response. To be honest, I had the same feeling initially. So, to validate this, I created a new dedicated OneDrive account (completely blank) to test this. No other apps/users have access to this folder. The account is also MFA protected.

Are these files in the rlcone log?

Hi @karlh, Thanks for your response. Unfortunately, the --verbose flag doesn't capture this particular action. I've just updated the bash script with the -vv flag. I will monitor the log file.

Please let me know if the following command will capture the debug logs to the log file.

rclone sync \
	"$documents_folder" \
	"$repository" \
	--log-file "$rclone_log_file" \
	--vv

Good call. Chances are close to zero IMO that rclone is responsible - but with some solid evidence it will be much easier to investigate.

Please change --vv to -vv - then it is perfect or even better to avoid confusion replace it with --log-level DEBUG

rclone sync \
	"$documents_folder" \
	"$repository" \
	--log-file "$rclone_log_file" \
	--log-level DEBUG

Well, for some reason, a new 'Document' folder is being created in the English language. This has happened three times since my last post. It's challenging to filter and locate the event in the log file due to its length. I have numerous files and folders named 'document(s)' or containing the word 'document(s).' I will continue to monitor.

Screenshot from 2023-11-13 19-17-04

The issue occurred again earlier. Rclone created a folder named '문서'; however, I was not able to locate any signs of the keyword '문서' in the log file.

It will be very interesting to find out what is doing it. I am still convinced that chances that it is rclone are close to zero.

Your sync destination is in onedrive01:01 Documents and this random folders are in onedrive root - correct?

In addition you can see that other people report similar onedrive behaviour - and do not even use rclone.

https://www.reddit.com/r/microsoft/comments/1607epn/a_worrisome_folder_creation_on_my_onedrive/

I think you should seek for answers with Microsoft and their community.

Hi @kapitainsky, sorry for the late response, and thanks for your reply.

  1. Our sync destination is in onedrive01:01 Documents - Yes.
  2. These random folders are in the OneDrive root - correct? - Yes.

Following my previous update, I modified the sync destination from onedrive01:01 Documents to onedrive01:Documents by removing the two leading numbers and the space. While I assume this adjustment has resolved the issue, I'm not entirely certain. Since making the modification, no random folders have appeared in OneDrive. I will continue to monitor this and provide further updates.

1 Like

Since my last update, I haven't experienced any issues, so I assume that renaming the root folder solved the problem.

1 Like

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