vPostgres サービスが次のエラーが出て起動に失敗します Fatal error : bogus postmaster.pid
search cancel

vPostgres サービスが次のエラーが出て起動に失敗します Fatal error : bogus postmaster.pid

book

Article ID: 429817

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

免責事項 :
これは英文の記事「vPostgres service fails to start with Fatal error : bogus postmaster.pid」の日本語訳です。
記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事を参照してください。


症状 :

  • vPostgres サービスが起動に失敗します。

    # service-control --start vmware-vpostgres
Perform start operation. vmon_profile=None, svc_names=['vmware-vpostgres'], include_coreossvcs=False, include_leafossvcs=False
YYYY-MM-DDThh:mm:ss   Service vmware-vpostgres state STOPPED
Error executing start on service vmware-vpostgres. Details {
    "resolution": null,
    "detail": [
        {
            "args": [
                "vmware-vpostgres"
            ],
            "id": "install.ciscommon.service.failstart",
            "localized": "An error occurred while starting service 'vmware-vpostgres'",
            "translatable": "An error occurred while starting service '%(0)s'"
        }
    ],
    "componentKey": null,

/var/log/vmware/vpostgres/serverlog.stderr log content :-
~
~
Starting service process with pid: 61183.
LOG:  skipping missing configuration file "/storage/db/vpostgres/postgresql.conf.repl"
LOG:  skipping missing configuration file "/storage/db/vpostgres/postgresql.conf.repl"
YYYY-MM-DD hh:mm:ss UTC 5dc33d46.eeff 0   FATAL:  bogus data in lock file "postmaster.pid": ""

Environment

vCenter Server

Cause

この問題は、postmaster.pid ファイルが破損しているために発生します。

Resolution

postmaster.pid ファイルの場所

# ls -l /storage/db/vpostgres/postmaster.pid
-rw------- 1 vpostgres users 45 Oct 30 17:20 /storage/db/vpostgres/postmaster.pid

cat/less コマンドで postmaster.pid ファイルを確認すると、内容が空であるか、判読不能な文字(ジャンク文字)が含まれている場合があります。

postmaster.pid ファイルを backup するか、別の フォルダ などへ移動してください。

# mv /storage/db/vpostgres/postmaster.pid /storage/db/vpostgres/postmaster.pid_bkp

これで vPostgres サービスを起動でき、新しい postmaster.pid ファイルが自動的に生成されるのを確認できるはずです。

Additional Information

関連資料:
vPostgres service fails to start with Fatal error : bogus postmaster.pid