Error: There is another Kolibri server running. Please use `kolibri stop` and try again

Summary

An implementer in Uganda is reporting the following problem:

I have continuous problems with my Kolibri installations on my personal
computer. I installed now 6 times, it is working after installation, but the
next day it is not working.
I tried in the browser, I tried the symbol, I closed it, openend it again,
noting works.
Therefore I sent you the log files. Maybe there is something mixed up
because of several new installations.

I do use Norton365, but I allowed Kolibri in the Firewall.

What can be the problem? Can you please help me with that.

Technical details

  • v0.15.6

I’ve pasted the txt log below. Based on the last line, it looks like an installation of Kolibri is already running with the suggestion to run kolibri stop. If this is what should fix it, would this need to be run each time the computer is re-started or is there also a way to easily identify and remove the duplicate installation?

INFO 2022-08-18 10:05:49,022 kolibri.utils.options Option DEBUG in section [Server] being overridden by environment variable KOLIBRI_DEBUG
INFO 2022-08-18 10:05:49,042 kolibri.utils.options Option DEBUG_LOG_DATABASE in section [Server] being overridden by environment variable KOLIBRI_DEBUG_LOG_DATABASE
INFO 2022-08-18 10:05:49,816 kolibri.core.apps Running Kolibri with the following settings: kolibri.deployment.default.settings.base
INFO 2022-08-18 10:05:50,355 kolibri.core.tasks.main Importing 'tasks' module from django apps
INFO 2022-08-18 10:05:50,642 kolibri.utils.server Kolibri running on: http://127.0.0.1:8080/
INFO 2022-08-18 10:05:50,642 kolibri.utils.server Kolibri running on: http://192.168.0.100:8080/
INFO 2022-08-18 10:05:50,642 kolibri.utils.server Starting Kolibri 0.15.6
INFO 2022-08-18 10:05:50,751 kolibri.utils.server Bus state: ENTER
INFO 2022-08-18 10:05:50,751 kolibri.utils.server Running Kolibri as background process
INFO 2022-08-18 10:05:50,751 kolibri.utils.server Going to background mode, logging to C:\Users\USER\.kolibri\logs\kolibri.txt
INFO 2022-08-18 10:05:50,751 kolibri.utils.server Listening for SIGTERM.
INFO 2022-08-18 10:05:50,751 kolibri.utils.server Listening for SIGINT.
INFO 2022-08-18 10:05:50,751 kolibri.utils.server Bus state: IDLE
INFO 2022-08-18 10:05:50,767 kolibri.utils.server Bus state: START
INFO 2022-08-18 10:05:50,814 kolibri.core.tasks.main Starting async task workers.
INFO 2022-08-18 10:05:50,829 kolibri.utils.server Started monitor thread 'ProcessControlPlugin'.
INFO 2022-08-18 10:05:50,829 kolibri.utils.server Started monitor thread 'ZeroConfPlugin'.
INFO 2022-08-18 10:05:50,829 kolibri.utils.server Starting on 0.0.0.0:0
INFO 2022-08-18 10:05:50,939 kolibri.utils.server Waiting for 0.0.0.0:64312
INFO 2022-08-18 10:05:50,939 kolibri.utils.server Serving on 0.0.0.0:64312
INFO 2022-08-18 10:05:51,048 kolibri.utils.server Starting on 0.0.0.0:8080
ERROR 2022-08-18 10:05:51,139 kolibri.core.deviceadmin.utils Cannot operate on a closed database.
INFO 2022-08-18 10:05:51,155 kolibri.utils.server Waiting for 0.0.0.0:8080
ERROR 2022-08-18 10:05:51,170 kolibri.core.deviceadmin.utils Vacuum of database C:\Users\USER\.kolibri\db.sqlite3 couldn't be executed. Possible reasons:
  * There is an open transaction in the db.
  * There are one or more active SQL statements.
