NetBackup malware scan jobs fail: "Failed to get version from the Storage Platform Web Service (SPWS). Ensure that Nginx is running and configured correctly on the selected MSDP storage server" when spws service is not running.
Problem
NetBackup malware scan jobs fail: "Failed to get version from the Storage Platform Web Service (SPWS). Ensure that Nginx is running and configured correctly on the selected MSDP storage server" when spws service is not running.
Error Message
NetBackup Primary (master) server nbwebservice log reports:
02/25/2025 09:44:56.918 PID:2377 File ID:495 nbwebapi TID:1464825 File ID:495 Intra API call for method POST on URL : /recovery/workloads/vmware/malware-scan-mounts returned error. Exception :org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : "{"errorCode":4032,"errorMessage":"Failed to get version from the Storage Platform Web Service (SPWS). Ensure that Nginx is running and configured correctly on the selected MSDP storage server.","attributeErrors":{},"fileUploadErrors":[],"errorDetails":["502 Bad Gateway: \"<html><EOL><EOL><head><title>502 Bad Gateway</title></head><EOL><EOL><body><EOL><EOL><center><h1>502 Bad Gateway</h1></center><EOL><EOL><hr><center>nginx</center><EOL><EOL></body><EOL><EOL></html>
Attempts to get the MSDP version from the remote MSDP storage server do not report the version and report the same error:
# curl -k -v https://msdp_storageserver_hostname:443/msdp/version<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.1</center>
</body>
</html>
Cause
The spws service is not running on the MSDP storage server.
Solution
Start the spws service on the MSDP storage server with the following commands:
On a NetBackup MSDP storage server media server, run:
# /usr/openv/pdde/vpfs/bin/spws status
...if not running, start it:
# /usr/openv/pdde/vpfs/bin/spws start
On a Flex-based WORM instance, log in as the msdpadm account and from CLI and run:
> dedupe spws status
...if not running, start it:
> dedupe spws start
Validate with a test curl command on the Primary server:
# curl -k -X GET https://msdp_storageserver_hostname:443/msdp/version{"version": "9.0"}