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"}