warn when kolibri is not run as the `kolibri` user and we expect it to be
See original GitHub issueObserved 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]
, notkolibri [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:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 😃
thank you! it totally makes sense to me now