Iiab: Migrate IIAB to kolibri-server for RPi performance?

Created on 10 May 2019  Â·  10Comments  Â·  Source: iiab/iiab

Appears unlikely for IIAB 7.0 in coming weeks?

Recap: the existing Kolibri role (Ansible playbook) is here:
https://github.com/iiab/iiab/tree/master/roles/kolibri

Refs:

977 Kolibri 0.10.2+ Release Polish

1545 Kolibri Bug Scrub for IIAB 7.0

1591 Better Kolibri performance with static file serve and wsgi

enhancement

Most helpful comment

The kolibri-server package is considered finished and stable. We haven't announced it yet because there's an issue due to the fact kolibri didn't work properly in a multi-process scenario. It's a kolibri problem that has been solved in the develop branch of kolibri. After the new kolibri becomes stable we'll announce it.

Thanks Much @jredrejo. A few tiny questions if you can:

  1. When you say "the new kolibri" are you talking about 0.12.3? (Or some other version such as 0.13?)
    It's not decided yet. The code is in develop but it's not merged into 0.12.3. I doubt it will be.
  1. Internet-in-a-Box communities need several of the Kolibri fixes that have been merged into 0.12.3 (for example #1626 and learningequality/kolibri#5480) so the high-level question (affecting us in many ways ;) is — how is kolibri-server likely to track (or perhaps ship as a part of) Kolibri's regular releases, e.g. 0.13.x and 0.14.x etc?

kolibri-server is just a a set of configurations plus dependencies to use kolibri with nginx & uwsgi. It does not include any kolibri code. All the new features and fixes will be done on kolibri.

  1. Should kolibri-server work cleanly with Apache now or in future? (Or is it really intended for NGINX?)

The setup is thought to be used with nginx. There are no plans to do an apache version and I don't think it's a good idea to maintain multiple ways of getting the same purpose.

  1. What's the preferred way to install kolibri-server? (Where is the best documentation on kolibri-server if possible?)

Currently it's available as a ppa package in the kolibri-proposed repo. The plan is moving it to the kolibrirepo. Until that movement is done, the recommended way to install it is using the instructions available in https://kolibri.readthedocs.io/en/latest/install.html#debian-ubuntu , replacing kolibriby kolibri-proposedin the repo name and doing sudo apt-get install kolibri-server to install it.

All 10 comments

@jredrejo is there a roadmap for https://github.com/learningequality/kolibri-server/releases where Internet-in-a-Box developers can learn more about its target specs & possible dates over the coming year?

Thanks if poss!

Hi @holta
The kolibri-server package is considered finished and stable. We haven't announced it yet because there's an issue due to the fact kolibri didn't work properly in a multi-process scenario. It's a kolibri problem that has been solved in the develop branch of kolibri. After the new kolibri becomes stable we'll announce it.

In any case, the problem is quite trivial: sometimes when importing channels you have to refresh the page and click again on import. Other than that, everything works fine in all our tests. If your installation has all the channels imported, you can work normally with kolibri-server. Different installations have been using it successfully in the last months.

@arky please see Learning Equality's update on kolibri-server just above!

The kolibri-server package is considered finished and stable. We haven't announced it yet because there's an issue due to the fact kolibri didn't work properly in a multi-process scenario. It's a kolibri problem that has been solved in the develop branch of kolibri. After the new kolibri becomes stable we'll announce it.

Thanks Much @jredrejo. A few tiny questions if you can:

1) When you say "the new kolibri" are you talking about 0.12.3? (Or some other version such as 0.13?)

2) Internet-in-a-Box communities need several of the Kolibri fixes that have been merged into 0.12.3 (for example #1626 and https://github.com/learningequality/kolibri/pull/5480) so the high-level question (affecting us in many ways ;) is — how is kolibri-server likely to track (or perhaps ship as a part of) Kolibri's regular releases, e.g. 0.13.x and 0.14.x etc?

3) Should kolibri-server work cleanly with Apache now or in future? (Or is it really intended for NGINX?)

4) What's the preferred way to install kolibri-server? (Where is the best documentation on kolibri-server if possible?)

The kolibri-server package is considered finished and stable. We haven't announced it yet because there's an issue due to the fact kolibri didn't work properly in a multi-process scenario. It's a kolibri problem that has been solved in the develop branch of kolibri. After the new kolibri becomes stable we'll announce it.

Thanks Much @jredrejo. A few tiny questions if you can:

  1. When you say "the new kolibri" are you talking about 0.12.3? (Or some other version such as 0.13?)
    It's not decided yet. The code is in develop but it's not merged into 0.12.3. I doubt it will be.
  1. Internet-in-a-Box communities need several of the Kolibri fixes that have been merged into 0.12.3 (for example #1626 and learningequality/kolibri#5480) so the high-level question (affecting us in many ways ;) is — how is kolibri-server likely to track (or perhaps ship as a part of) Kolibri's regular releases, e.g. 0.13.x and 0.14.x etc?

kolibri-server is just a a set of configurations plus dependencies to use kolibri with nginx & uwsgi. It does not include any kolibri code. All the new features and fixes will be done on kolibri.

  1. Should kolibri-server work cleanly with Apache now or in future? (Or is it really intended for NGINX?)

The setup is thought to be used with nginx. There are no plans to do an apache version and I don't think it's a good idea to maintain multiple ways of getting the same purpose.

  1. What's the preferred way to install kolibri-server? (Where is the best documentation on kolibri-server if possible?)

Currently it's available as a ppa package in the kolibri-proposed repo. The plan is moving it to the kolibrirepo. Until that movement is done, the recommended way to install it is using the instructions available in https://kolibri.readthedocs.io/en/latest/install.html#debian-ubuntu , replacing kolibriby kolibri-proposedin the repo name and doing sudo apt-get install kolibri-server to install it.

Given that nginx is a dependency, moving to kolibri-server is not in the card right now.

@jvonau - can you elaborate this part?

Given that nginx is a dependency, moving to kolibri-server is not in the card right now.

Just wanna understand how the Nginx dependency blocks adaptation of kolibri-server for you.

@benjaoming IIAB now uses NGINX (see https://github.com/iiab/iiab/blob/master/roles/nginx/README.md) but we would need help getting an NGINX config file for kolibri-server, that doesn't assume it's the only thing running on the machine (!)

If you can propose such an /etc/nginx/conf.d/kolibri-nginx.conf for starters? As you can see we are currently using: https://github.com/iiab/iiab/blob/master/roles/kolibri/templates/kolibri-nginx.conf.j2

hello @holta
kolibri-server does not assume it's the only thing running in the machine. Just the opposite, it uses /etc/nginx/conf.d and you can drop there any other nging config you want.

the only thing it assumes is that, after you decide which port you're using for kolibri (among three different options) that port will be used only by kolibri. But you can server other apps using nginx in the same server with their own configs in different ports without any conflict with kolibri.

In case you want to show to the world everything under the same port, you can also set a proxy configuration in nginx to serve all the applications under the same port without conflicting with the current kolibri-server nginx configuration

@jredrejo it looks like (from the link shared by @holta) that IIAB already has a nice little proxy_pass configuration for Kolibri.

Opened an upstream issue to make kolibri-server easier to accommodate for.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tim-moody picture tim-moody  Â·  4Comments

traverseda picture traverseda  Â·  9Comments

holta picture holta  Â·  4Comments

floydianslips picture floydianslips  Â·  12Comments

aidan-fitz picture aidan-fitz  Â·  17Comments