Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate Kolibri 0.12.4 after its .pex pip installer is published (0.12.4 was released 2019-06-12) #1675

Closed
holta opened this issue May 18, 2019 · 8 comments
Milestone

Comments

@holta
Copy link
Member

holta commented May 18, 2019

Building on PR #1608 (Kolibri 0.12.3)

Kolibri 0.12.4 Milestone:
https://github.com/learningequality/kolibri/milestone/36

@holta holta added this to the 7.0 milestone May 18, 2019
@holta holta changed the title Validate Kolibri 0.12.4 on its release "June" ? Validate Kolibri 0.12.4 on its release in "June" ? May 18, 2019
@holta holta changed the title Validate Kolibri 0.12.4 on its release in "June" ? Validate Kolibri 0.12.4 after its .pex pip installer is published (0.12.4 was released 2019-06-12) Jun 12, 2019
@holta
Copy link
Member Author

holta commented Jun 12, 2019

Kolibri 0.12.4 was released earlier today:
https://github.com/learningequality/kolibri/releases/tag/v0.12.4

It will likely take a few days for them to publish their .pex (pip installer) as usual: https://learningequality.org/download/

@holta
Copy link
Member Author

holta commented Jun 13, 2019

Kolibri 0.12.4 was released earlier today:
https://github.com/learningequality/kolibri/releases/tag/v0.12.4

It will likely take a few days for them to publish their .pex (pip installer) as usual: https://learningequality.org/download/

@benjaoming Kolibri 0.12.4's .pex (pip install) is now available, and installs on Ubuntu 18.04, but fails completely to start its systemd service:

TASK [kolibri : Enable & (Re)Start kolibri service] ****************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Unable to restart service kolibri: Job for kolibri.service failed because the control process exited with error code.\nSee "systemctl status kolibri.service" and "journalctl -xe" for details.\n"}

A bit more detail here:

root@box:~# systemctl start kolibri
Job for kolibri.service failed because the control process exited with error code.
See "systemctl status kolibri.service" and "journalctl -xe" for details.

root@box:~# systemctl restart kolibri
Job for kolibri.service failed because the control process exited with error code.
See "systemctl status kolibri.service" and "journalctl -xe" for details.

root@box:~# systemctl status kolibri
● kolibri.service - Kolibri
   Loaded: loaded (/etc/systemd/system/kolibri.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2019-06-13 15:44:55 EDT; 1s ago
  Process: 18855 ExecStart=/usr/local/kolibri/bin/kolibri start (code=exited, status=1/FAILURE)
 Main PID: 1585 (code=killed, signal=TERM)

Jun 13 15:44:55 box.lan kolibri[18855]:   File "/usr/local/kolibri/lib/python2.7/site-packages/kolibri/dist/django/apps/registry.py", line 116, in populate
Jun 13 15:44:55 box.lan kolibri[18855]:     app_config.ready()
Jun 13 15:44:55 box.lan kolibri[18855]:   File "/usr/local/kolibri/lib/python2.7/site-packages/kolibri/dist/morango/apps.py", line 23, in ready
Jun 13 15:44:55 box.lan kolibri[18855]:     max_parameter_substitution()
Jun 13 15:44:55 box.lan kolibri[18855]:   File "/usr/local/kolibri/lib/python2.7/site-packages/kolibri/dist/morango/util.py", line 106, in max_parameter_substitution
Jun 13 15:44:55 box.lan kolibri[18855]:     with open(SQLITE_VARIABLE_FILE_CACHE, 'w') as file:
Jun 13 15:44:55 box.lan kolibri[18855]: IOError: [Errno 2] No such file or directory: '/home/kolibri/SQLITE_MAX_VARIABLE_NUMBER.cache'
Jun 13 15:44:55 box.lan systemd[1]: kolibri.service: Control process exited, code=exited status=1
Jun 13 15:44:55 box.lan systemd[1]: kolibri.service: Failed with result 'exit-code'.
Jun 13 15:44:55 box.lan systemd[1]: Failed to start Kolibri.

Note this was installing Kolibri 0.12.4 on top of 0.12.3 — as part of IIAB 7.0 — using the same approach that always worked in the past:

cd /opt/iiab/iiab
sudo ./runrole kolibri

Aside, @KW4NP & all please also continue to keep an eye on Kolibri's longstanding login blockage:

#1532 http://box/kolibri causes browser to infinitely loop, preventing login (works initially...server reboot does not help...happens with all client OS's & all server OS's)

@holta
Copy link
Member Author

holta commented Jun 13, 2019

I've mentioned this upstream too, just in case: learningequality/kolibri#5664

@benjaoming
Copy link

As a work-around, could you create a home directory for your kolibri user /home/kolibri and chown it to that user? (I saw you mentioned creating the home directory in the upstream issue, but it also needs to be writable).

@holta
Copy link
Member Author

holta commented Jun 13, 2019

As a work-around, could you create a home directory for your kolibri user /home/kolibri and chown it to that user? (I saw you mentioned creating the home directory in the upstream issue, but it also needs to be writable).

FWIW that seemed to work (when @lyw07 asked me to do that earlier) even without the directory being "group-writable" or "other-writable":

root@box:~# ls -ld /home/kolibri/
drwxr-xr-x 2 kolibri root 4096 Jun 13 17:47 /home/kolibri/
root@box:~# ls -l /home/kolibri/
total 4
-rw-r--r-- 1 kolibri www-data 3 Jun 13 17:47 SQLITE_MAX_VARIABLE_NUMBER.cache

(In any case, great news that 0.12.5 should be released next week, Thanks All!)

@holta
Copy link
Member Author

holta commented Jun 14, 2019

Closing this tkt in anticipation of Kolibri 0.17.5 (#1736)

@holta holta closed this as completed Jun 14, 2019
@benjaoming
Copy link

@holta take this lightly, I know you have a very complex setup -- but it's normal for a process to expect that its environment has a writable and existing home directory :)

@benjaoming
Copy link

@holta glad you got it working, looking forwards to more IIAB updates ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants