InputStream must have > 0 bytes

Hi Im getting following error when my elastic search reindexing content. Any idea why Im getting this error and how can I configure elasticsearch to ignore this error?

2021-06-08 08:00:10.592 ERROR 38 --- [deployment-3] stractBinaryFileWithMetadataBatchIndexer : Error when trying to send index update with metadata for binary file mysite:download.png
org.craftercms.search.exception.SearchException: [mysite-authoring] Error indexing binary document download.png
at org.craftercms.search.elasticsearch.batch.ElasticsearchIndexingUtils.doUpdateBinary(ElasticsearchIndexingUtils.java:84)
at org.craftercms.search.elasticsearch.batch.ElasticsearchBinaryFileWithMetadataBatchIndexer.doUpdateContent(ElasticsearchBinaryFileWithMetadataBatchIndexer.java:104)
at org.craftercms.search.batch.impl.AbstractBinaryFileWithMetadataBatchIndexer.updateBinaryWithMetadata(AbstractBinaryFileWithMetadataBatchIndexer.java:378)
at org.craftercms.search.batch.impl.AbstractBinaryFileWithMetadataBatchIndexer.doUpdates(AbstractBinaryFileWithMetadataBatchIndexer.java:203)
at org.craftercms.search.batch.impl.AbstractBinaryFileWithMetadataBatchIndexer.updateIndex(AbstractBinaryFileWithMetadataBatchIndexer.java:161)
at org.craftercms.deployer.impl.processors.AbstractSearchIndexingProcessor.doMainProcess(AbstractSearchIndexingProcessor.java:293)
at org.craftercms.deployer.impl.processors.AbstractMainDeploymentProcessor.doExecute(AbstractMainDeploymentProcessor.java:57)
at org.craftercms.deployer.impl.processors.AbstractDeploymentProcessor.execute(AbstractDeploymentProcessor.java:148)
at org.craftercms.deployer.impl.processors.AbstractSearchIndexingProcessor.execute(AbstractSearchIndexingProcessor.java:205)
at org.craftercms.deployer.impl.DeploymentPipelineImpl.executeProcessors(DeploymentPipelineImpl.java:81)
at org.craftercms.deployer.impl.DeploymentPipelineImpl.execute(DeploymentPipelineImpl.java:67)
at org.craftercms.deployer.impl.TargetImpl$DeploymentTask.run(TargetImpl.java:411)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.craftercms.search.elasticsearch.exception.ElasticsearchException: [mysite-authoring] Error indexing binary document download.png
at org.craftercms.search.elasticsearch.impl.ElasticsearchServiceImpl.indexBinary(ElasticsearchServiceImpl.java:243)
at org.craftercms.search.elasticsearch.batch.ElasticsearchIndexingUtils.doUpdateBinary(ElasticsearchIndexingUtils.java:80)
... 16 more
Caused by: org.craftercms.search.exception.SearchException: Error parsing file
at org.craftercms.search.elasticsearch.impl.tika.TikaDocumentParser.parseToXml(TikaDocumentParser.java:107)
at org.craftercms.search.elasticsearch.impl.ElasticsearchServiceImpl.indexBinary(ElasticsearchServiceImpl.java:240)
... 17 more
Caused by: org.apache.tika.exception.ZeroByteFileException: InputStream must have > 0 bytes
at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:122)
at org.apache.tika.Tika.parseToString(Tika.java:568)
at org.craftercms.search.elasticsearch.impl.tika.TikaDocumentParser.parseToXml(TikaDocumentParser.java:103)
... 18 more
2021-06-08 08:00:10.650 ERROR 38 --- [deployment-3]

Thanks in advance.

Regards,
Shamran

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.