6 Replies Latest reply on Nov 20, 2017 1:12 AM by Sivasankar Muthusamy

    Tabcmd connection refused

    Jeeva Ganesan

      Hi All,

       

      I'm getting the error below when using the tabcmd login command. I can connect to the site in browser, but tabcmd fails when trying to do the same thing in powershell. But this same command was working before few days back, suddenly I am getting this error.

       

      Does anyone have any suggestions on server settings or parameters to try and resolve this issue?

       

      Thank you!

      tabcmd.exe :   *** Uncaught exception RuntimeException: java.net.ConnectException: Connection refused: connect

      At C:\Jee_work\script4.ps1:56 char:7

      + tabcmd <<<<  login --server https://***** --username ****** --password ******* --site ***

          + CategoryInfo          : NotSpecified: (  *** Uncaught ...fused: connect :String) [], RemoteException

          + FullyQualifiedErrorId : NativeCommandError

       

        *** See the logs for the stacktrace.

       

      And here is the log..

       

      [21424] ERROR 2016-01-04 21:19:22,985: Uncaught exception RuntimeException: java.net.ConnectException: Connection refused: connect

      [21424] ERROR 2016-01-04 21:19:22,985: See the logs for the stacktrace.

      [21424] DEBUG 2016-01-04 21:19:22,986: Top level exception caught:

      java.lang.RuntimeException: java.net.ConnectException: Connection refused: connect

        at com.tableausoftware.tabcmd.http.HttpRequest.connect(HttpRequest.java:344)

        at com.tableausoftware.tabcmd.session.Session.execute(Session.java:382)

        at com.tableausoftware.tabcmd.session.Session.login(Session.java:533)

        at com.tableausoftware.tabcmd.commands.Login.execute(Login.java:57)

        at com.tableausoftware.tabcmd.Tabcmd.run(Tabcmd.java:125)

        at com.tableausoftware.tabcmd.Tabcmd.main(Tabcmd.java:54)

      Caused by: java.net.ConnectException: Connection refused: connect

        at java.net.DualStackPlainSocketImpl.connect0(Native Method)

        at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)

        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)

        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)

        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)

        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)

        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

        at java.net.Socket.connect(Socket.java:579)

        at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)

        at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)

        at sun.net.NetworkClient.doConnect(NetworkClient.java:180)

        at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)

        at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)

        at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)

        at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)

        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)

        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:975)

        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)

        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)

        at com.tableausoftware.tabcmd.http.HttpRequest.connect(HttpRequest.java:340)

       

      Regards,

      Jeeva

        • 1. Re: Tabcmd connection refused

          Hey Jeeva,

           

          I've moved this post to our Server Administration section of the Community where you are more likely to receive a helpful response.

           

          Has anything changed in your environment recently? SSL enabled, upgrades, etc? Are you using the latest version of tabcmd?

           

          Thanks,

           

          -Diego

          • 2. Re: Tabcmd connection refused
            Sivasankar Muthusamy

            Jeeva Ganesan

             

            Have you found a working solution to your issue ? I am experiencing the same issue with logon to the tableau online using the tabcmd. Logon through the browser session works.

             

            Tableau Server Command Line Utility -- 10400.17.0915.2112

            • 3. Re: Tabcmd connection refused
              Ghouse Shaik

              Hi Jeeva,

               

              1. Run the Command prompt as an Administrator.

              2. Navigate to the Tableau Tabcmd installation Path (Ex. C:\Program Files\Tableau\Tableau Server\10.2\extras\Command Line Utility)

              3. tabcmd login --no-certcheck -s https://XXXX -t SiteId -u XXX -p XXX

               

              Please go through the link for your referral tabcmd Commands

               

              Thanks & Regards,

              Ghouse.

              • 4. Re: Tabcmd connection refused
                Sivasankar Muthusamy

                @ Ghouse Shaik,

                 

                Thanks for responding, bypassing the SSL validation does not resolved the issue. It still returns the uncaught exception error.

                • 5. Re: Tabcmd connection refused
                  Ghouse Shaik

                  Hi Jeeva,

                   

                  1. Do u execute tabcmd on the same machine where Tableau server is installed?

                  2. Verify that your tabcmd release on your local instance matches to the Tableau Server/Online instance

                  3. Can you login via a web browser to Tableau Server/Online using the id and password combination?  If not, fix the authentication issue here first

                  4. Are you logging into the default site or a non-default site?  If it's non-default, verify that the user has access to the non-default.  And the tabcmd login should have -t sitename

                   

                  Thanks & Regards,

                  Ghouse.

                  • 6. Re: Tabcmd connection refused
                    Sivasankar Muthusamy

                    1. Do u execute tabcmd on the same machine where Tableau server is installed? - I am trying to connect Tableau online from my Desktop (My desktop has the required tabcmd utility compatible with Tableau online version)

                    2. Verify that your tabcmd release on your local instance matches to the Tableau Server/Online instance - Its inline with Tableau online

                    3. Can you login via a web browser to Tableau Server/Online using the id and password combination?  If not, fix the authentication issue here first - Logon through the browser works.

                    4. Are you logging into the default site or a non-default site?  If it's non-default, verify that the user has access to the non-default.  And the tabcmd login should have -t sitename - The user is the Site Admin of the tableau online site.