Your account has been locked (onedrive)

What is the problem you are having with rclone?

My account was locked, it said " Your account has been locked.We've detected some activity that violates our [Microsoft Services Agreement] and have locked your account."

The rclone mount is not doing anything. It just happen and no idea why.

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

rclone v1.59.1

  • os/version: raspbian 11.4 (64 bit)
  • os/kernel: 5.15.56-v8+ (aarch64)
  • os/type: linux
  • os/arch: arm64
  • go/version: go1.18.5
  • 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)

[Unit]
Description=RClone Mount Service for ***** Crypt
Wants=network-online.target
After=network-online.target

[Service]
User=pi
Group=pi
Type=notify
ExecStart=/usr/bin/rclone mount onedrive-*****-crypt: /media/onedrive/***** \
--config=/home/pi/.config/rclone/rclone.conf \
--allow-other \
--log-file /media/usb01/rclone/logs/onedrive/*****.log \
--log-level INFO \
--dir-cache-time 5m \
--umask 002 \
--cache-dir=/media/usb01/rclone/cache/***** \
--vfs-cache-mode full \
--vfs-cache-max-size 100G \
--vfs-write-back 1m \
--vfs-cache-max-age 168h \
--vfs-read-ahead 1G \
--transfers 1 \
--tpslimit 10 \
--tpslimit-burst 10 \
--stats 1m \
--stats-one-line
ExecStop=/bin/fusermount -uz /media/onedrive/*****
RestartSec=10
Restart=on-failure

[Install]
WantedBy=multi-user.target

The rclone config contents with secrets removed.

[onedrive-*****]
type = onedrive
token = *****
drive_id = *****
drive_type = personal

[onedrive-*****-crypt]
type = crypt
remote = onedrive-*****:*****
filename_encryption = standard
directory_name_encryption = true
password = *****
password2 = *****

A log from the command with the -vv flag

2022/08/30 05:46:18 INFO  :     5.224 GiB / 5.224 GiB, 100%, 391.948 KiB/s, ETA 0s
2022/08/30 05:46:20 INFO  : vfs cache: cleaned: objects 10 (was 10) in use 0, to upload 0, uploading 0, total size 5.223Gi (was 5.223Gi)
2022/08/30 05:46:38 ERROR : /: Dir.Stat error: couldn't list files: accessDenied: itemDisabled: Access Denied
2022/08/30 05:46:38 ERROR : IO error: couldn't list files: accessDenied: itemDisabled: Access Denied
2022/08/30 05:46:38 ERROR : /: Dir.Stat error: couldn't list files: accessDenied: itemDisabled: Access Denied
2022/08/30 05:46:38 ERROR : IO error: couldn't list files: accessDenied: itemDisabled: Access Denied
2022/08/30 05:46:41 ERROR : /: Dir.Stat error: couldn't list files: accessDenied: itemDisabled: Access Denied
2022/08/30 05:46:41 ERROR : IO error: couldn't list files: accessDenied: itemDisabled: Access Denied
2022/08/30 05:46:41 ERROR : /: Dir.Stat error: couldn't list files: accessDenied: itemDisabled: Access Denied
2022/08/30 05:46:41 ERROR : IO error: couldn't list files: accessDenied: itemDisabled: Access Denied
2022/08/30 05:46:41 ERROR : /: Dir.Stat error: couldn't list files: accessDenied: itemDisabled: Access Denied
2022/08/30 05:46:41 ERROR : IO error: couldn't list files: accessDenied: itemDisabled: Access Denied

... truncating (same error every seconds for 20 minutes until my account got blocked)

2022/08/30 06:05:11 ERROR : /: Dir.Stat error: couldn't list files: accessDenied: itemDisabled: Access Denied
2022/08/30 06:05:11 ERROR : IO error: couldn't list files: accessDenied: itemDisabled: Access Denied
2022/08/30 06:05:17 ERROR : /: Dir.Stat error: couldn't list files: Get "https://graph.microsoft.com/v1.0/drives/*****/items/*****!119/children?$top=1000": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect onedrive-*****:": oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_grant","error_description":"AADSTS70000: The user could not be authenticated or user interaction is required. The user must sign in again and if needed grant the client application access to the requested scope.\r\nTrace ID: 791063bb-136b-45db-9f3b-f49e68737d00\r\nCorrelation ID: 4e836528-2044-41da-bb78-af966696c2c5\r\nTimestamp: 2022-08-30 10:05:16Z","error_codes":[70000],"timestamp":"2022-08-30 10:05:16Z","trace_id":"791063bb-136b-45db-9f3b-f49e68737d00","correlation_id":"4e836528-2044-41da-bb78-af966696c2c5","error_uri":"https://login.microsoftonline.com/error?code=70000"}
2022/08/30 06:05:17 ERROR : IO error: couldn't list files: Get "https://graph.microsoft.com/v1.0/drives/*****/items/*****!119/children?$top=1000": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect onedrive-*****:": oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_grant","error_description":"AADSTS70000: The user could not be authenticated or user interaction is required. The user must sign in again and if needed grant the client application access to the requested scope.\r\nTrace ID: 791063bb-136b-45db-9f3b-f49e68737d00\r\nCorrelation ID: 4e836528-2044-41da-bb78-af966696c2c5\r\nTimestamp: 2022-08-30 10:05:16Z","error_codes":[70000],"timestamp":"2022-08-30 10:05:16Z","trace_id":"791063bb-136b-45db-9f3b-f49e68737d00","correlation_id":"4e836528-2044-41da-bb78-af966696c2c5","error_uri":"https://login.microsoftonline.com/error?code=70000"}
2022/08/30 06:05:18 INFO  :     5.224 GiB / 5.224 GiB, 100%, 391.948 KiB/s, ETA 0s
2022/08/30 06:05:20 INFO  : vfs cache: cleaned: objects 10 (was 10) in use 0, to upload 0, uploading 0, total size 5.223Gi (was 5.223Gi)
2022/08/30 06:05:24 ERROR : /: Dir.Stat error: couldn't list files: Get "https://graph.microsoft.com/v1.0/drives/*****/items/*****!119/children?$top=1000": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect onedrive-*****:": oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_grant","error_description":"AADSTS70000: The user could not be authenticated or user interaction is required. The user must sign in again and if needed grant the client application access to the requested scope.\r\nTrace ID: 7faee5fa-fe3d-4874-bb5b-edc60a487300\r\nCorrelation ID: 459f9878-3554-4352-b952-758fb703fc5f\r\nTimestamp: 2022-08-30 10:05:23Z","error_codes":[70000],"timestamp":"2022-08-30 10:05:23Z","trace_id":"7faee5fa-fe3d-4874-bb5b-edc60a487300","correlation_id":"459f9878-3554-4352-b952-758fb703fc5f","error_uri":"https://login.microsoftonline.com/error?code=70000"}
2022/08/30 06:05:24 ERROR : IO error: couldn't list files: Get "https://graph.microsoft.com/v1.0/drives/*****/items/*****!119/children?$top=1000": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect onedrive-*****:": oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_grant","error_description":"AADSTS70000: The user could not be authenticated or user interaction is required. The user must sign in again and if needed grant the client application access to the requested scope.\r\nTrace ID: 7faee5fa-fe3d-4874-bb5b-edc60a487300\r\nCorrelation ID: 459f9878-3554-4352-b952-758fb703fc5f\r\nTimestamp: 2022-08-30 10:05:23Z","error_codes":[70000],"timestamp":"2022-08-30 10:05:23Z","trace_id":"7faee5fa-fe3d-4874-bb5b-edc60a487300","correlation_id":"459f9878-3554-4352-b952-758fb703fc5f","error_uri":"https://login.microsoftonline.com/error?code=70000"}
2022/08/30 06:05:31 INFO  : One drive root '*****': Change notify listener failure: Get "https://graph.microsoft.com/v1.0/drives/*****/root/delta?token=*****": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect onedrive-*****:": oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_grant","error_description":"AADSTS70000: The user could not be authenticated or user interaction is required. The user must sign in again and if needed grant the client application access to the requested scope.\r\nTrace ID: 2f8220d5-ccd8-48b7-b689-4fc8c1dc3a00\r\nCorrelation ID: 578dd279-221f-421c-b226-f08e43b3dbbf\r\nTimestamp: 2022-08-30 10:05:30Z","error_codes":[70000],"timestamp":"2022-08-30 10:05:30Z","trace_id":"2f8220d5-ccd8-48b7-b689-4fc8c1dc3a00","correlation_id":"578dd279-221f-421c-b226-f08e43b3dbbf","error_uri":"https://login.microsoftonline.com/error?code=70000"}
2022/08/30 06:05:37 ERROR : /: Dir.Stat error: couldn't list files: Get "https://graph.microsoft.com/v1.0/drives/*****/items/*****!119/children?$top=1000": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect onedrive-*****:": oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_grant","error_description":"AADSTS70000: The user could not be authenticated or user interaction is required. The user must sign in again and if needed grant the client application access to the requested scope.\r\nTrace ID: 36f46bd9-0880-4fae-89bd-b46ec9853100\r\nCorrelation ID: 8be02325-6560-466a-8d74-e1e32a5c4a36\r\nTimestamp: 2022-08-30 10:05:36Z","error_codes":[70000],"timestamp":"2022-08-30 10:05:36Z","trace_id":"36f46bd9-0880-4fae-89bd-b46ec9853100","correlation_id":"8be02325-6560-466a-8d74-e1e32a5c4a36","error_uri":"https://login.microsoftonline.com/error?code=70000"}
2022/08/30 06:05:37 ERROR : IO error: couldn't list files: Get "https://graph.microsoft.com/v1.0/drives/*****/items/*****!119/children?$top=1000": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect onedrive-*****:": oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_grant","error_description":"AADSTS70000: The user could not be authenticated or user interaction is required. The user must sign in again and if needed grant the client application access to the requested scope.\r\nTrace ID: 36f46bd9-0880-4fae-89bd-b46ec9853100\r\nCorrelation ID: 8be02325-6560-466a-8d74-e1e32a5c4a36\r\nTimestamp: 2022-08-30 10:05:36Z","error_codes":[70000],"timestamp":"2022-08-30 10:05:36Z","trace_id":"36f46bd9-0880-4fae-89bd-b46ec9853100","correlation_id":"8be02325-6560-466a-8d74-e1e32a5c4a36","error_uri":"https://login.microsoftonline.com/error?code=70000"}



There's really not much to offer from our perspective. You'd have to ask why I'd imagine albeit I'm not sure what they will say.

so there is nothing wrong on my rclone setup? why does rclone continue to try access the remote? the logs shows that rclone tried to list file every seconds for 20minutes straight. is there a way to prevent this in the future? thanks

Rclone does not do anything on its own.

You'd have something accessing your mount and doing that.

my setup was working great for a week then i change the --dir-cache-time to 5 minutes from 9999h because rclone is not updating the free space so mergerfs does upload files to a single mount instead of choosing the most free space.

That really doesn't impact much as it's a few API for directory lists.

You'd probably want to ask them what the policy violation was as guessing really won't do much.

they told me my account is experiencing an unusually large volume of traffic, but the last activity of my mount is like 12:30 am then the error starts 5:46am. maybe onedrive don't want me to use 6 mount on same ip, im using family 365. im just gonna refund it and move to another service.

Without seeing a full log, it's a bit tough to tell.

You can see at 5:46, you transferred 5GB of data. If that's a large volume, I hope not, but who knows.

Rclone does nothing on its own so once you mount, whatever application is using it generates the upload/download.

these is the last upload success then it's the same "2022/08/30 00:43:20 INFO : vfs cache: cleaned: objects 10 (was 10) in use 0, to upload 0, uploading 0, total size 5.223Gi (was 5.223Gi) 2022/08/30 00:44:18 INFO : 5.224 GiB / 5.224 GiB, 100%, 391.948 KiB/s, ETA 0s" until it get denied access.

