sepinf-inc / IPED

IPED Digital Forensic Tool. It is an open source software that can be used to process and analyze digital evidence, often seized at crime scenes by law enforcement or in a corporate investigation by private examiners.
Other
943 stars 218 forks source link

Error on Linux Mint during build, during test pass: OCRParserTest Tika tesseract returned error code 1 #1690

Closed NightShadow777 closed 1 year ago

NightShadow777 commented 1 year ago

I am building an iped on Linux Mint 21 (Liberica jdk 11.0.19 full, maven 3.9.2), the following error occurred while running the test run test:

[INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.655 s - in iped.parsers.misc.PDFTextParserTest [INFO] Running iped.parsers.misc.XMLParserTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in iped.parsers.misc.XMLParserTest [INFO] Running iped.parsers.ocr.OCRParserTest Detected tesseract version 5.3.1-3-g9422

[ERROR] Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 3.413 s <<< FAILURE! - in iped.parsers.ocr.OCRParserTest [ERROR] iped.parsers.ocr.OCRParserTest.testOCRParserTIFF Time elapsed: 1.024 s <<< ERROR! org.apache.tika.exception.TikaException: tesseract returned error code 1 at iped.parsers.ocr.OCRParser.parse(OCRParser.java:637) at iped.parsers.ocr.OCRParser.parseNonStandard(OCRParser.java:565) at iped.parsers.ocr.OCRParser.parse(OCRParser.java:414) at iped.parsers.ocr.OCRParserTest.testOCRParserTIFF(OCRParserTest.java:168) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)

[ERROR] iped.parsers.ocr.OCRParserTest.testOCRParserPDF Time elapsed: 0.156 s <<< ERROR! org.apache.tika.exception.TikaException: tesseract returned error code 1 at iped.parsers.ocr.OCRParser.parse(OCRParser.java:637) at iped.parsers.ocr.OCRParser.parsePDF(OCRParser.java:587) at iped.parsers.ocr.OCRParser.parse(OCRParser.java:396) at iped.parsers.ocr.OCRParserTest.assertPDFParsing(OCRParserTest.java:121) at iped.parsers.ocr.OCRParserTest.testOCRParserPDF(OCRParserTest.java:140) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)

[ERROR] iped.parsers.ocr.OCRParserTest.testOCRParserPNG Time elapsed: 0.097 s <<< ERROR! org.apache.tika.exception.TikaException: tesseract returned error code 1 at iped.parsers.ocr.OCRParser.parse(OCRParser.java:637) at iped.parsers.ocr.OCRParser.parseNonStandard(OCRParser.java:565) at iped.parsers.ocr.OCRParser.parse(OCRParser.java:414) at iped.parsers.ocr.OCRParserTest.testOCRParserPNG(OCRParserTest.java:89) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)

[ERROR] iped.parsers.ocr.OCRParserTest.testOCRParserPSD Time elapsed: 1.587 s <<< ERROR! org.apache.tika.exception.TikaException: tesseract returned error code 1 at iped.parsers.ocr.OCRParser.parse(OCRParser.java:637) at iped.parsers.ocr.OCRParser.parseNonStandard(OCRParser.java:565) at iped.parsers.ocr.OCRParser.parse(OCRParser.java:400) at iped.parsers.ocr.OCRParserTest.testOCRParserPSD(OCRParserTest.java:216) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)

[ERROR] iped.parsers.ocr.OCRParserTest.testOCRParserSVG Time elapsed: 0.535 s <<< ERROR! org.apache.tika.exception.TikaException: tesseract returned error code 1 at iped.parsers.ocr.OCRParser.parse(OCRParser.java:637) at iped.parsers.ocr.OCRParser.parseNonStandard(OCRParser.java:565) at iped.parsers.ocr.OCRParser.parse(OCRParser.java:400) at iped.parsers.ocr.OCRParserTest.testOCRParserSVG(OCRParserTest.java:249) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)

