Answers.Body: <p>I have a different type of Kobo (Glo HD), and no knowledge of DRM
  implementation for ePub, though I would expect that a variety of
  distinct DRM techniques can be used on ePub files.</p>
  
  <p>I would however expect that an eBook from O'Reilly does not carry DRM. So your problem should have another cause. Which you apparently confirmed by testing on different devices or application software.</p>
  
  <p>What I noticed by experimenting with my Kobo is that, when an eBook
  has been loaded and made visible to the Kobo, it may interpret reading
  problems as caused by the presence of DRM, though that may not be the
  case. And you get an error message that pretends that the book is DRM
  protected.</p>
  
  <p>Typically that can happen if some mishap destroys the file or
  moves it to another directory in the Kobo memory. That is easily done
  by accessing the memory directly, as done by tools such as Calibre,
  though this should in no way be construed as suggesting that Calibre
  makes such mistakes.</p>
  
  <p>From what I understood experimentally (so I may be wrong) The Kobo
  believes it has a DRM problem with that eBook until it does a scan of
  its memory, and refreshes its tables, which will then no longer point to a
  missing ePub file. I am not sure what is the best way to force that scan.
  The way I did it was by using the Kobo browser to download in the Kobo a DRM-free
  book (I usually go to <a href="http://gutenberg.org" rel="nofollow">http://gutenberg.org</a> for that).</p>
  
  <p>So it could be that your Kobo has some problem reading the file, for
  whatever reason, and interprets it as a DRM problem, exactly as it did
  for my missing/displaced files.</p>
  
  <p>My idea is not to give you a definite answer on what is wrong, as only
  you can do that. It is more to suggest that the Kobo may interpret as
  a DRM problem a problem unrelated to DRM.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-25T11:41:09.427Z
Answers.Text: In that case, a) checking that the file downloaded from the server correctly, b) validating that it's valid EPUB(3), and c) deleting and readding it to the Kobo should help.
Answers.UserDisplayName: Raphael
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-01T15:35:48.610Z
Answers.LastActivityDate: 2016-01-01T22:12:17.933Z
Answers.LastEditDate: 2016-01-01T22:12:17.933Z
Answers.UserDisplayName: babou
Answers.Body: <p>I ran into the same issue as outlined in <a href="https://ebooks.stackexchange.com/a/7499/20268">@user2433922's answer</a>. My Kobo Libra 2 showed an error when viewing an EPUB claiming to be about DRM when it was really due to a missing <code>content.opf</code> file in an Open eBook Publication Structure (OEBPS). Here's additional instructions on how to fix it.</p>
  <p>Before getting started, run the EPUB against <a href="https://www.w3.org/publishing/epubcheck/" rel="nofollow noreferrer">W3C's epubcheck tool</a> to see if there are any errors.</p>
  <pre><code>epubcheck spring-boot-reference.epub 
  FATAL(OPF-002): ./spring-boot-reference.epub/META-INF/container.xml(-1,-1): The OPF file &quot;https://d544286e-3ac0-4871-81d3-1f9198b71f82.epubcheck.w3c.org/content.opf&quot; was not found in the EPUB.
  
  Check finished with errors
  Messages: 1 fatal / 0 errors / 0 warnings / 0 infos
  </code></pre>
  <p>In the case of <a href="https://docs.spring.io/spring-boot/docs/2.0.0.M5/reference/epub/spring-boot-reference.epub" rel="nofollow noreferrer">the ebook mentioned in the linked answer</a>, <code>epubcheck</code> outlines a clear error regarding the <code>content.opf</code> file. Another problematic EPUB I used had no errors, despite it not loading on Kobo and a similar issue with that file.</p>
  <p>For those unfamiliar with the EPUB format, EPUBs are zip archives with a standardized file structure and metadata. The contents can be viewed by unzipping them:</p>
  <pre><code>unzip book.epub -d ./book
  </code></pre>
  <p>Check to see if there is a file located under <code>OEBPS/content.opf</code>. In the case of the above example, although there is one, the file <code>META-INF/container.xml</code> doesn't include the <code>OEBPS</code> directory in the path:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;container xmlns=&quot;urn:oasis:names:tc:opendocument:xmlns:container&quot; xmlns:svg=&quot;http://www.w3.org/2000/svg&quot; version=&quot;1.0&quot;&gt;
  &lt;rootfiles&gt;
  &lt;rootfile full-path=&quot;content.opf&quot; media-type=&quot;application/oebps-package+xml&quot;/&gt;
  &lt;/rootfiles&gt;
  &lt;/container&gt;
  </code></pre>
  <p>Which should be changed to:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;container xmlns=&quot;urn:oasis:names:tc:opendocument:xmlns:container&quot; xmlns:svg=&quot;http://www.w3.org/2000/svg&quot; version=&quot;1.0&quot;&gt;
  &lt;rootfiles&gt;
  &lt;rootfile full-path=&quot;OEBPS/content.opf&quot; media-type=&quot;application/oebps-package+xml&quot;/&gt;
  &lt;/rootfiles&gt;
  &lt;/container&gt;
  </code></pre>
  <p>In the case of another EPUB I had an issue with, <code>META-INF/container.xml</code> pointed to another file and <code>content.opf</code> did not exist. Renaming that file to <code>content.opf</code> and updating <code>META-INF/container.xml</code> as above fixed it.</p>
  <p>To create a new archive, run the following (taken from <a href="https://stackoverflow.com/a/68121421/12638282">this answer</a>):</p>
  <pre><code>cd /path/to/epub-export
  zip -0 -X ../newbook.epub mimetype
  zip -9 -X -r -u ../newbook.epub *
  </code></pre>
  <p>Then run <code>epubcheck newbook.epub</code> to confirm it can parse the EPUB. Note that sometimes there are errors that won't prevent it from opening on the Kobo.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-06-09T03:06:17.910Z
