New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do we fix Kolibri Channel Import failures with http://box/kolibri configured by KOLIBRI_URL_PATH_PREFIX=/kolibri ? #9455
Comments
How do you apply this hack and test that IMPORT works ?? |
On the server from which you wish to import:
With this change I was able to successfully import a channel as usual. |
This is a long standing issue with the Kolibri peer discovery not encoding the URL prefix information into the information it broadcasts to its peers. This would be best fixed by having peers broadcast their URL prefix to allow construction of the full base url for the Kolibri instance. |
I have added this to the next planned patch milestone for the 0.15.x series, so hopefully we can release a fix for this by sometime in mid-July. |
Please note that even if I add a custom server with the prefix in the url, that prefix is stripped out when issuing the api call. |
I have tested the suggested fix by commenting out the line Environment=KOLIBRI_URL_PATH_PREFIX=/kolibri in /etc/systemd/system/kolibri.service, and then The fix works and I can import channels from two IIAB servers, one running IIAB 8.0 on PI400 Desktop and the second on IIAB 8.0 on Linux Mint 2.3. Both servers connect to each other on the LAN. when I do kolibri status the on PI400 I get but systemctl status kolibri.service gives me May 23 16:47:59 PI400 kolibri[3415]: INFO Running Kolibri with the following settings: kolibri.deployment.default.settings.base My WIFI interface is running on PI400 hence I get the three above entries in BOLD. On the Linux server, hostapd is not running for some reason so I get sb01@boxwiki: May 23 22:05:21 boxwiki kolibri[557]: INFO Running Kolibri with the following settings: kolibri.deployment.default.settings.base I cannot open Kolibri from the IIAB home page as this does not work 192.168.1.221/kolibri does not work So we have a solution. I will do some more testing, this time building a MASTER Kolibri with all the channels we need and then IMPORT these on to a second server over the LAN. LAN IMPORT is much faster than Internet IMPORT |
Yeah, we should also address that behaviour for cases where the auto-discovery is not suitable (such as connecting to an online instance of Kolibri). |
This fix is not critical as we can EXPORT & IMPORT channels via local drive. One simple work around ( not very elegant) would be do a command like iiab-kolibri-lan-import-on which applies the fix and the iiab-kolibri-lan-import-off which reverses it. This is only required for Admin purposes. |
That comment would seem more appropriate for IIAB's tracker as IIAB, to my knowledge is the only place where KOLIBRI_URL_PATH_PREFIX is being used and summarizes what was discussed in chat. Just need someone to do up the PR for the kluge for IIAB or wait for the real fix. |
Agreed. @shanti-bhardwa is a rare person who can tolerate command-line interventions. (Thankfully he now has a workaround for the coming months.) The general public however, cannot tolerate "kludgy" command-line workarounds. We need a more intuitive fix in the end. (Hopefully in July or soon!) |
Looks like Kolibri 0.15.4 was released today: https://github.com/learningequality/kolibri/releases/tag/v0.15.4 Hopefully Kolibri Channel Imports will work with the KOLIBRI_URL_PATH_PREFIX variable starting with 0.15.5 (-: |
Thanks @rtibbles for your ongoing efforts: With Kolibri 0.15.5 now released, are sync'ing improvements possible as part of 0.15.6 or "Planned Patch 4" in coming weeks (or in August if July's not possible?) |
Hi @holta - yes. As Richard mentioned in May, this issue is part of our planned/themed patch release schedule, which are released on a 6 week cadence. This is still our timeline - Planned Patch 4 for is scheduled for mid-July as Richard noted then, with the planned release date being July 20th, as indicated on the milestone. The PR associated with this issue will be part of that release. |
This has now been fixed in #9533 - this update will be released by July 20th in 0.15.6. |
Thanks to @shanti-bhardwa who helped spell out this longstanding issue, and also @jvonau, @tim-moody who both reconfirmed!
The solution might not be simple (?) but let's try to find a way forward here together — as there are a quickly growing number of Internet-in-a-Box communities around the world using Kolibri:
PROBLEM SUMMARY: If you try to import a Kolibri channel using Kolibri > Channels > Import > Select a source > "Local network or internet", it will fail as the other Kolibri machine's
KOLIBRI_URL_PATH_PREFIX=/kolibri
is somehow being ignored:BACKGROUND:
KOLIBRI_URL_PATH_PREFIX=/kolibri
is installed within /etc/systemd/system/kolibri.service whenever you install Internet-in-a-Box, as seen on Line 10 below.GENERAL KOLIBRI QUESTION (PERHAPS UNRELATED?)
/etc/kolibri/daemon.conf
currently always contains the single lineKOLIBRI_HOME="/library/kolibri"
on Internet-in-a-Box machines, so a suggestion was made — should this really contain all 4 variables above includingKOLIBRI_URL_PATH_PREFIX=/kolibri
? As background, here's the current /etc/kolibri configuration of all Internet-in-a-Box machines:CONTEXT: Internet-in-a-Box installs Kolibri's latest .deb (https://learningequality.org/r/kolibri-deb-latest) according to the instructions provided by many helpful Learning Equality staff over the years (e.g. Benjamin Bach and others!) Then it runs...
...according to https://github.com/iiab/iiab/blob/b1ce429f500cbac544a6f6f5f66eb2542d616039/roles/kolibri/tasks/install.yml#L70-L80
DOC: https://kolibri.readthedocs.io/en/latest/manage/resources.html#import-from-a-local-network-or-internet
Tangentially related:
The text was updated successfully, but these errors were encountered: