Skip to main content
NetApp Knowledge Base

Cannot establish a connection SnapCenter Plug-in for VMware - UNAUTHORIZED 401 Invalid Credentials

Views:
81
Visibility:
Public
Votes:
0
Category:
snapcenter
Specialty:
snapx
Last Updated:

Applies to

  • SnapCenter (SC)
  • SnapCenter Plug-in for VMware vSphere (SCV)

Issue

  • Cannot establish a connection to SCV
  • Credentials used to connect via GUI work, but error message below is observed

2024-11-06T15:58:17.373653+01:00vmwmgt-spcts-p01 login[3276660]: pam_unix(login:auth): check pass; user unknown

2024-11-06T15:58:17.373977+01:00vmwmgt-spcts-p01 login[3276660]: pam_unix(login:auth): authentication failure; logname=LOGIN uid=0euid=0 tty=/dev/tty1 ruser= rhost=

2024-11-06T15:58:21.246411+01:00vmwmgt-spcts-p01 login[3276660]: FAILED LOGIN (1)on '/dev/tty1' FOR 'UNKNOWN', Authentication failure

AUTH.log

... $ curl -k -X POST https://<IP address>:8144/api/4.1/auth/login -H 'Content-Type: application/json' -d '{"username":"SVC-pluginvmware","password":"xxxxxxxxxxxxxxx"}'{"statusMessage":"UNAUTHORIZED","statusCode":401,"responseMessage":["Invalid Credentials. Please try again."]}​​​​

2024-11-06T15:59:19.126036+01:00vmwmgt-spcts-p01 sudo:    maint : TTY=tty1 ; PWD=/home/maint ;USER=root ; COMMAND=/home/maint/scripts/get-token.pl '{"statusMessage":"UNAUTHORIZED","statusCode":401,"responseMessage":["InvalidCredentials. Please try again."]}'

  • This is what it should look like:

2024-11-12T11:12:26.486823+01:00vmwmgt-spct-s01 sudo:    maint : TTY=tty1 ; PWD=/home/maint ;USER=root ; COMMAND=/home/maint/scripts/get-token.pl'{"statusMessage":"OK","statusCode":200,"responseMessage":["Successfully logged into vCenter Server."],"response":{"token":"<token id number>","username":"administrator@vsphere.local","ip":"<ip address>"}}'

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.