The full error: Cannot operate on a closed database.
INFO 2022-08-18 10:05:51,544 kolibri.utils.server Serving on 0.0.0.0:8080
INFO 2022-08-18 10:05:51,560 kolibri.core.discovery.utils.network.broadcast Registering ourselves to zeroconf network with id '133de47914adfa161582bdb66d915498' and port '8080'
INFO 2022-08-18 10:05:52,731 kolibri.utils.server Kolibri running on: http://127.0.0.1:8080/
INFO 2022-08-18 10:05:52,731 kolibri.utils.server Kolibri running on: http://192.168.0.100:8080/
INFO 2022-08-18 10:05:52,731 kolibri.utils.server Bus state: RUN
INFO 2022-08-18 10:05:52,746 kolibri.core.analytics.utils Ping succeeded! (response: {'id': 2955065, 'messages': []})
INFO 2022-08-18 10:26:45,103 kolibri.utils.options Option DEBUG in section [Server] being overridden by environment variable KOLIBRI_DEBUG
INFO 2022-08-18 10:26:45,103 kolibri.utils.options Option DEBUG_LOG_DATABASE in section [Server] being overridden by environment variable KOLIBRI_DEBUG_LOG_DATABASE
INFO 2022-08-18 10:26:45,766 kolibri.core.apps Running Kolibri with the following settings: kolibri.deployment.default.settings.base
INFO 2022-08-18 10:26:46,125 kolibri.core.tasks.main Importing 'tasks' module from django apps
ERROR 2022-08-18 10:26:51,731 kolibri.utils.server There is another Kolibri server running. Please use `kolibri stop` and try again.
INFO 2022-08-18 10:26:56,848 kolibri.utils.options Option DEBUG in section [Server] being overridden by environment variable KOLIBRI_DEBUG
INFO 2022-08-18 10:26:56,855 kolibri.utils.options Option DEBUG_LOG_DATABASE in section [Server] being overridden by environment variable KOLIBRI_DEBUG_LOG_DATABASE
INFO 2022-08-18 10:26:57,234 kolibri.utils.server Stopping server.
INFO 2022-08-18 10:26:57,234 kolibri.utils.server Bus state: STOP
INFO 2022-08-18 10:26:57,350 kolibri.utils.server HTTP Server kolibri.utils.server.Server(('0.0.0.0', 64312)) shut down
INFO 2022-08-18 10:26:57,471 kolibri.utils.server HTTP Server kolibri.utils.server.Server(('0.0.0.0', 8080)) shut down
INFO 2022-08-18 10:26:57,471 kolibri.core.tasks.worker Asking job schedulers to shut down.
INFO 2022-08-18 10:26:57,514 kolibri.utils.server Joining 'ZeroConfPlugin'
INFO 2022-08-18 10:26:58,023 kolibri.utils.server Stopped thread 'ZeroConfPlugin'.
INFO 2022-08-18 10:27:07,198 kolibri.utils.cli Kolibri server has successfully been stopped.
INFO 2022-08-18 10:36:43,277 kolibri.utils.options Option DEBUG in section [Server] being overridden by environment variable KOLIBRI_DEBUG
INFO 2022-08-18 10:36:43,277 kolibri.utils.options Option DEBUG_LOG_DATABASE in section [Server] being overridden by environment variable KOLIBRI_DEBUG_LOG_DATABASE
INFO 2022-08-18 10:36:43,809 kolibri.core.apps Running Kolibri with the following settings: kolibri.deployment.default.settings.base
INFO 2022-08-18 10:36:44,170 kolibri.core.tasks.main Importing 'tasks' module from django apps
INFO 2022-08-18 10:36:44,348 kolibri.utils.server Kolibri running on: http://127.0.0.1:8080/
INFO 2022-08-18 10:36:44,348 kolibri.utils.server Kolibri running on: http://192.168.0.100:8080/
INFO 2022-08-18 10:36:44,348 kolibri.utils.server Starting Kolibri 0.15.6
INFO 2022-08-18 10:36:44,420 kolibri.utils.server Bus state: ENTER
INFO 2022-08-18 10:36:44,420 kolibri.utils.server Running Kolibri as background process
INFO 2022-08-18 10:36:44,420 kolibri.utils.server Going to background mode, logging to C:\Users\USER\.kolibri\logs\kolibri.txt
INFO 2022-08-18 10:36:44,420 kolibri.utils.server Listening for SIGTERM.
INFO 2022-08-18 10:36:44,435 kolibri.utils.server Listening for SIGINT.
INFO 2022-08-18 10:36:44,435 kolibri.utils.server Bus state: IDLE
INFO 2022-08-18 10:36:44,435 kolibri.utils.server Bus state: START
INFO 2022-08-18 10:36:44,483 kolibri.core.tasks.main Starting async task workers.
INFO 2022-08-18 10:36:44,499 kolibri.utils.server Started monitor thread 'ZeroConfPlugin'.
INFO 2022-08-18 10:36:44,514 kolibri.utils.server Started monitor thread 'ProcessControlPlugin'.
INFO 2022-08-18 10:36:44,514 kolibri.utils.server Starting on 0.0.0.0:0
INFO 2022-08-18 10:36:44,624 kolibri.utils.server Waiting for 0.0.0.0:64590
INFO 2022-08-18 10:36:44,624 kolibri.utils.server Serving on 0.0.0.0:64590
INFO 2022-08-18 10:36:44,733 kolibri.utils.server Starting on 0.0.0.0:8080
INFO 2022-08-18 10:36:44,843 kolibri.utils.server Waiting for 0.0.0.0:8080
INFO 2022-08-18 10:36:44,858 kolibri.utils.server Serving on 0.0.0.0:8080
INFO 2022-08-18 10:36:44,875 kolibri.core.discovery.utils.network.broadcast Registering ourselves to zeroconf network with id '133de47914adfa161582bdb66d915498' and port '8080'
INFO 2022-08-18 10:36:46,051 kolibri.utils.server Kolibri running on: http://127.0.0.1:8080/
INFO 2022-08-18 10:36:46,051 kolibri.utils.server Kolibri running on: http://192.168.0.100:8080/
INFO 2022-08-18 10:36:46,051 kolibri.utils.server Bus state: RUN
INFO 2022-08-18 10:48:34,878 kolibri.utils.options Option DEBUG in section [Server] being overridden by environment variable KOLIBRI_DEBUG
INFO 2022-08-18 10:48:34,878 kolibri.utils.options Option DEBUG_LOG_DATABASE in section [Server] being overridden by environment variable KOLIBRI_DEBUG_LOG_DATABASE
INFO 2022-08-18 10:48:35,296 kolibri.core.apps Running Kolibri with the following settings: kolibri.deployment.default.settings.base
INFO 2022-08-18 10:48:35,575 kolibri.core.tasks.main Importing 'tasks' module from django apps
ERROR 2022-08-18 10:48:41,301 kolibri.utils.server There is another Kolibri server running. Please use `kolibri stop` and try again.