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

Tableau Login failing with 401001: Signin Error; Error signing in to Tableau Server #1225

Closed
Dalganjan opened this issue Apr 20, 2023 · 5 comments
Labels
help wanted A user needs help, may be a mistake, a bug or a feature request

Comments

@Dalganjan
Copy link

Dalganjan commented Apr 20, 2023

Describe the bug
I'm just trying a quick POC on the side, but I get the same error. Tried both with user login and PAT (I'm a Server Admin on the Tableau Server). We use SAML SSO.

Versions
Details of your environment, including:

  • Python version : 3.7
  • TSC Version: 0.10

To Reproduce
Using sample code, plus turned off check for SSL cert error:

import tableauserverclient as TSC

#site is blank, as connecting to main (and only) site on Tableau Server
tableau_auth = TSC.TableauAuth(username=tableau_username, password=tableau_password, site_id='')
server = TSC.Server('https://SERVER_URL')

server.add_http_options({'verify': False})
server.auth.sign_in(tableau_auth)

Results

401001: Signin Error
		Error signing in to Tableau Server
@Dalganjan Dalganjan changed the title SignIn Error Tableau Login failing with 401001: Signin Error; Error signing in to Tableau Server Apr 20, 2023
@jacalata
Copy link
Contributor

Hmm, tsc 0.10 is pretty old - it's probably not relevant here, but if you can try with a new version that'd rule it out.

Another couple of debugging steps to try clientside

  • put in "Default" for the site name instead of an empty string
  • change your password to exclude special characters if possible
  • check case of your username

Or, if you have access to the server logs, then the failure should be in the file vizportal_node1.log with more detail.

@Dalganjan
Copy link
Author

@jacalata I tried updating the version to 0.21 as well as adding site_id as "Default".
Still getting the same error.

@felixblochwitz
Copy link

Seems like MFA is now required for site administrators (don't know when this changed). This led to the same issue for me.
Using another non-administrator account which doesn't require MFA made sign in work form me again.

Btw using tableauserverclient 0.13 and also python 3.7.

@jacalata
Copy link
Contributor

jacalata commented May 1, 2023

Hmm, @Dalganjan try moving the line verify=False before the line server = TSC.Server('https://SERVER_URL')?

@felixblochwitz - MFA enforcement was enabled for a lot of users in March. You need to generate a PAT for your account and use that in tsc instead of your username + password.

@jacalata
Copy link
Contributor

Any progress on this? If still having trouble, I suggest looking at the vizportal logs on your server.

@jacalata jacalata added the help wanted A user needs help, may be a mistake, a bug or a feature request label May 24, 2023
@bcantoni bcantoni closed this as completed Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted A user needs help, may be a mistake, a bug or a feature request
Projects
None yet
Development

No branches or pull requests

4 participants