cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Error on github association

EdsonDEV
New Contributor

Hello,
I'm having an error when trying to link a GitHub account to store some scripts. Looks like my profile keeps on eternal loading too. Does anyone know how I can fix that?

1 REPLY 1

Louis_Frolio
Databricks Employee
Databricks Employee

Hello @EdsonDEV ,  Thanks for the screenshotโ€”your Linked accounts page is showing โ€œError fetching credentials,โ€ which blocks linking GitHub and can make the settings view spin indefinitely.

 

What typically causes this

  • A broken or stale linked Git credential (for example, a PAT that expired or a credential key that no longer exists) can surface as โ€œError fetching credentials / key does not exist in workspace.โ€
  • Using the Databricks GitHub App (OAuth) with a GitHub EMU account isnโ€™t supported; EMU users must link with a personal access token (PAT) instead.
  • A PAT that lacks required scopes (at minimum, repo and workflow if you use Actions) will fail validation when Databricks tries to use it.
  • If your org enforces SAML SSO in GitHub, the PAT must be explicitly authorized for SSO or Git operations will be denied.
  • Having multiple GitHub sessions in the browser can cause odd auth/UI behavior; using an incognito window or separate browser profile avoids session collisions.

Fast troubleshooting steps

Open the settings in an incognito window (or another browser), then go to Settings > Linked accounts and click Retry to reload the credentials.

  • Decide your auth path:
    • If youโ€™re on GitHub EMU, choose Personal access token and avoid the GitHub App.
    • If you are on GitHub.com or GitHub AE (not Enterprise Server), the GitHub App (OAuth) is recommended; otherwise use PAT.
  • For PATs, create a fineโ€‘grained token with at least:
    • Repository access limited to the repos you need, and
    • Permissions: Contents = Read and write; include workflow if you use Actions. Then paste it under Settings > Linked accounts and Save.
  • If your org uses GitHub SAML SSO, open the tokenโ€™s details and click Authorize for SSO, then Save again in Databricks.
  • If the banner persists and you previously had a bad or expired PAT, you may have a corrupted/ghost credential record. This is a known class of issue; Support can clear the bad key on the backend when the UI canโ€™t load or remove it.

Notes and references

  • Setup flow and options (OAuth vs PAT), EMU limitation, and scopes are documented in Databricks docs under โ€œConfigure Git credentials & connect a remote repo.โ€ * The Linked accounts page is the right place to add/edit Git credentials for Git folders (Repos).
 
Hoping this helps, Louis.