022/08/30 00:35:18 INFO  :     5.146 GiB / 5.194 GiB, 99%, 391.948 KiB/s, ETA 2m7s
2022/08/30 00:35:20 INFO  : vfs cache: cleaned: objects 10 (was 10) in use 4, to upload 3, uploading 1, total size 5.223Gi (was 5.223Gi)
2022/08/30 00:36:18 INFO  :     5.176 GiB / 5.194 GiB, 100%, 391.948 KiB/s, ETA 48s
2022/08/30 00:36:20 INFO  : vfs cache: cleaned: objects 10 (was 10) in use 4, to upload 3, uploading 1, total size 5.223Gi (was 5.223Gi)
2022/08/30 00:36:56 INFO  : *****: Copied (new)
2022/08/30 00:36:56 INFO  : *****: vfs cache: upload succeeded try #1
2022/08/30 00:36:59 INFO  : *****: Copied (new)
2022/08/30 00:36:59 INFO  : *****: vfs cache: upload succeeded try #1
2022/08/30 00:36:59 INFO  : *****: Copied (new)
2022/08/30 00:36:59 INFO  : *****: vfs cache: upload succeeded try #1
2022/08/30 00:37:18 INFO  :     5.204 GiB / 5.224 GiB, 100%, 391.948 KiB/s, ETA 52s
2022/08/30 00:37:20 INFO  : vfs cache: cleaned: objects 10 (was 10) in use 1, to upload 0, uploading 1, total size 5.223Gi (was 5.223Gi)
2022/08/30 00:37:56 INFO  : *****: Copied (new)
2022/08/30 00:37:56 INFO  : *****: vfs cache: upload succeeded try #1
2022/08/30 00:38:18 INFO  :     5.224 GiB / 5.224 GiB, 100%, 391.948 KiB/s, ETA 0s
2022/08/30 00:38:20 INFO  : vfs cache: cleaned: objects 10 (was 10) in use 0, to upload 0, uploading 0, total size 5.223Gi (was 5.223Gi)
2022/08/30 00:39:18 INFO  :     5.224 GiB / 5.224 GiB, 100%, 391.948 KiB/s, ETA 0s
2022/08/30 00:39:20 INFO  : vfs cache: cleaned: objects 10 (was 10) in use 0, to upload 0, uploading 0, total size 5.223Gi (was 5.223Gi)
2022/08/30 00:40:18 INFO  :     5.224 GiB / 5.224 GiB, 100%, 391.948 KiB/s, ETA 0s
2022/08/30 00:40:20 INFO  : vfs cache: cleaned: objects 10 (was 10) in use 0, to upload 0, uploading 0, total size 5.223Gi (was 5.223Gi)
2022/08/30 00:41:18 INFO  :     5.224 GiB / 5.224 GiB, 100%, 391.948 KiB/s, ETA 0s
2022/08/30 00:41:20 INFO  : vfs cache: cleaned: objects 10 (was 10) in use 0, to upload 0, uploading 0, total size 5.223Gi (was 5.223Gi)
2022/08/30 00:42:18 INFO  :     5.224 GiB / 5.224 GiB, 100%, 391.948 KiB/s, ETA 0s
2022/08/30 00:42:20 INFO  : vfs cache: cleaned: objects 10 (was 10) in use 0, to upload 0, uploading 0, total size 5.223Gi (was 5.223Gi)
2022/08/30 00:43:18 INFO  :     5.224 GiB / 5.224 GiB, 100%, 391.948 KiB/s, ETA 0s
2022/08/30 00:43:20 INFO  : vfs cache: cleaned: objects 10 (was 10) in use 0, to upload 0, uploading 0, total size 5.223Gi (was 5.223Gi)
2022/08/30 00:44:18 INFO  :     5.224 GiB / 5.224 GiB, 100%, 391.948 KiB/s, ETA 0s

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