When attempting to access the vCenter Server via SSH using either the root account or a local SSO user, the following error is encountered:
Type: vCenter Server with an embedded Platform Services Controller/etc/profile.d/proxy.sh: line 11: Enable: command not foundTraceback (most recent call last):File "/usr/lib/applmgmt/base/bin/vherdrunner", line 8, in <module>vherdrunner.start(vherdrunner.directories)File "/usr/lib/applmgmt/base/bin/vherdrunner.py", line 118, in startexec(code, childGlobals)File "/usr/lib/applmgmt/linux_cli/bin/main-shell", line 11, in <module>sys.exit(cli.main(sys.argv, products=('vherd', 'appliance')))File "/usr/lib/applmgmt/linux_cli/py/vmware/vherd/linux_cli/cli.py", line 1470, in maincookieOnly=parsedArgs.get_cookie)File "/usr/lib/applmgmt/linux_cli/py/vmware/vherd/linux_cli/cli.py", line 289, in connectself.config['mode'])File "/usr/lib/applmgmt/linux_cli/py/vmware/vherd/linux_cli/introspection_parser.py", line 153, in findMethodmethodList = self.server.system.listMethods()File "/usr/lib/python3.7/xmlrpc/client.py", line 1112, in __call__return self.__send(self.__name, args)
vCenter Server 7.0.x
vCenter Server 8.0.x
There are extra or incorrect characters/lines in the /etc/sysconfig/proxy file on the vCenter Server.
The issue is caused by the configuration in /etc/sysconfig/proxy not meeting the requirements outlined in the following article: Proxy Settings for vCenter Server
The following steps outline how to edit the /etc/sysconfig/proxy file:
systemd.unit=emergency.target
mount -o remount,rw /
/etc/sysconfig/proxy file.
proxy filecd /etc/sysconfigcp proxy proxy.bak
:wq!
umount /
reboot -f
If you need to restore to the original file:cp proxy.bak proxy
Sample:
# Enable a generation of the proxy settings to the profile.# This setting allows to turn the proxy on and off while# preserving the particular proxy setup.#PROXY_ENABLED="no"
# Some programs (e.g. wget) support proxies, if set in# the environment.# Example: HTTP_PROXY="http://proxy.provider.de:3128/"HTTP_PROXY=""
# Example: HTTPS_PROXY="https://proxy.provider.de:3128/"HTTPS_PROXY=""
# Example: FTP_PROXY="http://proxy.provider.de:3128/"FTP_PROXY=""
# Example: GOPHER_PROXY="http://proxy.provider.de:3128/"GOPHER_PROXY=""
# Example: SOCKS_PROXY="socks://proxy.example.com:8080"SOCKS_PROXY=""
# Example: SOCKS5_SERVER="office-proxy.example.com:8881"SOCKS5_SERVER=""
# Example: NO_PROXY="www.me.de, do.main, localhost"NO_PROXY="localhost, 127.0.0.1"