legacy-knowledge-base
公開されました Jun. 30, 2025

パッチ適用ツールを更新するためのビルドがスタックして失敗しました

written-by

Sivakumar Perumal

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • default.properties が作成されず、何らかの理由で Pod が以下の時点で停止したため、Liferay にパッチ ツールをインストールするビルドが失敗します。
    Oct 26 19:30:51.126 build-10 [liferay-7768cf9c77-sk8nz] [LIFERAY] Updating Patching Tool.
    Oct 26 19:30:56.399 build-10 [liferay-7768cf9c77-sk8nz] Auto discovery looks for portal segments. The selected directory is "/opt/liferay/tomcat".
    Oct 26 19:30:57.114 build-10 [liferay-7768cf9c77-sk8nz] The .liferay-home has not been detected in the given directory tree.
    Oct 26 19:30:57.114 build-10 [liferay-7768cf9c77-sk8nz]
    Oct 26 19:30:57.114 build-10 [liferay-7768cf9c77-sk8nz] Configuration:
    Oct 26 19:30:57.114 build-10 [liferay-7768cf9c77-sk8nz] patching.mode=binary
    Oct 26 19:30:57.115 build-10 [liferay-7768cf9c77-sk8nz] war.path=../tomcat/webapps/ROOT/
    Oct 26 19:30:57.115 build-10 [liferay-7768cf9c77-sk8nz] global.lib.path=../tomcat/lib/ext/
    Oct 26 19:30:57.115 build-10 [liferay-7768cf9c77-sk8nz] liferay.home=[please enter manually]
    Oct 26 19:30:57.115 build-10 [liferay-7768cf9c77-sk8nz]
    Oct 26 19:30:57.115 build-10 [liferay-7768cf9c77-sk8nz] The configuration hasn't been saved. Please save this to the default.properties file.
    Oct 26 19:30:57.625 build-10 [liferay-7768cf9c77-sk8nz]
    Oct 26 19:30:57.625 build-10 [liferay-7768cf9c77-sk8nz] [LIFERAY] Patching Tool updated successfully.
    Oct 26 19:31:01.602 build-10 [liferay-7768cf9c77-sk8nz] There's no configuration available. Running auto-discovery in the parent folder.
    Oct 26 19:31:01.604 build-10 [liferay-7768cf9c77-sk8nz] Directory is not set in command line, using ../
    Oct 26 19:31:01.785 build-10 [liferay-7768cf9c77-sk8nz] Auto discovery looks for portal segments. The selected directory is "/opt/liferay".

Environment

  • Liferay エクスペリエンス クラウド

解決策

  • この動作は、data フォルダーの下のドキュメントをスキャンして Liferay ホームを検出するスクリプトが原因であり、時間がかかります。 この時間がデプロイのタイムアウトを超えているため、デプロイは失敗します。
  • 回避策として、以下の default.properties ファイルをパッチ適用 tool.zip に追加することでこれを解決でき、最新の Docker イメージ バージョンを使用することで完全に解決できます。
    patching.mode=binary
    war.path=../tomcat/webapps/ROOT/
    global.lib.path=../tomcat/lib/ext/
    liferay.home=../

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base