2020年11月29日日曜日

【72】Alfresco:レコマネ機能追加の失敗2→その後成功!

Alfresco SDK 4.1

Alfresco SDK 4.1の設定を再確認。イージフ様のブログを再度参照。

http://labo-blog.aegif.jp/2020/08/alfresco-sdk-41.html

環境変数JAVA_HOMEの設定をしていませんでしたので、

echo "JAVA_HOME='/usr/lib/jvm/java-9-openjdk-amd64'"

を入力しました。

その後、

https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-install-records-management-in-all-in-one-aio-project-for/m-p/302322

で示される<dependency>をいったんコメントアウトし、Alfresco Community Services (ACS) 6.2が走るかを確認します。

Alfrescoのバージョンを201911GAに合わせるため、run.shやrun.batがあるディレクトリのpom.xmlを次のように設定します。もとは、6.2.0-eaになっています。

<alfresco.platform.version>6.2.0-ga</alfresco.platform.version>

<alfresco.share.version>6.2.0</alfresco.share.version>

こうしてから、

sudo ./run.sh build_start

を実行すると、成功です。ACS 6.2は無事走りました。

Alfresco Governance Services (AGS)に再度、挑戦します。

<alfresco.platform.version>6.2.0-ga</alfresco.platform.version>

にした効果があるかどうかを見てみます。
結論としては、効果がなく、前回と同じエラー。プライベート版を取りにいくという展開に。
諦めます。

Docker Compose


次に、ダメ元で、Docker Composeの方にトライしました。docker-compose.ymlを次の説明書にしたがって書き換えます。

サイトにあるのは、AGS 3.0でACS 6.0.7対応なので、以下のような設定が指示されています。

services:
    alfresco:
        #image: alfresco/alfresco-content-repository-community:6.0.7-ga
        image: alfresco/alfresco-governance-repository-community:3.0.a
        ... 
    share:
        #image: alfresco/alfresco-share:6.0.b
        image: alfresco/alfresco-governance-share-community
        ... 

現在、上の方のimageは
image: alfresco/alfresco-content-repository-community:6.2.0-ga
となっています。これに合うAGSを探します。参照したのは次のサイト。

です。

 image: alfresco/alfresco-governance-repository-community:V3.4-latest

にすると、ユーザーとパスワードを入れる画面には行けますが、入力してもエラーが表示されて、アクセスできません。
V3.3-latest
にしてみると、adminとして、アクセスできました。
しかし、サイトを作成の選択肢に現れるはずの"レコマネ"がありません。
失敗です。諦めます。

次回は、有料版の無料トライアルを試してみます。

冒頭は復習からやりますので、みなさんぜひご参加ください。

後日、成功!

失敗やと思ったら、うまいこといった。Docker Composeの方を使い、docker-compose.yml内の設定をV3.3.1.x-latestにしただけです。


サイトのタイプで、レコード管理サイトが現れました!
次回からはこいつで遊んでいきます。




2020年11月16日月曜日

【71】Alfresco:番外編、Records management機能追加の失敗

道場の一員です。

個人的にAlfrescoにレコマネ機能を加える作業をやっていましたが、失敗しました。今後の進展のため、失敗の記録を残しておきます。

色々ググってみて、Alfresco Community Services (ACS) 6.2にAlfresco Governance Services (AGS)を入れる方法を紹介しているページを見つけました。

https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-install-records-management-in-all-in-one-aio-project-for/m-p/302322 –1

です。Alfresco SDK 4.1に合わせて作ったようなので、aegif様の次のページを参照し、インストールです。すべて人任せです。

http://labo-blog.aegif.jp/2020/08/alfresco-sdk-41.html

無事終了。

上記リンク1に従い、pom.xmlファイルに追記します。

一つ目は、ディレクトリ<自分でつけた名前>-platform-dockerにあるpom.xmlに、

<dependency>

  <groupId>org.alfresco</groupId>

  <artifactId>alfresco-governance-services-community-repo</artifactId>

  <version>3.4.0</version>

  <type>amp</type>

  <exclusions>

<exclusion>

<groupId>*</groupId>

<artifactId>*</artifactId>

</exclusion>

  </exclusions>

</dependency>

を入れます。

二つ目は、ディレクトリ<自分でつけた名前>-share-dockerにあるpom.xmlに、

