KNOWLEDGE BASE

"Unable to login" and "BadCredentials" Errors When Adding Worker


Published: 08 Mar 2018
Last Modified Date: 10 Dec 2018

Issue

When running initialize-tsm on a new worker, you receive Unable to login and BadCredentials errors like the below: 

Operation failed. Installer exception raised during installation. com.tableausoftware.installer.InstallerException: Unable to login at com.tableausoftware.installer.operations.AbstractControllerOperation.authenticateClient(AbstractControllerOperation.java:108) at com.tableausoftware.installer.operations.AbstractControllerOperation.getClient(AbstractControllerOperation.java:66) at com.tableausoftware.installer.operations.DownloadBootstrapEntityOperation.requestBootstrapEntity(DownloadBootstrapEntityOperation.java:60) at com.tableausoftware.installer.operations.DownloadBootstrapEntityOperation.perform(DownloadBootstrapEntityOperation.java:49) at com.tableausoftware.installer.AbstractInstaller.run(AbstractInstaller.java:205) at com.tableausoftware.installer.AbstractInstaller.execute(AbstractInstaller.java:111) at com.tableausoftware.installer.WorkerInstallerMain.main(WorkerInstallerMain.java:86) Caused by: com.tableausoftware.tabadmin.ConnectionException at com.tableausoftware.tabadmin.ServerApi.sendRequestInner(ServerApi.java:303) at com.tableausoftware.tabadmin.ServerApi.login(ServerApi.java:361) at com.tableausoftware.installer.operations.AbstractControllerOperation.authenticateClient(AbstractControllerOperation.java:105) ... 6 more ERROR: installer returned status BadCredentials

Environment

  • Tableau Server 10.5.1
  • CentOS Linux release 7.4

Resolution

Update /etc/hosts to correctly identify the IP domain and hostname of all nodes in Tableau Server.

OR

Ensure DNS settings are set correctly so that each node can discover the other nodes in Tableau Server.

Cause

The worker installation fails when trying to login to the tsm instance on the primary with a connection error in the app-worker-install.log:
 I/O error on POST request for "<url>:<port>/api/0.5/login": <FQDN>: Name or service not known; nested exception is java.net.UnknownHostException: <FQDN>: Name or service not known
Where:
  • <url> is the URL being used to connect to the primary node
  • <port> is the port for the tsm service
  • <FQDN> is the fully qualified domain name for the primary node
Did this article resolve the issue?