Device Info Error in Raspberry Pi Kolibri

Hello, am getting an error while accessing device info on the Kolibri in the Raspberry Pi. Here is the log details:

{ “request”: { “path”: “/api/deviceinfo/”, “params”: { “1539007282232”: 1539007282232 }, “headers”: { “Content-Type”: “application/json”, “Accept”: “application/json, application/json;q=0.8, text/plain;q=0.5, /;q=0.2”, “X-CSRFToken”: “prEj43FErLrnBTpMvw59RNGmgBAGCezrV8Dus6FitxypKHeiCd03eNAle2xIe24T” }, “method”: “GET”, “canceled”: false }, “url”: “/api/deviceinfo/?1539007282232=1539007282232”, “raw”: {}, “status”: { “code”: 500, “text”: “Internal Server Error” }, “headers”: { “Date”: “Mon, 08 Oct 2018 13:43:38 GMT”, “Vary”: “Accept-Language, Cookie”, “Server”: “0.0.0.0”, “Content-Type”: “text/html”, “Content-Length”: “27”, “X-Frame-Options”: “SAMEORIGIN”, “Content-Language”: “en” }, “entity”: “

Server Error (500)

” }

Hi, in order to see what is the real error, I would need to see the content of kolibri logs.
If you look at /home/pi/.kolibri (in fact to the .kolibri directory in your user, in case your user is not ‘pi’), you will see some of these files: debug.log, server.log, kolibri.log .
Please, using the upload button available when writing these comments, attach these files from your Raspberry.

pi@raspberrypi:~ $ kolibri start --foreground #stop existing kolibri
WARNING:root:No C Extensions available for this platform.

INFO Running Kolibri with the following settings: kolibri.deployment.default.settings.base
INFO:kolibri.core.apps:Running Kolibri with the following settings: kolibri.deployment.default.settings.base
INFO Running update routines for new version…
INFO:kolibri.utils.cli:Running update routines for new version…

0 static files copied to ‘/home/pi/.kolibri/static’, 386 unmodified.
Operations to perform:
Apply all migrations: admin, auth, content, contenttypes, device, exams, kolibriauth, lessons, logger, morango, sessions
Running migrations:
No migrations to apply.
Installed 2 object(s) from 1 fixture(s)
INFO Running ‘kolibri start’ in foreground…
INFO:kolibri.utils.cli:Running ‘kolibri start’ in foreground…
INFO Kolibri running on:

INFO:kolibri.utils.cli:Kolibri running on:

http://192.168.100.109:8080/
http://127.0.0.1:8080/

INFO Attempting a ping.
INFO:kolibri.core.analytics.management.commands.ping:Attempting a ping.
Exception in thread Thread-1:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/kolibri/dist/django/db/backends/utils.py”, line 64, in execute
return self.cursor.execute(sql, params)
File “/usr/lib/python3/dist-packages/kolibri/dist/django/db/backends/sqlite3/base.py”, line 328, in execute
return Database.Cursor.execute(self, query, params)
sqlite3.DatabaseError: database disk image is malformed

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/lib/python3.5/threading.py”, line 914, in _bootstrap_inner
self.run()
File “/usr/lib/python3/dist-packages/kolibri/utils/server.py”, line 100, in run
call_command(“ping”)
File “/usr/lib/python3/dist-packages/kolibri/dist/django/core/management/init.py”, line 131, in call_command
return command.execute(*args, **defaults)
File “/usr/lib/python3/dist-packages/kolibri/dist/django/core/management/base.py”, line 330, in execute
output = self.handle(*args, **options)
File “/usr/lib/python3/dist-packages/kolibri/core/analytics/management/commands/ping.py”, line 46, in handle
data = self.perform_ping(server)
File “/usr/lib/python3/dist-packages/kolibri/core/analytics/management/commands/ping.py”, line 60, in perform_ping
instance, _ = InstanceIDModel.get_or_create_current_instance()
File “/usr/lib/python3/dist-packages/kolibri/dist/morango/models.py”, line 125, in get_or_create_current_instance
InstanceIDModel.objects.filter(current=True).update(current=False)
File “/usr/lib/python3/dist-packages/kolibri/dist/django/db/models/query.py”, line 647, in update
rows = query.get_compiler(self.db).execute_sql(CURSOR)
File “/usr/lib/python3/dist-packages/kolibri/dist/django/db/models/sql/compiler.py”, line 1204, in execute_sql
cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)
File “/usr/lib/python3/dist-packages/kolibri/dist/django/db/models/sql/compiler.py”, line 899, in execute_sql
raise original_exception
File “/usr/lib/python3/dist-packages/kolibri/dist/django/db/models/sql/compiler.py”, line 889, in execute_sql
cursor.execute(sql, params)
File “/usr/lib/python3/dist-packages/kolibri/dist/django/db/backends/utils.py”, line 64, in execute
return self.cursor.execute(sql, params)
File “/usr/lib/python3/dist-packages/kolibri/dist/django/db/utils.py”, line 94, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File “/usr/lib/python3/dist-packages/kolibri/dist/django/utils/six.py”, line 685, in reraise
raise value.with_traceback(tb)
File “/usr/lib/python3/dist-packages/kolibri/dist/django/db/backends/utils.py”, line 64, in execute
return self.cursor.execute(sql, params)
File “/usr/lib/python3/dist-packages/kolibri/dist/django/db/backends/sqlite3/base.py”, line 328, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.DatabaseError: database disk image is malformed

INFO Started new MESSAGEPROCESSOR thread ID#uranus-minnesota-winner-cola
INFO:iceqube.common.utils.MESSAGEPROCESSOR[uranus-minnesota-winner-cola]:Started new MESSAGEPROCESSOR thread ID#uranus-minnesota-winner-cola
INFO Started new SCHEDULER thread ID#emma-angel-south-angel
INFO:iceqube.common.utils.SCHEDULER[emma-angel-south-angel]:Started new SCHEDULER thread ID#emma-angel-south-angel
INFO Started new WORKERMESSAGEHANDLER thread ID#idaho-tennessee-crazy-london
INFO:iceqube.common.utils.WORKERMESSAGEHANDLER[idaho-tennessee-crazy-london]:Started new WORKERMESSAGEHANDLER thread ID#idaho-tennessee-crazy-london
INFO:cherrypy.error:[11/Oct/2018:14:22:26] ENGINE Bus STARTING
INFO:cherrypy.error:[11/Oct/2018:14:22:26] ENGINE Serving on http://0.0.0.0:8080
INFO:cherrypy.error:[11/Oct/2018:14:22:26] ENGINE Bus STARTED