Closed radinamatic closed 6 years ago
On Ubuntu 16.04 install with PPA works OK for a change, but I get Internal Server Error: /api/deviceprovision/
after the last step of the setup wizard.
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/tmpqja4dzqs/secring.gpg' created
gpg: keyring `/tmp/tmpqja4dzqs/pubring.gpg' created
gpg: requesting key 3194DD81 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpqja4dzqs/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
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 http://gb.archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu xenial InRelease [18.1 kB]
Hit:5 http://dl.google.com/linux/chrome/deb stable Release
Hit:6 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:7 http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:9 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu xenial/main amd64 Packages [528 B]
Get:10 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu xenial/main i386 Packages [528 B]
Get:11 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu xenial/main Translation-en [416 B]
Fetched 19.5 kB in 1s (12.5 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 13 not upgraded.
Need to get 41.8 MB of archives.
After this operation, 264 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu xenial/main amd64 kolibri all 0.7.0~beta5-0ubuntu1 [41.8 MB]
Fetched 41.8 MB in 4min 25s (157 kB/s)
Preconfiguring packages ...
Selecting previously unselected package kolibri.
(Reading database ... 246369 files and directories currently installed.)
Preparing to unpack .../kolibri_0.7.0~beta5-0ubuntu1_all.deb ...
Unpacking kolibri (0.7.0~beta5-0ubuntu1) ...
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up kolibri (0.7.0~beta5-0ubuntu1) ...
Creating new user kolibri
Adding system user `kolibri' (UID 121) ...
Adding new user `kolibri' (UID 121) with group `nogroup' ...
Creating home directory `/var/kolibri' ...
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...
osboxes@osboxes:~$ kolibri start --debug --foreground
INFO Running Kolibri with the following settings: kolibri.deployment.default.settings.base
INFO Kolibri running for the first time.
INFO We don't yet use pre-migrated database seeds, so you're going to have to wait a bit while we create a blank database...
Operations to perform:
Apply all migrations: kolibriauth, contenttypes, device, exams, auth, sessions, content, morango, admin, logger
Running migrations:
Rendering model states... DONE
Applying kolibriauth.0001_initial... OK
...
@radinamatic thanks for testing :)
Ubuntu 16.10
It's unsupported! So there's no release for it on Launchpad, labeling stuff as yakkety
won't work anymore :) This is why you have this in the log:
E: Failed to fetch http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu/dists/yakkety/main/binary-i386/Packages 404 Not Found
Current support is: Xenial, Zesty, Artful and Bionic (Trusty pending)
I get
Internal Server Error: /api/deviceprovision/
after the last step of the setup wizard.
This sounds like a duplicate of: https://github.com/learningequality/kolibri/issues/2805 ? Can you try sudo apt remove python3-cryptography
and see if that fixes it?
However it still seems stuck on preparing the import
I'm not sure that this is related to the Debian package, but I will try to reproduce it.
In general, when everything is working fine and you can spin up Kolibri: If there is a subsequent issue, could you try out some build of the same source version that you know to be working? In this case, for instance a 0.7.0-beta5
pex?
@indirectlylit regarding this issue -- is that a reported issue in 0.7.0-beta5
?
Your models have changes that are not yet reflected in a migration, and so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
Stopped (1)
@indirectlylit regarding this issue -- is that a reported issue in 0.7.0-beta5 ?
you're referring to the "Your models have changes" message? No, I'm not aware of an issue about that
Ugh, yes we need to make an issue for that and fix our historic migrations to be Py2/3 compatible.
@benjaoming I was wrong ref. EOL for Trusty, it's April 2019, so we should make it work soon, somehow!
@radinamatic righto, it already has a separate issue: https://github.com/learningequality/kolibri-installer-debian/issues/8
@radinamatic if you can try this out, we might be able to close this ticket because the feedback has all been processed :)
I get
Internal Server Error: /api/deviceprovision/
after the last step of the setup wizard.This sounds like a duplicate of: https://github.com/learningequality/kolibri/issues/2805 ? Can you try
sudo apt remove python3-cryptography
and see if that fixes it?
This sounds like a duplicate of: learningequality/kolibri#2805 ? Can you try sudo apt remove python3-cryptography and see if that fixes it?
@benjaoming Yes, running sudo apt remove python3-cryptography
apparently fixes the deviceprovision
error and the Setup Wizard finishes correctly:
Content import still fails, and as you suggested I tried with 0.7-beta5 PEX (which I believe was tagged from assets built in this PR). Import failed with it too, although with somewhat different output:
Import stalls at downloading channel DB, and never gets to display the channel contents:
Channel contents are displayed, however once items are selected and I press the Import
button, nothing seems to get imported but the message Finished... Press Close...
appears immediately.
Import works with no issues:
@benjaoming Could you build a new DEB series from the final 0.7 release (I'm guessing the python3-cryptography
issue has already been fixed too), so we can have working ones on Launchpad? :slightly_smiling_face:
@radinamatic yeah, let me build another .deb and get back!
Btw.. when testing and you see /home/osboxes
, there's something wrong: Either you test kolibri by running kolibri start
as your local user, or something else is wrong. It's supposed to run as a system service and then user is called kolibri
, it's user data directory is /var/kolibri/.kolibri
When system service is on and running, I'm unable to get any output in the Terminal. So after the installation I usually test if the service is running correctly, before and after the reboot, and then I stop it so I can start Kolibri from the command line with --debug --foreground
flags.
And osboxes
is indeed the name of the local user, that's how the VM image was initially setup, I just added the alias kolibri
. All's cool... :slightly_smiling_face:
@radinamatic
(I'm guessing the python3-cryptography issue has already been fixed too)
It will be fixed from 0.7.1, the fix was merged, but not in time for 0.7.0.
@benjaoming
And there is no way for you to trigger sudo apt remove python3-cryptography
during the deb
install? If not, we should add that step to the docs, and as a known issue...
When system service is on and running, I'm unable to get any output in the Terminal. So after the installation I usually test if the service is running correctly, before and after the reboot, and then I stop it so I can start Kolibri from the command line with --debug --foreground flags.
Ah yes, fetching logs isn't that self-explanatory for the Kolibri system user. They're all located in /var/kolibri/.kolibri
. Would you be able to do some more of the tests solely with the Kolibri user? There might be some issues hidden here.
You can also login as the kolibri user with: sudo su -s /bin/bash -l kolibri
-- easy to remember, right? :)
And there is no way for you to trigger sudo apt remove python3-cryptography during the deb install? If not, we should add that step to the docs, and as a known issue...
We can make it a conflicting package, but it's a very very bad solution, because most likely the package is there for a reason. Uninstalling it would likely uninstall a package that the user wants. I had a look at its popularity over in this comment: https://github.com/learningequality/kolibri/pull/2808#issuecomment-350044481
*) The better solution would be that our software works with the system that it's running in :) The way to achieve this is not that easy, but we'll get there! Just likely not fully in 0.7.1
I totally defer to your wisdom in this area... :bowing_woman:
Haha thanks, it would be nothing without the empirical insights from thorough, structured testing :heart:
But am going to close this, since we have the parts with cryptography covered in other issues -- would be nice to get a new issue opened if the final packages in the kolibri-proposed PPA has issues downloading content channels that the source packages/pex don't have.
@benjaoming
kolibri_0.7.0_beta5-0ubuntu1_all.deb
on Ubuntu 16.10sudo apt-get
via PPA install fails, butsudo dpkg
does the job.Server runs, but stalls on import from Kolibri Central Server. I tried to figure out why, as no error was appearing, and run
kolibri status
I restart the VM, system-service works, Kolibri autoruns on boot (yey, 👍), however it still seems stuck on preparing the import 😞
How do I run kolibri with
--debug --foreground
options? It doesn't seem to want to cooperate.