Workaround:
1. Make a backup copy of the wcpsvc-vmonconfig.json config file
cp /etc/vmware/vmware-vmon/svcCfgfiles/wcpsvc-vmonconfig.json /tmp/wcpsvc-vmonconfig.json.bak
Note: Files in /tmp are removed once vCenter is rebooted. Therefore, you might want to save this in your computer.
2. Edit the wcpsvc-vmonconfig.json file
vim /etc/vmware/vmware-vmon/svcCfgfiles/wcpsvc-vmonconfig.json
3. Remove the line beginning with StreamRedirectFile and save the file.
{
"Name" : "wcp",
"StartCommand" : "/usr/lib/vmware-wcp/wcpsvc.launcher",
"StartCommandArgs": ["--port", "8920", "--logfile", "/var/log/vmware/wcp/wcpsvc.log",
"--configfile", "/etc/vmware/wcp/wcpsvc.yaml",
"--audit-logfile", "/var/log/vmware/wcp/wcp-audit.log",
"--incident-logfile", "/var/log/vmware/wcp/wcp-incident.log"],
"PreStartCommand" : "%VMWARE_PYTHON_BIN%",
"PreStartCommandArgs" : ["/usr/lib/vmware-wcp/wcpsvc-prestart.py"],
"StreamRedirectFile" : "/var/log/vmware/wcp/stdstream.log", -----------------------> # line to be modified
"RecoveryActionProfiles" :
{
"DEFAULT" :
{
"CRASH" : ["RESTART_SERVICE", "RESTART_SERVICE", "RESTART_SERVICE", "RESTART_SERVICE", "RESTART_SERVICE", "NO_ACTION"],
"HEALTHFAIL" : ["NO_ACTION"]
}
},
"WorkingDir" : "/usr/lib/vmware-wcp/",
"DependsOn" : ["vpxd", "eam", "vmware-vpostgres", "lookupsvc", "cis-license", "vapi-endpoint", "sts", "trustmanagement"],
"ApiHealthCommand" : "%VMWARE_PYTHON_BIN%",
"ApiHealthCommandArgs" : ["/usr/lib/vmware-vmon/vmonApiHealthCmd.py", "-n", "wcp", "-u", "/wcp/health", "-t", "10"],
"StartTimeout" : 120,
"StopTimeout" : 30
}
4. Restart wcp service
service-control --stop wcp && service-control --start wcp