How to fix error InputStream for blobId not found?

at_mahajan23

24-08-2020

Hi 

 

I am using AEM 6.4 , and it is observed that we have getting frequently below error 

Error occurred while obtaining InputStream for blobId {.....}.

How can I fix this error and if i did not found blob id  related files , then how can i remove this reference from repository.

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Jörg_Hoh

Employee

24-08-2020

If you get these types of errors, you have an inconsistency between the datastore and the segmentNodeStore. That's unfortunate and it shouldn't happen at all. Is this a shared file datastore?

I recommed to contact Adobe support, let them know about this issue and ask if they can assist with performing a consistency check.

Answers (4)

Answers (4)

Vish_dhaliwal

Employee

24-08-2020

Hello,

 

You can start with datastore consistency check [1] and then recover the missing files or cleanup references using steps mentioned in helpx doc [2]

Use oak-run export option [3] to create a json file "nodestates.json" in the output dir containing nodes content in json format. Then, you can search BlobIDs in the generated json.

Example command: java -jar oak-run-x.x.x.jar export -p /  --fds-path=crx-quickstart/repository/datastore  crx-quickstart/repository/segmentstore  -b=true

 

[1] https://helpx.adobe.com/ca/experience-manager/kb/How-to-run-a-datastore-consistency-check-via-oak-ru...

[2] https://helpx.adobe.com/ca/experience-manager/kb/oak-blobstore-inconsistency-blobId.html

[3] https://github.com/apache/jackrabbit-oak/tree/trunk/oak-run

Regards,

Vishu

 

vanegi

Employee

25-08-2020

Hi @at_mahajan23,

If you see an error the one below this in the AEM logs then it is likely you are experiencing a bug with Datastore GC cleaning up files that are in use.  If you are using a FileDataStore then see this article for details on how to repair the corruption.

 

10.09.2015 10:38:04.220 *ERROR* [pool-9-thread-3] org.apache.sling.commons.scheduler.impl.QuartzScheduler Exception during job execution of org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate@7fe7e8fa : Error occurred while obtaining InputStream for blobId [add1dd8fc5093b27b1fae1b753cb48b24ef3231f#101983]
java.lang.RuntimeException: Error occurred while obtaining InputStream for blobId [add1dd8fc5093b27b1fae1b753cb48b24ef3231f#101983]

 

https://helpx.adobe.com/experience-manager/kb/oak-blobstore-inconsistency-blobId.html

 

Thanks!!

SundeepKatepally

24-08-2020

No matter whatever you do , very difficult to get rid of this issue. If its lower environment or local instance create a fresh instance and reinstall the content and code. If its production you can follow the process to recover.

 

I am suggesting to recreate the instance for Lower and local environment - Because it will save lot of time.