"[400] An error occurred while sending an authentication request" while logging in to vSphere Client
search cancel

"[400] An error occurred while sending an authentication request" while logging in to vSphere Client

book

Article ID: 344961

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • Logging to vCenter Server via vSphere Client results in the following error:
[400] An error occurred while sending an authentication request to the vCenter Single Sign-On server - An error occured when processing metadata during vCenter single sign on setup - null
400 error.png
  • /var/log/vmware/vsphere-ui/logs/vsphere_client_virgo.log
[2021-06-20T12:49:37.169-05:00] [ERROR] async-task-executor-pool-102 com.vmware.vise.plugin.proxyconfig.PluginServiceConfigurer Error waiting for initial proxy configuration to complete java.util.concurrent.ExecutionExceptio
n: java.lang.RuntimeException: Failed to register plugin service in Lookup Service
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1928)
at com.vmware.vise.plugin.proxyconfig.PluginServiceConfigurer.isPluginServiceReady(PluginServiceConfigurer.java:199)
at com.vmware.vise.plugin.proxyconfig.ConfFileBasedRemotePluginReverseProxyConfigurer.addProxyRules(ConfFileBasedRemotePluginReverseProxyConfigurer.java:93)
at com.vmware.vise.plugin.proxyconfig.RemotePluginReverseProxyServiceImpl.addProxyRules(RemotePluginReverseProxyServiceImpl.java:58)
at com.vmware.vise.vim.extension.VcExtensionManager.processRemotePlugin(VcExtensionManager.java:1194)
at com.vmware.vise.vim.extension.VcExtensionManager.onPluginPackageDeploymentSucceeded(VcExtensionManager.java:1405)
at com.vmware.vise.vim.extension.VcExtensionManager.lambda$deploymentWorkflow$2(VcExtensionManager.java:1358)
at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)
at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1646)
at com.vmware.vise.util.concurrent.QueuingCachedThreadPool$2.call(QueuingCachedThreadPool.java:873)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.vmware.vise.util.concurrent.QueuingCachedThreadPool$QueueProcessor.run(QueuingCachedThreadPool.java:1271)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.vmware.vise.util.concurrent.WorkerThreadFactory$1.run(WorkerThreadFactory.java:64)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Failed to register plugin service in Lookup Service
at com.vmware.vise.plugin.proxyconfig.PluginServiceLsRegistrationTask.registerPluginService(PluginServiceLsRegistrationTask.java:104)
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
... 4 common frames omitted
Caused by: java.lang.IllegalStateException: Expected a single vSphere UI registration info for node with ID: 2013f520-0dac-11e7-9e63-00505693d11e but got 0.
at com.vmware.vise.plugin.proxyconfig.PluginServiceLsRegistrationTask.getVsphereUiEndpoint(PluginServiceLsRegistrationTask.java:167)
at com.vmware.vise.plugin.proxyconfig.PluginServiceLsRegistrationTask.registerPluginService(PluginServiceLsRegistrationTask.java:75)


Environment

VMware vCenter Server 7.0.x
VMware vCenter Server Appliance 6.5.x
VMware vCenter Server Appliance 6.7.x

Cause

This issue is seen if the service registration for vSphere Client (vsphere-ui) is missing

Resolution

** Ensure to take a functional backup of the nodes **

 
Overview of Backup and Restore options in vCenter Server 6.x (2149237)

In order to resolve the issue, please execute the below steps:
  • Download and copy lsdoctor to the filesystem of any node
Refer to the article "Using the 'lsdoctor' Tool" for downloading and extracting
  • Log in to the VCSA using ssh
  • Execute the below command in the same directory as to the location of the copied file
python lsdoctor.py -r
  • ​​Select action 3
Option 3 will take a backup of all lookup service registrations for this node, load the template for your current build, and provide a service select menu.  Select a service type you wish to replace, and the tool will unregister all services for this node with the selected service type and register a fresh one based on the detected template.
 
  • Select a file matching the build number of VCSA
image.png
  • Select the vsphereui service from the list
image.png
  • Once selected, reply with y (yes) to continue
  • Post the completion of the replacement restart all the services on the VCSA using the below command
service-control --stop --all && service-control --start --all