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
458 stars 305 forks source link

The videos don't download and nothing is reported as an error #2434

Closed ChewbaccaKL closed 10 years ago

ChewbaccaKL commented 10 years ago

We git-hubbed the ka-lite on newly installed ubuntu 14.04. It worked until we tried to download videos. The webpage at 127.0.0.1:8008 reported the video download started but nothing happened next few minutes and no error was reported. On another system (Ubuntu 12.04 freshly installed) the same procedure worked and videos were downloaded correctly.

I'd love to add any concrete bug reports but I don't know how to make ka-lite print it's debug on console or somewhere else.

aronasorman commented 10 years ago

Strange. Did you try redownloading the videos again on the faulty system?

aronasorman commented 10 years ago

Can you run echo "DEBUG = True" > local_settings.py inside your ka-lite/kalite directory and see if it would give more meaningful errors?

LechMankiewicz commented 10 years ago

Aron, I am an idiot, but if I type 'echo "DEBUG = True" > local_settings.py' inside ka-lite directory and press enter it just copies DEBUG = True to the local_settings.py file. If I subsequently run ka-lite it writes something on screen...

LechMankiewicz commented 10 years ago

lech@niedzwiedz:~/Lech/ka-lite$ ./start.sh

(Warning: Web server may still be running; attempting to stop old process (17783) first)

Closing server id: 17783

DEBUG:kalite:Cache location = /tmp/kalite_web_cache_lech/a409cec78ad74236324e3338f7a849d13102be10/ DEBUG:kalite:======== MIDDLEWARE ======== DEBUG:kalite:django.contrib.sessions.middleware.SessionMiddleware django.middleware.csrf.CsrfViewMiddleware kalite.i18n.middleware.SessionLanguage django.middleware.locale.LocaleMiddleware django.contrib.auth.middleware.AuthenticationMiddleware django.contrib.messages.middleware.MessageMiddleware fle_utils.django_utils.middleware.GetNextParam kalite.facility.middleware.AuthFlags kalite.facility.middleware.FacilityCheck securesync.middleware.RegisteredCheck securesync.middleware.DBCheck django.middleware.common.CommonMiddleware kalite.distributed.middleware.LockdownCheck django_snippets.profiling_middleware.ProfileMiddleware django_snippets.session_timeout_middleware.SessionIdleTimeout DEBUG:kalite:====== INSTALLED_APPS ====== DEBUG:kalite:kalite.i18n kalite.testing kalite.topic_tools kalite.updates django.contrib.sessions fle_utils.config fle_utils.django_utils kalite.facility django.contrib.auth django.contrib.staticfiles django_extensions south fle_utils.chronograph kalite.caching kalite.control_panel kalite.main securesync django.contrib.messages kalite.coachreports kalite.khanload kalite.django_cherrypy_wsgiserver kalite.remoteadmin django_snippets django.contrib.admin kalite.testing.loadtesting django.contrib.contenttypes fle_utils.testing kalite.distributed DEBUG:kalite:============================ Trying to start the web server. DEBUG:kalite:Cache location = /tmp/kalite_web_cache_lech/a409cec78ad74236324e3338f7a849d13102be10/ DEBUG:kalite:======== MIDDLEWARE ======== DEBUG:kalite:django.contrib.sessions.middleware.SessionMiddleware django.middleware.csrf.CsrfViewMiddleware kalite.i18n.middleware.SessionLanguage django.middleware.locale.LocaleMiddleware django.contrib.auth.middleware.AuthenticationMiddleware django.contrib.messages.middleware.MessageMiddleware fle_utils.django_utils.middleware.GetNextParam kalite.facility.middleware.AuthFlags kalite.facility.middleware.FacilityCheck securesync.middleware.RegisteredCheck securesync.middleware.DBCheck django.middleware.common.CommonMiddleware kalite.distributed.middleware.LockdownCheck django_snippets.profiling_middleware.ProfileMiddleware django_snippets.session_timeout_middleware.SessionIdleTimeout DEBUG:kalite:====== INSTALLED_APPS ====== DEBUG:kalite:kalite.i18n kalite.testing kalite.topic_tools kalite.updates django.contrib.sessions fle_utils.config fle_utils.django_utils kalite.facility django.contrib.auth django.contrib.staticfiles django_extensions south fle_utils.chronograph kalite.caching kalite.control_panel kalite.main securesync django.contrib.messages kalite.coachreports kalite.khanload kalite.django_cherrypy_wsgiserver kalite.remoteadmin django_snippets django.contrib.admin kalite.testing.loadtesting django.contrib.contenttypes fle_utils.testing kalite.distributed DEBUG:kalite:============================ INFO:kalite:Invalidating the web cache. INFO:kalite:Running videoscan. INFO:kalite:Preloading topic data. DEBUG:kalite:Adding dubbed video map entry for no (name=norsk) DEBUG:kalite:Adding dubbed video map entry for de (name=deutsch) DEBUG:kalite:Adding dubbed video map entry for cs (name=czech) DEBUG:kalite:Adding dubbed video map entry for ja (name=japanese) DEBUG:kalite:Adding dubbed video map entry for it (name=italiano) DEBUG:kalite:Adding dubbed video map entry for mn (name=mongolian) DEBUG:kalite:Adding dubbed video map entry for he (name=hebrew) DEBUG:kalite:Adding dubbed video map entry for ur (name=urdu) DEBUG:kalite:Adding dubbed video map entry for pl (name=polish) DEBUG:kalite:Adding dubbed video map entry for ar (name=arabic) DEBUG:kalite:Adding dubbed video map entry for pt-PT (name=portugal portugues) DEBUG:kalite:Adding dubbed video map entry for si (name=sinhala) DEBUG:kalite:Adding dubbed video map entry for xho (name=xhosa) DEBUG:kalite:Adding dubbed video map entry for te (name=telugu) DEBUG:kalite:Adding dubbed video map entry for el (name=greek) DEBUG:kalite:Adding dubbed video map entry for bn (name=bangla) DEBUG:kalite:Adding dubbed video map entry for sd (name=sindhi) DEBUG:kalite:Adding dubbed video map entry for tr (name=turkce) DEBUG:kalite:Adding dubbed video map entry for fa (name=farsi) DEBUG:kalite:Adding dubbed video map entry for da (name=danish) DEBUG:kalite:Adding dubbed video map entry for bg (name=bulgarian) DEBUG:kalite:Adding dubbed video map entry for sr (name=serbian) DEBUG:kalite:Adding dubbed video map entry for hy (name=armenian) DEBUG:kalite:Adding dubbed video map entry for sw (name=kiswahili) DEBUG:kalite:Adding dubbed video map entry for ru (name=russian) DEBUG:kalite:Adding dubbed video map entry for th (name=thai) DEBUG:kalite:Adding dubbed video map entry for ta (name=tamil) DEBUG:kalite:Adding dubbed video map entry for ko (name=korean) DEBUG:kalite:Adding dubbed video map entry for ne (name=nepali) DEBUG:kalite:Adding dubbed video map entry for en (name=english) DEBUG:kalite:Adding dubbed video map entry for pnb (name=punjabi) DEBUG:kalite:Adding dubbed video map entry for uk (name=ukranian) DEBUG:kalite:Adding dubbed video map entry for fr (name=francais) DEBUG:kalite:Adding dubbed video map entry for pt (name=portugues) DEBUG:kalite:Adding dubbed video map entry for id (name=bahasa indonesia) DEBUG:kalite:Adding dubbed video map entry for es (name=espanol) DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in it dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in it dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id RbG-Ieo3aOc in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id vJA5WJjE2z4 in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id Rzip69J2sv8 in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id jhVUEFBQ9TU in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id SOfgVnS6GSw in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id 9WVmZjPu3jQ in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id dcLu8t2YyNY in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id KKpP3mV71Xc in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id VjbfZ_yzAgo in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id qCRZ3ijIx6k in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id plWuDf3tJm8 in ar dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id PuX_UfgLJ18 in id dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id Rp5y5mreW3Y in es dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in ru dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id HBt9DysNEDw in ru dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id 0L5vExmOkLU in ru dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id Z5-qD90GShQ in ru dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id 5XOJREkLNBc in pt dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id iFKOVa_ILpc in no dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id IHegurwE0xc in no dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id 2KZ3eWYgJnA in no dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id 5QrzJEAkzlg in pl dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id K95VhqJiVgE in pl dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id MPEJM7qAEOg in pl dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id Ma_nhh1GQKU in pl dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id hKfboN9Ju3c in fr dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id jiRWg1qY33E in fr dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id SHhLAjE0B2I in fr dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id M99ZAIEz4Fc in fr dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id JsdhS9NbM84 in fr dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id fgxNyerG_b0 in fr dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id LIF-vv1B3IE in fr dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id PyskzFJotPM in fr dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id VUI2SC0x9Po in fr dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id hp0mwy_5AfE in fr dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id dfBNA3kRblM in bg dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id 5pcLXwHXn0g in bn dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id SQJAR4RHCWs in de dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in da dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id WPS7o23JhUA in da dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id NLrMJPXE-uQ in fa dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id fGxJ3mag1Po in fa dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id o-5ZPJ_Gnl4 in fa dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id Qdni_jA_vDk in fa dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id ng6LAvYZyEk in fa dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id NmnFTaVtlOE in fa dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id ng6LAvYZyEk in fa dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id fUaOoQTawT4 in fa dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id LAW19XxtdZ4 in fa dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id ng6LAvYZyEk in fa dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id fUaOoQTawT4 in fa dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id GFojVMC9DeA in fa dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id fUaOoQTawT4 in fa dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id o-5ZPJ_Gnl4 in fa dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in hy dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id d2tRtSeFuKs in hy dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id 0H-kn6s9bWc in ja dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in he dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in he dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in he dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #NAME? in pt-PT dubbed video map DEBUG:kalite:conflicting entry of dubbed_youtube_id #REF! in ur dubbed video map

0 static files copied, 2066 unmodified. To access KA Lite from another connected computer, try the following address(es): http://192.168.1.7:8008/ http://127.0.0.1:8008/

(Warning: Cron server may still be running; stopping old process (17815) first)

Killing all existing cron server processes (17815).

lech@niedzwiedz:~/Lech/ka-lite$ DEBUG:kalite:Cache location = /tmp/kalite_web_cache_lech/a409cec78ad74236324e3338f7a849d13102be10/ DEBUG:kalite:======== MIDDLEWARE ======== DEBUG:kalite:django.contrib.sessions.middleware.SessionMiddleware django.middleware.csrf.CsrfViewMiddleware kalite.i18n.middleware.SessionLanguage django.middleware.locale.LocaleMiddleware django.contrib.auth.middleware.AuthenticationMiddleware django.contrib.messages.middleware.MessageMiddleware fle_utils.django_utils.middleware.GetNextParam kalite.facility.middleware.AuthFlags kalite.facility.middleware.FacilityCheck securesync.middleware.RegisteredCheck securesync.middleware.DBCheck django.middleware.common.CommonMiddleware kalite.distributed.middleware.LockdownCheck django_snippets.profiling_middleware.ProfileMiddleware django_snippets.session_timeout_middleware.SessionIdleTimeout DEBUG:kalite:====== INSTALLED_APPS ====== DEBUG:kalite:kalite.i18n kalite.testing kalite.topic_tools kalite.updates django.contrib.sessions fle_utils.config fle_utils.django_utils kalite.facility django.contrib.auth django.contrib.staticfiles django_extensions south fle_utils.chronograph kalite.caching kalite.control_panel kalite.main securesync django.contrib.messages kalite.coachreports kalite.khanload kalite.django_cherrypy_wsgiserver kalite.remoteadmin django_snippets django.contrib.admin kalite.testing.loadtesting django.contrib.contenttypes fle_utils.testing kalite.distributed DEBUG:kalite:============================ Starting cronserver. Jobs will run every 600 seconds. DEBUG:kalite:No jobs due to run.

aronasorman commented 10 years ago

Hi @LechMankiewicz, can you try reproducing @ChewbaccaKL's bug with DEBUG turned on?

LechMankiewicz commented 10 years ago

@ChewbaccaKL did it on my laptop. I do not know how to turn DEBUG on...

aronasorman commented 10 years ago

Hi Lech,

It was already turned on with the echo DEBUG = True line given above.

2014-10-03 15:19 GMT-07:00 LechMankiewicz notifications@github.com:

@ChewbaccaKL https://github.com/ChewbaccaKL did it on my laptop. I do not know how to turn DEBUG on...

— Reply to this email directly or view it on GitHub https://github.com/learningequality/ka-lite/issues/2434#issuecomment-57870838 .

LechMankiewicz commented 10 years ago

OK, so the problem with downloading videos persisted, and I copied above everything which appeared on screen

aronasorman commented 10 years ago

Is there no output from the terminal after triggering the download? There should be some new output. Can you paste them here?

LechMankiewicz commented 10 years ago

The problem is that it says nothing more.

aronasorman commented 10 years ago

Can you try manually running python manage.py videodownload --commandline and see if there's any output?

LechMankiewicz commented 10 years ago

can't open file 'manage.py': [Errno 2] No such file or directory Indeed, there is only file local_settings.py, just opened by the 'echo' command

aronasorman commented 10 years ago

ah, make sure you're inside the ka-lite/kalite directory.

LechMankiewicz commented 10 years ago

INFO:kalite:Cancelling process videodownload TypeError: 'list' object is not callable

aronasorman commented 10 years ago

Ah! Now we're getting somewhere. Can you join our chat room @LechMankiewicz so we can debug this faster? Here's the link

LechMankiewicz commented 10 years ago

moved to hipchat.

aronasorman commented 10 years ago

Resolved on hipchat. Turns out to be related to the psutil issue.