"File not found 'status code: 404, reason phrase: Not Found"" error while dowloading vLCM plugin in vCenter
search cancel

"File not found 'status code: 404, reason phrase: Not Found"" error while dowloading vLCM plugin in vCenter

book

Article ID: 383880

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • vLCM plugin fails to download with the error file not found 'status code: 404, reason phrase: Not Found'
  • In the web client logs '/var/log/vmware/vsphere-ui/logs/vsphere_client_virgo.log' you will find the logs similar to 

<Date & Time>  [INFO ] sdk-plugin-deployer-113856    com.vmware.vise.plugin.registry.VcExtensionStateRegistry          Updating entry: Plugin: 'com.vmware.drui.plugin:8.8.0.22795455', State: 'FAILED_DOWNLOAD'
<Date & Time>  [ERROR] sdk-plugin-deployer-113855    com.vmware.vise.plugin.status.RemotePluginStatusServiceImpl       DOWNLOAD_FAILED: Error downloading plugin package com.vmware.vlcm.client:8.0.3.24305161 from https://IP/FQDN of VC:9087/vci/downloads/vlcm-ui/plugin.zip. Reason: URL is unreachable. Make sure that the URL is reachable.
<Date & Time>  [ERROR] sdk-plugin-deployer-113855    com.vmware.vise.plugin.extension.VcExtensionManager               Downloading plugin package: 'com.vmware.vlcm.client:8.0.3.24305161' registered in vCenter: 'IP/FQDN of VC (0999d427-aca4-4e34-bdba-bd63e59244df)' has failed. java.util.concurrent.CompletionException: com.vmware.vise.plugin.download.PluginDownloadException:
 org.apache.http.client.HttpResponseException: status code: 404, reason phrase: Not Found
        at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
        at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
        at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1643)
        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)

Caused by: org.apache.http.client.HttpResponseException: status code: 404, reason phrase: Not Found
        at org.apache.http.impl.client.AbstractResponseHandler.handleResponse(AbstractResponseHandler.java:70)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:223)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165)
        at com.vmware.vise.plugin.download.PluginDownloadServiceImpl.downloadPackageInfo(PluginDownloadServiceImpl.java:342)
        at com.vmware.vise.plugin.download.PluginDownloadServiceImpl.download(PluginDownloadServiceImpl.java:172)
        ... 11 common frames omitted

  • When you go to the URL 'https://IP/FQDN of VC:9087/vci/downloads/vlcm-ui/plugin.zip" you can download the plugin zip from the browser. 
  • Reviewing the file /etc/vmware/vsphere-ui/webclient.properties, you find a proxy entry in the properties. 

Environment

VMware vCenter Server 7.0.x

VMware vCenter Server 8.0.x

Cause

 

 

 

Resolution

1. Take a snapshot of the vCenter 

2. SSH to the vCenter 

3. Back up the file /etc/vmware/vsphere-ui/webclient.properties by running the following command

  cp /etc/vmware/vsphere-ui/webclient.properties /etc/vmware/vsphere-ui/webclient.properties.old

4. Edit the webclient.properties file and hash the value of the proxy server 

  vi /etc/vmware/vsphere-ui/webclient.properties

   #proxyHost=xxxxxx
   #proxyPort=xxx

 

5. Restart the vsphere-client service of the vCenter

service-control --stop vsphere-ui && service-control --start vsphere-ui

The plugins should start the download once the above steps are done. 

Additional Information

If the impacted vCenter is in ELM, please take powered-off snapshots of all the vCenters in ELM.