operations icon indicating copy to clipboard operation
operations copied to clipboard

Create ZIM version of wiki for use in Kiwix

Open simonpoole opened this issue 3 years ago • 5 comments

Currently there are regular dumps of the wiki in xml format to https://wiki.openstreetmap.org/dump/. These are useful mainly for statistical analysis and similar uses. To be able to provide the content in a more useful form for offline use we should be producing dumps in ZIM format that then could be read with Kiwix @Kiwix

The tool of choice to generate a ZIM file would currently seem to be https://github.com/openzim/mwoffliner

simonpoole avatar Apr 24 '22 08:04 simonpoole

We talked about a zim version in #536. I didn't have much luck getting the zim exporter up and running, though (due to some issues with the import step, which was a prerequisite for a zim export).

mmd-osm avatar Apr 24 '22 08:04 mmd-osm

It is naturally by far not a new issue, I first suggested it years ago (iirc that is the reason we have the current dumps). The alternative to mwoffliner would seem to be https://github.com/openzim/zimit Likely the best thing would be to ask the folks at @Kiwix for input.

simonpoole avatar Apr 24 '22 09:04 simonpoole

I think this might work when you create a zim export based on the productive osm wiki database.

As a downstream consumer with only a Wiki dump available, even importing this dump into your own Mediawiki instance takes forever, and is totally non-feasible as of now. Needless to say that isn't exactly a good starting point to think about a zim export.

mmd-osm avatar Apr 24 '22 09:04 mmd-osm

Progress has been slow. But I think I am nearly there. Resolved many bugs with wiki, primarily timeout (on huge pages) and some templates causing 500 errors.

Firefishy avatar Aug 13 '22 00:08 Firefishy

I've had a successful run of: openstreetmap-wiki_en_all_nopic_2022-08.zim I am still trying to get maxi to successfully complete.

Firefishy avatar Aug 13 '22 01:08 Firefishy

There is a successful run here: https://mirror.download.kiwix.org/zim/other/openstreetmap-wiki_en_all_nopic_2022-11.zim The maxi version (with pictures) is still failing.

Firefishy avatar Nov 23 '22 08:11 Firefishy

Now documented: https://wiki.openstreetmap.org/wiki/Using_OpenStreetMap_offline#Offline_File

Firefishy avatar Dec 29 '22 13:12 Firefishy

Thanks @Firefishy ... just one thing, I'm not quite sure what There is currently a slight problem with the creation of the files in that it sometimes doesn't transfer correctly, after having not been able to build for multiple months is supposed to imply, maybe some old text not edited out?

simonpoole avatar Dec 29 '22 13:12 simonpoole

Thanks @Firefishy ... just one thing, I'm not quite sure what There is currently a slight problem with the creation of the files in that it sometimes doesn't transfer correctly, after having not been able to build for multiple months is supposed to imply, maybe some old text not edited out?

Text is not by me.

Firefishy avatar Dec 29 '22 16:12 Firefishy

This text was added by @kmpoppe

mmd-osm avatar Dec 29 '22 16:12 mmd-osm

That text is literally a reminder to not taking for granted that the process runs without hick ups right now.

I also started my own nopic run on my server to check whether the run failing in the ZIMfarm is due to their docker setup or anything else.

I will keep this is under surveillance over the next weeks and then edit the text accordingly.

Could any of the watchers hint to whether the zim files could be mirrored in the OSM infrastructure in case kiwix fails to keep them?

Kai

kmpoppe avatar Dec 29 '22 16:12 kmpoppe