Unable to install plugins due to innodb_log_file_size using MySQL
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
問題
- Unable to install certain plugins (Generally plugins which is big in size)
Plugin installation will take a while load but does not finish and ends up with an error of
on the UI.An error occurred during installation. Refer to the logs for more informationThe
atlassian-confluence.logshows the error below :2015-11-11 11:11:00,385 ERROR [UpmAsynchronousTaskManager:thread-2] [sf.hibernate.util.JDBCExceptionReporter] logExceptions The size of BLOB/TEXT data inserted in one transaction is greater than 10% of redo log size. Increase the redo log size using innodb_log_file_size. -- url: /rest/plugins/1.0/ | referer: https://user.com/plugins/servlet/upm | userName: user
診断
環境
- Any version of Confluence running on MySQL
- We have seen this specifically with the Gliffy plugin, but this can happen with any other plugin
原因
The innodb_log_file_size is not set to the size recommended in Database Setup For MySQL, or the plugin is too large for the recommended setting.
ソリューション
Increase the Innodb_log_file_size to a bigger value. Generally the rule of thumb is to increase the Innodb_log_file_size to 10 times the size of the plugin.
- Shutdown Confluence and shutdown the MySQL database service.
Go to my.ini (for windows) or my.cnf (for Linux) and change the parameters below accordingly. (2GB per the recommendation)
[mysqld] ... innodb_log_file_size=2GB ...- Go to the MySQL installation data folder (normally C:\Program Files\MySQL\MySQL Server 5.6\data) and copy all the ib_logfile0, ib_logfile1,....and so on with the same prefix ib_logfile and paste it somewhere else. (This is to keep a safe copy of the log file)
- Delete the files.
- Restart your MySQL database service.
Clear your plugins cache by removing the following directories:
This will remove the plugin cache files only and will not permanently remove any plugins. These directories will be recreated during the next Confluence startup. However, some third-party plugins may store metadata in these directories, so we recommend creating a temporary backup of the directories.<confluence-home>/bundled-plugins <confluence-home>/plugins-cache <confluence-home>/plugins-osgi-cache <confluence-home>/plugins-temp <confluence-home>/bundled-plugins_language- Confluence を再起動します。
- Reattempt the plugin installation.
- If it's working fine, you might want to do some trial and error to reduce and tweak the innodb_log_file_size.