learningequality / ka-lite

KA Lite: lightweight web server for serving core Khan Academy content (videos and exercises) without needing internet connectivity
https://learningequality.org/ka-lite/
Other
457 stars 304 forks source link

Not seeing Pictures display in 0.17.0 (multiple browsers) similar to: picture not displaying #5140 #5430

Closed case485 closed 7 years ago

case485 commented 7 years ago

KaLite version 0.17.0 Host Raspberry Pi Jessie 4.4 Multiple browsers from windows client not displaying pictures of course content not displaying. Similar to #5140

I tried in both content packs i have loaded (french and English) and with 3 different browsers on my windows 10 client (Mozilla, IE and Chrome)

pic1 pic1_ie pic2_chrome

benjaoming commented 7 years ago

Hi @case485

This is not a browser issue, but the media from your Content Pack that's not showing up.

It would be nice if you could use the original issue template and answer questions like how you installed KA Lite - was it with the debian installer, and wsa it the ka-lite-raspberry-pi installer?

Try running:

kalite manage collectstatic
case485 commented 7 years ago

Here is how i installed the distribution : apt-get -y install software-properties-common python-software-properties echo "deb http://ppa.launchpad.net/learningequality/ka-lite/ubuntu xenial main" > /etc/apt/sources.list.d/ka-lite.list apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 74F88ADB3194DD81 apt-get -y update apt-get install -y ka-lite-raspberry-pi

benjaoming commented 7 years ago

Thanks for getting back, I can confirm this now!

benjaoming commented 7 years ago

I can also confirm that I've found the fix.

benjaoming commented 7 years ago

The following lines are in your /etc/nginx/sites-available/kalite.conf by mistake and should be deleted:

    location /content/assessment/khan {
        alias   /usr/share/kalite/assessment/khan/;
    }

After removing them, run sudo service nginx reload

I'm creating an update now. In case you delete the lines manually, just beware that when you upgrade the ka-lite-raspberry-pi package, you will probably get a warning where you should accept the "package maintainers version".

Within a few hours, a fix will be out (takes a while to build and upload)...

case485 commented 7 years ago

Amazing - thanks for all the hard work.

benjaoming commented 7 years ago

A fix is now in https://launchpad.net/~learningequality/+archive/ubuntu/ka-lite-proposed/

benjaoming commented 7 years ago

The fix is now in the stable ka-lite repo and the learningequality.org server is also serving an updated ka-lite-raspberry-pi_0.17.0-0ubuntu3_all.deb.

http://pantry.learningequality.org/downloads/ka-lite/0.17/installers/debian/ka-lite-raspberry-pi_0.17.0-0ubuntu3_all.deb

Thanks for finding this @case485 and sorry about the delayed investigation from my side.