Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tabcmd command hangs without login info in powershell #201

Open
kulicny opened this issue Nov 21, 2022 · 7 comments
Open

tabcmd command hangs without login info in powershell #201

kulicny opened this issue Nov 21, 2022 · 7 comments
Labels
bug Something isn't working Needs Investigation

Comments

@kulicny
Copy link

kulicny commented Nov 21, 2022

I am testing tabcmd 2.0 prior to implementing in a production environment and have run into an issue. In my current 1.0 scripts, I first connect to a session and then subsequent commands can be issued without providing credentials. While testing 2.0, I can successfully connect using login but issuing any further commands results in that command just hanging. There is nothing in the log file and using debug mode also results in no useful information. If I issue the second command and again supply the login info, it works as expected and I can export my view so I'm guessing, based on the behavior, that it is waiting for credentials to be supplied. I have tried adding the -cookie command to the login to see if that would help, but it did not. I'm wondering if this is by design and that the session is no longer maintained, and credentials must be sent for each export? Or is there something else needed in order to get subsequent commands to maintain the connection until logout is specifically requested?

@jacalata
Copy link
Contributor

That is not how it's supposed to work, that's strange. Can you share the export command you run?

@jacalata jacalata added the bug Something isn't working label Nov 21, 2022
@kulicny
Copy link
Author

kulicny commented Nov 21, 2022 via email

@jacalata
Copy link
Contributor

could you run tabcmd -v and share the version info?

@kulicny
Copy link
Author

kulicny commented Nov 29, 2022 via email

@jacalata
Copy link
Contributor

I just re-read this and noticed that you are running it within powershell, is that right? I'll have to check that out.

If you run the same command from windows cmd, do you see the same behavior?

@kulicny
Copy link
Author

kulicny commented Dec 10, 2022 via email

@jacalata jacalata changed the title export issue/question. tabcmd command hangs without login info in powershell Dec 10, 2022
@r0b3r7
Copy link

r0b3r7 commented Aug 9, 2023

Hi All - I have some issue from powershell on all 2.0.x versions. Anyone have some ideas how to solve it?

update: Same situation from bash script, tabcmd is not holding session and each command requires login parameters to run or just fail.

Deploy.sh

#!/bin/bash
tabcmd login -s https://domain.com -u admin -t testsite -p ****
tabcmd publish ./reports/workbook.twb -n MyReport -r test --overwrite --tabbed --replace --timeout 180

Result:

./Deploy.sh
Creating new session          
=====   Server: https://domain.com
=====   Username: admin
Tableau Server Site: testsite   
Connecting to the server...   
Succeeded                     
Creating new session          
=====   Server: https://domain.com
=====   Username: admin
Tableau Server Site: testsite   
Connecting to the server...   
Succeeded                     
Publishing as Overwrite       
Publishing ''.reports/workbook.twb'' to the server. This could take several minutes...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs Investigation
Projects
None yet
Development

No branches or pull requests

3 participants