Repeated "vlcm status changed from green to red" alerts in vCenter after changing proxy configuration
search cancel

Repeated "vlcm status changed from green to red" alerts in vCenter after changing proxy configuration

book

Article ID: 439197

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

The following alert is seen multiple times per day: 

Date Time:
 
Type:
 Information
User:
 Vmonuser
 
 
Description:
vlcm status changed from green to red
Related events:
There are no related events.
 
vmon.log shows that vLCM is repeatedly crashing:
YYYY-MM-DDTHH:mm:ss <vlcm> Service exited. Exit code 2
YYYY-MM-DDTHH:mm:ss <vlcm> Service exited unexpectedly. Crash count 1. Taking configured recovery action.

vlcm.log shows a problem reading the proxy configuration:

YYYY-MM-DDTHH:MM:ss info vlcm [vclib/client.go:363] Filter: {{} com.vmware.cis vcenterserver}
YYYY-MM-DDTHH:MM:ss  error vlcm [cmd/main.go:149] panic: runtime error: index out of range [1] with length 1
...
server/serviceconfig.GetProxyConfig

Environment

vCenter 8U3

Cause

This can happen if there is a typo or unexpected character in the proxy configuration file /etc/sysconfig/proxy.

 

Resolution

Revert any changes which were manually made to the /etc/sysconfig/proxy file, and/or check the file for typos, unexpected characters, etc.