mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-05-17 00:16:32 +03:00
fix: Revert back to single SQLite connection by default (#7346)
This commit is contained in:
@@ -270,10 +270,9 @@ class Database {
|
||||
max: 20,
|
||||
};
|
||||
|
||||
// However, for unknown reason, it is not working probably on Raspberry Pi, it causes "SQLITE_BUSY: database is locked" error.
|
||||
// See: https://github.com/louislam/uptime-kuma/issues/7289
|
||||
// Provide an environment variable to switch back to a single connection.
|
||||
if (process.env.UPTIME_KUMA_SQLITE_SINGLE_CONNECTION === "true") {
|
||||
// Default is still single connection.
|
||||
// Multiple connection could run into "SQLITE_BUSY: database is locked" error.
|
||||
if (process.env.UPTIME_KUMA_SQLITE_SINGLE_CONNECTION !== "false") {
|
||||
log.info("db", "Using single connection for SQLite");
|
||||
poolConfig = {
|
||||
min: 1,
|
||||
|
||||
Reference in New Issue
Block a user