When attempting to update the web-proxy configuration on a VMware VCF Operations for Networks Collector VM, the command fails with a service restart error. While other Collector VMs in the same environment may update successfully, the affected VM returns the following error:
ERROR:root:stderr: Job for stunnel.service failed because the control process exited with error code. cmd: sudo systemctl restart stunnel failed
The CLI attempts to apply the change but eventually reverts to the previous web-proxy address after several minutes. In some cases, even the set-web-proxy disable command may fail to execute.
VMware VCF Operations for Networks 6.x
The failure is caused by a stale Process ID (PID) file or a "zombie" process associated with the stunnel service.
The set-web-proxy CLI command is a wrapper script that modifies /etc/stunnel/stunnel.conf and attempts to restart the service. If the stunnel service is hung or unable to release its lock on the PID file in /var/run/, the systemctl restart command fails. To maintain connectivity, the appliance's watchdog mechanism automatically rolls back the configuration to the last known working state.
To resolve this issue, the service locks must be cleared via a power cycle. Follow these steps:
Attempt to clear the stuck configuration by running: set-web-proxy disable
Perform a full reboot of the Collector VM. This can be done via the CLI command appliance-reboot or through the vSphere Client. This step is critical to clear memory-resident process locks that the CLI cannot override.
After the VM has fully rebooted and services have initialized, re-apply the proxy settings: set-web-proxy enable --ip-fqdn <Proxy_IP> --port <Port>
Verify the configuration by running show-web-proxy.
Before rebooting, ensure that the Collector VM has sufficient disk space by checking the output of df -h. A full /var partition can also prevent service restarts.
If the issue persists after a reboot, verify that the Collector has network reachability to the proxy IP and port (e.g., 8080) to ensure the service isn't failing due to a connection timeout.