OnDemand User Group

Support Forums => Report Indexing => Topic started by: jsquizz on September 10, 2021, 10:54:03 AM

Title: Indexing PPD's - ARSPDOCI 9.5.0.10 completed code 4
Post by: jsquizz on September 10, 2021, 10:54:03 AM
We are loading a bunch of PDF files, This particular application group comes from iText. Most files load, however- Seeing intermittent failures. Among these intermittent failures, there's tons of successful loads, into other application groups as well, originating from the same 2 load-balanced servers running arsload/pdf indexer.

Code: [Select]
ARS4302I Indexing started, --UNKNOWN-- bytes to process
ARS4901I INDEXSTARTBY=1
ARS4901I RESTYPE=ALL
ARS4901I INDEXMODE=INTERNAL
ARS4901I PARMDD=/opt/app/workload/arsload/pdfFile_arsload.parm
ARS4901I INPUTDD=/opt/app/workload/arsload/pdfFile_arsload
ARS4901I OUTPUTDD=/opt/app/workload/arsload/pdfFile_arsload.out
ARS4901I INDEXDD=/opt/app/workload/arsload/pdfFile_arsload.ind
ARS4901I RESOBJDD=/opt/app/workload/arsload/pdfFile_arsload.res
ARS4922I ARSPDOCI 9.5.0.10 completed code 4

Here's an example of the loads/failures

2021-09-10 13:25:03.781009
2021-09-10 13:21:36.915310
2021-09-10 13:21:07.477156
2021-09-10 13:15:26.686449
2021-09-10 13:07:38.617789
2021-09-10 13:07:09.022827
2021-09-10 13:03:01.136332
2021-09-10 13:00:57.789100
2021-09-10 12:56:07.609028 FAILURE
2021-09-10 12:52:41.922350
2021-09-10 12:52:20.029268
2021-09-10 12:51:08.090807
2021-09-10 12:42:54.922132
2021-09-10 12:41:08.919243
2021-09-10 12:38:55.197800
2021-09-10 12:33:52.316784
2021-09-10 12:28:55.989293
2021-09-10 12:22:21.608910
2021-09-10 12:21:07.770830
2021-09-10 12:19:20.388717
2021-09-10 12:15:11.860829
2021-09-10 12:13:57.437055
2021-09-10 12:07:53.629861
2021-09-10 12:06:16.805737
2021-09-10 12:04:30.884266
2021-09-10 11:57:10.667217 FAILURE

I can't find anything on this error, but my sneaking suspicion is that this script that runs arsload, is running- before the file is finished generating, or something.

Either that, or something is up with these boxes- http://www.odusergroup.org/forums/index.php/topic,3186.0.html (http://www.odusergroup.org/forums/index.php/topic,3186.0.html)

Title: Re: Indexing PPD's - ARSPDOCI 9.5.0.10 completed code 4
Post by: Ed_Arnold on September 10, 2021, 11:36:57 AM
Quote
...originating from the same 2 load-balanced servers running arsload/pdf indexer.

Is it possible to run just one arsload server to see if that makes a difference?

Ed

Title: Re: Indexing PPD's - ARSPDOCI 9.5.0.10 completed code 4
Post by: Justin Derrick on September 13, 2021, 06:18:50 AM
Yup, sounds like a classic race condition.  Try running with one first.

Also, consider creating a 'wrapper' script for arsload, something that checks to see that the PDF file is 5 minutes old before kicking off the process.  Also, if both processes are pulling from the same directory, you'll need to figure out a way to 'lock' a specific file, so the other process doesn't start loading it while the other one is working on it.

-JD.