Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-26-2017, 11:21 AM   #1
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
Recreating Container.xhtml

Not long ago, I started a thread to discuss my Container.xml file, which had mysteriously vanished. I fixed the problem by creating a new epub and importing all the files from the damaged epub into it.

I then found a second thread discussing the same problem @
https://www.mobileread.com/forums/sh...d.php?t=225261

My understanding is that Sigil automatically recreates the file when you open it.

Well, the same thing just happened - my file Container.xml just vanished. I closed the epub and reopened it, but it's still missing. I then shut down Sigil and reopened it. But my images still don't display, and when I validate my epub in Epub-Checker, I get the error message "ERROR RSC-001 Geobop3.0.epub File 'META-INF/container.xml' could not be found."

So is there some way to manually create this file? Actually, the first problem is finding it; it's apparently invisible.

This reminds me of another problem I've had - vanishing images. I fixed that by backing up all my images. So if the images in an ePub disappear, I just reimport them from my backup folder.

But I don't know how to recreate Container.xml. Any ideas?

Thanks.

Last edited by SigilBear; 06-26-2017 at 11:30 AM.
SigilBear is offline   Reply With Quote
Old 06-26-2017, 11:42 AM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,643
Karma: 5433388
Join Date: Nov 2009
Device: many
As we explained earlier, Sigil will not create/write an epub without a container.xml file so something very strange is happening. My guess is some software is either playing around with the epub after Sigil creates it, or some anti-virus software is interfering with Sigil creating it. Its that or you or something is directly looking at the files and manipulating them inside Sigil's temp disk space, which is a very bad idea.

For example, if you are on a Mac and leave your machine on over 24hrs (say over a weekend) and don't close Sigil, the Mac OS itself will remove files from its temp for no valid reason, that can cause this problem. That is why we allow users to set Sigil's temp directory if need be.

So next time you get an epub that Sigil has supposedly created without a container.xml check its modification date and time to see when it was last manipulated.

If you are on a Mac or Linux box, please try running the following command on that epub and paste its output here.

unzip -t PATHTOYOURPROBLEMEPUB


That will show us modification times of the contents and test the zip (epub) for errors.

Please let us know what you see.

Kevin
KevinH is offline   Reply With Quote
Advert
Old 06-26-2017, 11:45 AM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,643
Karma: 5433388
Join Date: Nov 2009
Device: many
Also, how could you tell inside Sigil that the container.xml file was missing? It is not shown in the BookBrowser since users should not be changing it in any way.
KevinH is offline   Reply With Quote
Old 06-26-2017, 11:45 AM   #4
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
Quote:
Originally Posted by KevinH View Post
For example, if you are on a Mac and leave your machine on over 24hrs (say over a weekend) and don't close Sigil, the Mac OS itself will remove files from its temp for no valid reason, that can cause this problem.
Wow, that's probably the answer right there. Weird.
SigilBear is offline   Reply With Quote
Old 06-26-2017, 11:46 AM   #5
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
Quote:
Originally Posted by KevinH View Post
Also, how could you tell inside Sigil that the container.xml file was missing? It is not shown in the BookBrowser since users should not be changing it in any way.
When I tried validating it, I got an error message saying it's missing.
SigilBear is offline   Reply With Quote
Advert
Old 06-26-2017, 11:47 AM   #6
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
One more question: If I use eCan Crusher to unzip this ePub, then create a new ePub and import the files from the old one, is there a way to make the files import in the same order? I have over a hundred text files, and it's a pain in the butt to have to reorder them.

Thanks.
SigilBear is offline   Reply With Quote
Old 06-26-2017, 11:50 AM   #7
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,643
Karma: 5433388
Join Date: Nov 2009
Device: many
Yes, it is weird. The MacOS simply cleans up its temp folder by removing files/folders that are untouched after a set time no matter if an application is open and using them.

This is a serious bug for people who do not close out and exit Sigil for very very long (over 24 to 48 hours).

