Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh token expired #198

Open
davidraviv opened this issue Jan 27, 2024 · 0 comments
Open

Refresh token expired #198

davidraviv opened this issue Jan 27, 2024 · 0 comments

Comments

@davidraviv
Copy link

I use gupload from a cron to upload a backup zip to Google Drive.
After a period where it worked fine, it started to fail with this error message:

$ gupload daily-backup.tar.gz -c Backups
------------------------------------------------[ Checking credentials.. ]------------------------------------------------
=====================================[ Error: Something went wrong, printing error. ]=====================================
{
  "error": "invalid_grant",
  "error_description": "Token has been expired or revoked."
}
If refresh token has expired, then use --oauth-refetch-refresh-token to refetch refresh token, if the error is not clear make a issue on github repository.
==========================================[ Error: Credentials checking failed ]==========================================

I have a refresh token in the .googledrive.conf but I understand it has expired.
How do I use the option --oauth-refetch-refresh-token?
I tried it in several ways and it seems that this option does not exist.
How do I refech the refresh token?

$ gupload daily-backup.tar.gz --oauth-refetch-refresh-token
gupload: --oauth-refetch-refresh-token: Unknown option

No valid arguments provided, use -h/--help flag to see usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant