PVWA inaccessible - Source array was not long enough

PVWA inaccessible - Source array was not long enough

117
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 15:51 PM


Symptom


PVWA won't start. The following error appears in the PVWA logs:-
 
EPVDL001E Error loading configuration files Reason: Source array was not long enough. Check srcIndex and length, and the array's lower bounds.

EPVDL024E Error loading configuration:Source array was not long enough. Check srcIndex and length, and the array's lower bounds.. Total configuration loading time 0.7812649 seconds. Error details: System.ArgumentException: Source array was not long enough. Check srcIndex and length, and the array's lower bounds.
 at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
 at CyberArk.API.Generic.VaultFileStream.Read(Byte[] array, Int32 offset, Int32 count)
 at System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count)
 at System.Xml.XmlTextReaderImpl.InitStreamInput

 
This indicates that there was an error while reading the PVWA configuration XML files, namely PVConfiguration.xml or Policies.xml


Environment


11.6;11.7;12.0;12.1;12.2;12.6;12.7;13.0 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access
PVWA


Cause


This error is caused by a corruption or a bad value in one of the following files:-
  • PVConfiguration.xml
  • Policies.xml
To determine which file, open PrivateArk client and inspect the version history of these files.  if one file has multiple recent versions, as in multiple copies within same day, with increasing file size, then this is likely to be the corrupted file.


Resolution


Restore the config files to a previous version from a date when PVWA was know to work:
  • Stop the PVWA servers with command "iisreset /stop", or click Stop server in IIS Manager. This is to prevent any possibility of a deadlock while setting the new version. 
  • In PrivateArk client, open PVWAConfig Safe
  • Locate the Policies.xml file -> Right Click -> Versions -> revert to old version file
  • Locate the PVConfiguration.xml file -> Right Click -> Versions -> revert to old version file
  • Start PVWA servers with "iisreset /start" or click Start in IIS Manager.
If this does not work, then right click the file and click Retrieve and Save as. Save the file to the Desktop or other location such as Documents.  Now in the Desktop, check that the file is valid and not corrupt.  Open the file and examine that there are no repeating duplicate entries or unexpected encoded characters. In PrivateArk client, copy this file into the same safe PVWAConfig, and overwrite previous file.  This will set the new file as the current version.  Restart PVWA.
If a good version cannot be found from the PrivateArk client then the files will need to be retrieved from a suitable backup.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000l5TCAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail