Why the published data source fails
The Tableau Online guide sets up the connection to ClickHouse Cloud in Tableau Desktop on your computer and then publishes the data source with an embedded password. From then on, Tableau Cloud runs the queries. The IP access list of a ClickHouse Cloud service filters connections by their source address. The address of your computer is on the list, so Tableau Desktop connects. The addresses of Tableau Cloud are not, so the test of the published data source fails. A service with the access list set to allow connections from anywhere is not affected.Add the Tableau Cloud IP addresses
- Find the pod that hosts your Tableau Cloud site. The pod name, such as
prod-useast-a, is part of the URL that the browser shows after you sign in to Tableau Cloud. - Open the Tableau help page Authorize Access to Data Published to Tableau Cloud and note the IP address ranges listed for that pod.
- In the ClickHouse Cloud console, select the service and open Settings. In the Security section, find the IP access list, and add every address or range with a description such as
Tableau Cloud. The list accepts individual IPv4 addresses and CIDR notation. Click Save to apply the change. - In Tableau Cloud, test the connection of the published data source again.
Things to know
- In a warehouse, every service has its own IP access list. Change the list of the service whose host name the data source uses.
- Tableau adds IP address ranges from time to time and announces them on the same help page before they are enabled. If the connection fails again later, compare the ranges on the Tableau page with your list.
- Tableau Cloud connects through the MySQL interface. For other causes of a failed connection, such as a user name without the
mysql4prefix, see Troubleshooting “Lost connection to MySQL server” with the ClickHouse Cloud MySQL interface.