0 Replies Latest reply on Nov 12, 2018 7:48 AM by Velislav Nikolov

    ...Tableau\Tabcmd\tabcmd.log cannot be found during login

    Velislav Nikolov

      Hi,

       

      our client is trying to login to the Tableau server using the following command (executed from C# code):

       

      SET USER=admin

      SET PASS=pass

       

      tabcmd login -s "https://tableauserver.com" -u %USER% -p %PASS% --no-certcheck

       

      and receive the following:

       

      LogInToServer Output: ===== Creating new session ===== Server: http://tebleau004 ===== Username: dynamo_user ===== Connecting to the server...

        Error: log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException:

        C:\windows\system32\config\systemprofile\AppData\Local\Tableau\Tabcmd\tabcmd.log (The system cannot find the path specified) at

        java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at

        java.io.FileOutputStream.<init> (FileOutputStream.java:213) at

        java.io.FileOutputStream.<init> (FileOutputStream.java:133) at

        org.apache.log4j.FileAppender.setFile(FileAppender.java:294) at

        org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207) at

        org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165) at

        org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307) at

        org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:295) at

        org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176) at

        org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191) at

        org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523) at

        org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492) at

        org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1006) at

        org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:872) at

        org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778) at

        org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:906) at

        com.tableausoftware.tabcmd.Tabcmd.<init> (Tabcmd.java:186) at

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

        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at

        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at

        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at

        java.lang.reflect.Method.invoke(Method.java:498) at

        org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) at

        org.springframework.boot.loader.Launcher.launch(Launcher.java:87) at

        org.springframework.boot.loader.Launcher.launch(Launcher.java:50) at

        org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:58)

        *** Uncaught exception RuntimeException: java.net.ConnectException: Connection refused: connect *** See the logs for the stacktrace.

        Exit code: 1 failed, log: http://tebleau004 DownloadViewsFile failed,

        log: Error: log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: C:\windows\system32\config\systemprofile\AppData\Local\Tableau\Tabcmd\tabcmd.log (The system cannot find the path specified) at

        java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at

        java.io.FileOutputStream.<init> (FileOutputStream.java:213)

        at java.io.FileOutputStream.<init> (FileOutputStream.java:133) at

        org.apache.log4j.FileAppender.setFile(FileAppender.java:294) at

        org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207) at

        org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165) at

        org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307) at

        org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:295) at

        org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176) at

        org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191) at

        org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523) at

        org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492) at

        org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1006) at

        org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:872) at

        org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778) at

        org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:906) at

        com.tableausoftware.tabcmd.Tabcmd.<init>(Tabcmd.java:186) at

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

        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at

        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at

        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at

        java.lang.reflect.Method.invoke(Method.java:498) at

        org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) at

        org.springframework.boot.loader.Launcher.launch(Launcher.java:87) at

        org.springframework.boot.loader.Launcher.launch(Launcher.java:50) at

        org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:58)

        *** Cannot sign in because of missing arguments: --server Exit code: 1

       

      Any ideas?