Confluence MySQL データベースの移行が原因で「content_procedure_for_denormalised_permissions は存在しません」エラーが発生する

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


プラットフォームについて: サーバーと Data Center のみ。この記事は、サーバーおよび Data Center プラットフォームのアトラシアン製品にのみ適用されます。

要約

After migrating the Confluence MySQL database to a different server with mysqldump command, Confluence was unable to start up or you are unable to edit/update any pages.

環境

  • 7.11.0 and onward
  • MySQL データベース

診断

The below error message appears in atlassian-confluence.log:

atlassian-confluence.log
ERROR [http-nio-8090-exec-3] [engine.jdbc.spi.SqlExceptionHelper] logExceptions PROCEDURE confluence.content_procedure_for_denormalised_permissions does not exist

No results when reviewing with the below SQL:

MySQL
SHOW PROCEDURE STATUS WHERE DB = '<target_DB_name>';

原因

Since Confluence 7.11.0, we have introduced the content denormalised function. This is a new feature for faster permissions service to improve page load times.

mysqldump will backup by default all the triggers but NOT the stored procedures/functions which will cause those errors.

ソリューション

  1. Shutdown the source Confluence
  2. Re-generate the Confluence MySQL database dump with --routines parameter: 

    mysqldump command
    mysqldump -p conf7111 --routines > conf71112.sql
    # OR
    mysqldump -p conf7111 -R > conf71112.sql
    (info) https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html#option_mysqldump_routines
  3. Shutdown the target Confluence
  4. Drop off the existing target database
  5. Recreate and import the database dump
  6. Startup target Confluence

最終更新日 2021 年 7 月 12 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.