プロキシ設定有効化およびサービス再起動後、vmware-vmonサービスが "control process exited" エラーで起動に失敗する
search cancel

プロキシ設定有効化およびサービス再起動後、vmware-vmonサービスが "control process exited" エラーで起動に失敗する

book

Article ID: 432345

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

vCenter Server Appliance (VCSA) において、/etc/sysconfig/proxy ファイルを編集してプロキシ設定を有効化した後、サービスを再起動すると vmware-vmon サービスが正常に開始されない場合があります。

・service-control --start --all を実行すると、以下のエラーが出力される:

root@VCFQDN [ /etc ]# service-control --start --all
Operation not cancellable. Please wait for it to finish...
Performing start operation on service lwsmd...
Successfully started service lwsmd
Performing start operation on service vmafdd...
Successfully started service vmafdd
Performing start operation on service vmdird...
Successfully started service vmdird
Performing start operation on service vmcad...
Successfully started service vmcad
Performing start operation on profile: ALL...
YYYY-MM-DDT03:59:28.217Z  RC = 1
Stdout =
Stderr = Job for vmware-vmon.service failed because the control process exited with error code.
See "systemctl status vmware-vmon.service" and "journalctl -xe" for details.

YYYY-MM-DDT03:59:28.217Z  {
    "detail": [
        {
            "id": "install.ciscommon.command.errinvoke",
            "translatable": "An error occurred while invoking external command : '%(0)s'",
            "args": [
                "Stderr: Job for vmware-vmon.service failed because the control process exited with error code.\nSee \"systemctl status vmware-vmon.service\" and \"journalctl -xe\" for details.\n"
            ],
            "localized": "An error occurred while invoking external command : 'Stderr: Job for vmware-vmon.service failed because the control process exited with error code.\nSee \"systemctl status vmware-vmon.service\" and \"journalctl -xe\" for details.\n'"
        }
    ],
    "componentKey": null,
    "problemId": null,
    "resolution": null
}
Service-control failed. Error: {
    "detail": [
        {
            "id": "install.ciscommon.service.failstart",
            "translatable": "An error occurred while starting service '%(0)s'",
            "args": [
                "vmware-vmon"
            ],
            "localized": "An error occurred while starting service 'vmware-vmon'"
        }
    ],
    "componentKey": null,
    "problemId": null,
    "resolution": null
}

 

・システム ジャーナル (journalctl -xe) には次のようなエラーが表示されます。

Month Date 18:25:53 vcfqdn systemd[1]: vmware-vmon.service: Found left-over process 10041 (python) in control group while starting unit. Ignoring.
Month Date 18:25:53 vcfqdn systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Month Date 18:25:53 vcfqdn systemd[1]: vmware-vmon.service: Found left-over process 11378 (python) in control group while starting unit. Ignoring.
Month Date 18:25:53 vcfqdn systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Month Date 18:25:53 vcfqdn systemd[1]: vmware-vmon.service: Found left-over process 11721 (python) in control group while starting unit. Ignoring.
Month Date 18:25:53 vcfqdn systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Month Date 18:25:53 vcfqdnb vmon.launcher[31747]: /etc/profile.d/proxy.sh: eval: line 11: unexpected EOF while looking for matching `"'
Month Date 18:25:53 vcfqdn vmon.launcher[31747]: /etc/profile.d/proxy.sh: eval: line 12: syntax error: unexpected end of file
Month Date 18:25:53 vcfqdn systemd[1]: vmware-vmon.service: Control process exited, code=exited, status=2/INVALIDARGUMENT

 

 

Environment

VMware vCenter Server

Cause

プロキシ設定でプロキシパラメータのフォーマットが不正です。アドレスを引用符(")で囲む必要があります。

例: HTTP_PROXY="http://example.com:3128/"

Resolution

VCSA VM を再起動するか、次のコマンドでサービスを再起動します:
How to configure Proxy Settings for vCenter Server のオプション2に従います。

1.vCenter Server Appliance への SSH 接続を開き、root としてログインします。

2./etc/sysconfig/proxy ディレクトリに移動します。
   # cd /etc/sysconfig

3.プロキシ構成ファイル(proxy)のバックアップコピーを作成します。
   # cp proxy proxy.bak

4.VI エディタを使用してプロキシ構成ファイルを開きます。
   # vi proxy

5.すべてのエントリの等号の後と行末に二重引用符が付いていることを確認します。
例: HTTP_PROXY="http://example.com:3128/"

6.VCSA VM を再起動するか、次のコマンドでサービスを再起動します。
# service-control --stop --all && service-control --start --all

Additional Information

vmware-vmon fails to start with an error: "control process exited" after proxy file enabled and services restarted.