Blockly Games on RPi Kolibri don't work

If you have a specific technical inquiry, construct your post with the following:

Summary

We have Kolibri running under RACHEL (from OER2GO) on an RPi.

Most of the other modules run fine but Blockly games don’t work at all - just static game screens that don’t do anything. On the Blockly website they separately run fine so I’m guessing there is something wrong with the Kolibri build?

Technical details

  • Kolibri version: 0.12
  • Operating system: Raspbian Jessie
  • Browser: Firefox on a Linux Mint laptop connected over network

Hello @AndrewC,

Thank you for providing all of this information regarding this issue. In order to better support you, could you please open your Firefox developer tools (CMD/CTRL + Shift + I), and see if there are any errors in the Console tab?
Also, could you please clarify how you were able to get Blockly Games on your device? Did you import it directly from Kolibri, or did you import the OER2Go package?

Thank you for your patience!

Jordan

(Replied by email last week but it bounced yesterday)
Hi Jordan

Thanks for getting back to me.

Here is what is displayed in the Console:

“This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. learn
[INFO: kolibri/core/assets/src/core-app/mediator.js] KolibriModule: learn_module registered mediator.js:98:12
[INFO: kolibri/core/assets/src/core-app/mediator.js] KolibriModule: html5_app_renderer_module registered mediator.js:98:12
‘src’ attribute of element is empty. 69ad393cc5920dedeaab71193780b87a.zip:1:1
window.controllers/Controllers is deprecated. Do not use it for UA detection. b96aac5607434450884f1f3a14fcfe7d.ace.js:1:18480
TypeError: window._document_cookie is undefined 9fc43a0f3f0c46588e3d82b72152d277.boot.js:49:18
The script from “http://192.168.1.46:9090/zipcontent/69ad393cc5920dedeaab71193780b87a.zip/” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type. 69ad393cc5920dedeaab71193780b87a.zip
SyntaxError: expected expression, got ‘<’ 69ad393cc5920dedeaab71193780b87a.zip:2
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: coach_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: user_module_user_profile_nav_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: facility_management_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: user_module_login_nav_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: learn_module_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: device_management_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: user_module_user_profile_nav_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: device_management_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: facility_management_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: user_module_login_nav_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: learn_module_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: coach_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: facility_management_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: user_module_login_nav_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: user_module_user_profile_nav_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: learn_module_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: device_management_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: coach_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: user_module_user_profile_nav_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: user_module_login_nav_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: facility_management_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: learn_module_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: coach_side_nav-0.12.1.js.map
Source map error: Error: request failed with status 404
Resource URL: http://192.168.1.46:9090/learn/#/topics/e409b964366a59219c148f2aaa741f43
Source Map URL: device_management_side_nav-0.12.1.js.map”

As for the build, I believe it was imported from the OER2GO package by one of our more experienced volunteers.
All the other modules seem to work so far, just not this one, but then it has to run code.

192.168.1.46 is the IP address of the RPi server that I am accessing from the Linux laptop. Kolibri Info gives:

Version: 0.12.1
OS: Linux-4.14.98-v7±armv7l-with-debian-9.8
Installer: apt
Server: Kolibri internal server
Database: /home/kolibri/.kolibri/db.sqlite3
Device name: rachel
Free disk space: 38 GB
Server time: Tue Feb 11 2020 21:20:28 GMT+0000 (Greenwich Mean Time)
Server timezone: America/Los_Angeles

Regards
Andrew :slight_smile:

Hello @AndrewC,

Thank you for providing all of this background information. Could you please try the following:

  1. Navigate to your Device tab and update your Blockly channel to the latest version
  2. If that doesn’t work, you might need to update to the the latest version of Kolibri (latest version is downloadable here)
  3. If it’s still not working, unfortunately, we don’t have access to edit the OER2GO packages, but you might be able to post on the RACHEL forum and have someone help you there

Best regards,
Jordan

Thanks Jordan.

