Trying to Install Kolibri On Mint 18.3

It loads and we are able to enter the information but it tells us please check server connection. I retried and have started the process manually. Still no joy

Ken

Hi - we’re trying to track down the cause of this issue.

Could you please see if there are any errors in either ~/.kolibri/kolibri.log or ~/.kolibri/server.log?

Also - could you confirm that you installed using the Debian file here?

Does this error persist if you use the PEX file instead?

Nothing in the server.log but I have the file for the kolibri.log let me know if you want the file. here is what I found. Thanks Ken

ERROR 2018-01-03 18:10:23,932 base Internal Server Error: /api/deviceprovision/
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/kolibri/dist/django/core/handlers/base.py”, line 149, in get_response
response = self.process_exception_by_middleware(e, request)
File “/usr/lib/python3/dist-packages/kolibri/dist/django/core/handlers/base.py”, line 147, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/usr/lib/python3/dist-packages/kolibri/dist/django/views/decorators/csrf.py”, line 58, in wrapped_view
return view_func(*args, **kwargs)
File “/usr/lib/python3/dist-packages/kolibri/dist/rest_framework/viewsets.py”, line 87, in view
return self.dispatch(request, *args, **kwargs)
File “/usr/lib/python3/dist-packages/kolibri/dist/rest_framework/views.py”, line 466, in dispatch
response = self.handle_exception(exc)
File “/usr/lib/python3/dist-packages/kolibri/dist/rest_framework/views.py”, line 463, in dispatch
response = handler(request, *args, **kwargs)
File “/usr/lib/python3/dist-packages/kolibri/core/device/api.py”, line 31, in create
data = serializer.save()
File “/usr/lib/python3/dist-packages/kolibri/dist/rest_framework/serializers.py”, line 191, in save
self.instance = self.create(validated_data)
File “/usr/lib/python3/dist-packages/kolibri/core/device/serializers.py”, line 57, in create
facility = Facility.objects.create(**validated_data.pop(‘facility’))
File “/usr/lib/python3/dist-packages/kolibri/dist/django/db/models/manager.py”, line 122, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File “/usr/lib/python3/dist-packages/kolibri/dist/django/db/models/query.py”, line 401, in create
obj.save(force_insert=True, using=self.db)
File “/usr/lib/python3/dist-packages/kolibri/auth/models.py”, line 987, in save
super(Facility, self).save(*args, **kwargs)
File “/usr/lib/python3/dist-packages/kolibri/auth/models.py”, line 726, in save
super(Collection, self).save(*args, **kwargs)
File “/usr/lib/python3/dist-packages/kolibri/dist/mptt/models.py”, line 1001, in save
super(MPTTModel, self).save(*args, **kwargs)
File “/usr/lib/python3/dist-packages/kolibri/auth/models.py”, line 163, in save
self.ensure_dataset()
File “/usr/lib/python3/dist-packages/kolibri/auth/models.py”, line 993, in ensure_dataset
super(Facility, self).ensure_dataset(*args, **kwargs)
File “/usr/lib/python3/dist-packages/kolibri/auth/models.py”, line 175, in ensure_dataset
inferred_dataset = self.infer_dataset(*args, **kwargs)
File “/usr/lib/python3/dist-packages/kolibri/auth/models.py”, line 998, in infer_dataset
self.dataset = FacilityDataset.objects.create()
File “/usr/lib/python3/dist-packages/kolibri/dist/django/db/models/manager.py”, line 122, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File “/usr/lib/python3/dist-packages/kolibri/dist/django/db/models/query.py”, line 401, in create
obj.save(force_insert=True, using=self.db)
File “/usr/lib/python3/dist-packages/kolibri/dist/morango/models.py”, line 413, in save
super(SyncableModel, self).save(*args, **kwargs)
File “/usr/lib/python3/dist-packages/kolibri/dist/morango/utils/uuids.py”, line 117, in save
self.id = self.calculate_uuid()
File “/usr/lib/python3/dist-packages/kolibri/dist/morango/models.py”, line 461, in calculate_uuid
self._morango_source_id = self.calculate_source_id()
File “/usr/lib/python3/dist-packages/kolibri/auth/models.py”, line 113, in calculate_source_id
self._morango_source_id = Certificate.generate_root_certificate(FULL_FACILITY).id
File “/usr/lib/python3/dist-packages/kolibri/dist/morango/certificates.py”, line 88, in generate_root_certificate
cert.sign_certificate(cert)
File “/usr/lib/python3/dist-packages/kolibri/dist/morango/certificates.py”, line 135, in sign_certificate
cert_to_sign.signature = self.sign(cert_to_sign.serialized)
File “/usr/lib/python3/dist-packages/kolibri/dist/morango/certificates.py”, line 207, in sign
return self.private_key.sign(value)
File “/usr/lib/python3/dist-packages/kolibri/dist/morango/crypto.py”, line 55, in sign
signature = self._sign(message)
File “/usr/lib/python3/dist-packages/kolibri/dist/morango/crypto.py”, line 244, in _sign
return self._private_key.sign(message, crypto_padding.PKCS1v15(), crypto_hashes.SHA256())
AttributeError: ‘_RSAPrivateKey’ object has no attribute ‘sign’
INFO 2018-01-03 18:18:03,778 apps Running Kolibri with the following settings: kolibri.deployment.default.settings.base
ERROR 2018-01-03 18:18:04,075 cli During graceful shutdown, server says: Unclean shutdown (7)
ERROR 2018-01-03 18:18:04,097 cli Not responding, killing with force
INFO 2018-01-06 09:44:52,062 apps Running Kolibri with the following settings: kolibri.deployment.default.settings.base

