vCenter HTTP request for datastore access returns '404 Not Found'
search cancel

vCenter HTTP request for datastore access returns '404 Not Found'

book

Article ID: 307357

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • Datastore(s) and contents are accessible from vCenter and the command-line.
  • Datastore(s) aren't accessible from https://server/folder[[/ path]?dcPath= path[&dsName= name]] when the server is vCenter
  • Datastore(s) may be accessible when connecting to https://FQDN-or-IP-of-ESXi/folder
  • Third party solutions, ex. backups, that connect to vCenter and require datastore access are failing to establish that connection.

Environment

VMware vCenter Server 7.0.x

Cause

A missing entry in the reverse HTTP proxy configuration file of the vCenter server.

Resolution

  1. Open a SSH session to VCSA.
  2. Navigate to /etc/vmware-rhttpproxy/endpoints.conf.d
  3. Create a backup of vpxd.conf.
  4. Add the following lines to vpxd.conf if it was missing them:
    • /    namedpipe    /var/run/vmware/vpxd-webserver-pipe    redirect    allow
      /Query    found    8080    allow    reject
      /pcnotification    local    9232    reject    allow
      /ui    local    8080    redirect    allow
      /vsanHealth    namedpipe    /var/tmp/vsan-sdk-pipe    redirect    allow
      /vsphere-client    permanent    9443    reject    allow
      /vws    found    8080    allow    allow
  5. Restart the the vmware-rhttpproxy service after saving the changes:
    • service-control --stop vmware-rhttpproxy
    • service-control --start vmware-rhttpproxy
  6. Go to https://FQDN-or-IP-of-vCenter/folder, and you will be able to access it: