3 Replies Latest reply on Dec 22, 2016 12:40 PM by Tamas Foldi

    Publisher API; cURL Error: Failed Initialization

    Nik Bosnyak

      I installed the Linux (64-bit) SDK by copying the contents of the SDK to the locations listed below. When I run the connect() java function, I receive "CURL Error: Failed Initialization".  No matter what URL I put in the connection string, I get the same error, so I don't believe this is a server authentication issue.

       

      To do some debugging, I've run the exact same java code on my Mac with the Mac SDK installed and it works with no issues. If I try changing the URL to a URL that is not a Tableau server, it shows a Server Response Error, so this means the Failed Initialization error is not related to the connection information. It seems more like an SDK configuration error.

       

      Does anyone know what could be causing this issue or how to resolve it?

       

      --Nik

       

      -------------------------------------------

       

      Java Error

      com.tableausoftware.TableauException: Failed initialization

        at com.tableausoftware.server.ServerConnection.connect(Unknown Source)

       

       

      SDK Installation

      SDK ContentsLinux Install Path
      Notes
      /tableausdk-linux64-10100.0.0.0/lib64/tableausdkusr/lib64The .so files
      /tableausdk-linux64-10100.0.0.0/lib64/tableausdk/javausr/lib64 (java.library.path)The .jar files
      /tableausdk-linux64-10100.0.0.0/binusr/binThe tdeserver64 executable

       

       

      Linux Distribution

      LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch

      Distributor ID: OracleServer

      Description: Oracle Linux Server release 6.7

      Release: 6.7

      Codename: n/a

       

       

      TableauSDKServer.log

      2016-12-06 13:55:13.435 (140619810322176): pid=15713----------------------------------

      2016-12-06 13:55:13.435 (140619810322176): Curl global initialization

      2016-12-06 13:55:13.438 (140619810322176): Connecting: ##########HIDDEN############

      2016-12-06 13:55:13.438 (140619810322176): Username  : ##########HIDDEN############

      2016-12-06 13:55:13.438 (140619810322176): Site ID   :

      2016-12-06 13:55:13.438 (140619810322176): Curl Error:

      2016-12-06 13:55:13.438 (140619810322176): Failed initialization

        • 1. Re: Publisher API; cURL Error: Failed Initialization

          Hey Nik,

           

          Have you verified that you have admin privileges to those locations? We sometimes see these sorts of issues when the Run-As user doesn't have proper permission. Ben Lower any other ideas?

           

          -Diego

          • 2. Re: Publisher API; cURL Error: Failed Initialization
            Nik Bosnyak

            The permissions seem to be set correctly, however I noticed that some of the .so files are pointed at old versions rather than the sdk versions. I've asked my IT server admin to fix the issue, but things are moving slowly through the holidays. I'll update you when the change is made.

             

            Linux Server

            -rwxr-xr-x   1 root root   395130 Dec  5 13:59 libcurl.so

            lrwxrwxrwx   1 root root       16 Mar 11  2016 libcurl.so.4 -> libcurl.so.4.1.1

            -rwxr-xr-x   1 root root   350872 Jul 22  2015 libcurl.so.4.1.1

            -rwxr-xr-x   1 root root   395130 Dec  5 13:59 libcurl.so.4.4.0

            ...

            lrwxrwxrwx   1 root root       29 Oct  9  2015 libexpat.so -> ../../lib64/libexpat.so.1.5.2

            lrwxrwxrwx   1 root root       17 Dec 22  2015 libexpat.so.0 -> libexpat.so.0.5.0

            -rwxr-xr-x   1 root root   163968 Nov 10  2010 libexpat.so.0.5.0

            -rwxr-xr-x   1 root root   184486 Dec  5 13:59 libexpat.so.1

            -rwxr-xr-x   1 root root   181974 Dec  5 13:59 libexpat.so.1.6.0

            ...

            lrwxrwxrwx   1 root root       18 Oct  9  2015 libicudata.so -> libicudata.so.42.1

            lrwxrwxrwx   1 root root       18 Oct  9  2015 libicudata.so.42 -> libicudata.so.42.1

            -rwxr-xr-x   1 root root 16035184 Jul 22  2015 libicudata.so.42.1

            -rwxr-xr-x   1 root root 14925188 Dec  5 13:59 libicudata.so.44

            -rwxr-xr-x   1 root root 14925188 Dec  5 13:59 libicudata.so.44.0

             

            Tableau SDK

            lrwxr-xr-x@ 1 hidden  staff        16 Nov  4 02:01 libcurl.so -> libcurl.so.4.4.0

            lrwxr-xr-x@ 1 hidden  staff        16 Nov  4 02:01 libcurl.so.4 -> libcurl.so.4.4.0

            -rwxr-xr-x@ 1 hidden  staff    395130 Nov  4 02:01 libcurl.so.4.4.0

            ...

            lrwxr-xr-x@ 1 hidden  staff        17 Nov  4 02:01 libexpat.so -> libexpat.so.1.6.0

            lrwxr-xr-x@ 1 hidden  staff        17 Nov  4 02:01 libexpat.so.1 -> libexpat.so.1.6.0

            -rwxr-xr-x@ 1 hidden  staff    181974 Nov  4 02:01 libexpat.so.1.6.0

            ...

            lrwxr-xr-x@ 1 hidden  staff        18 Nov  4 02:01 libicudata.so.44 -> libicudata.so.44.0

            -rwxr-xr-x@ 1 hidden  staff  14925188 Nov  4 02:01 libicudata.so.44.0

            • 3. Re: Publisher API; cURL Error: Failed Initialization
              Tamas Foldi

              Is your Tableau SDK lib folder in the ld path? I hope you did not copy the contents into /usr/lib64. After you copied the so files into a directory how did you setup the ldconfig / LD_LIBRARY_PATH? Have you ran an ldconfig after copying the stuff there?