Giter Club home page Giter Club logo

Comments (6)

tim-moody avatar tim-moody commented on August 15, 2024

for more info I tried

root@box:~# /opt/iiab/kiwix/bin/kiwix-serve --port 3000 --nolibrarybutton /library/zims/content/wikipedia_en_medicine_2017-08.zim

and got same issue

last cluster offset larger than file size; file corrupt
Unable to add the ZIM file '/library/zims/content/wikipedia_en_medicine_2017-08.zim' to the internal library.

from kiwix-tools.

psiie avatar psiie commented on August 15, 2024

I made a zim with just one MP4 video using zimwriterfs and experienced the same problem. (to help isolate the problem). https://puu.sh/xHRRK/063a485ea8.png

from kiwix-tools.

mgautierfr avatar mgautierfr commented on August 15, 2024

This is not especially a problem with arm but instead a bug in libzim crashing when trying to read a zim file larger than 4GB on a 32 bits platform.

Next nightly build should be ok.

@darkenvy, Does your zim file is larger than 4GB ?
The error message about the MIME type video/mp4 makes me think it is a different problem.
(zim file can be read, but there is a problem somewhere about the return mimetype).
If your issue is not fixed with last nightly build, please open a new issue.

from kiwix-tools.

holta avatar holta commented on August 15, 2024

FYI @mgautierfr I get the same error after waiting 36h and trying the latest nightly build (http://download.kiwix.org/nightly/2017-09-25/kiwix-tools_armhf_2017-09-25.tar.gz). Which I installed onto RPi3 / Raspbian Stretch then ran:

/opt/iiab/kiwix/bin/kiwix-serve --port 3000 --nolibrarybutton /library/zims/content/wikipedia_en_medicine_2017-08.zim

Which still yields error:

last cluster offset larger than file size; file corrupt
Unable to add the ZIM file '/library/zims/content/wikipedia_en_medicine_2017-08.zim' to the internal library.

While "md5sum wikipedia_en_medicine_2017-08.zim" is confirmed identical on 2 other machines, including @tim-moody's:

23ab5434f3f6b750feabe6d64f01cc02

Background: This ZIM was generated as follows:

wget http://download.kiwix.org/portable/wikipedia/kiwix-0.9+wikipedia_en_medicine_2017-08.zip

unzip kiwix-0.9+wikipedia_en_medicine_2017-08.zip

cat wikipedia_en_medicine_2017-08.zimaa wikipedia_en_medicine_2017-08.zimab wikipedia_en_medicine_2017-08.zimac > wikipedia_en_medicine_2017-08.zim

After moving the wikipedia_en_medicine_2017-08.zim.idx and wikipedia_en_medicine_2017-08.zim into their normal positions, the following did not help :/

systemctl restart kiwix-serve

from kiwix-tools.

kelson42 avatar kelson42 commented on August 15, 2024

@holta Not sure you have caught a version with the fix... Can you just try the really last one: http://download.kiwix.org/nightly/2017-09-28/kiwix-tools_armhf_2017-09-28.tar.gz

from kiwix-tools.

holta avatar holta commented on August 15, 2024

@kelson42 it works great, including:

Thanks! Will the linux64 version possibly be available today too?

from kiwix-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.