What is the problem you are having with rclone?
when I run rclone config the config fails when entering Type of connection.
I get this error:
config_type> 1
Failed to query available drives: Get "https://graph.microsoft.com/v1.0/me/drives": dial tcp [2603:1016:1400::81]:443: connect: network is unreachable
Option config_type.
I have installed rclone many times without any problems even just a few weeks ago to rebuild another raspberry pi 5.
When I go to this URL https://graph.microsoft.com/v1.0/me/drives I get this response:
{
"error": {
"code": "InvalidAuthenticationToken",
"message": "Access token is empty.",
"innerError": {
"date": "2024-07-19T01:40:22",
"request-id": "0a6e798f-4619-4f5d-b638-5cfe84b8412a",
"client-request-id": "0a6e798f-4619-4f5d-b638-5cfe84b8412a"
}
}
}
To install rclone I followed this guide https://pimylifeup.com/raspberry-pi-rclone/
Can anyone give me some ideas?? Thanks
Run the command 'rclone version' and share the full output of the command.
rclone v1.67.0
- os/version: raspbian 12.6 (64 bit)
- os/kernel: 6.6.31+rpt-rpi-2712 (aarch64)
- os/type: linux
- os/arch: arm (ARMv7 compatible)
- go/version: go1.22.4
- 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
)
rclone config
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
pi@raspberrypi3:~ $ rclone config redacted
[oneDrive]
type = onedrive
token = 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
pi@raspberrypi3:~ $ rclone config -vv
2024/07/19 11:32:25 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "config" "-vv"]
2024/07/19 11:32:25 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
Enter name for new remote.
name> oneDrive
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
1 / 1Fichier
\ (fichier)
2 / Akamai NetStorage
\ (netstorage)
3 / Alias for an existing remote
\ (alias)
4 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, Ceph, ChinaMobile, Cloudflare, DigitalOcean, Dreamhost, GCS, HuaweiOBS, IBMCOS, IDrive, IONOS, LyveCloud, Leviia, Liara, Linode, Magalu, Minio, Netease, Petabox, RackCorp, Rclone, Scaleway, SeaweedFS, StackPath, Storj, Synology, TencentCOS, Wasabi, Qiniu and others
\ (s3)
5 / Backblaze B2
\ (b2)
6 / Better checksums for other remotes
\ (hasher)
7 / Box
\ (box)
8 / Cache a remote
\ (cache)
9 / Citrix Sharefile
\ (sharefile)
10 / Combine several remotes into one
\ (combine)
11 / Compress a remote
\ (compress)
12 / Dropbox
\ (dropbox)
13 / Encrypt/Decrypt a remote
\ (crypt)
14 / Enterprise File Fabric
\ (filefabric)
15 / FTP
\ (ftp)
16 / Google Cloud Storage (this is not Google Drive)
\ (google cloud storage)
17 / Google Drive
\ (drive)
18 / Google Photos
\ (google photos)
19 / HTTP
\ (http)
20 / Hadoop distributed file system
\ (hdfs)
21 / HiDrive
\ (hidrive)
22 / ImageKit.io
\ (imagekit)
23 / In memory object storage system.
\ (memory)
24 / Internet Archive
\ (internetarchive)
25 / Jottacloud
\ (jottacloud)
26 / Koofr, Digi Storage and other Koofr-compatible storage providers
\ (koofr)
27 / Linkbox
\ (linkbox)
28 / Local Disk
\ (local)
29 / Mail.ru Cloud
\ (mailru)
30 / Mega
\ (mega)
31 / Microsoft Azure Blob Storage
\ (azureblob)
32 / Microsoft Azure Files
\ (azurefiles)
33 / Microsoft OneDrive
\ (onedrive)
34 / OpenDrive
\ (opendrive)
35 / OpenStack Swift (Rackspace Cloud Files, Blomp Cloud Storage, Memset Memstore, OVH)
\ (swift)
36 / Oracle Cloud Infrastructure Object Storage
\ (oracleobjectstorage)
37 / Pcloud
\ (pcloud)
38 / PikPak
\ (pikpak)
39 / Proton Drive
\ (protondrive)
40 / Put.io
\ (putio)
41 / QingCloud Object Storage
\ (qingstor)
42 / Quatrix by Maytech
\ (quatrix)
43 / SMB / CIFS
\ (smb)
44 / SSH/SFTP
\ (sftp)
45 / Sia Decentralized Cloud
\ (sia)
46 / Storj Decentralized Cloud Storage
\ (storj)
47 / Sugarsync
\ (sugarsync)
48 / Transparently chunk/split large files
\ (chunker)
49 / Uloz.to
\ (ulozto)
50 / Union merges the contents of several upstream fs
\ (union)
51 / Uptobox
\ (uptobox)
52 / WebDAV
\ (webdav)
53 / Yandex Disk
\ (yandex)
54 / Zoho
\ (zoho)
55 / premiumize.me
\ (premiumizeme)
56 / seafile
\ (seafile)
Storage> 33
2024/07/19 11:33:22 DEBUG : oneDrive: config in: state="*all", result=""
2024/07/19 11:33:22 DEBUG : oneDrive: config out: out=&{State:*all-set,0,false Option: OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:22 DEBUG : oneDrive: config: reading config parameter "client_id"
Option client_id.
OAuth Client Id.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_id>
2024/07/19 11:33:23 DEBUG : oneDrive: config in: state="*all-set,0,false", result=""
2024/07/19 11:33:23 DEBUG : oneDrive: config out: out=&{State:*all,1,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:23 DEBUG : oneDrive: config in: state="*all,1,false", result=""
2024/07/19 11:33:23 DEBUG : oneDrive: config out: out=&{State:*all-set,1,false Option: OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:23 DEBUG : oneDrive: config: reading config parameter "client_secret"
Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_secret>
2024/07/19 11:33:23 DEBUG : oneDrive: config in: state="*all-set,1,false", result=""
2024/07/19 11:33:23 DEBUG : oneDrive: config out: out=&{State:*all,2,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:23 DEBUG : oneDrive: config in: state="*all,2,false", result=""
2024/07/19 11:33:23 DEBUG : oneDrive: config out: out=&{State:*all,3,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:23 DEBUG : oneDrive: config in: state="*all,3,false", result=""
2024/07/19 11:33:23 DEBUG : oneDrive: config out: out=&{State:*all,4,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:23 DEBUG : oneDrive: config in: state="*all,4,false", result=""
2024/07/19 11:33:23 DEBUG : oneDrive: config out: out=&{State:*all,5,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:23 DEBUG : oneDrive: config in: state="*all,5,false", result=""
2024/07/19 11:33:23 DEBUG : oneDrive: config out: out=&{State:*all-set,5,false Option:global OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:23 DEBUG : oneDrive: config: reading config parameter "region"
Option region.
Choose national cloud region for OneDrive.
Choose a number from below, or type in your own value of type string.
Press Enter for the default (global).
1 / Microsoft Cloud Global
\ (global)
2 / Microsoft Cloud for US Government
\ (us)
3 / Microsoft Cloud Germany
\ (de)
4 / Azure and Office 365 operated by Vnet Group in China
\ (cn)
region> 1
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all-set,5,false", result="global"
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,6,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,6,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,7,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,7,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,8,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,8,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,9,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,9,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,10,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,10,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,11,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,11,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,12,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,12,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,13,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,13,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,14,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,14,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,15,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,15,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,16,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,16,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,17,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,17,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,18,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,18,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,19,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,19,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,20,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,20,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,21,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,21,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,22,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,22,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,23,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,23,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,24,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,24,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,25,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,25,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all,26,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config in: state="*all,26,false", result=""
2024/07/19 11:33:26 DEBUG : oneDrive: config out: out=&{State:*all-advanced Option:false OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:26 DEBUG : oneDrive: config: reading config parameter "config_fs_advanced"
Edit advanced config?
y) Yes
n) No (default)
y/n>
2024/07/19 11:33:31 DEBUG : oneDrive: config in: state="*all-advanced", result="false"
2024/07/19 11:33:31 DEBUG : oneDrive: config out: out=&{State:*postconfig Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:31 DEBUG : oneDrive: config in: state="*postconfig", result=""
2024/07/19 11:33:31 DEBUG : oneDrive: config in: state="", result=""
2024/07/19 11:33:31 DEBUG : oneDrive: config out: out=&{State:*oauth,choose_type,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:31 DEBUG : oneDrive: config out: out=&{State:*oauth,choose_type,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:31 DEBUG : oneDrive: config in: state="*oauth,choose_type,,", result=""
2024/07/19 11:33:31 DEBUG : oneDrive: config out: out=&{State:*oauth-confirm,choose_type,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:31 DEBUG : oneDrive: config in: state="*oauth-confirm,choose_type,,", result=""
2024/07/19 11:33:31 DEBUG : oneDrive: config out: out=&{State:*oauth-islocal,choose_type,, Option:true OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:31 DEBUG : oneDrive: config: reading config parameter "config_is_local"
Use web browser to automatically authenticate rclone with remote?
* Say Y if the machine running rclone has a web browser you can use
* Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.
y) Yes (default)
n) No
y/n>
2024/07/19 11:33:32 DEBUG : oneDrive: config in: state="*oauth-islocal,choose_type,,", result="true"
2024/07/19 11:33:32 DEBUG : oneDrive: config out: out=&{State:*oauth-do,choose_type,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:32 DEBUG : oneDrive: config in: state="*oauth-do,choose_type,,", result=""
2024/07/19 11:33:32 DEBUG : Starting auth server on 127.0.0.1:53682
2024/07/19 11:33:32 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=CVFZ9yF3eg2XFzdg_hpZLg
2024/07/19 11:33:32 NOTICE: Log in and authorize rclone for access
2024/07/19 11:33:32 NOTICE: Waiting for code...
2024/07/19 11:33:32 DEBUG : Redirecting browser to: https://login.microsoftonline.com/common/oauth2/v2.0/authorize?access_type=offline&client_id=b15665d9-eda6-4092-8539-0eec376afd59&redirect_uri=http%3A%2F%2Flocalhost%3A53682%2F&response_type=code&scope=Files.Read+Files.ReadWrite+Files.Read.All+Files.ReadWrite.All+Sites.Read.All+offline_access&state=CVFZ9yF3eg2XFzdg_hpZLg
2024/07/19 11:33:37 DEBUG : Received GET request on auth server to "/"
2024/07/19 11:33:37 NOTICE: Got code
2024/07/19 11:33:37 DEBUG : Closing auth server
2024/07/19 11:33:37 DEBUG : Closed auth server with error: accept tcp 127.0.0.1:53682: use of closed network connection
2024/07/19 11:33:38 DEBUG : Saving config "token" in section "oneDrive" of the config file
2024/07/19 11:33:38 DEBUG : oneDrive: Saved new token in config file
2024/07/19 11:33:38 DEBUG : oneDrive: config out: out=&{State:*oauth-done,choose_type,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:38 DEBUG : oneDrive: config in: state="*oauth-done,choose_type,,", result=""
2024/07/19 11:33:38 DEBUG : oneDrive: config out: out=&{State:choose_type Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:38 DEBUG : oneDrive: config in: state="choose_type", result=""
2024/07/19 11:33:38 DEBUG : oneDrive: config out: out=&{State:choose_type_done Option:onedrive OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:38 DEBUG : oneDrive: config: reading config parameter "config_type"
Option config_type.
Type of connection
Choose a number from below, or type in an existing value of type string.
Press Enter for the default (onedrive).
1 / OneDrive Personal or Business
\ (onedrive)
2 / Root Sharepoint site
\ (sharepoint)
/ Sharepoint site name or URL
3 | E.g. mysite or https://contoso.sharepoint.com/sites/mysite
\ (url)
4 / Search for a Sharepoint site
\ (search)
5 / Type in driveID (advanced)
\ (driveid)
6 / Type in SiteID (advanced)
\ (siteid)
/ Sharepoint server-relative path (advanced)
7 | E.g. /teams/hr
\ (path)
config_type> 1
2024/07/19 11:33:52 DEBUG : oneDrive: config in: state="choose_type_done", result="onedrive"
2024/07/19 11:33:52 DEBUG : oneDrive: config out: out=&{State:onedrive Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:52 DEBUG : oneDrive: config in: state="onedrive", result=""
2024/07/19 11:33:52 DEBUG : oneDrive: config out: out=&{State:choose_type Option:<nil> OAuth:<nil> Error:Failed to query available drives: Get "https://graph.microsoft.com/v1.0/me/drives": dial tcp [2603:1016:1400::80]:443: connect: network is unreachable Result:}, err=<nil>
Failed to query available drives: Get "https://graph.microsoft.com/v1.0/me/drives": dial tcp [2603:1016:1400::80]:443: connect: network is unreachable
2024/07/19 11:33:52 DEBUG : oneDrive: config in: state="choose_type", result=""
2024/07/19 11:33:52 DEBUG : oneDrive: config out: out=&{State:choose_type_done Option:onedrive OAuth:<nil> Error: Result:}, err=<nil>
2024/07/19 11:33:52 DEBUG : oneDrive: config: reading config parameter "config_type"
Option config_type.
Type of connection
Choose a number from below, or type in an existing value of type string.
Press Enter for the default (onedrive).
1 / OneDrive Personal or Business
\ (onedrive)
2 / Root Sharepoint site
\ (sharepoint)
/ Sharepoint site name or URL
3 | E.g. mysite or https://contoso.sharepoint.com/sites/mysite
\ (url)
4 / Search for a Sharepoint site
\ (search)
5 / Type in driveID (advanced)
\ (driveid)
6 / Type in SiteID (advanced)
\ (siteid)
/ Sharepoint server-relative path (advanced)
7 | E.g. /teams/hr
\ (path)