Prerequisites
Rclone Pre-flight Checklist (if applicable)
Bug Description
When using rclone token rotation seems to not be properly applied, causing the underlying repository remote to become "disconnected".
Steps to Reproduce
- Create a
rclone remote that performs frequent token refreshes (I am currently using Jottacloud)
- 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)
- 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"}
Prerequisites
Rclone Pre-flight Checklist (if applicable)
rclone listremotesandrclone lsd remote:on the host and they workBug Description
When using
rclonetoken rotation seems to not be properly applied, causing the underlying repository remote to become "disconnected".Steps to Reproduce
rcloneremote that performs frequent token refreshes (I am currently using Jottacloud)Expected Behavior
I understand
rcloneis a bit finicky when it comes with token refreshes. This is technically anrcloneissue, but they are clear this behavior is intended. I think there should be a solution to avoid this behavior. It could be allowing separatercloneconfigs 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: