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
Kolibri service is timing out on boot on Ubuntu 18.04 (and possibly other OS's too?) #1489
Comments
Confusing: this does not happen every time I/we reboot a BIG-sized IIAB on Ubuntu 18.04 VMs. It does not seem to happen on BIG-sized Debian 9.7. Worst case if we cannot track down the root cause, we'll need to document this in IIAB 6.7's Known Issues. |
PATTERN: "systemctl status kolibri" consistently shows Whereas on the 2nd, 3rd, 4th and 5th reboots (etc) it seems to always work! Also interesting is that the 'kolibri' service shows "active (running)" very rapidly, within about 1 minute of booting. This pattern is consistent with many results over the last week (if not longer) across many Ubuntu 18.04 VM's -- failure of the 'kolibri' service during the 1st reboot alone. I don't know if other OS's/HW are affected. Ideas ? |
@holta Can you please attach any logs your find under /library/kolibri/*log and also syslog. That will help me find a solution. |
Thanks @arky: plz see these 4 pastebins from the most recent Ubuntu Server 18.04.1 VM — where BIG-sized http://d.iiab.io/6.7 was just installed 1-2 hours ago — before it was rebooted 5 times to try to understand this Kolibri issue:
|
fyi problem has not been seen on Raspbian on Raspberry Pi. One unproven theory is that Calibre might be colliding with Kolibri, to cause this Kolibri service timeout (#1489) during the 1st boot only. More testing is needed and ongoing, thanks all! |
@holta Thanks! Unfortunately the solution for this kolibri service timeout evaded me so far. Can you add "--debug" command line option to kolibri.service find more debugging output when the kolibri fails to start on first boot. |
Where does |
@holta You can just appended '--debug' in the ExecStart in the /etc/systemd/system/kolibri.service file directly.
|
Do you recommend we turn this on in general for now? |
No, I think it is good idea to find out what's causing these failures and patch them. |
Symptoms are very similar...but not quite the same as? #1094 Kolibri did not start within 2MIN timeout during BIG install on RPi 3 |
@KW4NP do you recall ever witnessing this problem? (Or perhaps it's something unique to Ubuntu 18.04 & similar?) |
What happens when you try to run it manually?
…Sent from my Phone
Le 17 juin 2019 à 06:04, A Holt ***@***.***> a écrit :
@KW4NP do you recall ever witnessing this problem?
(Or perhaps it's something unique to Ubuntu 18.04 & similar?)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Manually starting it works on Debian 10 [pre-release] installed 2019-06-15 as seen here: (where a BIG-sized http://d.iiab.io was installed, as documented @ #1387 (comment))
Then again the kolibri service (often!) starts directly on Debian 10 boot: (so why it had a TIMEOUT failure above I don't know?)
@arky may know more? (We really need to re-test on a brand new install of http://d.iiab.io on a fresh copy of Ubuntu 18.04.2 4 months later, with Kolibri 0.12.3...or 0.12.5 in a few days!) Ref: #1736 |
I don't think I've seen that specific problem before. Usually kolibri failing to start meant that it was trying to do something extra on boot, which could sometimes be found by running kolibri without systemd. By following the directions in the GitHub page about kolibri on IIAB you can start it manually and see what is causing the timeout.
… Le 17 juin 2019 à 06:39, A Holt ***@***.***> a écrit :
What happens when you try to run it manually?
Manually starting it works on Debian 10 [pre-release] installed 2019-06-15 as seen here: (where a BIG-sized http://d.iiab.io was installed, as documented @ #1387 (comment))
***@***.***:~# /usr/local/kolibri/bin/kolibri --version
0.12.3
***@***.***:~# systemctl status kolibri
● kolibri.service - Kolibri
Loaded: loaded (/etc/systemd/system/kolibri.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Sat 2019-06-15 04:13:25 EDT; 1 day 21h ago
Process: 285 ExecStart=/usr/local/kolibri/bin/kolibri start (code=killed, signal=TERM)
Jun 15 04:11:56 box.lan systemd[1]: Starting Kolibri...
Jun 15 04:13:17 box.lan kolibri[285]: INFO Option HTTP_PORT in section [Deployment] being overridden by environment variable KOLIBRI_HTTP_PORT
Jun 15 04:13:17 box.lan kolibri[285]: INFO Option URL_PATH_PREFIX in section [Deployment] being overridden by environment variable KOLIBRI_URL_PATH_PREFIX
Jun 15 04:13:24 box.lan systemd[1]: kolibri.service: Start operation timed out. Terminating.
Jun 15 04:13:25 box.lan systemd[1]: kolibri.service: Control process exited, code=killed, status=15/TERM
Jun 15 04:13:25 box.lan systemd[1]: kolibri.service: Failed with result 'timeout'.
Jun 15 04:13:25 box.lan systemd[1]: Failed to start Kolibri.
***@***.***:~# systemctl start kolibri
***@***.***:~# systemctl status kolibri
● kolibri.service - Kolibri
Loaded: loaded (/etc/systemd/system/kolibri.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2019-06-17 01:21:01 EDT; 2s ago
Process: 28804 ExecStart=/usr/local/kolibri/bin/kolibri start (code=exited, status=0/SUCCESS)
Main PID: 28812 (kolibri)
Tasks: 57 (limit: 2359)
Memory: 142.1M
CGroup: /system.slice/kolibri.service
└─28812 /usr/local/kolibri/bin/python2 /usr/local/kolibri/bin/kolibri start
Jun 17 01:21:01 box.lan kolibri[28804]: Operations to perform:
Jun 17 01:21:01 box.lan kolibri[28804]: Apply all migrations: admin, analytics, auth, content, contenttypes, device, discovery, exams, kolibriauth, lessons, logger, m
Jun 17 01:21:01 box.lan kolibri[28804]: Running migrations:
Jun 17 01:21:01 box.lan kolibri[28804]: No migrations to apply.
Jun 17 01:21:01 box.lan kolibri[28804]: Operations to perform:
Jun 17 01:21:01 box.lan kolibri[28804]: Apply all migrations: admin, analytics, auth, content, contenttypes, device, discovery, exams, kolibriauth, lessons, logger, m
Jun 17 01:21:01 box.lan kolibri[28804]: Running migrations:
Jun 17 01:21:01 box.lan kolibri[28804]: No migrations to apply.
Jun 17 01:21:01 box.lan kolibri[28804]: Installed 2 object(s) from 1 fixture(s)
Jun 17 01:21:01 box.lan systemd[1]: Started Kolibri.
Then again the kolibri service (often!) starts directly Debian 10 boot: (so why it had a TIMEOUT failure above I don't know?)
***@***.***:~# systemctl status kolibri
● kolibri.service - Kolibri
Loaded: loaded (/etc/systemd/system/kolibri.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2019-06-17 01:25:16 EDT; 11s ago
Process: 283 ExecStart=/usr/local/kolibri/bin/kolibri start (code=exited, status=0/SUCCESS)
Main PID: 1655 (kolibri)
Tasks: 57 (limit: 2359)
Memory: 147.4M
CGroup: /system.slice/kolibri.service
└─1655 /usr/local/kolibri/bin/python2 /usr/local/kolibri/bin/kolibri start
Jun 17 01:25:15 box.lan kolibri[283]: Operations to perform:
Jun 17 01:25:15 box.lan kolibri[283]: Apply all migrations: admin, analytics, auth, content, contenttypes, device, discovery, exams, kolibriauth, lessons, logger, mor
Jun 17 01:25:15 box.lan kolibri[283]: Running migrations:
Jun 17 01:25:15 box.lan kolibri[283]: No migrations to apply.
Jun 17 01:25:15 box.lan kolibri[283]: Operations to perform:
Jun 17 01:25:15 box.lan kolibri[283]: Apply all migrations: admin, analytics, auth, content, contenttypes, device, discovery, exams, kolibriauth, lessons, logger, mor
Jun 17 01:25:15 box.lan kolibri[283]: Running migrations:
Jun 17 01:25:15 box.lan kolibri[283]: No migrations to apply.
Jun 17 01:25:15 box.lan kolibri[283]: Installed 2 object(s) from 1 fixture(s)
Jun 17 01:25:16 box.lan systemd[1]: Started Kolibri.
***@***.***:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
@arky may know more?
(We really need to re-test on a brand new install of http://d.iiab.io on a fresh copy of Ubuntu 18.04.2 4 months later, with Kolibri 0.12.3...or 0.12.5 in a few days!)
Ref: #1736
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thanks @KW4NP Absolute worst case we will keep monitoring this in the IIAB 7.1 release cycle (beginning very shortly in coming weeks) as we close out IIAB 7.0 very shortly in coming days now: https://github.com/iiab/iiab/milestone/5 |
@kananigit as you reconfirm Kolibri's failure to start after adding channels (#1648) keep an eye on this issue too (#1489) that might possibly be related? |
I also had this issue on Ubuntu 18.04, PI 3 (Stretch) and PI4. Changing the Kolibri service to the below resolved it for me. pi@box:/etc/systemd/system $ cat kolibri.service [Service] [Install] |
@ITGuyClaude thanks for writing here and on #1094! Can you explain why you removed these 7 lines? (in the [Service] section of
And replaced them with these 2 lines?
Aside: what user did you use on Ubuntu 18.04, where the user |
On Ubuntu everything IIAB used my "default" login which is claude, on the pi it is pi and they own the relevant directories. I removed the below entries because I wanted to narrow out noise like the below in order to make troubleshooting easier, removed entries like port when I know Kolibri is running on 8080 and the below settings are being overwritten anyway as per the below making them redundant. Aug 16 05:13:17 box.lan kolibri[285]: INFO Option HTTP_PORT in section [Deployment] being overridden by environment variable KOLIBRI_HTTP_PORT In kolbiri.service Environment=KOLIBRI_USER=kolibri By default my IIAB 7.0 starts kolibri on port 8080 As for Type=oneshot, not sure why it works but it does for me. |
Kolibri is starting with the following settings: kolibri.deployment.default.settings.base and then overrides the Environment=KOL* settings in kolibri.service pi@box:/library $ systemctl status kolibri.service Aug 13 20:23:37 box.lan kolibri[25172]: INFO Running Kolibri with the following settings: kolibri.deployment.default.settings.base |
Can we close this now, if indeed Kolibri's service is no longer timing out on boot? |
Doesn't seem to be happening or reproducible. Please re-open if facts-on-the-ground change! |
@arky have you seen this issue with Kolibri 0.11.1's service failing to start on reboots?
This seems to be happening on all Ubuntu 18.04 machines/VMs, and possibly others too?
(The kolibri service can be started manually. But this isn't good enough for day-to-day usage :-)
PS this did not used to happen in prior months!
The text was updated successfully, but these errors were encountered: