Apache OpenMeetings 5.0.0-M1 と 4.0.8 その2

この記事は公開されてから時間が経っています

Apache OpenMeetings の続きで、Windows 版設定編

前回の、環境整備編に引き続き、Windows 版の設定編

1.インストーラ

4.0.8 のFlash 版の場合は、red5.bat を、5.0.0-M1 の WebRTC 版の場合は startup.bat を実行します
WebRTC 版の場合、admin.bat というコマンド版のセッティングツールがあり、引数で設定値を指定するツールもあります

普通は、ブラウザーで設定した方が楽だと思います
admin.bat で最初から設定しようとしても、意味がわからないと思います(最初は解りませんでした)
慣れるとコマンドラインで一発設定できますので便利です

red5.bat を実行して、数分待ちます
コマンドラインやパワーシェルの表示を眺めて、動作が落ち着いたら http://127.0.0.1:5080 へアクセスします
startup.bat も同様です

なぜか、ghostscript のインストールを促されますが、右下の > をクリックします

データベースの設定を行います

動作確認程度の作業を目指していますので、Apache Derby を選択して「接続試験」を行います
問題ないので、右下の > をクリックします

管理者のユーザーデータを入力します

右下の > をクリックします

右下の > をクリックします

次に、「文章変換」を設定します

後でも再設定できますが、パスが通らないと次に進めませんので適宜設定します
DPI と JPEG の品質は設定し直しています

ImageMagick のパス:C:\Program Files\ImageMagick-7.0.8-Q16
FFMpeg のパス:C:\Users\user\Downloads\ffmpeg\bin
SoX のパス:C:\Program Files (x86)\sox-14-4-2
LibreOffice のパス:C:\Program Files\LibreOffice

を設定して接続試験を行います
LibreOffice の接続試験が反応が遅く、一時的にエラー表示されるかもしれません

見て解るとおり、ImageMagic,FFMpeg,SoX はコマンドのあるディレクトリのパスを指定します
LibreOffice は program では無いパスを指定します

問題なければ 右下の > をクリックします

右下の > をクリックします

インストールを開始します

完了

「アプリケーションを使う」をクリックすると、サインインのページに移動します

2.設定の確認

ログインしたら、プロフィールを開いてロケールとかを設定すると日本語で表示します

右上の Profile を選択して

設定中はパスワードを入力しておかないと警告が表示されます
TimeZone を Japan
Language を Japanese (日本語)
Country を Japan
その他は適宜設定します

最後に、左上方のフロッピーアイコンをクリックして記録し、一旦ログアウトしてから再度ログインします

日本語表示になったので、「管理」-「グローバル設定」を選択します
検索キーに path を指定して、設定値を確認します

3.PDF の変換を確認

PDF をアップロードして、変換される確認してみます
「会議室」-「私の会議室」でどちらの部屋でも構いませんので、「入室」します

「ファイル」タブを開いて、「ファイル」-「アップロード」を選択して、適当な PDF を指定します

すると、変換が始まって、「私のファイル(…)」へ格納されます

一応、変換は完了しましたので convert の実行は問題ないようです


DEBUG 06-12 18:45:11.338 o.a.o.c.d.f.FileProcessor:75 [.0-5080-exec-10] - isAsIs: false
DEBUG 06-12 18:45:11.342 o.a.o.c.d.f.FileProcessor:105 [.0-5080-exec-10] - writing file to: C:\Users\user\Downloads\apache-openmeetings-4.0.8\webapps\openmeetings\upload\files\f6643dd1-0589-4ffd-bd00-8d683e503faf\f6643dd1-0589-4ffd-bd00-8d683e503faf.pdf
DEBUG 06-12 18:45:11.342 o.a.o.c.d.f.FileProcessor:112 [.0-5080-exec-10] - Office document: C:\Users\user\Downloads\apache-openmeetings-4.0.8\webapps\openmeetings\upload\files\f6643dd1-0589-4ffd-bd00-8d683e503faf\f6643dd1-0589-4ffd-bd00-8d683e503faf.pdf
DEBUG 06-12 18:45:11.354 o.a.o.c.c.DocumentConverter:60 [.0-5080-exec-10] - fullProcessing: false
DEBUG 06-12 18:45:11.354 o.a.o.c.c.DocumentConverter:68 [.0-5080-exec-10] - -- generate page images --
DEBUG 06-12 18:45:11.354 o.a.o.c.c.ImageConverter:177 [.0-5080-exec-10] - convertDocument
DEBUG 06-12 18:45:11.369 o.a.o.u.p.ProcessHelper:86 [.0-5080-exec-10] - START convert PDF to images #################
DEBUG 06-12 18:45:11.369 o.a.o.u.p.ProcessHelper:87 [.0-5080-exec-10] - C:\Program Files\ImageMagick-7.0.8-Q16\convert.exe -density 600 C:\Users\user\Downloads\apache-openmeetings-4.0.8\webapps\openmeetings\upload\files\f6643dd1-0589-4ffd-bd00-8d683e503faf\f6643dd1-0589-4ffd-bd00-8d683e503faf.pdf -quality 100 C:\Users\user\Downloads\apache-openmeetings-4.0.8\webapps\openmeetings\upload\files\f6643dd1-0589-4ffd-bd00-8d683e503faf\page-%04d.png
DEBUG 06-12 18:45:32.557 o.a.o.u.p.ProcessHelper:93 [.0-5080-exec-10] - END convert PDF to images #################
DEBUG 06-12 18:45:32.635 o.a.o.c.d.f.FileProcessor:135 [.0-5080-exec-10] - fileId: 101
DEBUG 06-12 18:45:32.651 o.a.o.c.d.f.FileProcessor:96 [.0-5080-exec-10] - Clean up was successful ? true


文字化けしている
けど、一応、PDF をアップデートして、conevrt.exe で変換している様子がわかると思います

変換した「私のファイル()」の下に格納されているファイルを、右の「ホワイトボード」にドロップすると表示されます
600DPI で変換していますので画像は巨大です
ちなみに、A4 サイズで 4960×7014 ピクセルで 600KB程度の PNG ファイルに変換されています

4.オフィスファイルの変換を確認

6 13, 2019 11:16:35 午前 org.artofsolving.jodconverter.office.OfficeProcess start
情報: starting process with acceptString 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' and profileDir 'C:\Users\user\AppData\Local\Temp\.jodconverter_socket_host-127.0.0.1_port-2002'
[INFO] [OfficeProcessThread-0] org.artofsolving.jodconverter.office.OfficeProcess - starting process with acceptString 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' and profileDir 'C:\Users\user\AppData\Local\Temp\.jodconverter_socket_host-127.0.0.1_port-2002'
6 13, 2019 11:16:35 午前 org.artofsolving.jodconverter.office.OfficeProcess start
情報: started process
[INFO] [OfficeProcessThread-0] org.artofsolving.jodconverter.office.OfficeProcess - started process
6 13, 2019 11:16:37 午前 org.artofsolving.jodconverter.office.ManagedOfficeProcess$6 attempt
警告: office process died with exit code 81; restarting it
[WARN] [OfficeProcessThread-0] org.artofsolving.jodconverter.office.ManagedOfficeProcess - office process died with exit code 81; restarting it
6 13, 2019 11:16:37 午前 org.artofsolving.jodconverter.office.OfficeProcess start
情報: starting process with acceptString 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' and profileDir 'C:\Users\user\AppData\Local\Temp\.jodconverter_socket_host-127.0.0.1_port-2002'
[INFO] [OfficeProcessThread-0] org.artofsolving.jodconverter.office.OfficeProcess - starting process with acceptString 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' and profileDir 'C:\Users\user\AppData\Local\Temp\.jodconverter_socket_host-127.0.0.1_port-2002'
6 13, 2019 11:16:37 午前 org.artofsolving.jodconverter.office.OfficeProcess start
情報: started process
[INFO] [OfficeProcessThread-0] org.artofsolving.jodconverter.office.OfficeProcess - started process
6 13, 2019 11:16:39 午前 org.artofsolving.jodconverter.office.ManagedOfficeProcess$6 attempt
警告: office process died with exit code 81; restarting it
[WARN] [OfficeProcessThread-0] org.artofsolving.jodconverter.office.ManagedOfficeProcess - office process died with exit code 81; restarting it
6 13, 2019 11:16:39 午前 org.artofsolving.jodconverter.office.OfficeProcess start
情報: starting process with acceptString 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' and profileDir 'C:\Users\user\AppData\Local\Temp\.jodconverter_socket_host-127.0.0.1_port-2002'
[INFO] [OfficeProcessThread-0] org.artofsolving.jodconverter.office.OfficeProcess - starting process with acceptString 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' and profileDir 'C:\Users\user\AppData\Local\Temp\.jodconverter_socket_host-127.0.0.1_port-2002'
6 13, 2019 11:16:39 午前 org.artofsolving.jodconverter.office.OfficeProcess start
情報: started process
[INFO] [OfficeProcessThread-0] org.artofsolving.jodconverter.office.OfficeProcess - started process
6 13, 2019 11:16:42 午前 org.artofsolving.jodconverter.office.OfficeConnection connect
情報: connected: 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1'
[INFO] [OfficeProcessThread-0] org.artofsolving.jodconverter.office.OfficeConnection - connected: 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1'
6 13, 2019 11:16:48 午前 org.artofsolving.jodconverter.office.ProcessPoolOfficeManager stop
情報: stopping
INFO  06-13 11:16:48.118 o.a.j.o.ProcessPoolOfficeManager:82 [.0-5080-exec-10] - stopping
6 13, 2019 11:16:48 午前 org.artofsolving.jodconverter.office.OfficeConnection$1 disposing
情報: disconnected: 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1'
[INFO] [MessageDispatcher] org.artofsolving.jodconverter.office.OfficeConnection - disconnected: 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1'
6 13, 2019 11:16:48 午前 org.artofsolving.jodconverter.office.ManagedOfficeProcess doEnsureProcessExited
情報: process exited with code 0
[INFO] [OfficeProcessThread-0] org.artofsolving.jodconverter.office.ManagedOfficeProcess - process exited with code 0
6 13, 2019 11:16:48 午前 org.artofsolving.jodconverter.office.ProcessPoolOfficeManager stop
情報: stopped
INFO  06-13 11:16:48.431 o.a.j.o.ProcessPoolOfficeManager:87 [.0-5080-exec-10] - stopped
DEBUG 06-13 11:16:48.431 o.a.o.c.c.DocumentConverter:68 [.0-5080-exec-10] - -- generate page images --
DEBUG 06-13 11:16:48.431 o.a.o.c.c.ImageConverter:177 [.0-5080-exec-10] - convertDocument
DEBUG 06-13 11:16:48.447 o.a.o.u.p.ProcessHelper:86 [.0-5080-exec-10] - START convert PDF to images #################
DEBUG 06-13 11:16:48.447 o.a.o.u.p.ProcessHelper:87 [.0-5080-exec-10] - C:\Program Files\ImageMagick-7.0.8-Q16\convert.exe -density 600 C:\Users\user\Downloads\apache-openmeetings-4.0.8\webapps\openmeetings\upload\files\1413b1c2-bc8b-4f98-bfed-c5c92bcf5354\1413b1c2-bc8b-4f98-bfed-c5c92bcf5354.pdf -quality 100 C:\Users\user\Downloads\apache-openmeetings-4.0.8\webapps\openmeetings\upload\files\1413b1c2-bc8b-4f98-bfed-c5c92bcf5354\page-%04d.png
DEBUG 06-13 11:17:01.290 o.a.o.u.p.ProcessHelper:93 [.0-5080-exec-10] - END convert PDF to images #################

