Hi @jredrejo
I tried your suggestion for shutting down kolibri-server and running kolibri but it did not go well.
This is on a clean installation that was running ok.
Have I missed something?
Here is the sequence of events:
pi@kolibri:~ $ sudo systemctl stop kolibri-server
pi@kolibri:~ $ sudo systemctl stop nginx
pi@kolibri:~ $ kolibri start --foreground
INFO     Option DEBUG in section [Server] being overridden by environment variable KOLIBRI_DEBUG
INFO     Option DEBUG_LOG_DATABASE in section [Server] being overridden by environment variable KOLIBRI_DEBUG_LOG_DATABASE
INFO     Running Kolibri with the following settings: kolibri.deployment.default.settings.base
INFO     Importing ‘tasks’ module from django apps
INFO     Starting Kolibri 0.15.5
INFO     Bus state: ENTER
INFO     Listening for SIGTERM.
INFO     Listening for SIGHUP.
INFO     Listening for SIGUSR1.
INFO     Listening for SIGINT.
INFO     Bus state: IDLE
INFO     Bus state: START
INFO     Starting async task workers.
INFO     Started monitor thread ‘ZeroConfPlugin’.
INFO     Started monitor thread ‘ProcessControlPlugin’.
INFO     Starting on 0.0.0.0:81
ERROR    Error in HTTP server: shutting down
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/kolibri/dist/magicbus/plugins/servers.py”, line 177, in _start_http_thread
self.httpserver.start()
File “/usr/lib/python3/dist-packages/kolibri/dist/cheroot/server.py”, line 1836, in start
self.prepare()
File “/usr/lib/python3/dist-packages/kolibri/dist/cheroot/server.py”, line 1791, in prepare
raise socket.error(msg)
OSError: No socket could be created – ((‘0.0.0.0’, 81): [Errno 13] Permission denied)
INFO     Bus state: STOP
INFO     HTTP Server kolibri.utils.server.Server((‘0.0.0.0’, 80)) already shut down
INFO     HTTP Server kolibri.utils.server.Server((‘0.0.0.0’, 81)) already shut down
INFO     Joining ‘ProcessControlPlugin’
ERROR    Error in ‘START’ listener <bound method ZipContentServerPlugin.START of <kolibri.utils.server.ZipContentServerPlugin object at 0xb3da48f0>>
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/kolibri/dist/magicbus/base.py”, line 273, in publish
result = listener(*args, **kwargs)
File “/usr/lib/python3/dist-packages/kolibri/utils/server.py”, line 187, in START
super(ZipContentServerPlugin, self).START()
File “/usr/lib/python3/dist-packages/kolibri/utils/server.py”, line 156, in START
super(ServerPlugin, self).START()
File “/usr/lib/python3/dist-packages/kolibri/dist/magicbus/plugins/servers.py”, line 164, in START
self.wait()
File “/usr/lib/python3/dist-packages/kolibri/dist/magicbus/plugins/servers.py”, line 198, in wait
raise self.interrupt
File “/usr/lib/python3/dist-packages/kolibri/dist/magicbus/plugins/servers.py”, line 177, in _start_http_thread
self.httpserver.start()
File “/usr/lib/python3/dist-packages/kolibri/dist/cheroot/server.py”, line 1836, in start
self.prepare()
File “/usr/lib/python3/dist-packages/kolibri/dist/cheroot/server.py”, line 1791, in prepare
raise socket.error(msg)
OSError: No socket could be created – ((‘0.0.0.0’, 81): [Errno 13] Permission denied)
INFO     Starting on 0.0.0.0:80
ERROR    Error in HTTP server: shutting down
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/kolibri/dist/magicbus/plugins/servers.py”, line 177, in _start_http_thread
self.httpserver.start()
File “/usr/lib/python3/dist-packages/kolibri/dist/cheroot/server.py”, line 1836, in start
self.prepare()
File “/usr/lib/python3/dist-packages/kolibri/dist/cheroot/server.py”, line 1791, in prepare
raise socket.error(msg)
OSError: No socket could be created – ((‘0.0.0.0’, 80): [Errno 13] Permission denied)
INFO     Bus state: IDLE
INFO     Bus state: EXIT
INFO     Waiting for child threads to terminate…
INFO     Waiting for thread JOBCHECKER-cd0014355c46443aaa3d86c8c950cd08.
ERROR    Error in ‘START’ listener <bound method KolibriServerPlugin.START of <kolibri.utils.server.KolibriServerPlugin object at 0xb539ec70>>
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/kolibri/dist/magicbus/base.py”, line 273, in publish
result = listener(*args, **kwargs)
File “/usr/lib/python3/dist-packages/kolibri/utils/server.py”, line 175, in START
super(KolibriServerPlugin, self).START()
File “/usr/lib/python3/dist-packages/kolibri/utils/server.py”, line 156, in START
super(ServerPlugin, self).START()
File “/usr/lib/python3/dist-packages/kolibri/dist/magicbus/plugins/servers.py”, line 164, in START
self.wait()
File “/usr/lib/python3/dist-packages/kolibri/dist/magicbus/plugins/servers.py”, line 198, in wait
raise self.interrupt
File “/usr/lib/python3/dist-packages/kolibri/dist/magicbus/plugins/servers.py”, line 177, in _start_http_thread
self.httpserver.start()
File “/usr/lib/python3/dist-packages/kolibri/dist/cheroot/server.py”, line 1836, in start
self.prepare()
File “/usr/lib/python3/dist-packages/kolibri/dist/cheroot/server.py”, line 1791, in prepare
raise socket.error(msg)
OSError: No socket could be created – ((‘0.0.0.0’, 80): [Errno 13] Permission denied)
INFO     Bus state: START_ERROR
ERROR    Exiting due to error in start listener:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/kolibri/dist/magicbus/base.py”, line 215, in _transition
return self.publish(newstate, *args, **kwargs)
File “/usr/lib/python3/dist-packages/kolibri/dist/magicbus/base.py”, line 291, in publish
raise exc
magicbus.base.ChannelFailures: OSError(“No socket could be created – ((‘0.0.0.0’, 81): [Errno 13] Permission denied)”)
OSError(“No socket could be created – ((‘0.0.0.0’, 80): [Errno 13] Permission denied)”)
INFO     Bus state: STOP
INFO     HTTP Server kolibri.utils.server.Server((‘0.0.0.0’, 80)) already shut down
INFO     HTTP Server kolibri.utils.server.Server((‘0.0.0.0’, 81)) already shut down
INFO     Joining ‘ProcessControlPlugin’
INFO     Stopped thread ‘ProcessControlPlugin’.
INFO     Stopped thread ‘ProcessControlPlugin’.
INFO     Joining ‘ZeroConfPlugin’
INFO     Joining ‘ZeroConfPlugin’
INFO     Stopped thread ‘ZeroConfPlugin’.
INFO     Stopped thread ‘ZeroConfPlugin’.
INFO     Asking job schedulers to shut down.
INFO     Asking job schedulers to shut down.
INFO     Waiting for thread HTTPServer Thread-3.
INFO     Bus state: IDLE
INFO     Bus state: EXIT
INFO     Bus state: EXITED
INFO     Waiting for child threads to terminate…
INFO     Waiting for thread HTTPServer Thread-3.
Exception in thread HTTPServer Thread-3:
Traceback (most recent call last):
File “/usr/lib/python3.7/threading.py”, line 917, in _bootstrap_inner
self.run()
File “/usr/lib/python3.7/threading.py”, line 865, in run
self._target(*self._args, **self._kwargs)
File “/usr/lib/python3/dist-packages/kolibri/dist/magicbus/plugins/servers.py”, line 177, in _start_http_thread
self.httpserver.start()
File “/usr/lib/python3/dist-packages/kolibri/dist/cheroot/server.py”, line 1836, in start
self.prepare()
File “/usr/lib/python3/dist-packages/kolibri/dist/cheroot/server.py”, line 1791, in prepare
raise socket.error(msg)
OSError: No socket could be created – ((‘0.0.0.0’, 81): [Errno 13] Permission denied)
Exception in thread HTTPServer Thread-4:
Traceback (most recent call last):
File “/usr/lib/python3.7/threading.py”, line 917, in _bootstrap_inner
self.run()
File “/usr/lib/python3.7/threading.py”, line 865, in run
self._target(*self._args, **self._kwargs)
File “/usr/lib/python3/dist-packages/kolibri/dist/magicbus/plugins/servers.py”, line 177, in _start_http_thread
self.httpserver.start()
File “/usr/lib/python3/dist-packages/kolibri/dist/cheroot/server.py”, line 1836, in start
self.prepare()
File “/usr/lib/python3/dist-packages/kolibri/dist/cheroot/server.py”, line 1791, in prepare
raise socket.error(msg)
OSError: No socket could be created – ((‘0.0.0.0’, 80): [Errno 13] Permission denied)
INFO     Waiting for thread HTTPServer Thread-4.
pi@kolibri:~ $ systemctl status kolibri
● kolibri.service - LSB: kolibri daemon, an offline education platform
Loaded: loaded (/etc/init.d/kolibri; disabled; vendor preset: enabled)
Active: inactive (dead)
pi@kolibri:~ $