abhishek247

Q: ibooks error: "Zero Kb of 9.22 EB" on Yosemite and failed downloads

I have recently upgraded from OS X mavericks to yosemite in a new mac mini.

 

The previously downloaded ibooks are available to read while the new free ibooks like "Apps At Work" AND "iPad Profiles Enterprise" both by apple are among few of downloads that finished consuming my bandwidth and completed 100% and then failed to download.

 

Every now and then it shows a cloud on book cover and I click on them to start a progress bar, which waits and then again fails to download. help I do not want to loose previously downloaded ibooks which and still download new ones.

Mac mini (Late 2012), OS X Yosemite (10.10)

Posted on Nov 10, 2014 11:13 PM

Close

Q: ibooks error: "Zero Kb of 9.22 EB" on Yosemite and failed downloads

  • All replies
  • Helpful answers

  • by abhishek247,

    abhishek247 abhishek247 Dec 5, 2014 4:52 AM in response to abhishek247
    Level 1 (5 points)
    iBooks
    Dec 5, 2014 4:52 AM in response to abhishek247

    apple staff emailed me on 13 Nov 2014:


    Hello there, We have heard about your issue from the discussion thread below: https://discussions.apple.com/thread/6639788 We would like to know if you would be able to provide the following: - A syslog when the problem occurs. Sysdiagnose 1. Launch Terminal (located in Application\Utilities) 2. Type sysdiagnose 3. When prompted, hit the 'Enter' key 4. After the process is completed, email the file which will automatically appear in your 'tmp' folder to us. System Diagnostics Report 1. Launch Activity Monitor (located in Application/Utilities fielder) 2. Click on the ‘Gear’ icon pull down menu and select Run System Diagnostics 3. After the process is complete, send us a copy of this report Thank you, The iWork Team 18826797


     

    ...to which i replied on 25 Nov 2014(I added both the sysdiagnose zips they asked for in attachment to email):


    Hello, Thanks for sending email. I am really frustrated with this error since I brought my mac mini. I posted about it three times online including 2 times in apple support forums and 1 times in stackexchange. I even went to apple care centre and called the applecare helpline but got no solution from them. So I didn't thought that i will get help via email regarding this. I want to tell you that the only major change in my system I had done was to change my language preference from original 'UK English' (which was set during installation/1st use of mac mini during purchase in applestore) to 'US English' in my Apple ID because despite living in India I mostly deal with clients in USA... and hence I didn't realise that due to this minor change iwork upgrades for yosemite failed.. then I fixed and upgraded them back myself as you can see in post(https://discussions.apple.com/thread/6635160)  by switching back to 'UK English' in my Apple ID settings page. I even tried deleting/restoring ibooks folder and resetting PRAM/NVRAM with shortcut key mentioned in apple website but none had helped yet. Also I had used s/w: cCleaner for Mac  Memory Clean Heroku Google Chrome Reliance 3g Dongle - this s/w worked in Mavericks but crashed in Yosemite, even in the 10.10.1 upgrade. Even resetting language back to US English didn't work for iBooks issue so I again reset it back to UK English. I had purchased this machine for creating apple developer account. I haven't been able to do anything about it yet. Finally, I am attaching your requested documents. Please help me download the Ibooks i need. Thanks. Thanks,


    ...to which there was no response from apple staff...

     

    ....again I replied on 26 Nov 2014:


    Hello, When I know the status of the fix? Regards,


    ...to which there has been no response from apple staff till date...

     

    I even created a new iTunes a/c and it asked for my credit card.. i added that card and Apple iTunes charged INR 60 from the card for verification and created the new account but when I went to download to the iBooks store it gave the same error as mentioned in the forum.

     

    Let me mention the name of iBooks I am unable to download from the iBooks Store in my mac(all these are free ibooks from Apple itself):

    1. Apps At Work by Apple Inc. - Business
    2. iOS In Healthcare  by Apple Inc. - Business
    3. iPad Profiles: Enterprise  by Apple Inc. - Business
    4. iPad User Guide For iOS8.1 by Apple Inc

    ....all these are free ibooks from Apple itself but Apple isn't ashamed that I cannot download them.. I am not getting any support or help from Apple and I am thinking of throwing away my mac in the river and tell other people about how Apple products don't allow you to download free iBooks written by Apple themselves.

    Thank You

  • by abhishek247,

    abhishek247 abhishek247 Dec 8, 2014 7:22 AM in response to abhishek247
    Level 1 (5 points)
    iBooks
    Dec 8, 2014 7:22 AM in response to abhishek247

    Hello,

     

    I finally found the solution myself.

     

    The main problem occurred due to slow internet connection <1mbps on files >500mb causing them to fail with the error message "Zero Kb of 9.22EB". The error message was repeated on every attempt due to ibook's inbuilt downloader system which relies on manifest.plist file instead of using its own brains like other download managers of 2014 like IDM have inbuilt (to check the CRC and Resume failed downloads).

     

    The solution was :

    1. Find where my previously completed ibooks were saved using finder. You can do this by searching for .epub or .ibooks using finder's search box(make sure This Mac is selected on top which means you are searching your entire computer for files with that .epub or .ibooks extension). Once an existing ibook with any of the 2 extensions(.epub or .ibooks) is found then left-click(with mouse)  on the found ibook and select Reveal in Finder to open the folder where the previously completed downloads are saved in your mac. There you can find a file called Books.plist which you can open with Xcode.

    2. Once you open this Books.plist in Xcode, you can find in Key column an Expandable branch called Root. Expand this Root and you will find another Sub-Branch called Books. On Expanding Books you will find a set of sub-branches starting with Item 0. Each of this Items holds information about a book downloaded successfully previously, while their key called sourcePath has a value column which is holding the path where the incomplete and failed downloads are kept with manifest.plist file. You can also open this manifest.plist file in Xcode. To do so open finder and select Go in menu, there select Go to Folder and paste the text you copied from sourcePath value field previously. Note here in this pasted text remove all text after com.apple.iBooksX/ and click Go button which will open the folder of your target. Note the reason to do such a long process is the number in sourcePath value field may change depending upon your system/mac machine and I wanted to help without revealing that number present in that sourcePath value field in my mac.

    3. Once you open this manifest.plist file in Xcode, you can find a familiar structure where Each Book item holds information regarding that book including the number of the sub-folder in your current directory which is holding that ebook and other variables. Note, here you will work in items from bottom-up.. meaning fix the last book item first and the first book item in the end of the process. You can not just open but also edit and save the modified information from Xcode to overwrite manifest.plist file in your current directory.

    4. You need to delete that numbered folder in that item for the ibook which has failed in download and set the following values in the item's attributes..Failed=No, In_Server_Que=No, Is_Initiated_By_Server=No, Paused= Yes. Note use drop-down at end of value fields instead of typing modified values and save.

  • by abhishek247,Solvedanswer

    abhishek247 abhishek247 Dec 8, 2014 7:54 AM in response to abhishek247
    Level 1 (5 points)
    iBooks
    Dec 8, 2014 7:54 AM in response to abhishek247

    Hello The Above Post Was A Draft... This Is The Full Post,

     

    I finally found the solution myself.

     

    The main problem occurred due to slow internet connection <1mbps on files >500mb causing them to fail with the error message "Zero Kb of 9.22EB". The error message was repeated on every attempt due to ibook's inbuilt downloader system which relies on manifest.plist file instead of using its own brains like other download managers of 2014 like IDM have inbuilt (to check the CRC and Resume failed downloads).

     

    The solution was:

    0. Quit ibooks.

    1. Find where my previously completed ibooks were saved using finder. You can do this by searching for .epub or .ibooks using finder's search box(make sure This Mac is selected on top which means you are searching your entire computer for files with that .epub or .ibooks extension). Once an existing ibook with any of the 2 extensions(.epub or .ibooks) is found then left-click(with mouse)  on the found ibook and select Reveal in Finder to open the folder where the previously completed downloads are saved in your mac. There you can find a file called Books.plist which you can open with Xcode.

    2. Once you open this Books.plist in Xcode, you can find in Key column an Expandable branch called Root. Expand this Root and you will find another Sub-Branch called Books. On Expanding Books you will find a set of sub-branches starting with Item 0. Each of this Items holds information about a book downloaded successfully previously, while their key called sourcePath has a value column which is holding the path where the incomplete and failed downloads are kept with manifest.plist file. You can also open this manifest.plist file in Xcode. To do so open finder and select Go in menu, there select Go to Folder and paste the text you copied from sourcePath value field previously. Note here in this pasted text remove all text after com.apple.iBooksX/ and click Go button which will open the folder of your target. Note the reason to do such a long process is the number in sourcePath value field may change depending upon your system/mac machine and I wanted to help without revealing that number present in that sourcePath value field in my mac.

    3. Once you open this manifest.plist file in Xcode, you can find a familiar structure where Each Book item holds information regarding that book including the number of the sub-folder in your current directory which is holding that ebook and other variables. Note, here you will work in items from bottom-up.. meaning fix the last book item first and the first book item in the end of the process. You can not just open but also edit and save the modified information from Xcode to overwrite manifest.plist file in your current directory.

    4. You need to delete that numbered folder in that item for the ibook which has failed in download.. make sure it is removed even from trash.. if it cannot be removed from trash then re-start mac and remove it from trash. Now set the following values in the item's attributes..Failed=No, In_Server_Que=No, Is_Initiated_By_Server=No, Paused= Yes. Note use drop-down at end of value fields instead of typing modified values and save. Then as you can see the name of the book there, goto ibooks again and click on the book with cloudy icon and see the download resume(if you haven't deleted the numbered folder) or see the download restart if you have deleted the numbered folder earlier. This time you can hope for it to download successfully. There also lies a .cache file and a sub-directory which is named com.apple.iBooksX/ similarly like its parent directory called com.apple.iBooksX/ which you can delete and also you can delete items from manifest.plist file in case of very repeated and annoying error messages after many repeated attempts to re-download. Do not clean mac memory or and do not try to do other tasks while ibook is downloading to ensure non-disruption of downloads.

    Thats all It takes to fix this issue which Couldn't be solved till date by apple care enters in kolkata, apple phone support in india and online support both in apple community, via mail and on stack overflow.

    Thanks

     

    My suggestion to apple is that they should improve the ibooks downloader system(there are many open source downloaders like FDM, XDM, TorrentClients etc which can help them learn how to make a better download system) to allow intelligent scanning of broken downloads for resuming them even days later in download instead of marking them as failed downloads due to slow internet, because not all countries on earth get a T1 high speed internet connection.. most places still have 50kbps average speed... so broken downloads should be resumed and not marked as failed by looking up in manifest.plist file XML files.

  • by Ringerrr,

    Ringerrr Ringerrr Jul 26, 2016 4:30 AM in response to abhishek247
    Level 1 (4 points)
    iBooks
    Jul 26, 2016 4:30 AM in response to abhishek247

    I'm running El Capitan (OSX 10.11.5) and iBooks 1.5 and am having this same problem - but there is no manifest.plist file in the sourcepath directory. Does anybody please have updated instructions for these latest versions of software to resolve this annoying problem? Thanks!