i do not see a client id/key your config file, make sure you have done this.... https://rclone.org/onedrive/#getting-your-own-client-id-and-key
"If you are having problems with them (E.g., seeing a lot of throttling), you can get your own Client ID and Key"
rclone sync can use a lot less api calls per second, as it takes time to transfer the files, the default is just four at a time and an api call per chunk.
you are using a client id, shared with a unknown count of fellow rcloners.
you can try using --tpslimit to slow down the number of api calls per second.
or try --fast-list to reduce the number of api calls.
Your rmdirs command seems correct if you are trying to recursively remove all empty directories under remote:stack.
I do see some OneDrive throttling, but that could be OK if your have many folders/files and/or have had a lot of OneDrive activity in the past 24 hours. You therefore may get some good info from this post/thread on OneDrive throttling:
If the above post doesn't help, then I need some additional information to better understand your situation:
What are the characteristics of your data in remote:stack? How many folders? How many empty folders? How many files? Total size? Anything special?
What are the characteristics of the past 24 hours activity on your OneDrive? (both rclone and native clients)
But that thread is about copying from OneDrive to GooglDrive, while I'm copying from localdrive to OneDrive.
What would be the slowest, most throttled command for that?
I will let this run for a while, but for now, it's only showing me:
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Elapsed time: 5m11.9s
(so 5 minutes doing nothing at all)
Back from holiday and made a client (Microsoft OneDrive)
I copied the client-id and the secret-id into an empty text document, edited the configuration and ran it again.
The first time it complains about an something being wrong (I think it was the ID).
Then when I do it again, it's just the same situation:
./Applications/RClone/rclone rmdirs remote:stack --transfers=1 --checkers=1 -vv --progress --stats 10s --tpslimit 1 --fast-list
2021/07/12 09:10:34 DEBUG : Using config file from "/Users/marcelloh/.config/rclone/rclone.conf"
2021/07/12 09:10:34 INFO : Starting transaction limiter: max 1 transactions/s with burst 1
2021/07/12 09:10:34 DEBUG : rclone: Version "v1.55.1" starting with parameters ["./Applications/RClone/rclone" "rmdirs" "remote:stack" "--transfers=1" "--checkers=1" "-vv" "--progress" "--stats" "10s" "--tpslimit" "1" "--fast-list"]
2021/07/12 09:10:34 DEBUG : Creating backend with remote "remote:stack"
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Elapsed time: 4m52.1s
So I edited it again, setting both to empty again.
Then run and stop.
Then edited it again, setting the 2 id's, to see that one time message:
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=_L0-d1TpFmiBi1qJM5D8Ng
Log in and authorize rclone for access
Waiting for code...
Got code
2021/07/12 09:46:15 Failed to configure token: failed to get token: oauth2: cannot fetch token: 401 Unauthorized
Response: {"error":"invalid_client","error_description":"AADSTS7000215: Invalid client secret is provided.\r\nTrace ID: 88bbda57-7836-45aa-84a4-ad7b70595200\r\nCorrelation ID: e0f4a7eb-c851-4f0c-88c3-bf1153786c87\r\nTimestamp: 2021-07-12 07:46:17Z","error_codes":[7000215],"timestamp":"2021-07-12 07:46:17Z","trace_id":"88bbda57-7836-45aa-84a4-ad7b70595200","correlation_id":"e0f4a7eb-c851-4f0c-88c3-bf1153786c87","error_uri":"https://login.microsoftonline.com/error?code=7000215"}
In the instructions it shows "Copy and keep that secret for later use." and since the other one was about the "id" i'd figured this one was about the "id" as well.
I didn't copy that, so have to remove and retry.
No more errors when editing the config, but still: