Closed radinamatic closed 6 years ago
Thanks for testing this! Your findings convince me of having a similar set of automated tests as the KA Lite deb package. It's because I haven't been developing on an entirely clean system. Not sure for how long Travis will support sudo
commands, but the tests can be run locally with the same results.
I will get 0.7 built once 0.6 is stable - so you don't have to worry about the internals for now, unless they are persisting in 0.7 (in this case the channel import stuff)
Have fixed and deployed another release in ka-lite-proposed
, but Launchpad has a long queue tonight, so I won't be able to finish it before tomorrow.
It's probably best if you re-do the tests on a clean system again since that's my main challenge here :)
I haven't been developing on an entirely clean system ... It's probably best if you re-do the tests on a clean system again since that's my main challenge here
@benjaoming as part of manual testing on your end, I think it's important that you test in a clean ubuntu VM before passing it off to QA
will get 0.7 built once 0.6 is stable
I think it would be better to focus on 0.7 - there's no need for 0.6 and we need this fully tested and finished Monday.
Ok @benjaoming, I'll keep an eye on Launchpad, grab the ka-lite-proposed
as soon as it's ready, and re-test on a fresh VM!
@indirectlylit
@benjaoming as part of manual testing on your end, I think it's important that you test in a clean ubuntu VM before passing it off to QA
Responded elsewhere.
@radinamatic the PPA has the fix now for the above error, and have changed the Python version to 3.4.
@benjaoming Started well, even got to the system service confirmation, but errored out at the end...
Server is starting with kolibri start
, just no system-service boot, yet...
Upon VM reboot:
osboxes@osboxes:~$ sudo add-apt-repository ppa:learningequality/kolibri-proposed Do not use this PPA in a production environment.
Kolibri is an offline app and platform for universal education.
The latest documentation is available here: http://kolibri.readthedocs.io/
Retrieve and Distribute Open Educational Resources (OER) from online resources or from device to device. Resources are shared as 'channels', amongst which can be found Khan Academy, PhET and CK-12. To find more channels and create your own, please visit our website for sharing and editing channels: http://studio.learningequality.org/
The circumstances of the package are a bit extra-ordinary, given that it's intended for offline environments. So it cannot have any dependencies but aims to provide a portable .deb file.
Adding the PPA as an online source:
sudo add-apt-repository ppa:learningequality/kolibri
sudo apt-get update
sudo apt-get install kolibri
Downloading portable .deb files:
1. Go to "View package details"
2. Click on the latest package. It doesn't matter which one, all binaries
are the same, regardless of your architecture or Ubuntu/Debian version.
3. Scroll down to "Package files".
4. Fetch the relevant .deb file.
More info: https://launchpad.net/~learningequality/+archive/ubuntu/kolibri-proposed
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpdyhlh0xq/secring.gpg' created
gpg: keyring `/tmp/tmpdyhlh0xq/pubring.gpg' created
gpg: requesting key 3194DD81 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpdyhlh0xq/trustdb.gpg: trustdb created
gpg: key 3194DD81: public key "Launchpad PPA for Foundation for Learning Equality" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
osboxes@osboxes:~$ sudo apt-get update
Ign http://extras.ubuntu.com trusty InRelease
Ign http://dl.google.com stable InRelease
Hit http://extras.ubuntu.com trusty Release.gpg
Hit http://dl.google.com stable Release.gpg
Hit http://extras.ubuntu.com trusty Release
Hit http://dl.google.com stable Release
Hit http://extras.ubuntu.com trusty/main Sources
Hit http://dl.google.com stable/main amd64 Packages
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Get:1 http://ppa.launchpad.net trusty InRelease [16.0 kB]
Hit http://extras.ubuntu.com trusty/main i386 Packages
Ign http://gb.archive.ubuntu.com trusty InRelease
Hit http://gb.archive.ubuntu.com trusty Release.gpg
Hit http://ppa.launchpad.net trusty InRelease
Hit http://gb.archive.ubuntu.com trusty Release
Hit http://gb.archive.ubuntu.com trusty/main Sources
Get:2 http://ppa.launchpad.net trusty/main amd64 Packages [481 B]
Hit http://gb.archive.ubuntu.com trusty/restricted Sources
Hit http://gb.archive.ubuntu.com trusty/universe Sources
Hit http://gb.archive.ubuntu.com trusty/multiverse Sources
Get:3 http://ppa.launchpad.net trusty/main i386 Packages [481 B]
Hit http://gb.archive.ubuntu.com trusty/main amd64 Packages
Hit http://gb.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://gb.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://gb.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://gb.archive.ubuntu.com trusty/main i386 Packages
Get:4 http://ppa.launchpad.net trusty/main Translation-en [381 B]
Hit http://gb.archive.ubuntu.com trusty/restricted i386 Packages
Ign http://extras.ubuntu.com trusty/main Translation-en_US
Hit http://gb.archive.ubuntu.com trusty/universe i386 Packages
Ign http://extras.ubuntu.com trusty/main Translation-en
Ign http://dl.google.com stable/main Translation-en_US
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://gb.archive.ubuntu.com trusty/multiverse i386 Packages
Ign http://extras.ubuntu.com trusty/main Translation-en_GB
Ign http://dl.google.com stable/main Translation-en
Hit http://gb.archive.ubuntu.com trusty/main Translation-en
Ign http://dl.google.com stable/main Translation-en_GB
Hit http://gb.archive.ubuntu.com trusty/main Translation-en_GB
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://gb.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://gb.archive.ubuntu.com trusty/multiverse Translation-en_GB
Hit http://gb.archive.ubuntu.com trusty/restricted Translation-en
Hit http://gb.archive.ubuntu.com trusty/restricted Translation-en_GB
Hit http://gb.archive.ubuntu.com trusty/universe Translation-en
Hit http://gb.archive.ubuntu.com trusty/universe Translation-en_GB
Ign http://gb.archive.ubuntu.com trusty/main Translation-en_US
Ign http://gb.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://gb.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://gb.archive.ubuntu.com trusty/universe Translation-en_US
Hit http://ppa.launchpad.net trusty/main Translation-en
Fetched 17.3 kB in 23s (752 B/s)
Reading package lists... Done
osboxes@osboxes:~$ sudo apt-get install kolibri
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic
linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'apt-get autoremove' to remove them.
Suggested packages:
python3-cryptography
The following NEW packages will be installed:
kolibri
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 41.6 MB of archives.
After this operation, 262 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu/ trusty/main kolibri all 0.6.0-0ubuntu3 [41.6 MB]
Fetched 41.6 MB in 2min 41s (258 kB/s)
Preconfiguring packages ...
Selecting previously unselected package kolibri.
(Reading database ... 251321 files and directories currently installed.)
Preparing to unpack .../kolibri_0.6.0-0ubuntu3_all.deb ...
Unpacking kolibri (0.6.0-0ubuntu3) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Setting up kolibri (0.6.0-0ubuntu3) ...
Creating new user kolibri
Adding system user `kolibri' (UID 116) ...
Adding new user `kolibri' (UID 116) with group `nogroup' ...
Creating home directory `/var/kolibri' ...
Removing any system startup links for /etc/init.d/kolibri ...
Adding system startup for /etc/init.d/kolibri ...
/etc/rc0.d/K20kolibri -> ../init.d/kolibri
/etc/rc1.d/K20kolibri -> ../init.d/kolibri
/etc/rc6.d/K20kolibri -> ../init.d/kolibri
/etc/rc2.d/S20kolibri -> ../init.d/kolibri
/etc/rc3.d/S20kolibri -> ../init.d/kolibri
/etc/rc4.d/S20kolibri -> ../init.d/kolibri
/etc/rc5.d/S20kolibri -> ../init.d/kolibri
Traceback (most recent call last):
File "/usr/bin/kolibri", line 9, in <module>
load_entry_point('kolibri==0.6.0', 'console_scripts', 'kolibri')()
File "/usr/lib/python3/dist-packages/kolibri/utils/cli.py", line 620, in main
initialize(debug=debug)
File "/usr/lib/python3/dist-packages/kolibri/utils/cli.py", line 178, in initialize
django.setup()
File "/usr/lib/python3/dist-packages/kolibri/dist/django/__init__.py", line 17, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/usr/lib/python3/dist-packages/kolibri/dist/django/conf/__init__.py", line 55, in __getattr__
self._setup(name)
File "/usr/lib/python3/dist-packages/kolibri/dist/django/conf/__init__.py", line 43, in _setup
self._wrapped = Settings(settings_module)
File "/usr/lib/python3/dist-packages/kolibri/dist/django/conf/__init__.py", line 99, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1471, in exec_module
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/kolibri/deployment/default/settings/base.py", line 20, in <module>
from kolibri.utils import conf, i18n
File "/usr/lib/python3/dist-packages/kolibri/utils/conf.py", line 37, in <module>
os.mkdir(KOLIBRI_HOME)
PermissionError: [Errno 13] Permission denied: '/home/osboxes/.kolibri'
invoke-rc.d: initscript kolibri, action "start" failed.
Processing triggers for ureadahead (0.100.0-16) ...
osboxes@osboxes:~$
@radinamatic this is quite strange, seems that KOLIBRI_HOME
is pointing to the home directory of your logged in user osboxes
, and not /var/kolibri
, which the system service should be using.
It's quite exotic since the environment that the system service is running should explicitly NOT be affected by your login shell.
I'm going to investigate for 14.04 if this is deviation. Are you seeing the same on 16.04?
@benjaoming Must be a 14.04 issue as on 16.04 everything goes smooth, system-service is installed without errors, and kolibri is running on VM reboot:
osboxes@osboxes:~$ sudo add-apt-repository ppa:learningequality/kolibri-proposed
[sudo] password for osboxes:
Do not use this PPA in a production environment.
Kolibri is an offline app and platform for universal education.
The latest documentation is available here: http://kolibri.readthedocs.io/
Retrieve and Distribute Open Educational Resources (OER) from online resources or from device to device. Resources are shared as 'channels', amongst which can be found Khan Academy, PhET and CK-12. To find more channels and create your own, please visit our website for sharing and editing channels: http://studio.learningequality.org/
The circumstances of the package are a bit extra-ordinary, given that it's intended for offline environments. So it cannot have any dependencies but aims to provide a portable .deb file.
Adding the PPA as an online source:
sudo add-apt-repository ppa:learningequality/kolibri
sudo apt-get update
sudo apt-get install kolibri
Downloading portable .deb files:
1. Go to "View package details"
2. Click on the latest package. It doesn't matter which one, all binaries
are the same, regardless of your architecture or Ubuntu/Debian version.
3. Scroll down to "Package files".
4. Fetch the relevant .deb file.
More info: https://launchpad.net/~learningequality/+archive/ubuntu/kolibri-proposed
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmph7g7qzny/secring.gpg' created
gpg: keyring `/tmp/tmph7g7qzny/pubring.gpg' created
gpg: requesting key 3194DD81 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmph7g7qzny/trustdb.gpg: trustdb created
gpg: key 3194DD81: public key "Launchpad PPA for Foundation for Learning Equality" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
osboxes@osboxes:~$ sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://gb.archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu xenial InRelease [18.1 kB]
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Get:5 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:7 http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:8 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu xenial/main amd64 Packages [512 B]
Get:9 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu xenial/main i386 Packages [512 B]
Get:10 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:11 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu xenial/main Translation-en [416 B]
Fetched 326 kB in 2s (155 kB/s)
Reading package lists... Done
osboxes@osboxes:~$ sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu xenial InRelease
Hit:3 http://gb.archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Get:5 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:8 http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Fetched 306 kB in 1s (288 kB/s)
Reading package lists... Done
osboxes@osboxes:~$ sudo apt-get install kolibri
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
kolibri
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
Need to get 41.6 MB of archives.
After this operation, 262 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu xenial/main amd64 kolibri all 0.6.0-0ubuntu3 [41.6 MB]
Fetched 41.6 MB in 2min 47s (248 kB/s)
Preconfiguring packages ...
Selecting previously unselected package kolibri.
(Reading database ... 246369 files and directories currently installed.)
Preparing to unpack .../kolibri_0.6.0-0ubuntu3_all.deb ...
Unpacking kolibri (0.6.0-0ubuntu3) ...
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up kolibri (0.6.0-0ubuntu3) ...
Creating new user kolibri
Adding system user `kolibri' (UID 121) ...
Adding new user `kolibri' (UID 121) with group `nogroup' ...
Creating home directory `/var/kolibri' ...
Synchronizing state of kolibri.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable kolibri
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...
osboxes@osboxes:~$
Thanks for testing this @radinamatic ! Will track in a separate issue. Have removed Trusty support for now and will delete already released Trusty packages.
Errors while trying to use the PPA seem similar on all Ubuntu versions; installing the
deb
also triggers errors, but the server is starting anyways afterwards. However importing channels is unsuccessful, not sure if that's the issue on that particular release...Ubuntu 16.10
Ubuntu 17.04
On Ubuntu 14.04 I did not manage to install the Python >3.5 requirement, maybe we should exclude this version from the supported OS...? @benjaoming