> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Failed to connect to Snowflake

> Resolve the Snowflake error returned when your pipeline can't connect because of a communication error.

## Error message

```text wrap theme={null}
Failed to connect to Snowflake: JDBC driver encountered communication error
```

This error can appear when a component in your pipeline connects to Snowflake.

### Explanation

Your pipeline couldn't connect to Snowflake because of a communication error.

### Potential causes

* A firewall is blocking the hostnames and port numbers that Snowflake needs.
* There are temporary problems with Snowflake services.
* A network configuration issue has occurred.

***

## Resolve the error

1. Check the Snowflake service status page. If it reports any issues, wait until they're resolved.
2. If there are no Snowflake service issues, find the hostnames and port numbers required for your Snowflake connection. These are usually in the `SYSTEM$ALLOWLIST` configuration.
3. Add these hostnames and port numbers to your firewall's allowed list.
4. If your firewall settings are correct, check your network configuration to make sure there are no restrictions or blocks on the required ports.
5. If you use a virtual private network or a proxy, make sure it's configured correctly.
6. Test your connection to Snowflake using a diagnostic tool.
7. Re-run the pipeline.
8. If you still need help, [contact Maia Support](https://support.matillion.com/s/) and include the items listed below.

   * The full error text.
   * The root pipeline execution ID.
   * The Maia runner ID and time of failure (UTC).

### Prevent future errors

To prevent this error occurring again, [allow the Snowflake hostnames and port numbers](https://docs.maia.ai/docs/security/network-access-and-ip-allowlist-requirements.md) in your firewall's allowed list before you run pipelines that connect to Snowflake.


## Related topics

- [SQL compilation error in the warehouse](https://docs.maia.ai/docs/errors/sql-compilation-error-in-the-warehouse.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.