Answers.LastActivityDate: 2023-06-09T18:09:33.903Z
Answers.LastEditDate: 2023-06-09T18:09:33.903Z
Answers.UserDisplayName: user12638282
Answers.Body: <p>I had the same problem with my kobo glo HD with that epub <a href="https://docs.spring.io/spring-boot/docs/2.0.0.M5/reference/epub/spring-boot-reference.epub" rel="nofollow noreferrer">https://docs.spring.io/spring-boot/docs/2.0.0.M5/reference/epub/spring-boot-reference.epub</a> It's drm free.</p>
  
  <p>but not with that one and many other epubs :</p>
  
  <p><a href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/epub/7.4_release_notes/Red_Hat_Enterprise_Linux-7-7.4_Release_Notes-en-US.epub" rel="nofollow noreferrer">https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/epub/7.4_release_notes/Red_Hat_Enterprise_Linux-7-7.4_Release_Notes-en-US.epub</a></p>
  
  <p>I have tried to download from kobo web browser, upload from my computer many times and it was not working so I did a check on  </p>
  
  <p><a href="http://validator.idpf.org/" rel="nofollow noreferrer">http://validator.idpf.org/</a> </p>
  
  <p>and it tells me content.opf were missing. I checked it by my self and the path was incomplete in the META-INF/container.xml file. 
  So I wrote the full path to content.opf did a new check then upload the file on my kobo again and it works.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-04T17:29:19.523Z
Answers.LastActivityDate: 2017-11-04T19:14:20.430Z
Answers.LastEditDate: 2017-11-04T19:14:20.430Z
Answers.UserDisplayName: user2433922
Body: <p>I've got an ePub file that I'm quite certain has no DRM on it. It's a DRM-free book bought from O'Reilly. However, my Kobo Aura HD is refusing to use it, saying that it's Adobe DRM'ed and I have to log in.</p>
  
  <p>So, first thing I tried to confirm is that it is DRM-free. Unzipping the ePub, it has <a href="https://stackoverflow.com/questions/14442968/how-to-check-if-an-epub-file-is-drm-protected">no <code>rights.xml</code> file, no <code>encryption.xml</code> file</a>, and all the content is available through plain html files. <a href="https://github.com/IDPF/epubcheck" rel="nofollow noreferrer"><code>epubcheck</code></a> does't say anything about it having DRM. Is this sufficient to confirm that an ePub is DRM-free?</p>
  
  <p>Second, if it is indeed DRM-free as it should, then the Kobo Aura HD is incorrectly indicating that it has DRM. It is refusing the display the file even though it displays fine in every other reader I've tried, including iBooks and Calibre, neither of which I've logged into any accounts.</p>
  
  <p>Any remedies that I can use to fix this? Perhaps somehow repackage the ePub?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-25T11:39:26.263Z
