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

ログに表示されているプライマリキー "xxxxx "を持つグループが存在しない

written-by

Giulianna Munoa

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

問題

  • ログには次のようなメッセージが記録されている:
Jun 07 01:20:15.120 build-43 liferay[liferay-ldbgc] com.liferay.portal.kernel.exception.NoSuchGroupException: No Group exists with the primary key 377736

Jun 07 07:13:56.783 build-43 liferay[liferay-ldbgc] com.liferay.portal.kernel.exception.NoSuchGroupException: No Group exists with the primary key 377785

Environment

  • Liferay DXP 7.2+
  • LXC-SM

解決策

  • この現象は、データベースに残っているレイアウトレコードが原因であることがあります。
  • この手順に従ってください:
    1. データベースのバックアップ
    2. 添付のスクリプトを実行して、孤児レコードの数を調べてください。
    3. 孤児レコードを削除するには、222行目を修正し、変数 _safeMode を見つけ、 _safeMode=falseに設定する。
    4. 削除を実行すると警告メッセージが表示される場合があります:
      Someone may be trying to circumvent the permission checker
    5. 孤児レコードが削除されたかどうかを確認するには、 _safeMode=trueを指定してスクリプトを再度実行します。

追加情報

  • 必ず最初にDEV環境でこのスクリプトを実行し、すべてのテストが合格したらPRDで複製することができます。

did-this-article-resolve-your-issue

legacy-knowledge-base