Unfortunately the Blockly channel update did not fix the problem so I will need to try and work out how to update Kolibri from 0.12 to 0.13 on the RPi without destroying the RACHEL build that I have working. If anyone else has done that I would appreciate them posting a step-by-step Howto.

As Blockly works fine on my separate standandalone Kolibri 0.13 build under Linux Mint I think there is a good chance that you are right and it needs a later version.

Regards
Andrew

Hello @AndrewC,

Apologies for the late response. I have reached out to @jredrejo regarding documentation, and he provided a zip for upgrading Kolibri. Once you download this, you can run the zz-kolibri-upgrade file to upgrade your Kolibri version. Hope this helps!

Thanks Jordan.

I discovered last night that WorldPossible has a completely new RACHEL-PI-kolibri image that includes 0.13.1 already built. It is dated February 2020 and saves a lot of time doing a manual upgrade by providing a clean new image that just needs the RACHEL and Kolibri resources to be populated. That may help others with the same issue.

The only issue I now have with the RPi build on import is the dreaded “No drives with Kolibri resources are connected to the server” even when the drive is connected to and visible in the RPi. I need to find a fix for that else I can’t build new servers as intended and transfer our selection of Kolibri data.

Hi @AndrewC,

This is James ( @jamesk from the World Possible forums ). I just read your other post. I will create a new RACHEL-Pi image that will hopefully fix this issue.

James

Hi James

That would be absolutely great if you could, thanks.

We have created some good IT Curriculum content in a (private) Kolibri channel and would like to roll it out to schools in Malawi.

Regards
Andrew

1 Like

Hi Andrew,

You’re welcome and sorry for that. It is my fault as part of the installation process that it’s still using the Kolibri user and that blocks the USB devices from use. I rely on user feedback in testing some of the parts of things like Kolibri I’m not familiar with so thank you for posting this.

It takes me a bit of time to make an image and properly go through my check list of things to do. I will have it ready for you tomorrow and will let you know when it’s up so you can try it out and let me know if it helps. I think in these situations it’s better to start fresh than to try and modify and correct an existing bad installation.

I love hearing about deployments and that sounds like a fantastic project. Great work!

James

James

I’m happy to help bug-fix for you if required.

It is worth noting that I not only could not get the import to work from USB drive but I could not import data over my LAN to/from the RPi from/to a Kolibri installation on Mint either. That left me with the only option to import all the modules from Kolibri Studio which is way too S_L_O_W. ( I don’t know why that should be, but on my very fast cable connection it took 3 days and nights to import about 160GB from all modules).

Look forward to getting your updated image if you can manage to fix these things!

Regards
Andrew

I would love your feedback, especially with this image when it’s ready.

What method are you using to import modules from Kolibri Studio? I will definitely look at it to make sure this issue is also fixed if I can reproduce it. If you are transferring with WInSCP, there is an issue where it uses 100% of one CPU core to do the transfer and this makes it extremely slow. The solution is to go to edit>advanced>connection and turn off “optimize connection buffer size” in your site’s settings.

If you are downloading content from World Possible, I have experienced slow speeds from them on all of my devices and have not been able to fix it. I have tested multiple connections and their server fluctuates the speed from my top download speed back down to 10kb and back up again even on big files.

James

Hi James

What method are you using to import modules from Kolibri Studio?

In my Kolibri installation I am just going to Channels, Import and selecting Kolibri Studio from the three source choices. (The other 2 don’t currently seem to work in my setup as you know). So AFAIK it is not using WinSCP - though I might try that if you think it is better.

If you are downloading content from World Possible, I have experienced slow speeds from them on all of my devices and have not been able to fix it.

Actually I downloaded GCF LearnFree from the WorldPossible site using the RACHEL RPi server version and it was pretty quick to download about 9.5GB - around 45 mins IIRC. This is one of the modules that we have to provide under RACHEL as despite being an excellent teaching resource it seems (strangely) not to be available under Kolibri.

Hope that helps.

Regards
Andrew