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