[INFO] Running iped.parsers.python.PythonParserTest 13:29:30.592 [main] ERROR iped.parsers.python.PythonParser - JEP not found, all python modules were disabled. See https://github.com/sepinf-inc/IPED/wiki/User-Manual#python-modules java.lang.UnsatisfiedLinkError: no jep in java.library.path: [/usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib] at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2673) at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830) at java.base/java.lang.System.loadLibrary(System.java:1873) at jep.MainInterpreter.initialize(MainInterpreter.java:129) at jep.MainInterpreter.getMainInterpreter(MainInterpreter.java:101) at jep.Jep.(Jep.java:133) at jep.SharedInterpreter.(SharedInterpreter.java:56) at iped.parsers.python.PythonParser.getNewJep(PythonParser.java:176) at iped.parsers.python.PythonParser.getJep(PythonParser.java:165) at iped.parsers.python.PythonParser.(PythonParser.java:107) at iped.parsers.python.PythonParserTest.testPythonParserExample(PythonParserTest.java:54) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495) [WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.269 s - in iped.parsers.python.PythonParserTest [INFO] Running iped.parsers.registry.RegistryParserTest Warning: Nashorn engine is planned to be removed from a future JDK release false[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.261 s - in iped.parsers.registry.RegistryParserTest [INFO] Running iped.parsers.registry.RegRipperParserTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.467 s - in iped.parsers.registry.RegRipperParserTest [INFO] Running iped.parsers.security.CertificateParserTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in iped.parsers.security.CertificateParserTest [INFO] Running iped.parsers.security.CryptoAPIBlobParserTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in iped.parsers.security.CryptoAPIBlobParserTest [INFO] Running iped.parsers.security.KeyStoreParserTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.174 s - in iped.parsers.security.KeyStoreParserTest [INFO] Running iped.parsers.shareaza.ShareazaLibraryDatParserTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 s - in iped.parsers.shareaza.ShareazaLibraryDatParserTest [INFO] Running iped.parsers.shareaza.ShareazaSearchesDatParserTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 s - in iped.parsers.shareaza.ShareazaSearchesDatParserTest [INFO] Running iped.parsers.skype.SkypeParserTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.157 s - in iped.parsers.skype.SkypeParserTest [INFO] Running iped.parsers.sqlite.detector.SQLiteContainerDetectorTest [INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.028 s - in iped.parsers.sqlite.detector.SQLiteContainerDetectorTest [INFO] Running iped.parsers.sqlite.SQLite3ParserTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.328 s - in iped.parsers.sqlite.SQLite3ParserTest [INFO] Running iped.parsers.standard.RawStringParserTest [INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in iped.parsers.standard.RawStringParserTest [INFO] Running iped.parsers.standard.StandardParserTest [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.746 s - in iped.parsers.standard.StandardParserTest [INFO] Running iped.parsers.telegram.TelegramParserTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.979 s - in iped.parsers.telegram.TelegramParserTest [INFO] Running iped.parsers.usnjrnl.UsnJrnlParserTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.398 s - in iped.parsers.usnjrnl.UsnJrnlParserTest [INFO] Running iped.parsers.vcard.VCardParserTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.609 s - in iped.parsers.vcard.VCardParserTest [INFO] Running iped.parsers.video.EmptyVideoParserTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 s - in iped.parsers.video.EmptyVideoParserTest [INFO] Running iped.parsers.video.FLVParserWrapperTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.064 s - in iped.parsers.video.FLVParserWrapperTest [INFO] Running iped.parsers.whatsapp.WhatsAppParserTest 13:29:44.063 [main] ERROR iped.parsers.whatsapp.WhatsAppParser - SHA-256 is disabled. WhatsAppParser needs it to link attachments to chats! [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.273 s - in iped.parsers.whatsapp.WhatsAppParserTest [INFO] Running iped.parsers.winx.WinXTimelineParserTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.208 s - in iped.parsers.winx.WinXTimelineParserTest [INFO] [INFO] Results: [INFO] [ERROR] Errors: [ERROR] OCRParserTest.testOCRParserPDF:140->assertPDFParsing:121 » Tika tesseract returned error code 1 [ERROR] OCRParserTest.testOCRParserPNG:89 » Tika tesseract returned error code 1 [ERROR] OCRParserTest.testOCRParserPSD:216 » Tika tesseract returned error code 1 [ERROR] OCRParserTest.testOCRParserSVG:249 » Tika tesseract returned error code 1 [ERROR] OCRParserTest.testOCRParserTIFF:168 » Tika tesseract returned error code 1 [INFO] [ERROR] Tests run: 180, Failures: 0, Errors: 5, Skipped: 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] iped-parent 4.2-snapshot ........................... SUCCESS [ 0.178 s] [INFO] iped-api 4.2-snapshot .............................. SUCCESS [ 1.712 s] [INFO] iped-utils 4.2-snapshot ............................ SUCCESS [ 13.731 s] [INFO] iped-parsers 4.2-snapshot .......................... SUCCESS [ 0.007 s] [INFO] java-dbf 1.0-patched ............................... SUCCESS [ 0.185 s] [INFO] iped-parsers-impl 4.2-snapshot ..................... FAILURE [ 58.272 s] [INFO] iped-viewers 4.2-snapshot .......................... SKIPPED [INFO] iped-viewers-api 4.2-snapshot ...................... SKIPPED [INFO] iped-viewers-impl 4.2-snapshot ..................... SKIPPED [INFO] iped-carvers 4.2-snapshot .......................... SKIPPED [INFO] iped-ahocorasick 1.1 ............................... SKIPPED [INFO] iped-carvers-api 4.2-snapshot ...................... SKIPPED [INFO] iped-carvers-impl 4.2-snapshot ..................... SKIPPED [INFO] iped-engine 4.2-snapshot ........................... SKIPPED [INFO] iped-geo 4.2-snapshot .............................. SKIPPED [INFO] iped-app 4.2-snapshot .............................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:14 min [INFO] Finished at: 2023-05-19T13:29:47+03:00 [INFO] ------------------------------------------------------------------------ [WARNING] [WARNING] Plugin validation issues were detected in 4 plugin(s) [WARNING] [WARNING] org.apache.maven.plugins:maven-compiler-plugin:3.10.1 [WARNING] org.jacoco:jacoco-maven-plugin:0.8.8 [WARNING] org.apache.maven.plugins:maven-resources-plugin:3.3.0 [WARNING] org.apache.maven.plugins:maven-source-plugin:2.4 [WARNING] [WARNING] For more or less details, use 'maven.plugin.validation' property with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE] [WARNING] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0:test (default-test) on project iped-parsers-impl: [ERROR] [ERROR] Please refer to /media/m13/Work/IPED_LINUX/IPED/iped-parsers/iped-parsers-impl/target/surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0:test (default-test) on project iped-parsers-impl:

Please refer to /media/m13/Work/IPED_LINUX/IPED/iped-parsers/iped-parsers-impl/target/surefire-reports for the individual test results. Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:347) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:330) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348) Caused by: org.apache.maven.plugin.MojoFailureException:

Please refer to /media/m13/Work/IPED_LINUX/IPED/iped-parsers/iped-parsers-impl/target/surefire-reports for the individual test results. Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. at org.apache.maven.plugin.surefire.SurefireHelper.throwException (SurefireHelper.java:247) at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution (SurefireHelper.java:159) at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary (SurefirePlugin.java:542) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked (AbstractSurefireMojo.java:1067) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute (AbstractSurefireMojo.java:871) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:342) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:330) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348) [ERROR] [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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :iped-parsers-impl

NightShadow777 commented 1 year ago

I Added debug log in attachments debug.log

wladimirleite commented 1 year ago

Hi @NightShadow777! What is the output of running "tesseract --version" and "tesseract --list-langs" in your system?

NightShadow777 commented 1 year ago

tesseract --version: 5.3.1-3-g9422 tesseract --list-langs: List of available languages in "/usr/share/tesseract-ocr/5/tessdata/" (3): eng rus ukr

I forgot to add language files. Added launched the assembly, but now this error:

ERROR] Failures: [ERROR] OCRParserTest.testOCRParserPSD:219 [ERROR] OCRParserTest.testOCRParserTIFF:177 [ERROR] Errors: [ERROR] OCRParserTest.testOCRParserPDF:140->assertPDFParsing:121 » Tika tesseract returned error code 1 [ERROR] OCRParserTest.testOCRParserPNG:89 » Tika tesseract returned error code 1 [INFO] [ERROR] Tests run: 180, Failures: 2, Errors: 2, Skipped: 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] iped-parent 4.2-snapshot ........................... SUCCESS [ 0.179 s] [INFO] iped-api 4.2-snapshot .............................. SUCCESS [ 1.832 s] [INFO] iped-utils 4.2-snapshot ............................ SUCCESS [ 14.634 s] [INFO] iped-parsers 4.2-snapshot .......................... SUCCESS [ 0.007 s] [INFO] java-dbf 1.0-patched ............................... SUCCESS [ 0.205 s] [INFO] iped-parsers-impl 4.2-snapshot ..................... FAILURE [01:03 min] [INFO] iped-viewers 4.2-snapshot .......................... SKIPPED [INFO] iped-viewers-api 4.2-snapshot ...................... SKIPPED [INFO] iped-viewers-impl 4.2-snapshot ..................... SKIPPED [INFO] iped-carvers 4.2-snapshot .......................... SKIPPED [INFO] iped-ahocorasick 1.1 ............................... SKIPPED [INFO] iped-carvers-api 4.2-snapshot ...................... SKIPPED [INFO] iped-carvers-impl 4.2-snapshot ..................... SKIPPED [INFO] iped-engine 4.2-snapshot ........................... SKIPPED [INFO] iped-geo 4.2-snapshot .............................. SKIPPED [INFO] iped-app 4.2-snapshot .............................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:20 min [INFO] Finished at: 2023-05-19T14:46:56+03:00 [INFO] ------------------------------------------------------------------------ [WARNING] [WARNING] Plugin validation issues were detected in 4 plugin(s) [WARNING] [WARNING] org.apache.maven.plugins:maven-compiler-plugin:3.10.1 [WARNING] org.jacoco:jacoco-maven-plugin:0.8.8 [WARNING] org.apache.maven.plugins:maven-resources-plugin:3.3.0 [WARNING] org.apache.maven.plugins:maven-source-plugin:2.4 [WARNING] [WARNING] For more or less details, use 'maven.plugin.validation' property with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE] [WARNING] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0:test (default-test) on project iped-parsers-impl: There are test failures. [ERROR] [ERROR] Please refer to /media/m13/Work/IPED_LINUX/IPED/iped-parsers/iped-parsers-impl/target/surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0:test (default-test) on project iped-parsers-impl: There are test failures.

