Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 02-27-2021, 03:35 AM   #1
richstant
Member
richstant began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Oct 2013
Device: Kindle
[Kobo] Bad magic number for central directory

Hi, I've just bought a new Kobo H2O, and am transferring all my books at once. However when I try this, it fails out with the following error log:

calibre, version 5.10.1
ERROR: Error: Error communicating with device

Error -3 while decompressing data: invalid stored block lengths

Traceback (most recent call last):
File "calibre\ebooks\oeb\polish\container.py", line 1183, in __init__
File "calibre\utils\zipfile.py", line 775, in __init__
File "calibre\utils\zipfile.py", line 810, in _GetContents
File "calibre\utils\zipfile.py", line 850, in _RealGetContents
calibre.utils.zipfile.BadZipfile: Bad magic number for central directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\gui2\device.py", line 89, in run
File "calibre\gui2\device.py", line 592, in _upload_books
File "calibre_plugins.kobotouch_extended.device.driver" , line 406, in upload_books
File "calibre\devices\kobo\driver.py", line 2129, in upload_books
File "calibre_plugins.kobotouch_extended.device.driver" , line 217, in _modify_epub
File "calibre_plugins.kobotouch_extended.container" , line 129, in __init__
File "calibre\ebooks\oeb\polish\container.py", line 1190, in __init__
File "calibre\utils\localunzip.py", line 253, in extractall
File "calibre\utils\localunzip.py", line 235, in _extractall
File "calibre\utils\localunzip.py", line 180, in copy_compressed_file
zlib.error: Error -3 while decompressing data: invalid stored block lengths

I'm assuming it's a corrupted book, because if I start going a few books at a time, they transfer fine. However I've got several thousand books, and by trying to transfer a few hundred at a time, it's clear that this error occurs with several books. So how do I work out which book it is? The only alternative is to transfer 2-3 books at a time, which will take ages!!
richstant is offline   Reply With Quote
Old 02-27-2021, 05:06 AM   #2
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Run calibre in debug mode and send the books. When you close calibre, the debug log will be shown. That should have enough information to show which book was being sent when the error happened.
davidfor is offline   Reply With Quote
Advert
Old 03-01-2021, 10:05 AM   #3
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,086
Karma: 14079267
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Another option is (installing and) using the Count Pages plugin to compute a book length of some sort. It will fail to do so on books that are corrupted, and you can then filter the corrupted books out that way.
mbovenka is offline   Reply With Quote
Old 03-06-2021, 05:06 AM   #4
richstant
Member
richstant began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Oct 2013
Device: Kindle
Thanks both, I'll try those now!
richstant is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Neoreader: bad page number in status bar citytrader Onyx Boox 0 06-21-2020 05:45 PM
52 - the magic 1 book a week number leebase General Discussions 12 12-28-2019 07:46 AM
Bad magic number for file header error RedCanyoneer Devices 8 03-13-2013 11:29 AM
Free (Kindle KDP) A Bad Spell in Yurt by C. Dale Brittain [Magic Adventure Fantasy] ATDrake Deals and Resources (No Self-Promotion or Affiliate Links) 14 03-10-2012 05:41 AM
Bad Magic Number GaylaM Calibre 1 12-10-2010 12:41 PM


All times are GMT -4. The time now is 04:53 AM.


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