PSMPPS037E PSM SSH Proxy has been terminated. (Diagnostic information: XERCES error (Reason: invalid multi-byte sequence, Code:78), 78)

PSMPPS037E PSM SSH Proxy has been terminated. (Diagnostic information: XERCES error (Reason: invalid multi-byte sequence, Code:78), 78)

201
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 13:01 PM


Symptom


PSMP could not start. The error in the PSMPConsole.log below:
PSMPPS037E PSM SSH Proxy has been terminated. (Diagnostic information: XERCES error (Reason: invalid multi-byte sequence, Code:78), 78).


Environment


11.3;11.4;11.5;11.6;11.7;12.1;12.2;12.6;12.7;13.0 Privileged Access Manager (PAM, self-hosted);Privilege Cloud PSMP PSMP

Cause


There is an invalid character in the "PVConfiguration.xml" or in the "Policies.xml" And it cause the PSMP service to fail to load the configuration files. The invalid character can be added to one of those files. For example:

If you edit a new policy or connection component via the PVWA, while using a keyboard with a different language from English, a special character can be added to one of the configuration files.
Example special characters:
â€


Resolution


Try to locate the latest changes been done to the PVConfiguration.xml" or in the "Policies.xml", and remove the special character entry. If you cannot find the special character entry, try to use the last working version of the configuration files, from a date the PSMP was working, and then compare it with the current version.
The location of the PVConfiguration.xml" and the "Policies.xml" are in Safe PVWAConfig by default. The PSMP attempts to load all of the Connection Components listed in all policies defined in the Policies.xml.
This issue can typically be pinpointed to reviewing each of the defined Connection Component IDs and settings values for each connection component defined on each policy within the file.

You can use the following method to test if the existing policies contain invalid characters:
1. From the PrivateArk client open and enter the PasswordManagerShared safe -> Policies folder
2. Select all policy.ini files -> right click -> Retrieve and Save as...
3. Save the policy.ini files to a local folder named "Policies"
4. After copies of the files have been saved, try compressing the local "Policies" folder.
5. If there are invalid characters in the policy names, the compression process will through errors stating which file contains the problematic characters. Take note of these files and remove them from the folder, repeat until the compression is successful.
6. Once the problematic policies have been identified, head back to the PrivateArk client -> PVWAConfig safe -> select the Policies.xml -> right click -> Retrieve and Save As... -> save a local copy to edit (make a backup of this before making edits).
7. Remove the policies from the Policies.xml that contained invalid characters.
8. Replace the Policies.xml in the PVWAConfig safe with the modified Policies.xml
9. On the PSMP server restart the PSMP service with the following command: /etc/init.d/psmpsrv restart
10. Verify the status of the PSMP services with the following commands:
(On RHEL and CentOS)
/etc/rc.d/init.d/psmpsrv status (SUSE) /etc/init.d/psmpsrv status

Alternatively, you can do the following to identify invalid characters:
1. Save a copy of the Policies.xml locally as done above (create an extra backup copy as well) and open the file with Notepad++
2. Select Search / Find Characters in range
3. Select "Non-ASCII Characters (128-255)"
4. The line(s) where the invalid characters are will be highlighted
5. Remove the characters, save the file, and replace the existing Policies.xml
6. Restart the PSMP service and verify the service status as described above
Or
On the PSMP server run:
grep --color='auto' -P -n "[\x80-\xFF]" Policies.xml

This will give you the line number and will highlight non-ascii chars in red.


Additional Information


Details

SYMPTOM:
PSMP could not start.
The error in the PSMPConsole.log below:
 
PSMPPS037E PSM SSH Proxy has been terminated. (Diagnostic information: XERCES error (Reason: invalid multi-byte sequence, Code:78), 78).
 
PROBLEM:
There is invalid character in the "PVConfiguration.xml" or in the "Policies.xml"
And it cause the PSMP service to fail to load the configuration files.
The invalid character can be added to one of those files.
For example:
If you edit a new policy or connection component via the PVWA, while using a keyboard with different language then English, a special character can be added to one of the configuration file.
 
Example special characters:
â€
 
SOLUTION:
Try to locate the latest changes been done to the PVConfiguration.xml" or in the "Policies.xml", and remove the special character entry.
If you cannot find the special character entry, try to use a the last working version of the configuration files, from a date the PSMP was working, and then compare it with the current version.
The location of the PVConfiguration.xml" and the "Policies.xml" are in Safe PVWAConfig by default.
The PSMP attempts to load all of the Connection Components listed in all policies defined in the Policies.xml. This issue can typically be pinpointed to reviewing each of the defined Connection Component IDs and settings values for each connection component defined on each policy within the file.
 
You can use the following method to test if the existing policies contain invalid characters:
1.) From the PrivateArk client open and enter the PasswordManagerShared safe -> Policies folder
2.) Select all policy.ini files -> right click -> Retrieve and Save as...
3.) Save the policy.ini files to a local folder named "Policies"
4.) After copies of the files have been saved, try compressing the local "Policies" folder
5.) If there are invalid characters in the policy names, the compression process will through errors stating which file contains the problematic characters. Take note of these files and remove them from the folder, repeat until the compression is successful
6.) Once the problematic policies have been identified, head back to the PrivateArk client -> PVWAConfig safe -> select the Policies.xml -> right click -> Retrieve and Save As... -> save a local copy to edit (make a backup of this before making edits)
7.) Remove the policies from the Policies.xml that contained invalid characters
8.) Replace the Policies.xml in the PVWAConfig safe with the modified Policies.xml
9.) On the PSMP server restart the PSMP service with the following command:
/etc/init.d/psmpsrv restart
10.) Verify the status of the PSMP services with the following commands:
(On RHEL and CentOS) /etc/rc.d/init.d/psmpsrv status
(SUSE) /etc/init.d/psmpsrv status
 
Alternatively you can do the following to identify invalid characters:
1.) Save a copy of the Policies.xml locally as done above (create an extra backup copy as well) and open the file with Notepad++
2.) Select Search / Find Characters in range
3.) Select "Non-ASCII Characters (128-255)"
4.) The line(s) where the invalid characters are will be highlighted
5.) Remove the characters, save the file, and replace the existing Policies.xml
6.) Restart the PSMP service and verify the service status as described above
 
Or

On the PSMP server run:

grep --color='auto' -P -n "[\x80-\xFF]" Policies.xml

 

This will give you the line number, and will highlight non-ascii chars in red.

 




Actions
  • Print
  • Copy Link

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