SQLITE_BUSY: database is locked

This issue has been tracked since 2022-11-09.

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

πŸ›‘οΈ Security Policy


After some time my uptime-kuma instance crashes with the Following Error message.

πŸ‘Ÿ Reproduction steps

Not really i dont do anything when the error occurs.

πŸ‘€ Expected behavior

The expected behavior is that the Container runs without crashing

πŸ˜“ Actual Behavior

The container ist crashing

🐻 Uptime-Kuma Version


πŸ’» Operating System and Arch

Ubuntu 18.04.6 LTS

🌐 Browser

Arc Version 0.75.0 (35563) Chromium Engine Version 107.0.5304.63

πŸ‹ Docker Version

Docker version 20.10.21, build baeda1

🟩 NodeJS Version


πŸ“ Relevant log output

SQLITE_BUSY: database is locked
Trace: [Error: insert into `heartbeat` (`down_count`, `duration`, `important`, `monitor_id`, `msg`, `ping`, `status`, `time`) values (0, 60, false, 11, '200 - OK', 344, 1, '2022-11-04 03:14:09.298') - SQLITE_BUSY: database is locked] {
  errno: 5,
  code: 'SQLITE_BUSY'
    at Timeout.safeBeat [as _onTimeout] (/app/server/model/monitor.js:660:25)
2022-11-04T03:14:27.759Z [MONITOR] ERROR: Please report to https://github.com/louislam/uptime-kuma/issues
      throw er; // Unhandled 'error' event

Error: read ENOTCONN
    at tryReadStart (node:net:638:20)
    at Socket._read (node:net:649:5)
    at Socket.Readable.read (node:internal/streams/readable:487:10)
    at Socket.read (node:net:705:39)
    at new Socket (node:net:425:12)
    at Object.Socket (node:net:295:41)
    at createSocket (node:internal/child_process:328:14)
    at ChildProcess.spawn (node:internal/child_process:445:23)
    at spawn (node:child_process:713:9)
    at Ping.send (/app/server/ping-lite.js:108:18)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
    at runNextTicks (node:internal/process/task_queues:65:3)
    at listOnTimeout (node:internal/timers:528:9)
    at processTimers (node:internal/timers:502:7) {
  errno: -107,
  code: 'ENOTCONN',
  syscall: 'read'
louislam wrote this answer on 2022-11-10

Please search first.

More Details About Repo
Owner Name louislam
Repo Name uptime-kuma
Full Name louislam/uptime-kuma
Language JavaScript
Created Date 2021-07-03
Updated Date 2022-11-30
Star Count 23666
Watcher Count 159
Fork Count 1992
Issue Count 694


Issue Title Created Date Updated Date