KNOWLEDGE BASE

Error "Cannot connect to Tableau Server. Please check the server name and port and try again" When Connecting To Published Datasource


Published: 04 Nov 2020
Last Modified Date: 10 Feb 2021

Issue

When connecting to published data source, the following error might occur
 

 "Cannot connect to Tableau Server. Please check the server name and port and try again"
or
 "HTTP Status 500 – Internal Server Error"

Environment

  • Tableau Desktop 
  • Tableau Server

Resolution

1: Verify Tableau Desktop log, the following error message is recorded.

org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.tableausoftware.api.support.ThriftController]: Constructor threw exception; nested exception is org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:[port number].

2: Open command prompt as an administrator in Tableau Server machine

3: Run the following command: netstat -ano | find "[port number]". The results should provide the PID of any process using this port. The result may look something like the following:
TCP    0.0.0.0:8016           0.0.0.0:0              LISTENING       26732

4: Open Task Manager and organize the Processes tab by the PID column. If the PID column is not shown, right-click the column headers and select PID. Locate the PID found in the netstat results and determine what process is using this port.

5: Once the process has been identified, that process needs to either be killed or moved to a different port. 
 

Cause

Vizportal maintenance port is used by other process.
Did this article resolve the issue?