Unable to change web-proxy on VCF Operations for Networks Collector VM due to stunnel.service failure
search cancel

Unable to change web-proxy on VCF Operations for Networks Collector VM due to stunnel.service failure

book

Article ID: 432455

calendar_today

Updated On:

Products

VCF Operations for Networks VMware vSphere ESXi

Issue/Introduction

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.

Environment

VMware VCF Operations for Networks 6.x

Cause

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.

Resolution

To resolve this issue, the service locks must be cleared via a power cycle. Follow these steps:

  1. Attempt to clear the stuck configuration by running: set-web-proxy disable

  2. 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.

  3. 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>

  4. Verify the configuration by running show-web-proxy.

Additional Information

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.