Hello.
What is the problem you are having with rclone?
I have set up rclone to connect to a Dropbox account on a headless Linux system earlier today. I obtained the auth token using using the Windows version on a Windows 10 PC using Firefox.
However the token provided by Dropbox had a very short life of only four hours.
{"access_token":"xxx","token_type":"bearer","refresh_token":"xxx","expiry":"2024-02-25T19:12:00.9935995Z"}
Because of this the sync job I left running ran for a while then threw up lots of these failures:
Failed to copy: failed to open source object: Post "https://content.dropboxapi.com/2/files/download": couldn't fetch token: invalid_grant: maybe token expired? - try refreshing with "rclone config reconnect dropbox:"
I have done so, gone through the steps, and pasted the new token. However looking in the rclone.conf file the new token also only has a four hour expiry:
...,"expiry":"2024-02-26T00:18:54.3264971Z"}
I wanted to set this up as a scheduled job to run each night but obviously this is not possible if I can't get a token with a reasonable life.
I do not know whether it is an issue with rsync, Dropbox, or something with our specific account.
Run the command 'rclone version' and share the full output of the command.
rclone v1.65.2
- os/version: centos 7.9.2009 (64 bit)
- os/kernel: 3.10.0-1160.108.1.el7.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.6
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Dropbox (business account)
I have also created our own Dropbox App ID.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone sync dropbox: /data/dropbox --fast-list --check-first --tpslimit 10 --tpslimit-burst 0 --progress
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[dropbox]
type = dropbox
token = XXX
client_id = XXX
client_secret = XXX
A log from the command that you were trying to run with the -vv
flag
I do not have this because I was not expecting it to fail. I have not yet rerun the sync because there is no point until I can get a token that lasts more than four hours.
I welcome any suggestions and ideas please.
Thank you,
Paul