If you are on a Mac and do things like that, you should create a Sigil specific temp folder (and never play around inside of it!) and use Sigil's preferences to choose it to prevent to OS "housecleaning" from messing around with things. Same is true for most spps that use temp files on a Mac.
KevinH is offline   Reply With Quote
Old 06-26-2017, 11:53 AM   #8
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,643
Karma: 5433388
Join Date: Nov 2009
Device: many
Use Sigil to create a new empty epub, unzip it and copy the META-INF folder and its contents and stick them into the broken epub in the same spot.
KevinH is offline   Reply With Quote
Old 06-26-2017, 12:01 PM   #9
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
Hmmm, that didn't work, but at least I know how to find the META-INF folder now. I'll try it again...
SigilBear is offline   Reply With Quote
Old 06-26-2017, 12:02 PM   #10
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by SigilBear View Post
Not long ago, I started a thread to discuss my Container.xml file, which had mysteriously vanished. I fixed the problem by creating a new epub and importing all the files from the damaged epub into it.

I then found a second thread discussing the same problem @
https://www.mobileread.com/forums/sh...d.php?t=225261.
And you felt the same topic deserved a third thread about it?

Last edited by DiapDealer; 06-26-2017 at 12:05 PM.
DiapDealer is offline   Reply With Quote
Old 06-26-2017, 12:04 PM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by SigilBear View Post
Hmmm, that didn't work, but at least I know how to find the META-INF folder now. I'll try it again...
Do NOT mess with META-INF files of an epub currently open in Sigil (or any of the temporary files while Sigil has the epub open, for that matter).
DiapDealer is offline   Reply With Quote
Old 06-26-2017, 12:05 PM   #12
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
Quote:
Originally Posted by DiapDealer View Post
And you felt the topic deserved a third thread about it?
As I recall, the original threads didn't explain how to recreate the file or replace it.
SigilBear is offline   Reply With Quote
Old 06-26-2017, 12:09 PM   #13
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by SigilBear View Post
As I recall, the original threads didn't explain how to recreate the file or replace it.
All threads mentioned that opening and saving an epub with Sigil will guarantee that it has a container.xml file (even if you can't see it with Sigil).
DiapDealer is offline   Reply With Quote
Old 06-26-2017, 12:14 PM   #14
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
If I have an invisible file that obviously isn't working, then there isn't much point continuing down that path, is there? I started a new thread and got some good tips that actually fixed the problem, which was the whole point of my question.

By the way, the fix KevinH suggested does indeed work. It turned out that my images had vanished again, making me think it wasn't working. But I replaced the images, and it works fine.

Just create a new ePub, open it and the original damaged ePub with eCan Crusher, then copy the META-INF folder from the new ePub over the the META-INF in the damaged ePub. Then make sure your images are still there.
SigilBear is offline   Reply With Quote
Old 06-26-2017, 12:24 PM   #15
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by SigilBear View Post
Just create a new ePub, open it and the original damaged ePub with eCan Crusher, then copy the META-INF folder from the new ePub over the the META-INF in the damaged ePub. Then make sure your images are still there.
The problem I have with this is that it's completely unnecessary if you're using and saving with Sigil. It's also completely unrelated to using Sigil. If your container.xml file is disappearing, it's something other than Sigil that's causing the problem. You're free to take up your "how to manually fix some mysteriously broken epubs" in the epub format forum if you like, but Sigil doesn't need any more threads about missing container.xml files.

Last edited by DiapDealer; 06-26-2017 at 12:26 PM.
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
container.xml problems SigilBear Sigil 4 06-11-2017 09:43 PM
Some files.html & toc.xhtml (also Cover.xhtml) chaot Workshop 23 02-13-2017 12:20 PM
Container methods, various scenarios jackie_w Development 15 11-09-2015 02:32 PM
Recreating my Library on my server takes weeks now mohataj Calibre 9 09-12-2015 11:17 PM
Recreating library on new computer? jeather Calibre 5 01-31-2013 02:22 PM


All times are GMT -4. The time now is 11:39 PM.


MobileRead.com is a privately owned, operated and funded community.