offspot / imager-service

Create Kiwix Hotspot microSD cards online
https://imager.kiwix.org/
GNU General Public License v3.0
11 stars 6 forks source link

Handle retired ZIM #287

Closed Popolechien closed 2 years ago

Popolechien commented 2 years ago

L832R61EE failed with Incorrect values forzim_install: Science_in_the_bath_freshest-produce.en aimhi_geography.en

Looking at the configuration, I see that Science in the bath was selected twice, and indeed the configuration dashboard has it twice: Capture d’écran 2022-01-24 à 13 55 27 but also Capture d’écran 2022-01-24 à 13 47 01 Hovering on the later I can see two files that have almost the same name except that one is scienceinthebath_en_freshest-produce.en and the other Science_in_the_bath_freshest-produce.en (so just one uppercase difference). So clearly the library has three files too many on offer.

I looked up download.kiwix.org and could only find one instance however: https://download.kiwix.org/zim/videos/scienceinthebath_en_freshest-produce_2022-01.zim

FWIW the recipe is here: https://farm.openzim.org/recipes/scienceinthebath_playlist

rgaudin commented 2 years ago

OK, there are two known issues here:

kelson42 commented 2 years ago

@rgaudin Independently of any other consideration, the cardshop recipe should be checked as early as possible against the library opds stream... to avoid later crash.

Related to https://github.com/openzim/cms/issues/7

rgaudin commented 2 years ago

Doesn't answer the question of the when except for the obvious “on order creation”. Just to be clear, the current check is at installer startup so first thing once the task is picked up by the worker. We'd want the cardshop to check that before scheduling the order… using OPDS, once we add OPDS support.

kelson42 commented 2 years ago

@rgaudin Yes, Cardshop should be able to test a recipe periodicaly and even before a creator is started.

rgaudin commented 2 years ago
Screen Shot 2022-06-08 at 16 14 59 Screen Shot 2022-06-08 at 16 15 15