Closed rtibbles closed 9 years ago
Confirmed on:
Branch: 0.14.x Platform: Ubuntu Installer: Launchpad PPA
On my first try I let the installer download the assessment.zip (just being curious how long it would take), and after 40 minutes computer froze, and I had to restart. On second try I downloaded the zip file and pointed the installer to it. Unpacking was successful, and server started, but I get the same exact view as on @rtibbles screenshot above.
Yes, this would have appeared both in your instructions for the bug bash and in the non-merged, non-built docs PR :P
I'm not sure I understand, @benjaoming, the second time I did run kalite manage setup
and unpacked the assessment.zip, why are there no exercises to be seen?
@radinamatic you need to kalite restart
maybe?
Restarting gave me tota11y blank page... After a while I tried kalite stop
and got:
didi@didihp:~$ kalite stop
Already stopped. Status was: KA Lite server configuration error
Now it gives blank page at kalite start
didi@didihp:~$ kalite start
Running 'kalite start' as daemon (system service)
Stand by while the server loads its data...
INFO:kalite:Invalidating the web cache.
INFO:kalite:Running videoscan.
INFO:kalite:Preloading exercise data for language en.
INFO:kalite:Preloading content data for language en.
INFO:kalite:Preloading topic tree data for language en.
INFO:kalite:Preloading exercise data for language es.
INFO:kalite:Preloading content data for language es.
INFO:kalite:Preloading topic tree data for language es.
INFO:kalite:Copying static media...
WARNING:py.warnings:/usr/share/kalite/python-packages/tastypie/resources.py:328: UserWarning: 'override_urls' is a deprecated method & will be removed by v1.0.0. Please rename your method to ``prepend_urls``.
warnings.warn("'override_urls' is a deprecated method & will be removed by v1.0.0. Please rename your method to ``prepend_urls``.")
To access KA Lite from another connected computer, try the following address(es):
http://192.168.1.39:8008/
To access KA Lite from this machine, try the following address:
http://127.0.0.1:8008/
Going to daemon mode, logging to /home/didi/.kalite/server.log
didi@didihp:~$
After updating to 0.14.alpha2:
didi@didihp:~$ kalite manage setup
_ __ ___ _ _ _
| | / / / _ \ | | (_) |
| |/ / / /_\ \ | | _| |_ ___
| \ | _ | | | | | __/ _ \
| |\ \| | | | | |___| | || __/
\_| \_/\_| |_/ \_____/_|\__\___|
http://kalite.learningequality.org
version 0.14.alpha2
WARNING:root:It's recommended that you install Python version 2.7.9. Your version is: sys.version_info(major=2, minor=7, micro=8, releaselevel='final', serial=0)
--------------------------------------------------------------------------------
This script will configure the database and prepare it for use.
--------------------------------------------------------------------------------
Press [enter] to continue...
-------------------------------------------------------------------
WARNING: Database file already exists!
-------------------------------------------------------------------
Keep database file and upgrade to KA Lite version 0.14.alpha2? (yes or no) no
Remove database file '/home/didi/.kalite/database/default.sqlite' now? (yes or no) yes
WARNING: all data will be lost! Are you sure? (yes or no) yes
OK. We will run a clean install;
the database file will be moved to a deletable location.
Please choose a username and password for the admin account on this device.
You must remember this login information, as you will need
to enter it to administer this installation of KA Lite.
Username (leave blank to use 'didi'): admin
Password:
Password (again):
Please enter a hostname for this server (or, press Enter to use 'didihp'):
Please enter a one-line description for this server (or, press Enter to leave blank):
WARNING:py.warnings:/usr/lib/python2.7/dist-packages/kalite/distributed/management/commands/setup.py:66: UserWarning: /usr/share/kalite/dist-packages is not writable so cannot delete stale *pyc files
"{0} is not writable so cannot delete stale *pyc files".format(path))
WARNING:py.warnings:/usr/lib/python2.7/dist-packages/kalite/distributed/management/commands/setup.py:66: UserWarning: /usr/share/kalite/python-packages is not writable so cannot delete stale *pyc files
"{0} is not writable so cannot delete stale *pyc files".format(path))
(Re)moving database file to temp location, starting clean install. Recovery location: /tmp/tmp9824E8
Syncing...
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_groups
Creating table auth_user_user_permissions
Creating table auth_user
Creating table django_session
Creating table django_admin_log
Creating table django_content_type
Creating table south_migrationhistory
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
Synced:
> django.contrib.auth
> django.contrib.sessions
> django.contrib.messages
> django.contrib.admin
> django.contrib.staticfiles
> django.contrib.contenttypes
> compressor
> django_js_reverse
> south
> kalite.coachreports
> kalite.distributed
> kalite.topic_tools
> kalite.contentload
> kalite.dynamic_assets
> kalite.control_panel
Not synced (use migrations):
- securesync
- fle_utils.config
- fle_utils.chronograph
- kalite.main
- kalite.playlist
- kalite.updates
- kalite.facility
- kalite.student_testing
- kalite.store
- kalite.i18n
- tastypie
(use ./manage.py migrate to migrate these)
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 0038_auto__add_field_videolog_latest_activity_timestamp__add_field_contentl.
> 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
> main:0033_auto__add_contentlog
> main:0033_auto__add_index_attemptlog_user_exercise_id_context_type
> main:0034_auto__add_field_contentlog_start_timestamp__add_field_contentlog_progr
> main:0035_auto__chg_field_contentlog_progress
> main:0036_auto__del_field_attemptlog_response_count__add_field_attemptlog_assess
> main:0038_auto__add_field_videolog_latest_activity_timestamp__add_field_contentl
- Loading initial data for main.
Installed 0 object(s) from 0 fixture(s)
Running migrations for playlist:
- Migrating forwards to 0005_auto__add_field_quizlog_total_number.
> playlist:0001_initial
> playlist:0002_auto
> playlist:0003_auto__chg_field_playlisttogroupmapping_playlist
> playlist:0004_auto__add_quizlog
> playlist:0005_auto__add_field_quizlog_total_number
- Loading initial data for playlist.
Installed 0 object(s) from 0 fixture(s)
Running migrations for updates:
- Migrating forwards to 0007_auto__add_field_videofile_language.
> updates:0001_initial
> updates:0002_auto__add_field_updateprogresslog_cancel_requested
> updates:0003_auto__chg_field_updateprogresslog_total_stages
> updates:0004_auto__add_field_updateprogresslog_current_stage
> updates:0005_auto__add_videofile
> updates:0006_auto__add_field_updateprogresslog_stage_status
> updates:0007_auto__add_field_videofile_language
- Loading initial data for updates.
Installed 0 object(s) from 0 fixture(s)
Running migrations for facility:
- Migrating forwards to 0001_initial.
> facility:0001_initial
- Loading initial data for facility.
Installed 0 object(s) from 0 fixture(s)
Running migrations for student_testing:
- Migrating forwards to 0005_auto__add_field_testlog_total_number.
> student_testing:0001_initial
> student_testing:0002_auto__del_field_testlog_test_sequence__add_field_testlog_started
> student_testing:0003_auto__del_testlog
> student_testing:0004_auto__add_testlog
> student_testing:0005_auto__add_field_testlog_total_number
- Loading initial data for student_testing.
Installed 0 object(s) from 0 fixture(s)
Running migrations for store:
- Migrating forwards to 0001_initial.
> store:0001_initial
- Loading initial data for store.
Installed 0 object(s) from 0 fixture(s)
Running migrations for i18n:
- Migrating forwards to 0003_auto__del_languagepack.
> i18n:0001_initial
> i18n:0002_add_english_languagepack
- Migration 'i18n:0002_add_english_languagepack' is marked for no-dry-run.
> i18n:0003_auto__del_languagepack
- Loading initial data for i18n.
Installed 0 object(s) from 0 fixture(s)
Running migrations for tastypie:
- Migrating forwards to 0002_add_apikey_index.
> tastypie:0001_initial
> tastypie:0002_add_apikey_index
- Loading initial data for tastypie.
Installed 0 object(s) from 0 fixture(s)
Syncing...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
Synced:
> django.contrib.auth
> django.contrib.sessions
> django.contrib.messages
> django.contrib.admin
> django.contrib.staticfiles
> django.contrib.contenttypes
> compressor
> django_js_reverse
> south
> kalite.coachreports
> kalite.distributed
> kalite.topic_tools
> kalite.contentload
> kalite.dynamic_assets
> kalite.control_panel
Not synced (use migrations):
- securesync
- fle_utils.config
- fle_utils.chronograph
- kalite.main
- kalite.playlist
- kalite.updates
- kalite.facility
- kalite.student_testing
- kalite.store
- kalite.i18n
- tastypie
(use ./manage.py migrate to migrate these)
Starting in version 0.13, you will need an assessment items package in order to access many of the available exercises.
If you have an internet connection, you can download the needed package. Warning: this may take a long time!
If you have already downloaded the assessment items package, you can specify the file in the next step.
Otherwise, we will download it from https://learningequality.org/downloads/ka-lite/0.14/content/assessment.zip.
Do you wish to download the assessment items package now? (yes or no) no
Have you already downloaded the assessment items package? (yes or no) yes
Please enter the filename of the assessment items package you have downloaded (): /home/didi/Desktop/assessment.zip
Generating 2048-bit RSA encryption key (may take a few minutes; please wait)...
Done!
Device 'didihp' has been successfully initialized.
Superuser created successfully.
Scanning for video files in the content directory (/home/didi/.kalite/content)
Created 4 VideoFile models (and marked them as complete, since the files exist)
CONGRATULATIONS! You've finished setting up the KA Lite server software.
You can now start KA Lite with the following command:
kalite start
didi@didihp:~$ kalite start
Running 'kalite start' as daemon (system service)
Stand by while the server loads its data...
INFO:kalite:Invalidating the web cache.
INFO:kalite:Running videoscan.
INFO:kalite:Preloading exercise data for language en.
INFO:kalite:Preloading content data for language en.
INFO:kalite:Preloading topic tree data for language en.
INFO:kalite:Preloading exercise data for language es.
INFO:kalite:Preloading content data for language es.
INFO:kalite:Preloading topic tree data for language es.
INFO:kalite:Copying static media...
WARNING:py.warnings:/usr/share/kalite/python-packages/tastypie/resources.py:328: UserWarning: 'override_urls' is a deprecated method & will be removed by v1.0.0. Please rename your method to ``prepend_urls``.
warnings.warn("'override_urls' is a deprecated method & will be removed by v1.0.0. Please rename your method to ``prepend_urls``.")
To access KA Lite from another connected computer, try the following address(es):
http://192.168.1.39:8008/
To access KA Lite from this machine, try the following address:
http://127.0.0.1:8008/
Going to daemon mode, logging to /home/didi/.kalite/server.log
Final result:
Error
Sorry, but there was an error while trying to load the page.
(DatabaseError: database is locked)
Reinstalled today with freshly downloaded assessment.zip and the alpha2 deb file: no errors on startup and all the assessment items seem present... :+1:
Stale.
Branch: 0.14.x Platform: Ubuntu Installer: Deb
Expected Behaviour: Assessment items should be available after installing on Debian.
Current Behaviour: All assessment items appear to be missing after installing on Debian.