Comments.Text: FWIW, I have the same device (with an outdated firmware, possibly) and have never encountered this issue (I *only* use DRM-free books). But then, I've never bought an ebook from O'Reilly. Have you tried other books of theirs? What does their support say? I'd guess it's more a problem of the file and less of the device.
Comments.UserDisplayName: Raphael
Tags: <epub><kobo><drm><adobe-digital-editions>
Title: How to confirm if ePub is DRM'ed ? Kobo Aura HD possibly refusing to read DRM-free ePub
UserDisplayName: Ana
ThreadText: # How to confirm if ePub is DRM'ed ? Kobo Aura HD possibly refusing to read DRM-free ePub
  
  (Asked by: username_0 on 2016-01-01)
  
  I've got an ePub file that I'm quite certain has no DRM on it. It's a DRM-free book bought from O'Reilly. However, my Kobo Aura HD is refusing to use it, saying that it's Adobe DRM'ed and I have to log in.
  
  So, first thing I tried to confirm is that it is DRM-free. Unzipping the ePub, it has [no `rights.xml` file, no `encryption.xml` file](https://stackoverflow.com/questions/14442968/how-to-check-if-an-epub-file-is-drm-protected), and all the content is available through plain html files. [`epubcheck`](https://github.com/IDPF/epubcheck) does't say anything about it having DRM. Is this sufficient to confirm that an ePub is DRM-free?
  
  Second, if it is indeed DRM-free as it should, then the Kobo Aura HD is incorrectly indicating that it has DRM. It is refusing the display the file even though it displays fine in every other reader I've tried, including iBooks and Calibre, neither of which I've logged into any accounts.
  
  Any remedies that I can use to fix this? Perhaps somehow repackage the ePub?
  
  **Tags:** epub, kobo, drm, adobe-digital-editions
  
  > **Comments:**
  > **username_1**: FWIW, I have the same device (with an outdated firmware, possibly) and have never encountered this issue (I *only* use DRM-free books). But then, I've never bought an ebook from O'Reilly. Have you tried other books of theirs? What does their support say? I'd guess it's more a problem of the file and less of the device.  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2016-01-01. Score: 2
  
  I have a different type of Kobo (Glo HD), and no knowledge of DRM
  implementation for ePub, though I would expect that a variety of
  distinct DRM techniques can be used on ePub files.
  
  I would however expect that an eBook from O'Reilly does not carry DRM. So your problem should have another cause. Which you apparently confirmed by testing on different devices or application software.
  
  What I noticed by experimenting with my Kobo is that, when an eBook
  has been loaded and made visible to the Kobo, it may interpret reading
  problems as caused by the presence of DRM, though that may not be the
  case. And you get an error message that pretends that the book is DRM
  protected.
  
  Typically that can happen if some mishap destroys the file or
  moves it to another directory in the Kobo memory. That is easily done
  by accessing the memory directly, as done by tools such as Calibre,
  though this should in no way be construed as suggesting that Calibre
  makes such mistakes.
  
  From what I understood experimentally (so I may be wrong) The Kobo
  believes it has a DRM problem with that eBook until it does a scan of
  its memory, and refreshes its tables, which will then no longer point to a
  missing ePub file. I am not sure what is the best way to force that scan.
  The way I did it was by using the Kobo browser to download in the Kobo a DRM-free
  book (I usually go to <http://gutenberg.org> for that).
  
  So it could be that your Kobo has some problem reading the file, for
  whatever reason, and interprets it as a DRM problem, exactly as it did
  for my missing/displaced files.
  
  My idea is not to give you a definite answer on what is wrong, as only
  you can do that. It is more to suggest that the Kobo may interpret as
  a DRM problem a problem unrelated to DRM.
  
  > **Comments:**
  > **username_1**: In that case, a) checking that the file downloaded from the server correctly, b) validating that it's valid EPUB(3), and c) deleting and readding it to the Kobo should help.  
  
  ---
  
  ### Answer by username_3 on 2023-06-09. Score: 1
  
  I ran into the same issue as outlined in @username_4's answer. My Kobo Libra 2 showed an error when viewing an EPUB claiming to be about DRM when it was really due to a missing content.opf file in an Open eBook Publication Structure (OEBPS). Here's additional instructions on how to fix it.
  Before getting started, run the EPUB against W3C's epubcheck tool to see if there are any errors.
  epubcheck spring-boot-reference.epub 
  FATAL(OPF-002): ./spring-boot-reference.epub/META-INF/container.xml(-1,-1): The OPF file "https://d544286e-3ac0-4871-81d3-1f9198b71f82.epubcheck.w3c.org/content.opf" was not found in the EPUB.
  
  Check finished with errors
  Messages: 1 fatal / 0 errors / 0 warnings / 0 infos
  
  In the case of the ebook mentioned in the linked answer, epubcheck outlines a clear error regarding the content.opf file. Another problematic EPUB I used had no errors, despite it not loading on Kobo and a similar issue with that file.
  For those unfamiliar with the EPUB format, EPUBs are zip archives with a standardized file structure and metadata. The contents can be viewed by unzipping them:
  unzip book.epub -d ./book
  
  Check to see if there is a file located under OEBPS/content.opf. In the case of the above example, although there is one, the file META-INF/container.xml doesn't include the OEBPS directory in the path:
  
  
  
  
  
  
  Which should be changed to:
  
  
  
  
  
  
  In the case of another EPUB I had an issue with, META-INF/container.xml pointed to another file and content.opf did not exist. Renaming that file to content.opf and updating META-INF/container.xml as above fixed it.
  To create a new archive, run the following (taken from this answer):
  cd /path/to/epub-export
  zip -0 -X ../newbook.epub mimetype
  zip -9 -X -r -u ../newbook.epub *
  
  Then run epubcheck newbook.epub to confirm it can parse the EPUB. Note that sometimes there are errors that won't prevent it from opening on the Kobo.
  
  
  ---
  
  ### Answer by username_4 on 2017-11-04. Score: 0
  
  I had the same problem with my kobo glo HD with that epub <https://docs.spring.io/spring-boot/docs/2.0.0.M5/reference/epub/spring-boot-reference.epub> It's drm free.
  
  but not with that one and many other epubs :
  
  <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/epub/7.4_release_notes/Red_Hat_Enterprise_Linux-7-7.4_Release_Notes-en-US.epub>
  
  I have tried to download from kobo web browser, upload from my computer many times and it was not working so I did a check on
  
  <http://validator.idpf.org/>
  
  and it tells me content.opf were missing. I checked it by my self and the path was incomplete in the META-INF/container.xml file.
  So I wrote the full path to content.opf did a new check then upload the file on my kobo again and it works.
  
  
  ---
  
  