This overhead is not on kiwix-serve and we cannot do a lot about this.Īll sub-requests are dues to the search bar. But when measuring puppeteer request, it took more than 2s per page. When measuring all the time need by all request to render one page, kiwix-serve takes around 1.3s to handle all requests(9). Handling this and doing the layout takes time. When it does a request to a search page, it also interpret the content and do sub-request if needed (image, css, js). console.log(pageBody) // outputs a lot of textĮxecStart=/opt/iiab/kiwix/bin/kiwix-serve -daemon -port 3000 -nolibrarybutton -library /library/zims/library.xml -urlRootLocation=/kiwix/Īfter investigating, there is several things: const h1 = await page.evaluate(() => 1.innerHTML) tMaxListeners(Infinity) // avoid max listeners warningįor (let i = 0 i ) '/kiwix/search?content=wikipedia_es_all_maxi_2019-09&pattern=pueblo+' '/kiwix/search?content=wikipedia_es_all_maxi_2019-09&pattern=gastronomia+',
'/kiwix/search?content=wikipedia_es_all_maxi_2019-09&pattern=oaxaca+', '/kiwix/search?content=wikipedia_es_all_maxi_2019-09&pattern=juego+', '/kiwix/search?content=wikipedia_es_all_maxi_2019-09&pattern=nuevo+', '/kiwix/search?content=wikipedia_es_all_maxi_2019-09&pattern=pais+', '/kiwix/search?content=wikipedia_es_all_maxi_2019-09&pattern=gobierno+', '/kiwix/search?content=wikipedia_es_all_maxi_2019-09&pattern=amlo+', '/kiwix/search?content=wikipedia_es_all_maxi_2019-09&pattern=futbol+', '/kiwix/search?content=wikipedia_es_all_maxi_2019-09&pattern=mexico+', RandomUrl = host + '/kiwix/random?content=wikipedia_es_medicine_maxi_2019-11' Teachers are habituated to expect search results within 1-to-2 seconds similar to Google on their smartphones so it's a fact that they get very confused when nothing happens for 30 seconds!.Is it possible they are typing too many times, or some such/similar usability bug, triggering too many searches?.During the 1st search of the lesson / 1st search of the day especially?.Is it possible they are getting impatient with Kiwix's search box / textfield since it so often takes 30 seconds to show its autocomplete/popup ?.This results from their using the search box (textfield) at the top right of the "maxi" Spanish Wikipedia page: The server is temporarily unable to service your request due to maintenance downtime or capacity problems. The error message should be changed to explain better that access is generally restored after waiting a few here is the error/warning that most every teacher/student is repeatedly running into: (in Oaxaca State, Mexico)īox.lan/kiwix/search?content=wikipedia_es_all_maxi_2019-09?pattern=AMLO The language of the error message is very alarming to teachers, who believe everything is broken. preventing the use of Wikipedia in group/classroom situations. There is a Kiwix error message they find very alarming, something to the effect of "system is overloaded" even when only a couple students are using it i.e. (The RPi Internet-in-a-Box server is not actually overloaded as its other services all continue to work, during these times when kiwix-serve fails.) Nobody can use Wikipedia in any way for about 2 minutes or so, as a result of this new "system overload error" that did not occur in the past. It only takes a couple kids to access Wikipedia (title search generally, very occasional fulltext search) to lock out all other students.Īll kids are blocked when this happens, and teachers become extremely frustrated, as they can no longer depend on Wikipedia for any small group or classroom lessons going forward. Teachers are using (trying to use) the most recent "maxi" Spanish Wikipedia ZIM file. I imagine this is because it was last updated 2 years ago as of the writing of this post.Feedback from happened in a few rural Mexican schools after we leave so will not be able to reproduce this easily.
Should also mention I tried the snap for kiwix-tools ( ) and it installs but will not open any recently created Zim files.
#Kiwix search bar not working how to#
Since the PPA seems not to have a package for 18.04 Bionic, does anyone have any suggestions on how to install kiwix-serve on 18.04 alongside the kiwix package without messing anything up? On another machine with 20.04 kiwix-tools appears in the list, installs, and runs with no issues.
#Kiwix search bar not working code#
Library of common code for Kiwix (development) If I run apt search kiwix I get the following: kiwix/bionic,now 2.0.5~bionic amd64 First I added the Kiwix PPA via: sudo add-apt-repository ppa:kiwixteam/release I am to run kiwix-serve a computer running Ubuntu 18.04.