question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

warn when kolibri is not run as the `kolibri` user and we expect it to be

See original GitHub issue

Observed behavior

(Kolibri repo work for https://github.com/learningequality/kolibri-installer-debian/issues/41)

When installed using the .deb package, a new kolibri user is created and its this user which runs the Kolibri process when the system service is started.

However we run into problems when users run kolibri commands via the command line because the local process has a different KOLIBRI_HOME folder than the service process.

Expected behavior

  • We should warn when the process is run as a separate user and the kolibri user exists. This can roughly follow the implementation in KA Lite.
  • We should update the documentation to clarify that when installed as debian, commands should be run as sudo service kolibri [command], not kolibri [command]
  • We should consider not adding kolibri to the path so users can’t make this mistake. (Why is it on the path?)

User-facing consequences

Lots of confusion and sometimes broken installations

Steps to reproduce

Install as a debian package and then run commands as a normal user.

Context

k 0.10.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
benjaomingcommented, Jun 26, 2018

That is okay, we won’t stand a chance to fix edge cases like this 😃 But I’m fairly confident that the .pex and the .deb won’t be installed on the same system for future releases, since the .deb will be the go-to option on the Download pages for anyone on Debian systems.

We are doing changes in the .deb that will in fact run the system service as the desktop user, so there won’t even be a mixup 😃

0reactions
lyw07commented, Jun 26, 2018

thank you! it totally makes sense to me now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting — Kolibri User Guide - Read the Docs
If you are trying to export on an attached USB drive, and Kolibri displays the message Could not find a writable drive connected...
Read more >
Kolibri failed to start. Additional information can be found
When I open the log filed this is what I get: WARNING 2020-01-30 05:19:50,449 options Ignoring unknown section in options file C:\Users\X.
Read more >
User Manual - Kolibri USA
This manual contains important information on safety measures and operational features of the Kolibri Automatic Bill Counter. Please.
Read more >
Kolibri Documentation - Read the Docs
Activate Run Kolibri when user logs in option if you want Kolibri ... Warning: Final Kolibri installer for Linux is not released yet, ......
Read more >
Kolibri Signature Money Counter Machine For Mix ...
Amazon.com : Kolibri Signature Money Counter Machine For Mix Denomination Bill Counting. ... We don't know when or if this item will be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found