learningequality / kolibri-installer-debian

Kolibri installer source for Debian
MIT License
1 stars 8 forks source link

Errors installing via PPA, take 2 #9

Closed radinamatic closed 6 years ago

radinamatic commented 6 years ago

@benjaoming

kolibri_0.7.0_beta5-0ubuntu1_all.deb on Ubuntu 16.10

sudo apt-get via PPA install fails, but sudo dpkg does the job.

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: keybox '/tmp/tmp0gl219ov/pubring.gpg' created
gpg: /tmp/tmp0gl219ov/trustdb.gpg: trustdb created
gpg: key 74F88ADB3194DD81: public key "Launchpad PPA for Foundation for Learning Equality" imported
gpg: Total number processed: 1
gpg:               imported: 1
OK
osboxes@osboxes:~$ sudo apt-get update
Ign:1 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety InRelease
Hit:2 http://security.ubuntu.com/ubuntu yakkety-security InRelease  
Hit:3 http://gb.archive.ubuntu.com/ubuntu yakkety InRelease                                          
Ign:4 http://dl.google.com/linux/chrome/deb stable InRelease                                         
Hit:5 http://gb.archive.ubuntu.com/ubuntu yakkety-updates InRelease                                  
Hit:6 http://dl.google.com/linux/chrome/deb stable Release                                         
Ign:7 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety Release
Hit:8 http://gb.archive.ubuntu.com/ubuntu yakkety-backports InRelease   
Ign:9 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main i386 Packages
Ign:10 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main all Packages
Hit:12 https://download.sublimetext.com apt/stable/ InRelease                 
Ign:13 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main amd64 Packages
Ign:14 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en_US
Ign:15 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en_GB
Ign:16 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en
Ign:17 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main all DEP-11 Metadata
Ign:19 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main DEP-11 64x64 Icons
Ign:9 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main i386 Packages
Ign:10 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main all Packages
Ign:13 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main amd64 Packages
Ign:14 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en_US
Ign:15 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en_GB
Ign:16 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en
Ign:17 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main all DEP-11 Metadata
Ign:19 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main DEP-11 64x64 Icons
Ign:9 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main i386 Packages
Ign:10 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main all Packages
Ign:13 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main amd64 Packages
Ign:14 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en_US
Ign:15 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en_GB
Ign:16 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en
Ign:17 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main all DEP-11 Metadata
Ign:19 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main DEP-11 64x64 Icons
Ign:9 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main i386 Packages
Ign:10 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main all Packages
Ign:13 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main amd64 Packages
Ign:14 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en_US
Ign:15 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en_GB
Ign:16 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en
Ign:17 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main all DEP-11 Metadata
Ign:19 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main DEP-11 64x64 Icons
Ign:9 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main i386 Packages
Ign:10 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main all Packages
Ign:13 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main amd64 Packages
Ign:14 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en_US
Ign:15 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en_GB
Ign:16 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en
Ign:17 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main all DEP-11 Metadata
Ign:19 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main DEP-11 64x64 Icons
Err:9 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main i386 Packages
  404  Not Found
