MacOS and Linux troubleshooting steps¶
Follow these steps to identify and confirm that you have a proxy and to gather the proxy host and port numbers that you need for further troubleshooting.
Open a new
Terminalwindow.Execute the following command to retrieve proxy configuration details specific to your network. Replace
example.comwith the actual hostname you want to test.Sample output with a proxy configuration
Sample output without a proxy configuration
Additionally, you can test common environment variables used for proxy settings with the following command:
The command returns output similar to the following:
Proxy found: Based on these environment variables settings, you can gather the proxy host and port that you will need for further testing.
No proxy found: If the output is empty, you likely have no environment variables set for a proxy configuration, which needs further testing.
The
NO_PROXYdefines the hosts that a client can use to connect directly without going through the proxy server.
If you have a proxy¶
You can identify the specific URL that is experiencing connectivity issues. While it is beneficial to test all URLs listed in the Snowflake allowlist, you might want to focus on the URL that is directly causing issues in your setup.
Alternatively, you can pass the proxy settings directly into curl (without setting the environment variables first), as shown:
Unauthenticated proxy
Authenticated proxy
In the Terminal, run the following commands. Update the command with the URL that is causing issues. Replace <URL> with the problematic URL. Additionally, replace <PROXY_URL> with your proxy information.
These commands configure your environment to use the proxy for HTTP and HTTPS requests and attempt to connect to the specified Snowflake URL. It also outputs detailed information about the connection attempt, including any successful connections or errors encountered.
Successful connection example output:
Output analysis:
“Connected to…” indicates a successful connection to the proxy (<IP ADDRESS>) and the establishment of an HTTP tunnel to Snowflake.
HTTP status codes like
HTTP/1.1 200 Connection establishedfollowed byHTTP/1.1 302 Foundsuggests a successful to the login page.
After completing these steps, continue with follow-up actions.
If you don’t have a proxy¶
In the Terminal, run the following command, making sure to update the URL in the commands to match the Snowflake URL that you are testing.
Successful connection example output:
This output demonstrates a successful connection, indicating that your system can reach and communicate with the Snowflake server.
Connection failure example:
After completing these steps, continue with follow-up actions.