Cannot start Kolibri after upgrading Kolibri 0.14.7 to Kolibri 0.15.0 beta2
See original GitHub issueObserved behavior
I’m getting a database error when I attempt to start Kolibri after an upgrade from the 0.14.7 version to 0.15.0 beta2
Expected behavior
It should be possible to upgrade the 0.14 version of Kolibri to the 0.15 version
Steps to reproduce the issue
- Install the a 0.14.7 version of Kolibri from here.
- Setup a facility, create classes, users, lesson etc and perform some user interactions such as completing a lesson or a quiz.
- Upgrade to the 0.15 version by Installing the following build..
- Attempt to start the Kolibri server.
Additional information
Console info when I execute the kolibri start --foreground
command in Ubuntu:
le@osboxes:~$ 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
/usr/lib/python3/dist-packages/kolibri/dist/rest_framework/utils/serializer_helpers.py:107: SyntaxWarning: "is" with a literal. Did you mean "=="?
if value is None or value is '':
INFO Running Kolibri with the following settings: kolibri.deployment.default.settings.base
INFO Backed up database to: /home/le/.kolibri/backups/db-v0.14.7_2021-11-25_16-17-29.dump
INFO Version was 0.14.7, new version: 0.15.0b2
INFO Running update routines for new version...
Operations to perform:
Apply all migrations: admin, analytics, auth, bookmarks, content, contenttypes, device, discovery, exams, kolibriauth, lessons, logger, morango, notifications, sessions
Running migrations:
No migrations to apply.
Operations to perform:
Apply all migrations: admin, analytics, auth, bookmarks, content, contenttypes, device, discovery, exams, kolibriauth, lessons, logger, morango, notifications, sessions
Running migrations:
No migrations to apply.
Operations to perform:
Apply all migrations: admin, analytics, auth, bookmarks, content, contenttypes, device, discovery, exams, kolibriauth, lessons, logger, morango, notifications, sessions
Running migrations:
No migrations to apply.
Operations to perform:
Apply all migrations: admin, analytics, auth, bookmarks, content, contenttypes, device, discovery, exams, kolibriauth, lessons, logger, morango, notifications, sessions
Running migrations:
No migrations to apply.
Installed 2 object(s) from 1 fixture(s)
Error: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kolibri/utils/cli.py", line 193, in invoke
initialize(**get_initialize_params())
File "/usr/lib/python3/dist-packages/kolibri/utils/main.py", line 268, in initialize
update(version, kolibri.__version__)
File "/usr/lib/python3/dist-packages/kolibri/utils/main.py", line 326, in update
run_upgrades(old_version, new_version)
File "/usr/lib/python3/dist-packages/kolibri/core/upgrade.py", line 156, in run_upgrades
version_upgrade()
File "/usr/lib/python3/dist-packages/kolibri/core/upgrade.py", line 51, in __call__
return self.upgrade()
File "/usr/lib/python3/dist-packages/kolibri/core/content/upgrade.py", line 306, in metadata_annotation_update
get_all_contentnode_label_metadata()
File "/usr/lib/python3/dist-packages/kolibri/core/content/utils/search.py", line 122, in get_all_contentnode_label_metadata
return get_available_metadata_labels(
File "/usr/lib/python3/dist-packages/kolibri/core/content/utils/search.py", line 86, in get_available_metadata_labels
content_cache_key = ContentCacheKey.get_cache_key()
File "/usr/lib/python3/dist-packages/kolibri/core/device/models.py", line 159, in get_cache_key
cache.set(CONTENT_CACHE_KEY_CACHE_KEY, key, 5000)
File "/usr/lib/python3/dist-packages/kolibri/dist/diskcache/djangocache.py", line 147, in set
return self._cache.set(key, value, timeout, read, tag, retry)
File "/usr/lib/python3/dist-packages/kolibri/dist/diskcache/fanout.py", line 97, in set
return shard.set(key, value, expire, read, tag, retry)
File "/usr/lib/python3/dist-packages/kolibri/dist/diskcache/core.py", line 836, in set
self._row_update(rowid, now, columns)
File "/usr/lib/python3/dist-packages/kolibri/dist/diskcache/core.py", line 860, in _row_update
sql('UPDATE Cache SET'
sqlite3.DatabaseError: database disk image is malformed
Complete Windows 10 and Ubuntu folders with DBs and logs: https://drive.google.com/drive/folders/1ZWYLxZ24lghoBfYbyCU1b71YaMw5eJub?usp=sharing
Usage Details
- OS: Windows 10, Ubuntu 20
- Browser: Chrome
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Failed 0.15 beta installation - Kolibri
Did you perhaps stop Kolibri prior to your attempt at installing the beta? I'm wondering if that could be an issue. Here are...
Read more >Troubleshooting — Kolibri User Guide - Read the Docs
If you are trying to export on an attached USB drive, and Kolibri displays the message Could not find a writable drive connected...
Read more >Kolibri User Guide - Read the Docs
Once the installation of the upgrade is nished, Kolibri will auto-start and open in ... Device super admin credentials cannot be retrieved when...
Read more >Kolibri Install and Introduction (2021) - YouTube
In this video we will install and take a look at the latest version v0.14.7 of Kolibri by Learning Equality. We will be...
Read more >ricecooker - PyPI
IMPORT the the channel into Kolibri using the channel token displayed in Kolibri Studio after the PUBLISH step is done. The diagram below...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK, interesting - this is a completely different error to the one reported above, which makes me suspect that the original error might be a VirtualBox file system specific issue.
Note that the issue is observed on a real device running Windows 10. Here’s the errors I get upon starting Kolibri 0.15 beta2:
Logs and DB file: Win10LogsAndDB.zip
@radinamatic