<dependency> 

  <groupId>org.alfresco</groupId>

  <artifactId>alfresco-governance-services-community-share</artifactId>

  <version>3.4.0</version>

  <type>amp</type>

  <exclusions>

<exclusion>

<groupId>*</groupId>

<artifactId>*</artifactId>

</exclusion>

  </exclusions>

</dependency>

を記入します。

そして、

./run.sh build_start

でAlfrescoを起動...しませんでした。

エラーメッセージは次のようなものです。

--

[ERROR] Failed to execute goal on project <自分でつけた名前>- platform-docker: Could not resolve dependencies for project dojo:<自分でつけた名前>-platform-docker:jar:1.0-SNAPSHOT: Failed to collect dependencies at org.alfresco:alfresco-governance-services-community-repo:amp:3.4.0: Failed to read artifact descriptor for org.alfresco:alfresco-governance-services-community-repo:amp:3.4.0: Could not transfer artifact org.alfresco:alfresco-governance-services-community-repo:pom:3.4.0 from/to alfresco-public (https://artifacts.alfresco.com/nexus/content/groups/public): artifacts.alfresco.com: 名前またはサービスが不明です: Unknown host artifacts.alfresco.com: 名前またはサービスが不明です -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

[ERROR] 

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :<自分でつけた名前>-platform-docker

--

alfresco-governance-services-community-repoが見つかりませんとさ。https://artifacts.alfresco.com/nexus/content/groups/publicに入ったら、色々ファイルがあってよくわかりませんでした。ギブアップです。

諦めて、バイオレンス映画見ます。


続編

バイオレンス映画数本見て一週間後、上記と同じことをやってみました。すると違うエラーが出ました。

<以下、引用>

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary for AIO - SDK 4.0 1.0-SNAPSHOT:

[INFO] 

[INFO] AIO - SDK 4.0 ...................................... SUCCESS [03:28 min]

[INFO] Alfresco Platform/Repository JAR Module ............ SUCCESS [41:14 min]

[INFO] Alfresco Share JAR Module .......................... SUCCESS [05:12 min]

[INFO] Integration Tests Module ........................... SUCCESS [  0.777 s]

[INFO] Alfresco Platform/Repository Docker Module ......... FAILURE [  8.322 s]

[INFO] Alfresco Share Docker Module ....................... SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  50:19 min

[INFO] Finished at: 2020-11-21T20:11:27+09:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal on project <自分でつけた名前> -platform-docker: Could not resolve dependencies for project dojo:<自分でつけた名前>-platform-docker:jar:1.0-SNAPSHOT: Failed to collect dependencies at org.alfresco:alfresco-governance-services-community-repo:amp:3.4.0: Failed to read artifact descriptor for org.alfresco:alfresco-governance-services-community-repo:amp:3.4.0: Could not transfer artifact org.alfresco:alfresco-governance-services-community-repo:pom:3.4.0 from/to alfresco-private-repository (https://artifacts.alfresco.com/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

[ERROR] 

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :<自分でつけた名前>-platform-docker

<引用終わり>

alfresco-private-repository (https://artifacts.alfresco.com/nexus/content/groups/private)という有料会員向けのページにアクセスしに行っています。こっちはcommunity(無料)試してるのに、そらあかんやろ。

続いて、インストールしたAlfrescoディレクトリ内のトップにあるpom.xmlファイルをチェック。alfresco-private-repositoryにアクセスさせようとする記述があったので、コメントアウト。すると次のエラーに遭遇しました。

<引用始まり>

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  22.736 s

[INFO] Finished at: 2020-11-21T20:36:35+09:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal on project <自分でつけた名前> platform-docker: Could not resolve dependencies for project dojo:<自分でつけた名前>-platform-docker:jar:1.0-SNAPSHOT: Could not find artifact org.alfresco:alfresco-governance-services-community-repo:amp:3.4.0 in alfresco-public (https://artifacts.alfresco.com/nexus/content/groups/public) -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

[ERROR] 

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :<自分でつけた名前>-platform-docker

<引用終わり>
 alfresco-public (https://artifacts.alfresco.com/nexus/content/groups/public)という無料版に、入れたいモジュールがないらしい。一体どこにある?

SDKを諦めて、Dockerに戻しましたが、やはりレコマネを選択できませんでした。

腹立たしいので、またバイオレンス映画見ます。



2020年11月15日日曜日

【70】Alfresco:アスペクト管理機能とスマートフォルダ設定を中心に

今日は橋本さんのAlfresco Community Editに現Alfresco Governance Services(RM=」Records Management」)Moduleを追加する作業!の失敗事例の紹介から始まりました。

なんか...OSSのコミュニティ版にもOSSのガバナンス版が組み立てることができなすが、2020年11月現在、双方どちらかのバージョンが合わないようです。またどちらかのバージョンをダウングレードしようとしても、公開されているデータが0kbになっていたり、頻繁に書き換えられているため、イージフさんやアルフレスコハブのインドの方の投稿など、様々参照し、最後まで努力したけど、うまく立ち上がらなかった。

ということでした。詳しい内容については川田さんがメモしてくれましたが、ここでは割愛させていただきます。もしこのサイトを見て「私はできたよ!」という方は、hub.alfresco.com等にわかりやすくアップロードしてくださるか、このチームに助け舟をお送りいただくと、とても助かります(涙)橋本さん、お疲れ様でした!


というので、docker-compose.ymlファイルが入っているディレクトリにCDし、「docker-compose up」で、Alfrescoを起動させましょう!

アドレスlocalhost:8080/share/に接続。

どなたかのIDでログインします。

先週はワークフローの試しをやってみました。


今回は「アスペクト」という機能を試しました。

ホーム→マイファイル→ファイルごとの「…その他」→アスペクトの管理


各機能の説明や使い方等については、以下のマニュアルを参照しながら試してみました。

https://docs.alfresco.com/6.2/concepts/admintools-using-cmm.html

例えば、以下の画像に出ている項目を追加・排除することができます。

「変更を適用」し、その後、マイファイルのファイルごとの「プロパティの編集」をクリックすると、プロパティの項目に先ほど追加したアスペクト項目が追加され、設定できるようになります。例えば、上の図の「法令順守可能」項目を追加したら、以下の図のような法令順守可能期間などの設定ができる項目が追加されます。SMTPでe-mailをつなげることなどもできるし、スマートフォルダを設定することができたり、必要な項目を設定することができます。

さて、ここで「スマートフォルダ」って何だろうということで、調べてみると「スマートフォルダは、Alfresco Share内のあちこちにあるファイルを1つのフォルダにまとめる機能で、同類のファイルを一度にすばやく見つける時に便利です。スマートフォルダを開くと検索が実行され、その結果が表示されます。画面上ではフォルダですが、リポジトリ内に物理フォルダが作られるわけではないので、"スマート"と呼ばれます。(出典:https://docs.alfresco.com/using-ja/concepts/sf-using-intro.html)」と書かれています。早速、試してみたい。
しかし、アスペクトで追加し、プロパティを編集しても、スマートフォルダは選択できませんでした。


スマートフォルダはデフォルトで設定されていなかったため、選択できませんでした。少し面倒ですが、マニュアルを調べて、アルフレスコの設定ファイルを修正する必要があります。Enabling Smart Folders(https://docs.alfresco.com/6.2/concepts/smart-video-02.html)のビデオを見ながら「\tomcat\shared\classes\alfresco-global.properties」ファイルの最後あたりの修正します。「smart.folder.enabled=false→true」にし、アルフレスコを再起動させます。その後、adminアカウントでログインし、「レポジトリ」タブをクリック、その中にスマートフォルダができているかを確認し、必要な設定を行えば、アルフレスコの利用者がスマートフォルダを使うことができるようになります。

とのことでしたが!!adminの設定が足りなかったのか、スマートフォルダが選択できなかったため、躓いてしまいました。


ということで、次回の道場は再来週の11月27日(金)19:00からです。もしご参加ご希望の方や、ご不明な点、内容にご指摘がありましたら、いつでも当道場にお声掛けください。



最近の投稿

【108】Archives in the Digital Age: The use of AI and machine learning in the Swedish archival sectorを読む

 Gijs Aangenendt氏の修士論文、Archives in the Digital Age: The use of AI and machine learning in the Swedish archival sectorを半分読みました。 前半は、AIを扱ったアーカ...

人気の投稿