# KOlibri unclean shutdown

**URL:** <https://community.learningequality.org/t/kolibri-unclean-shutdown/3584>\
**Category:** Kolibri\
**Created:** [January 27, 2025, 10:16pm UTC](https://community.learningequality.org/t/kolibri-unclean-shutdown/3584 "2025-01-27T22:16:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![safi\_khan](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/safi_khan/32/933_2.png) [@safi\_khan](https://community.learningequality.org/u/safi_khan)\
**Post date:** [January 27, 2025, 10:16pm UTC](https://community.learningequality.org/t/kolibri-unclean-shutdown/3584/1 "2025-01-27T22:16:54Z")

</div>

We are using kolibri-server and I tried stopping and starting the kolibri server to turn on profiling in the options.ini file but I am seeing this error when I try to start the kolibri server

When I try to stop it again

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/learneq/original/2X/6/695b66bce4f8ea2da737e5db78afc517737f4d28.png)

This is when I tried to start it

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/learneq/original/2X/6/688b4998152c7a411a4df5c2cb8ce6ce4829126d.png)

## Technical details

- Kolibri version
- Operating system
- Browser

---

<div class="post-metadata">

**Author:** ![blaine](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/blaine/32/479_2.png) [@blaine](https://community.learningequality.org/u/blaine)\
**Post date:** [January 28, 2025, 5:13pm UTC](https://community.learningequality.org/t/kolibri-unclean-shutdown/3584/2 "2025-01-28T17:13:55Z")

</div>

Hi @safi_khan,

When you have installed `kolibri-server`, care should be taken to ensure that you manage Kolibri through the system service it installs. By running `kolibri` commands directly, it may not use the correct ‘Kolibri home directory’ and you can run into the issue you observed.

For example, running the following should be used when you’ve installed `kolibri-server`:

1. Starting: `systemctl start kolibri-server`
2. Stopping: `systemctl stop kolibri-server && systemctl stop kolibri`

You can take a look at [this post](https://community.learningequality.org/t/upgrade-to-017-5-failed-content-folder-database-disappeared/3560/2) for insights into how Kolibri runs the service as a dedicated user, which means it uses a home directory based off that user.

Regards,  
Blaine
