Problem
When working with Git integrated with your Databricks environment, your workloads fail with an error message.
Failed to checkout Git repository: PERMISSION_DENIED: Invalid Git provider credentials. Go to User Settings > Git Integration to ensure that:
You have entered a username with your Git provider credentials.
You have selected the correct Git provider with your credentials.
Your personal access token or app password has the correct repo access.
Your personal access token has not expired.
If you have SSO enabled with your Git provider, be sure to authorize your token.
Cause
Your Git provider credentials are invalid or misconfigured.
Solution
- Verify that the Git provider username and password entered are correct.
- Ensure that the correct Git provider is selected in the User Settings > Git Integration section.
- Check that the personal access token or app password has the necessary repository access permissions.
- Confirm that the personal access token has not expired. If it has, generate a new token and update the credentials.
- If SSO is enabled with the Git provider, make sure to authorize the token appropriately.
For further reading and detailed instructions, refer to the Configure Git credentials & connect a remote repo to Databricks (AWS | Azure | GCP) documentation.
Preventative measures
- Regularly update and review Git provider credentials to ensure they are current and have the correct permissions.
- Monitor job runs and logs to quickly identify and address any credential-related issues.
- Document and follow best practices for managing Git integrations and credentials in Databricks environments.