Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-904

Error: "Failed to obtain content from BlobStore" when pulling change from remote

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Minor
    • 2.8.0
    • 2.7.0
    • Java-Android
    • Security Level: Public
    • None
    • Blake 27
    • 5

    Description

      I have been experiencing an intermittent issue with Blobs in the past few days. We have recently upgraded to Couchbase 2.6.2 in one of our Android products from Couchbase 1.4, and occasionally when a new document with a Blob (Attachment) is added to the database, the following exception is thrown by Couchbase.

      E/CouchbaseLite/DATABASE: Failed to obtain content from BlobStore. digest=sha1-okx6R09eHAUoJT8krhJvNWT8Kkc=: LiteCoreException{domain=1, code=7, msg=No such file or directory}
      E/PageView$PageThread: Exception drawing overlay
          java.lang.IllegalStateException: Failed to obtain content from BlobStore. digest=sha1-okx6R09eHAUoJT8krhJvNWT8Kkc=
              at com.couchbase.lite.Blob.getBytesFromDatabase(Blob.java:588)
              at com.couchbase.lite.Blob.getContent(Blob.java:300)
              at com.[redacted].Attachment.getContent(Attachment.java:44)
              at com.[redacted].ImageRenderer.draw(ImageRenderer.java:45)
              at com.[redacted].BackgroundRenderer.draw(BackgroundRenderer.java:50)
              at com.[redacted].ui.widget.overlay.BackgroundOverlay.draw(BackgroundOverlay.java:75)
              at com.[redacted].ui.widget.PageView$PageThread.run(PageView.java:492)
           Caused by: LiteCoreException{domain=1, code=7, msg=No such file or directory}
              at com.couchbase.lite.internal.core.C4BlobStore.getContents(Native Method)
              at com.couchbase.lite.internal.core.C4BlobStore.getContents(C4BlobStore.java:102)
              at com.couchbase.lite.Blob.getBytesFromDatabase(Blob.java:572)
              at com.couchbase.lite.Blob.getContent(Blob.java:300) 
              at com.[redacted].Attachment.getContent(Attachment.java:44) 
              at com.[redacted].ImageRenderer.draw(ImageRenderer.java:45) 
              at com.[redacted].BackgroundRenderer.draw(BackgroundRenderer.java:50) 
              at [redacted].widget.overlay.BackgroundOverlay.draw(BackgroundOverlay.java:75) 
              at com.[redacted].ui.widget.PageView$PageThread.run(PageView.java:492)
      

      Original issue: https://github.com/couchbase/couchbase-lite-java-ce-root/issues/5

      Attachments

        Activity

          People

            blake.meike Blake Meike
            blake.meike Blake Meike
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty