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

kalite installation freezes after installing libraries on python windows 10 #5535

Closed jkparra closed 6 years ago

jkparra commented 6 years ago

Summary

Kalite was downloaded and installed according to instructios. It froze after installing libraries on python 2.7.

System information

Windows 10. version 0.17, already working with ananconda 3

Please specify the KA Lite version you were using and your operating system!

Traceback or relevant snippet from server.log server log notes (extract)

Running migrations for securesync:
 - Migrating forwards to 0024_auto__del_unique_facilityuser_username_facility.
 > securesync:0001_initial
 > securesync:0002_auto__add_field_facilityuser_is_teacher
 > securesync:0003_auto__add_facilitygroup__add_field_facilityuser_group
 > securesync:0004_auto__add_field_facility_zoom
 > securesync:0005_auto__chg_field_device_public_key
 > securesync:0006_auto__del_registereddevicepublickey
 > securesync:0007_auto__add_registereddevicepublickey
 > securesync:0008_auto__add_field_syncsession_client_version__add_field_syncsession_clie
 > securesync:0009_auto__chg_field_syncsession_client_os__chg_field_syncsession_client_ve
 > securesync:0010_auto__add_syncedlog
 > securesync:0011_auto__add_field_facilityuser_zone_fallback__add_field_devicezone_zone_
 > securesync:0012_auto__add_field_facilityuser_deleted__add_field_devicezone_deleted__ad
 > securesync:0013_auto__add_field_facility_contact_name__add_field_facility_contact_phon
 > securesync:0014_auto__chg_field_facilityuser_last_name__chg_field_syncedlog_category
 > securesync:0015_auto__add_importpurgatory
 > securesync:0016_auto__add_field_importpurgatory_model_count
 > securesync:0017_auto__add_field_devicezone_revoked__add_field_devicezone_max_counter
 > securesync:0018_auto__add_field_device_version__add_field_syncsession_errors
 > securesync:0019_auto__add_cachedpassword
 > securesync:0019_auto__add_field_registereddevicepublickey_created_timestamp__add_field
 > securesync:0019_auto__add_zoneinvitation
 > securesync:0020_auto__add_field_devicemetadata_is_demo_device
 > securesync:0021_auto__chg_field_facilityuser_signature__chg_field_devicezone_signature
 > securesync:0021_merge_models
 > securesync:0022_auto__chg_field_facilityuser_counter__chg_field_devicezone_counter__ch
 > securesync:0023_auto__add_field_facilityuser_default_language
 > securesync:0024_auto__add_field_facilitygroup_description
 > securesync:0024_auto__del_unique_facilityuser_username_facility
 - Loading initial data for securesync.
Installed 0 object(s) from 0 fixture(s)
Running migrations for config:
 - Migrating forwards to 0002_auto__add_settings.
 > config:0001_initial
 > config:0002_auto__add_settings
 - Loading initial data for config.
Installed 0 object(s) from 0 fixture(s)
Running migrations for chronograph:
 - Migrating forwards to 0001_initial.
 > chronograph:0001_initial
 - Loading initial data for chronograph.
Installed 0 object(s) from 0 fixture(s)
Running migrations for main:
 - Migrating forwards to 0041_auto__add_contentrating__add_unique_contentrating_content_source_conte.
 > main:0001_initial
 > main:0002_auto__add_videofile
 > main:0003_auto__add_field_exerciselog_points
 > main:0004_auto__add_field_videofile_priority
 > main:0005_auto__add_field_exerciselog_struggling__add_field_exerciselog_attempts
 > main:0006_auto__add_settings
 > main:0007_auto__del_settings
 > main:0008_auto__add_field_exerciselog_completion_timestamp__add_field_exerciselo
 > main:0009_auto__add_field_videolog_completion_timestamp__add_field_videolog_comp
 > main:0010_auto__add_field_videofile_flagged_for_subtitle_download__add_field_vid
 > main:0011_auto__add_field_videofile_cancel_download
 > main:0012_auto__add_field_videolog_zone_fallback__add_field_exerciselog_zone_fal
 > main:0013_auto__add_field_videolog_deleted__add_field_exerciselog_deleted
 > main:0014_auto__chg_field_videolog_youtube_id__chg_field_videofile_youtube_id__c
 > main:0015_auto__add_languagepack
 > main:0016_auto__add_userlog__add_userlogsummary
 > main:0017_auto__add_field_userlogsummary_total_logins__chg_field_userlogsummary_
 > main:0018_auto__del_field_userlogsummary_total_logins__add_field_userlogsummary_
 > main:0019_auto__add_field_videolog_language__add_field_userlog_language__add_fie
 > main:0019_auto__chg_field_videolog_counter__chg_field_userlogsummary_counter__ch
 > main:0019_auto__chg_field_videolog_signature__chg_field_userlogsummary_signature
 > main:0020_auto__add_field_videolog_language__chg_field_videolog_counter__add_fie
 > main:0021_auto__chg_field_languagepack_code
 > main:0022_auto__add_field_languagepack_subtitle_count
 > main:0023_auto__del_field_videofile_subtitle_download_in_progress__del_field_vid
 > main:0024_auto__del_field_languagepack_crowdin_version__add_field_languagepack_l
 > main:0025_auto__add_field_userlogsummary_last_activity_datetime
 > main:0026_auto__del_videofile__del_languagepack
 > main:0027_auto__add_field_videolog_video_id
 > main:0028_set_video_id
 > main:0029_set_video_id_for_realz
 - Migration 'main:0029_set_video_id_for_realz' is marked for no-dry-run.
 > main:0030_auto__add_attemptlog
 > main:0031_auto__del_field_attemptlog_exercise_version__del_field_attemptlog_poin
 > main:0032_auto__del_field_attemptlog_random_seed__add_field_attemptlog_seed

How to reproduce

  1. Steps
  2. To
  3. Reproduce

Screenshots

If applicable

Real-life consequences (anything community should be aware, for instance how it affects your deployment)

If applicable

benjaoming commented 6 years ago

Hi @jkparra

Thanks for the report -- however to proceed to finding the cause, it would be nice to know which libraries you have installed?

Does uninstalling them make KA Lite run? Did you get KA Lite to work later on?

jkparra commented 6 years ago

Hello

Thanks for following up.

I've installed the most recent library I think 0.17.

With python 2.7 64 bits.

The installation put the leaf logo on bar menu. When you say start server it displays a message telling that another message will be send when server is running.

After 10 minutes nothing happened, the option start server was no available, neither stop server option.

Trying to get the server on the same computer 127.0.0.0:8008 refused connection.

I hope it helps.

Best regards

Jkparra

Enviado desde mi iPhone

El 10/11/2017, a las 4:35 p.m., Benjamin Bach notifications@github.com escribió:

Hi @jkparra

Thanks for the report -- however to proceed to finding the cause, it would be nice to know which libraries you have installed?

Does uninstalling them make KA Lite run? Did you get KA Lite to work later on?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

benjaoming commented 6 years ago

I believe your KA Lite installation might be active or might have stopped for a reason -- although it appears to be frozen.

To get it resolved, try this:

Stop KA Lite completely

  1. Make sure there is no KA Lite running at all. Best way is to restart Windows, otherwise navigate to Task Manager and make sure to kill all running processes that are related to KA Lite (maybe labeled python.exe)

Run KA Lite directly from command line, without the UI from the installer:

  1. With File Manager, navigate to C:\Python27\Scripts
  2. Get command prompt (SHIFT+right-click open area; select "Open command window here")
  3. C:\Python27\Scripts> kalite start --foreground

Now you can see what KA Lite is doing while it's starting.

This information is valuable to move on with troubleshooting.

For further assistance, please visit our Community Forums: https://community.learningequality.org/

Also ensure that you are not running the wrong Python version, if you have a 64 bit Windows you should run the 64 bit version, if you have 32 bit you should run Python 32 bit version. See: "KA LITE Server doesn’t starts on Windows 10"