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

Running Migrations causes systemd service timeouts on low-end hardware #66

Open
arky opened this issue Sep 21, 2018 · 4 comments
Open

Comments

@arky
Copy link

arky commented Sep 21, 2018

At the moment, kolibri runs all the migrations on first run of 'kolbiri start'. Now this causes systemd service timeouts on low-end devices such as Raspberry Pi's. It doesn't happen always but sometime it does fail. I will try to zero in on which migrations take the most resources.

Perhaps adding TimeoutStartSec to avoid the timeouts might work, but it is not a solution.
https://github.com/learningequality/kolibri-installer-debian/blob/master/debian/startup/kolibri.service#L13

Following the discussion on slack, I am filing this bug as a placeholder for exploring other alternatives esp. when upgrading a device with lot of content.

Refer downstream IIAB bugs: iiab/iiab#1158 iiab/iiab#1094

@indirectlylit indirectlylit transferred this issue from learningequality/kolibri Feb 19, 2019
@jredrejo
Copy link
Member

Hi @arky I would like to know why you say the TimeoutStartSec=infinity is not a solution. It will solve the systemd timeout problem. Are you thinking of a different daemon start mode?

Btw, @benjaoming what do you think about changing KillMode=processto KillMode=mixed to ensure any child process is killed too when needed? As forking is used, it seems logical to use mixed

@benjaoming
Copy link
Contributor

Now this causes systemd service timeouts on low-end devices such as Raspberry Pi's.

Could you send the timeout error message as it appears in logs? It would likely appear with sudo journalctl -x -u kolibri.service but also worth looking in /var/log/syslog.

@holta
Copy link
Contributor

holta commented May 11, 2019

Is iiab/iiab#1648 (kolibri.service failing to start on certain Raspberry Pi's) possibly the very same issue ?

@benjaoming
Copy link
Contributor

@holta @arky what other services are running on the particular RPI? Is it possible to stop these services all-together when installing or upgrading Kolibri? We don't have control from within Kolibri to free up memory that's held by other processes.

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

No branches or pull requests

4 participants