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

データベースでトランザクションロックエラーが発生し、ユーザーがログインできない

written-by

Justin Mann

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

問題

  • データベースのキャッシュをクリアしても、一部のユーザーが環境にログインできない。
  • 通常、ユーザーは一時的に利用できないバナーや、認証されていない401エラーに遭遇します。
  • データベース・ログに次のようなトランザクション・ロック・エラーが表示されます。
Exception executing batch [java.sql.BatchUpdateException: (conn=227) Lock wait timeout exceeded; try restarting transaction], SQL: insert into SamlSpSession (companyId, userId, userName, createDate, modifiedDate, samlPeerBindingId, assertionXml, jSessionId, samlSpSessionKey, sessionIndex, terminated_, samlSpSessionId) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)

環境

  • クラウド
  • Liferay DXP 7.4

解像度

  • データベース・サーバー側でトランザクションがスタックし、表示されるロック待ちタイムアウト・エラーに関連するノードの不一致を引き起こす可能性があります。
  • その結果、一部のユーザーがログインできなくなることがある
  • これを解決するには、Liferayノードを1つずつ再起動して、テーブルをロックしているトランザクションを終了させます。 サポートが必要な場合は、Liferayサポートまでご連絡ください。
  • 再起動後、キャッシュをリフレッシュするためにブラウザのハードリフレッシュが必要になる場合があることにご注意ください。
did-this-article-resolve-your-issue

legacy-knowledge-base