Question

Problem installing OCR Component

I installed the Pega Component in a 8.1 Pega Platform environment according to https://community.pega.com/knowledgebase/articles/installing-pega-ocr-component
I also installed ABBYY FineReader on the same Pega Platform instance as described in the install guide.
When I'm sending a test Email, the attachment is not analyzed, though.

In the log file I see that libFRengine.Jni.so is not loaded correctly. Any ideas how to troubleshoot this?

2019-05-06 08:32:23,153 [     EMAIL-Thread-12] [  STANDARD] [                    ] [      PegaCSSample:8] (or.Data_AbbyyFineReader.Action) INFO  EMAIL.SmartEmailSample.Listener|from(saraconnor54@pegatsdemo.com)|sub(new 3)|Email|EmailRoutingForPegaCSSample|Work-Channel-Triage-Email|EMAIL3c1726008fdc499d9382df7effdbee7c|ACVBIB63YIU7PKWP4M9DZLNPF0NJAXTLZA  - java.lang.UnsatisfiedLinkError: Can't load library: /opt/ABBYY/FREngine12/Bin/libFREngine.Jni.so 
Correct Answer
May 20, 2019 - 4:11am

The problem was that I installed the engine in /root/ and thus ran into some accessing issues. When installing to /opt/, it worked.

Comments

Keep up to date on this post and subscribe to comments

Pega
May 20, 2019 - 4:11am

The problem was that I installed the engine in /root/ and thus ran into some accessing issues. When installing to /opt/, it worked.

Mod
May 20, 2019 - 10:23am
Response to tilman_1

Thanks for the update. We have marked this post as Answered.

Lochana | Community Moderator | Pegasystems Inc.

July 2, 2019 - 1:10pm
Response to tilman_1

Hi ,

We have also tried installing the Abby engine for 8.1 in linux under /root/opt/ . Inside pega we have updated the data transform "configureAbbyyFREngine" to refer to the path as in the screen shot attached . we are also getting the error :

java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: Can't load library: /opt/ABBYY/FREngine12/Bin/libFREngine.Jni.so 

at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_212] 

at java.util.concurrent.FutureTask.get(FutureTask.java:206) ~[?:1.8.0_212] 

at com.pega.platform.abbyy.AbbyyEngineAccessor.runJob(AbbyyEngineAccessor.java:118) ~[pega.ocr.component.jar:?] 

at com.pegarules.generated.activity.ra_action_abbyytextextractor_bd6640a1e7fcff2a6fa07af17805746e.step2_circum0(ra_action_abbyytextextractor_bd6640a1e7fcff2a6fa07af17805746e.java:335) ~[?:?] 

at com.pegarules.generated.activity.ra_action_abbyytextextractor_bd6640a1e7fcff2a6fa07af17805746e.perform(ra_action_abbyytextextractor_bd6640a1e7fcff2a6fa07af17805746e.java:88) ~[?:?] 

at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3556) ~[prprivate.jar:?] 

at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10878) ~[prprivate.jar:?] 

at com.pegarules.generated.activity.ra_action_pyocrtextextractor_0b6490e0e915697076ddd611671c706e.step2_circum0(ra_action_pyocrtextextractor_0b6490e0e915697076ddd611671c706e.java:242) ~[?:?] 

at com.pegarules.generated.activity.ra_action_pyocrtextextractor_0b6490e0e915697076ddd611671c706e.perform(ra_action_pyocrtextextractor_0b6490e0e915697076ddd611671c706e.java:90) ~[?:?] 

at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3556) ~[prprivate.jar:?] 

at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10878) ~[prprivate.jar:?] 

at com.pegarules.generated.activity.sh_action_poc_ocrextraction_492a2c9573a936f4e5b909c749189e96.step6_circum0(sh_action_poc_ocrextraction_492a2c9573a936f4e5b909c749189e96.java:329) ~[?:?] 

at com.pegarules.generated.activity.sh_action_poc_ocrextraction_492a2c9573a936f4e5b909c749189e96.perform(sh_action_poc_ocrextraction_492a2c9573a936f4e5b909c749189e96.java:111) ~[?:?] 

at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3556) ~[prprivate.jar:?] 

at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:3286) ~[prprivate.jar:?] 

at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.step2_circum0(ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.java:274) ~[?:?] 

at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.perform(ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.java:88) ~[?:?] 

at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3556) ~[prprivate.jar:?] 

at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10878) ~[prprivate.jar:?] .

 

 

Could you please suggest what could be the issue . /opt is under the root folder . we have given read- write access to all the folders within "/opt/" but we havent given read write access to the opt folder . can that be the issue ?. Can you please suggest as you have already worked on this .

Also should we grant access to  the  /var folder too  which is used  for abbydatafolder?          "/var/lib/ABBYY/SDK/12/FineReader Engine"

 

 

 

Pega
July 3, 2019 - 4:41am
Response to SindhuG1

I'm not a Linux expert, but when I installed directly into /opt folder, it worked for me. I did not even have to set read/write access, so my suggestion would be that you also try to install it into /opt and not into /root/opt/.

July 3, 2019 - 5:33am
Response to tilman_1

HI Thanks for your response .

We have also installed it in /opt  and not inside the root folder . Sorry for the confusion earlier . I meant inside the main root folder .Please see the image attached for where the abby is installed under /opt and not inside the root folder . This is still not working for us . Any idea  on the owner to whom the access should be granted ?