Issue
When running any TSM command, the following error occurs:Could not connect to TSM Controller at 'https://servername:8850'
Alternately, the following error occurs:
Unable to verify the server's HTTPS certificate.
However,
tsm status -v --trust-admin-controller-cert
will be successful.
Some basic verification steps can be done to confirm it is due to this TSM certificate expiring, and not other possible causes:
Step 1:
# sudo su -l tableau # systemctl status tabadmincontroller_0These commands will show the service is active and running, yet you still cannot connect to TSM.
Step 2:
Telnet to port 8850 to verify it is working:
# telnet localhost 8850 Trying ::1... Connected to localhost. Escape character is '^]'.
If the certificate is invalid, you will see this error message in the ~/.tableau/tsm/tsm.log:
2019-03-15 15:09:57 main : ERROR com.tableausoftware.tabadmin.ServerApi - Exception sending request org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://localhost.localdomain:8850/api/0.5/login": sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed; nested exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failedThe TSM log may show 'timestamp check failed' as the suffix of the above error message instead of 'validity check failed'.