Please refer to /media/m13/Work/IPED_LINUX/IPED/iped-parsers/iped-parsers-impl/target/surefire-reports for the individual test results. Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.

NightShadow777 commented 1 year ago

etected tesseract version 5.3.1-3-g9422 THE ENGLISH RENAISSANCE OF ART

Literature must rest always on a principle, and temporal considerations are no principle at all. For to the poet all times and places are one; the stuff he deals with is eternal and eternally the same: no theme is inept, no past or pres— ent preferable. The steam whistle will not affright him nor the flutes of Arcadia weary him; for him there is but one time, the artistic moment; but one law, the law of form; but one land, the land of Beauty—a land removed indeed from the real world and yet more sensuous because more enduring; calm, yet with that calm which dwells in the faces of the Greek statues, the calm which comes not from the rejection but from the absorption of passion, the calm which despair and sorrow cannot disturb but intensify only. And so it comes that he who seems to stand most remote from his age is he who mirrors it best, because he has stripped life of what is accidental and transitory, stripped

it of that "mist of familiarity which makes life obscure to us".

extract from THE ENGLISH RENAISSANCE OF ArRT, by Oscar Wilde

first delivered as a lecture at Chickering Hall, New York, January 9, 1882.The Quick Brown Fox Jumps Over The Lazy Dog.

abcdefghijklmnopgqrstuvwxy2 01234567890 01234567890

Parsing non—standard file format SAMPLE TEXT

Centered Text

sample .psd file [ERROR] Tests run: 5, Failures: 2, Errors: 2, Skipped: 0, Time elapsed: 7.776 s <<< FAILURE! - in iped.parsers.ocr.OCRParserTest

NightShadow777 commented 1 year ago

Added other languages: deu ita osd por spa

All earned, it is possible to close. Thanks.