Skip to content

[BUG] rclone token rotation/refresh seems to have issues #702

@theFra985

Description

@theFra985

Prerequisites

Rclone Pre-flight Checklist (if applicable)

  • This issue is NOT related to rclone (skip if not using rclone)
  • I have tested rclone listremotes and rclone lsd remote: on the host and they work
  • I have verified the rclone config is mounted into the container
  • I have restarted the container after config changes

Bug Description

When using rclone token rotation seems to not be properly applied, causing the underlying repository remote to become "disconnected".

Steps to Reproduce

  1. Create a rclone remote that performs frequent token refreshes (I am currently using Jottacloud)
  2. Create one repository, a couple volumes and 3/4 backup schedules (I am able to reproduce the issue consistently when they overlap, I have it happen even when not overlapping if you operate the interface while a backup is being performed)
  3. Run two operations at the same time

Expected Behavior

I understand rclone is a bit finicky when it comes with token refreshes. This is technically an rclone issue, but they are clear this behavior is intended. I think there should be a solution to avoid this behavior. It could be allowing separate rclone configs or locking the remote/repository operations to avoid concurrent ones. I would expect the token refresh to be performed correctly.

Zerobyte version / commit

v0.32.1

Deployment Method

Docker

Backup/Repository Context

As mentioned the storage backend is Jottacloud with a single repository having multiple jobs

Logs / Error Messages

Not really helpful but the resulting state is:

Failed to create file system for "remotename:/": couldn't get customer info: Get "https://api.jottacloud.com/account/v1/customer": couldn't fetch token: invalid_grant: maybe token expired? - try refreshing with "rclone config reconnect remotename:" {"message_type":"exit_error","code":1,"message":"Fatal: unable to open repository at rclone:remotename:/: error talking HTTP to rclone: exit status 1"} 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions