Confluence Doesn't Generate Thumbnails
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
症状
Thumbnails do not render. The following appears in the atlassian-confluence.log:
"This Confluence installation can not generate thumbnails: no image support in Java runtime" while generating thumbnails
原因
On some Java installations (i.e. Unix without X11), you need to pass an additional parameter to Java when you are starting up to tell it how to use its image-manipulation libraries - to run in a headless mode, thus appending -Djava.awt.headless=true option. Getting thumbnail support working in this configuration depends on your application server. You can learn more about Headless Mode here.
ソリューション
Linux の場合
Edit
Confluence install\bin\setenv.shand add the '-Djava.awt.headless=true' parameter. For exampleJAVA_OPTS="-Xms128m -Xmx256m $JAVA_OPTS -Djava.awt.headless=true "If you are using Fedora Linux, you will also need to install the
xorg-x11-deprecated-libspackage. (See: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=130239)
Windows の場合
Edit the file
Confluence install\bin\setenv.batModify the line
set JAVA_OPTSline by appending-Djava.awt.headless=true, for exampleset JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx256m -Djava.awt.headless=true
As a Windows Service:
Open a command prompt in the
Confluence install\bindirectory実行
tomcat5 //US//Confluence ++JvmOptions="-Djava.awt.headless=true"
この内容はお役に立ちましたか?