Lost Box login periodically

What is the problem you are having with rclone?

This is actually a Box problem, but since they don't want to know about fixing the bug, let's work around it.

I say it's their problem because I had the same with Otixo and MultCloud.

In RClone I get
couldn't list files: Get "https://api.box.com/2.0/folders/0/items?fields=type%2Cid%2Csequence_id%2Cetag%2Csha1%2Cname%2Csize%2Ccreated_at%2Cmodified_at%2Ccontent_created_at%2Ccontent_modified_at%2Citem_status%2Cshared_link%2Cowned_by&limit=1000&usemarker=true": couldn't fetch token: invalid_grant: maybe token expired? - try refreshing with "rclone config reconnect Box1

Running the suggested command opens the Box login page in my browser.
PROBLEM: I have many accounts on box, and I can't spend my days re-logging in.
So, is there an automated command to refresh the login token?

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

rclone v1.66.0

  • os/version: Microsoft Windows 10 Education 22H2 (64 bit)
  • os/kernel: 10.0.19045.4291 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.22.1
  • go/linking: static
  • go/tags: cmount

Which cloud storage system are you using?

The command you were trying to run (eg rclone copy /tmp remote:tmp)

Using Explorer from browser

sorry if i missed it, but you never explained exactly what the box.com bug is about?

not an expert with box, but based on box.com docs, can use service account instead of oauth.
same concept as with gdrive.

or write a simple script to refresh the token. run it on a schedule once a day.

rclone lsd Box1:
rclone lsd Box2:

By Box.com bug I mean that their token expires and is not renewable.

I created a script rclone tree Box1:
And I run it about every 30 days. Should I have done it more often?

every day.

run rclone lsd instead of rclone tree