kiwix / kiwix-tools

Command line Kiwix tools: kiwix-serve, kiwix-manage, ...
https://download.kiwix.org/release/kiwix-tools/
GNU General Public License v3.0
428 stars 83 forks source link

docker error "Unable to add ZIM file 'stackoverflow.com_en_all_nopic_2022_07.zim' to the internal library." #578

Closed monstermaker closed 1 year ago

monstermaker commented 1 year ago

Having an issue on Ubuntu 17.04 machine with the stackoverflow.com_en_all_nopic_2022_07.zim file. The debug message says: "Here is the content of /data: /data/stackoverflow.com_en_all_nopic_2022_07.zim"

I have checked the permissions on the file and set it to 777 temporarily to make sure that permissions are not the issue. I am not sure if the leading /data is correct and the content of /data should be stackoverflow.com_en_all_nopic_2022_07.zim and not /data/stackoverflow.com_en_all_nopic_2022_07.zim

Any ideas?

kelson42 commented 1 year ago

please share the full log of commands you run, with all ourputs.

monstermaker commented 1 year ago

This is what I ran: userprompt@myserver:~$ sudo docker run -v /path/to/my/folder/library:/data -p 8888:80 kiwix/kiwix-serve stackoverflow.com_en_all_nopic_2022_07.zim

The output was:

/usr/local/bin/kiwix-serve --port:80 stackoverflow.com_en_all_nopic_2022_07.zim Unable to add ZIM file 'stackoverflow.com_en_all_nopic_2022_07.zim' to the internal library. Here is the content of /data: /data/stackoverflow.com_en_all_nopic_2022_07.zim

monstermaker commented 1 year ago

Problem Solved. It appears that this copy of the zim may have been corrupted. The original zim file I ad was downloaded through windows and transferred to the Linux machine using SCP. I have now downloaded using wget on the Linux machine direct from the source and it appears to be working.