Thanks - looks like you’re running into a known issue that will be addressed in the next patch release.

In the meantime, you can try one of these work-arounds:

Tried the advice from Benjamin and no joy. It would not even run the file. What versions of Linux have you used that works. When will 0.7.1 be out. I like to beta test it for you if possible.

Thanks

Ken

Got these errors

HIIAB amat # systemctl status kolibri.service
● kolibri.service - LSB: kolibri daemon, an offline education platform
Loaded: loaded (/etc/init.d/kolibri; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-01-17 15:41:32 EST; 8min ago
Process: 3390 ExecStop=/etc/init.d/kolibri stop (code=exited, status=0/SUCCESS)
Process: 4488 ExecStart=/etc/init.d/kolibri start (code=exited, status=1/FAILURE)

Jan 17 15:41:32 HIIAB kolibri[4488]: raise value.with_traceback(tb)
Jan 17 15:41:32 HIIAB kolibri[4488]: File “/usr/lib/python3/dist-packages/kolibri/dist/django/db/backends/utils.py”, line 64, in execute
Jan 17 15:41:32 HIIAB kolibri[4488]: return self.cursor.execute(sql, params)
Jan 17 15:41:32 HIIAB kolibri[4488]: File “/usr/lib/python3/dist-packages/kolibri/dist/django/db/backends/sqlite3/base.py”, line 323, in execute
Jan 17 15:41:32 HIIAB kolibri[4488]: return Database.Cursor.execute(self, query, params)
Jan 17 15:41:32 HIIAB kolibri[4488]: django.db.utils.DatabaseError: database disk image is malformed
Jan 17 15:41:32 HIIAB systemd[1]: kolibri.service: Control process exited, code=exited status=1
Jan 17 15:41:32 HIIAB systemd[1]: Failed to start LSB: kolibri daemon, an offline education platform.
Jan 17 15:41:32 HIIAB systemd[1]: kolibri.service: Unit entered failed state.
Jan 17 15:41:32 HIIAB systemd[1]: kolibri.service: Failed with result ‘exit-code’.
HIIAB amat # ^C
HIIAB amat #

and this log also

HIIAB amat # journalctl -xe

– Unit UNIT has finished shutting down.
Jan 17 15:41:32 HIIAB systemd[4497]: Stopped target Paths.
– Subject: Unit UNIT has finished shutting down
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit UNIT has finished shutting down.
Jan 17 15:41:32 HIIAB systemd[4497]: Stopped target Timers.
– Subject: Unit UNIT has finished shutting down
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit UNIT has finished shutting down.
Jan 17 15:41:32 HIIAB systemd[4497]: Starting Exit the Session…
– Subject: Unit UNIT has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit UNIT has begun starting up.
Jan 17 15:41:32 HIIAB systemd[4497]: Received SIGRTMIN+24 from PID 4524 (kill).
Jan 17 15:41:32 HIIAB systemd[4498]: pam_unix(systemd-user:session): session closed for user kolibri
Jan 17 15:41:32 HIIAB systemd[1]: Stopped User Manager for UID 122.
– Subject: Unit user@122.service has finished shutting down
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit user@122.service has finished shutting down.
Jan 17 15:41:32 HIIAB systemd[1]: Removed slice User Slice of kolibri.
– Subject: Unit user-122.slice has finished shutting down
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit user-122.slice has finished shutting down.
Jan 17 15:41:32 HIIAB polkitd(authority=local)[963]: Unregistered Authentication Agent for unix-process:4443:178412 (system bus name :1.117, object path /org/
Jan 17 15:46:43 HIIAB su[4621]: Successful su for root by kolibri
Jan 17 15:46:43 HIIAB su[4621]: + /dev/pts/0 kolibri:root
Jan 17 15:46:43 HIIAB su[4621]: pam_unix(su:session): session opened for user root by (uid=122)
Jan 17 15:46:43 HIIAB su[4621]: pam_systemd(su:session): Cannot create session: Already running in a session

Please let me know what I need to do next.

Ken

Maybe try deleting your ~/.kolibri folder - looks like the DB might be in a strange state.