RSC-002
Updated:
EPUBCheck RSC-002 is a fatal error message: “Required META-INF/container.xml resource could not be found.” The archive has no META-INF/container.xml, the file that tells reading apps where the package document is.
The official message
Required META-INF/container.xml resource could not be found.
- Default severity
- Fatal error. EPUBCheck could not continue checking this part of the EPUB. The file is invalid.
- EPUBCheck version
- 5.4.0
Typical causes
- The META-INF folder was left out when the book was zipped.
- The file is named or placed differently, such as meta-inf/Container.xml.
How to fix it
- Add META-INF/container.xml with a rootfile whose full-path points to the package document, for example
<rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml"/>. - Rebuild the archive with the mimetype file first and stored uncompressed, for example from the folder that contains the book:
zip -X0 book.epub mimetypeand thenzip -rX9 book.epub META-INF OEBPS(use your own folder names).
Terms used here
Other RSC messages
RSC-001File "…" could not be found.RSC-003No rootfile tag with media type "application/oebps-package+xml" was found in the container.RSC-004File "…" is encrypted, its content will not be checked.RSC-005Error while parsing file: …RSC-006Remote resource reference is not allowed in this context; resource "…" must be located in the EPUB container.RSC-007Referenced resource "…" could not be found in the EPUB.
Message text and severity from EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explanation by EPUBLab.