Cant generate channel listing in Khan

Hi, using a fresh install of Kolibri 0.9 on mint 18. When going to import data from Khan, it gets stuck at generating channel listing. The kolibri.log has errors:

django.db.utils.OperationalError: database is locked
ERROR 2018-04-10 11:21:54,419 exception Internal Server Error: /api/session/current/

ERROR 2018-04-11 09:08:06,036 exception The request’s session was deleted before the request completed. The user may have logged out in a concurrent request, for example.
INFO 2018-04-11 09:08:49,819 channel_import Importing ContentTag data
INFO 2018-04-11 09:08:49,860 channel_import Importing ContentNode_tags data
INFO 2018-04-11 09:08:49,867 channel_import Importing ContentNode_has_prerequisite data
INFO 2018-04-11 09:08:49,874 channel_import Importing ContentNode_related data
INFO 2018-04-11 09:08:49,880 channel_import Importing ContentNode data
INFO 2018-04-11 09:10:11,287 channel_import Importing Language data
INFO 2018-04-11 09:10:11,988 channel_import Importing File data
ERROR 2018-04-11 09:12:21,983 exception The request’s session was deleted before the request completed. The user may have logged out in a concurrent request, for example.

The server.log has:
Downloading data for channel id 1ceff53605e55bef987d88e0908658c5e[0m
INFO:kolibri.content.management.commands.importchannel:Downloading data for channel id 1ceff53605e55bef987d88e0908658c5

0%| | 0/105951232 [00:00<?, ?it/s]
100%|██████████| 105951232/105951232 [00:21<00:00, 5039841.48it/s]e[37mINFO Channel 1ceff53605e55bef987d88e0908658c5 already exists in database, cleaning up ContentNodese[0m
INFO:kolibri.content.utils.channel_import:Channel 1ceff53605e55bef987d88e0908658c5 already exists in database, cleaning up ContentNodes

100%|██████████| 105951232/105951232 [00:40<00:00, 5039841.48it/s]e[31mERROR The request’s session was deleted before the request completed. The user may have logged out in a concurrent request, for example.e[0m
ERROR:django.security.SuspiciousOperation:The request’s session was deleted before the request completed. The user may have logged out in a concurrent request, for example.

I saw an update roll out on the ppa, and I installed and rebooted. Is this something I can fix or shall I wait for another update?

Thanks,
Kurt

Hi Kurt,

Thanks for reaching out. We are aware of this issue and our team is currently investigating why it’s stalling at the “Preparing” stage. Any updates will be posted in the currently open Github issue at https://github.com/learningequality/kolibri/issues/3497. Once it’s been resolved, it will be included in an upcoming patch or release version of Kolibri.

Best,
Laura

Thanks for the report, and for your patience! This seems a bit different than issue #3497, and I’m thinking the errors you’re seeing in the log may be unrelated (just interspersed with the channel metadata import activity). For Khan Academy specifically, generating the channel listing can be time-consuming (several minutes, as it goes through and imports a massive amount of database entries for all the KA content), but should complete eventually. If you’ve left it > 10 mins and it still doesn’t complete, please let us know so we can help debug.

We just released Kolibri v0.9.1, which we expect should resolve the related issue (#3497). The PPA has been updated, so you should be able to update through that and give it another try.

For others coming to this thread: you can download 0.9.1 here (and please let us know how it goes): https://learningequality.org/download/

hello @jamalex , good to hear #3497 has been resolved. Am using kolibri 0.9.0, how do I upgrade to 0.9.1?

@jamalex i did a sudo update followed by a sudo upgrade, which ended with the following message

Trying to run kolibri with sudo service kolibri start gets me

What could be the issue?
PS - I already had OpenStax content before doing the upgrade, is this lost to me?

Guys, splendid job! Upgraded to 0.9.1, works like a charm!! now I can merrily go watch Manchester United thrash Tottenham this afternoon with a load off my mind, thanks again!