mirror of
https://github.com/onyx-dot-app/documentation.git
synced 2026-07-25 05:35:37 -04:00
Explain relationship between Error "Stopped mid run, likely due to the background process being killed" and OAuth expiring #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @theship on GitHub (May 10, 2024).
Add docs on re-authenticating with GDrive OAuth
Setting up Google Drive OAuth is tricky, and the docs do a good job of walking through it. But there is no indication that the OAuth creds expire in 7 days, at which time you must pause and delete all connections, and revoke access in order to trigger re-auth.
Maybe some details after the Indexing section would be useful. May I suggest something like the attached new section at the bottom of the Google Drive OAuth page? Or maybe this sort of thing should go in some Errors or Troubleshooting section.
Suggested new content
Revalidating your OAuth credentials with Danswer
In test mode, your OAuth credentials expire after seven (7) days. This means you must revalidate your Google Drive credentials with Danswer every week. To trigger token refresh and reset, go through the OAuth consent screen again.
What to look for
If you see the following error message in a connector log (for example: http://localhost:3000/admin/connector/<connector_id>), it may be that your Google Drive credentials have expired.
Docker or Kubernetes logs may give some indication that your OAuth credentials have expired. For example, if you run the following docker command:
You may see the following error message:
What steps to take
When
AUTH_TYPE=disabled, "Revoke Access" only works after deleting all of the Google Drive connectors along with their indexed files. This means that you must pause and delete any Google Drive connectors. After you reauthenticate, you can add connectors back to start indexing again.To re-authenticate with Google Drive, follow these steps:
When the connector is deleted, you see an error that the connection can't be found. At this point, the indexed files are also deleted. This is why you must reindex the files after re-authentication.
@wenxi-onyx commented on GitHub (Jul 10, 2025):
@theship Thanks for the heads up on this. Can you clarify that this only happens for users without Google organizations (i.e. step 8 in the set up guide).
If so, we'll update the guides with a note on this.