Troubleshooting Git in Snowflake
Use the tips described in this topic to resolve issues when using a Git repository in Snowflake.
Error message: “Failed to access the Git repository. Operation ‘clone’ is not authorized”
You might see this message for one of multiple reasons, but it’s typically due to a misconfiguration in Snowflake integration with the
remote Git repository. To eliminate common misconfiguration issues, confirm the following:
You’re using correct credentials for authenticating with the remote Git repository, such as a correct username-and-password combination or
correct personal access token.
For more on authenticating from Snowflake, see Setting up Snowflake to use Git.
You’ve correctly configured the Git repository URL, including the allowed prefixes in the API configuration.
Read more about specifying an allowed prefix and origin URL in Setting up Snowflake to use Git.
You aren’t experiencing a connectivity issue, such as when the repository is in a private network.
Access to a remote Git repository from Snowflake is allowed only over a public network. See Git in Snowflake limitations
for more.
If you continue to have this issue after verifying that your configuration is correct, try the following:
If you’re using a fine-grained token for authorization (not the Classic token), confirm that you’ve set the proper permissions on the
token. For read-only access, setting the “Content” to “read-only” should be enough.
For information about managing a personal access token in GitHub, see
Managing your personal access tokens
in the GitHub documentation.
Outside of Snowflake, clone the repository with the command-line Git client using the same URL and TOKEN values that are resulting in the
error in Snowflake.
This should generate more verbose output, including messages indicating what the issue might be. For example, cloning might fail from the
command line because SSO authorization is required for the operation, and this authorization was not available for the fine-grained token.
Switching to a Classic token might resolve this issue.
Error message: “Private endpoint corresponding to service name xxx does not exist.”
You might see this message if you didn’t create a Private Endpoint for the domain (service) that you’re trying to reach.
Ensure that you’ve provisioned a Private Endpoint in Snowflake and approved it on the cloud provider side. For more information, see
Configure the private link connection.
Error message: “Failed to connect to the Git Repository via Private Link. Please check your network configuration and ensure Private Link traffic is correctly routed.”
You might see this message when HTTPS traffic was not routed properly to the Git server.
Ensure that you’re routing traffic correctly in your cloud service provider. For more information, see
Configuring Git Integration with Snowflake over Private Link.