Checking status of service systemctl status cap-lighttpd -l shows failed with the following:
Duplicate config variable in conditional 0 global: xxxxxxxxx OR /var/lib/vmware/cap-lighttpd/lighttpd.conf line: ### pos: ## invalid character
Environment
VMware vCenter 8.x
Cause
Vami-lighttpd, fails to start and listen on port 5480 due to configuration errors caused by duplicate entries introduced during the application of Security Technical Implementation Guides (STIGs).
Resolution
Perform the following step:
Take snapshot of the vCenter
SSH to the appliance
Change directory to /var/lib/vmware/cap-lighttpd/
Deleted duplicate entries (from the error) XXXXXXXXXXXXXX from the file lighttpd.conf OR Delete any lines (from the error) from lighttpd.conf that are giving invalid character error when starting the cap-lighttpd service.
Restart the service: systemctl stop cap-lighttpd systemctl start cap-lighttpd