** Description changed:

+ [ Impact ]
+ 
+  * On Ubuntu 26.04 (Resolute), Deja Dup uses rclone to access Google Drive.
+    After approximately one hour, OAuth token refresh may fail with
+    `oauth2: invalid_client` ("The provided client secret is invalid"), causing
+    the backup to fail.
+ 
+  * This SRU backports the upstream fix. When a custom OAuth client ID is
+    configured, rclone clears the backend's default client secret so that
+    token refresh uses the supplied client credentials.
+ 
+ [ Test Plan ]
+ 
+  * With assistance from a colleague, I installed a locally built rclone
+    package, version 1.60.1+dfsg-4ubuntu3.2ps1~1, on a physical laptop
+    running Ubuntu 26.04 (Resolute).
+ 
+  * Using Deja Dup with Google Drive, I ran a backup for more than one hour.
+    The backup completed successfully with the patched package,
+    without an `invalid_client` error.
+ 
+  * I have not tested whether the currently published package reproduces the
+    failure. When the proposed package is available for SRU verification, I
+    plan to repeat the scenario with both package versions, if practical, and
+    record the results on this bug.
+ 
+ [ Where problems could occur ]
+ 
+  * The change affects OAuth configuration when a non-empty custom client ID
+    is supplied. A configuration that relies on a backend's default client
+    secret together with a custom client ID could behave differently and fail
+    authorization or token refresh. An explicitly configured client secret
+    continues to override the default.
+ 
+ [ Other Info ]
+ 
+  * Upstream commit:
+    
https://github.com/rclone/rclone/commit/cd76fd9219ee0e3ad4f31e51f4a3c82c86b25955
+ 
+  * The local build of 1.60.1+dfsg-4ubuntu3.3 produced binary packages.
+    Its build-time Go test command returned a non-zero status; debian/rules
+    explicitly ignores that status. The reported failures were in unrelated
+    packages, and no failure was reported for lib/oauthutil. That package has
+    no Go test files.
+ 
+ [Original description]
+ 
  Deja Dup Backups uses Google Drive as its default/suggested storage
  backend. And uses Rclone to access it.
  
  However, after about an hour of backing up, the user will see lots of
  errors like:
  
  couldn t fetch token - maybe it has expired? - refresh with rclone
  config reconnect :drive{wKzRj}: : oauth2: invalid_client The provided
  client secret is invalid.
  
  and/or
  
  unexpected HTTP response (500): 500 Internal Server Error
  
  The problem is actually one I fixed years ago in Rclone 1.67.0, but
  Ubuntu 26.04 released with a very old version of Rclone. Looks like
  26.10 is getting a version with the fix though (it's sitting in
  proposed), so this only heavily affects 26.04 and 25.10 (because Deja
  Dup in Ubuntu releases before 25.10 didn't use Rclone to interact with
  Google Drive; while Rclone is still affected in older LTS releases, and
  could still be worth fixing, I don't know how common this code path of
  providing custom auth tokens to Rclone is, outside of Deja Dup).
  
  Anyway, here's the upstream fix, first available in 1.67.0:
  
https://github.com/rclone/rclone/commit/cd76fd9219ee0e3ad4f31e51f4a3c82c86b25955

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2156703

Title:
  Google Drive access via Deja Dup times out after an hour or so

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rclone/+bug/2156703/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to