Ign:10 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main all Packages
Ign:13 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main amd64 Packages
Ign:14 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en_US
Ign:15 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en_GB
Ign:16 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main Translation-en
Ign:17 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main all DEP-11 Metadata
Ign:19 http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety/main DEP-11 64x64 Icons
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu yakkety Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/learningequality/kolibri-proposed/ubuntu/dists/yakkety/main/binary-i386/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
osboxes@osboxes:~$ sudo apt-get install kolibri
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package kolibri
osboxes@osboxes:~$ cd Desktop/
osboxes@osboxes:~/Desktop$ sudo dpkg -i kolibri_0.7.0_beta5-0ubuntu1_all.deb 
Selecting previously unselected package kolibri.
(Reading database ... 211505 files and directories currently installed.)
Preparing to unpack kolibri_0.7.0_beta5-0ubuntu1_all.deb ...
Unpacking kolibri (0.7.0~beta5-0ubuntu1) ...
Setting up kolibri (0.7.0~beta5-0ubuntu1) ...
Creating new user kolibri
Adding system user `kolibri' (UID 125) ...
Adding new user `kolibri' (UID 125) with group `nogroup' ...
Creating home directory `/var/kolibri' ...
Synchronizing state of kolibri.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable kolibri
Processing triggers for systemd (231-9ubuntu5) ...
Processing triggers for ureadahead (0.100.0-19) ...
osboxes@osboxes:~/Desktop$

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

osboxes@osboxes:~/Desktop$ kolibri status
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: auth, morango, sessions, contenttypes, content, exams, kolibriauth, admin, logger, device
Running migrations:
  Rendering model states... DONE
  Applying kolibriauth.0001_initial... OK
  Applying contenttypes.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0001_initial... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying content.0001_initial... OK
  Applying content.0002_channelmetadatacache_last_updated... OK
  Applying content.0003_auto_20170607_1212... OK
  Applying content.0004_auto_20170825_1038... OK
  Applying content.0005_auto_20171009_0903... OK
  Applying content.0006_auto_20171128_1703... OK
  Applying kolibriauth.0002_auto_20170608_2125... OK
  Applying kolibriauth.0003_auto_20170621_0958... OK
  Applying device.0001_initial... OK
  Applying device.0002_devicesettings_default_facility... OK
  Applying exams.0001_initial... OK
  Applying kolibriauth.0004_auto_20170816_1607... OK
  Applying kolibriauth.0005_auto_20170818_1203... OK
  Applying logger.0001_initial... OK
  Applying logger.0002_auto_20170518_1031... OK
  Applying logger.0003_auto_20170531_1140... OK
  Applying morango.0001_initial... OK
  Applying morango.0002_auto_20170511_0400... OK
  Applying morango.0003_auto_20170519_0543... OK
  Applying morango.0004_auto_20170520_2112... OK
  Applying morango.0005_auto_20170629_2139... OK
  Applying morango.0006_instanceidmodel_system_id... OK
  Applying sessions.0001_initial... OK
INFO     Automatically enabling applications.
INFO     Running update routines for new version...
Copying '/usr/lib/python3/dist-packages/kolibri/core/static/default_frontend/en-0.6.0.js'
Copying '/usr/lib/python3/dist-packages/kolibri/core/static/default_frontend/3-0.5.0.dev46.js'
Copying '/usr/lib/python3/dist-packages/kolibri/core/static/default_frontend/fakeRtl-0.6.dev020171018225415-git.js'
Copying '/usr/lib/python3/dist-packages/kolibri/core/static/default_frontend/0-0.5.0.dev46.js'
Copying '/usr/lib/python3/dist-packages/kolibri/core/static/default_frontend/sw-SW-0.6.0.js'
Copying '/usr/lib/python3/dist-packages/kolibri/core/static/default_frontend/default_frontend0.7.0.dev020171201172142-git.rtl.css'
Copying '/usr/lib/python3/dist-packages/kolibri/core/static/default_frontend/ar-0.7.0.dev020171201172142-git.js'
Copying '/usr/lib/python3/dist-packages/kolibri/core/static/default_frontend/fakeRtl-0.6.0.js'

... (a lot of copying goes on)

Copying '/usr/lib/python3/dist-packages/kolibri/plugins/style_guide/static/style_guide_module/style_guide_module0.6.dev020171018225415-git.css'
Copying '/usr/lib/python3/dist-packages/kolibri/plugins/style_guide/static/style_guide_module/style_guide_module0.6.0.rtl.css'

560 static files copied to '/home/osboxes/.kolibri/static'.
Operations to perform:
  Apply all migrations: auth, morango, sessions, contenttypes, content, exams, kolibriauth, admin, logger, device
Running migrations:
  No migrations to apply.
  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)
osboxes@osboxes:~/Desktop$ 

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.

fullscreen_04_12_17_22_16

radinamatic commented 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.

fullscreen_04_12_17_23_02

kolibri.log

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
...
benjaoming commented 6 years ago

@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 commented 6 years ago

@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

rtibbles commented 6 years ago

Ugh, yes we need to make an issue for that and fix our historic migrations to be Py2/3 compatible.

radinamatic commented 6 years ago

@benjaoming I was wrong ref. EOL for Trusty, it's April 2019, so we should make it work soon, somehow!

https://wiki.ubuntu.com/Releases

benjaoming commented 6 years ago

@radinamatic righto, it already has a separate issue: https://github.com/learningequality/kolibri-installer-debian/issues/8

benjaoming commented 6 years ago

@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?

radinamatic commented 6 years ago

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:

ubuntu16 04 start running - oracle vm virtualbox_003

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:

Kolibri installed from PPA

Import stalls at downloading channel DB, and never gets to display the channel contents:

ubuntu16 04 start running - oracle vm virtualbox_004

Kolibri run from 0.7-beta5 PEX

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.

ubuntu16 04 start running - oracle vm virtualbox_006

Kolibri run from final 0.7 release PEX

Import works with no issues: ubuntu16 04 start running - oracle vm virtualbox_008

@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:

benjaoming commented 6 years ago

@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

radinamatic commented 6 years ago

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:

benjaoming commented 6 years ago

@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.

radinamatic commented 6 years ago

@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...

benjaoming commented 6 years ago

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? :)

benjaoming commented 6 years ago

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

benjaoming commented 6 years ago

*) 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

radinamatic commented 6 years ago

I totally defer to your wisdom in this area... :bowing_woman:

benjaoming commented 6 years ago

Haha thanks, it would be nothing without the empirical insights from thorough, structured testing :heart:

benjaoming commented 6 years ago

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.