JODConverter が PDF を作成して、PDF を PNG に変換している様子がわかるのかな…

タスクマネージャでは、JODConverter から LibreOffice が起こされて、ImageMagick で変換されてるんだな⁉ と言う表示がされています

注意点として、数ページに渡るドキュメントを変換すると、タイムアウトになったり、そもそも、変換自体がエラーする場合がありますね

注:document.DPI を設定上限の 600 を指定したからかもしれません
  150DPI とかだと、滅多にタイムアウトしないみたいです

その時の挙動なんですが、ブラウザー側には何の表示もされませんので、いつまでも待たされることになります
エラーしていることを確認出来る方法は、サーバーサイドの起動したシェルに表示されるログを眺めていることくらいかな…
変換が止まっているときは、なぜかタイムアウトしないようです
HDD とメモリーに負荷がかかっているようで、両方とも 100 % の使用率になったままです

この辺が、キチンと動作しているのか判断が付かないところですね…

たまに、変換でタイムアウトが発生すると、変換中のアカウントの挙動がおかしくなります
退室するしかないのですが、退室すると、なぜか自分がゾンビのまま部屋に居座り入室したアカウントとして計上されたままになります

タイムアウトとした状態

スナップショットを重ねていますが、同じユーザーがいる状態
fiestname lastname は admin と同一人物(一人しか登録していない状態)


一応、インストールはこんな感じでしょうか…

次は Ubuntu 編かな

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です


The reCAPTCHA verification period has expired. Please reload the page.