question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kolibri database is locked error

See original GitHub issue

Observed behavior

This happened when I import more than 20GB of KA channel contents and using multiple browsers for Kolibri testing.

I’m using Windows 7 VM with 512MB of memory 1 CPU 27MB Video memory

Expected behavior

User-facing consequences

Errors and logs

[33mWARNING  Got an exception running <bound method Scheduler.check_schedule of <kolibri.core.tasks.scheduler.Scheduler object at 0x0488AE30>>: (sqlite3.OperationalError) database is locked [SQL: 'SELECT scheduledjobs.id AS scheduledjobs_id, scheduledjobs.interval AS scheduledjobs_interval, scheduledjobs.repeat AS scheduledjobs_repeat, scheduledjobs.queue AS scheduledjobs_queue, scheduledjobs.obj AS scheduledjobs_obj, scheduledjobs.scheduled_time AS scheduledjobs_scheduled_time \nFROM scheduledjobs \nWHERE scheduledjobs.queue = ? AND scheduledjobs.scheduled_time <= ?'] [parameters: ('kolibri', '2020-03-26 11:55:45.701044')] (Background on this error at: http://sqlalche.me/e/e3q8)[0m

deamon.txt kolibri.txt

Steps to reproduce

  • Import more than 20GB of KA channel contents
  • While importing KA contents Install IE11, Firefox and Chrome browsers
  • While importing KA contents do some integration testing with this Spreadsheet using those three browsers

Context

Tell us about your environment, including:

  • Kolibri version: 0.13.2-beta1
  • Operating system: Windows 7
  • Browser

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
indirectlylitcommented, Apr 7, 2020

Closing because it sounds like the issue can be attributed to running Kolibri in a VM with less resources than the hardware requirements

Please re-open if I’ve mis-understood

1reaction
cpauyacommented, Mar 31, 2020

@mrpau-richard Are you using a VM for this? If so, please edit and put the VM details in your first post (ram, disk size, # of processors, graphics ram) - they’ll be helpful. If not, please ignore this. 😺

Read more comments on GitHub >

github_iconTop Results From Across the Web

Database locked error preventing startup [time sensitive] - Kolibri
When Kolibri fails to start, there is a python exception in daemon.log that indicates that an operation failed because the database was ...
Read more >
Troubleshooting — Kolibri User Guide - Read the Docs
In case you receive the database disk image is malformed error in Terminal, it does not mean that the database cannot be fixed....
Read more >
OperationalError: database is locked - python - Stack Overflow
This error means that one thread or process has an exclusive lock on the database connection and another thread timed out waiting for...
Read more >
Kolibri - Read the Docs
Kolibri, Release 0.5. Import Content Channel from the Internet. 1. Choose option for Internet. 2. Enter Content Database ID for the desired channel...
Read more >
How to Fix SQLite “Database Locked” Error - KaplanSoft
A locked SQLite database stops the user from writing more transactions, and the tables are not updated or altered anymore. This error code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found