Skip to content

Unable to acquire a connection #6166

@luizrn

Description

@luizrn

📑 I have found these related issues/pull requests

not

🛡️ Security Policy

📝 Description

2025-10-07T15:24:35-04:00 [DB] INFO: Closing the database
Trace: Error: Unable to acquire a connection
at Client_SQLite3.acquireConnection (/app/node_modules/knex/lib/client.js:311:13)
at Runner.ensureConnection (/app/node_modules/knex/lib/execution/runner.js:305:46)
at Runner.run (/app/node_modules/knex/lib/execution/runner.js:30:30)
at Target.then (/app/node_modules/knex/lib/builder-interface-augmenter.js:24:43)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at safeBeat (/app/server/model/monitor.js:997:25)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-10-07T15:24:35-04:00 [MONITOR] ERROR: Please report to https://github.com/louislam/uptime-kuma/issues
Trace: Error: Unable to acquire a connection
at Client_SQLite3.acquireConnection (/app/node_modules/knex/lib/client.js:311:13)
at Runner.ensureConnection (/app/node_modules/knex/lib/execution/runner.js:305:46)
at Runner.run (/app/node_modules/knex/lib/execution/runner.js:30:30)
at Target.then (/app/node_modules/knex/lib/builder-interface-augmenter.js:24:43)
at safeBeat (/app/server/model/monitor.js:997:25)
2025-10-07T15:24:35-04:00 [MONITOR] ERROR: Please report to https://github.com/louislam/uptime-kuma/issues
Trace: Error: Unable to acquire a connection
at Client_SQLite3.acquireConnection (/app/node_modules/knex/lib/client.js:311:13)
at Runner.ensureConnection (/app/node_modules/knex/lib/execution/runner.js:305:46)
at Runner.run (/app/node_modules/knex/lib/execution/runner.js:30:30)
at Target.then (/app/node_modules/knex/lib/builder-interface-augmenter.js:24:43)
at safeBeat (/app/server/model/monitor.js:997:25)
2025-10-07T15:24:36-04:00 [MONITOR] ERROR: Please report to https://github.com/louislam/uptime-kuma/issues
2025-10-07T15:24:37-04:00 [DB] INFO: Database closed

👟 Reproduction steps

run

👀 Expected behavior

not error in db

😓 Actual Behavior

error in db (console)

🐻 Uptime-Kuma Version

Uptime Kuma Versão: 2.0.0-beta.3 Versão Do Frontend: 2.0.0-beta.3

💻 Operating System and Arch

Ubuntu Server 24.04.2 LTS (GNU/Linux 6.8.0-55-generic x86_64)

🌐 Browser

Google ChromeVersão 140.0.7339.208 (Versão oficial) 64 bits

🖥️ Deployment Environment

Easypanel (in docker)

{
"services": [
{
"type": "app",
"data": {
"projectName": "monitoring",
"serviceName": "uptimekuma",
"source": {
"type": "image",
"image": "louislam/uptime-kuma:2.0.0-beta.3"
},
"deploy": {
"replicas": 1,
"command": null,
"zeroDowntime": true
},
"domains": [
{
"host": "uptime.tbdc.com.br",
"https": true,
"port": 3001,
"path": "/",
"middlewares": [],
"certificateResolver": "",
"wildcard": false,
"internalProtocol": "http"
}
],
"mounts": [
{
"type": "volume",
"name": "data",
"mountPath": "/app/data"
}
],
"resources": {
"memoryReservation": 0,
"memoryLimit": 600,
"cpuReservation": 0,
"cpuLimit": 1
}
}
}
]
}

  • Uptime Kuma Setup:
    • Number of monitors: 40

📝 Relevant log output

2025-10-07T15:24:35-04:00 [DB] INFO: Closing the database
Trace: Error: Unable to acquire a connection
    at Client_SQLite3.acquireConnection (/app/node_modules/knex/lib/client.js:311:13)
    at Runner.ensureConnection (/app/node_modules/knex/lib/execution/runner.js:305:46)
    at Runner.run (/app/node_modules/knex/lib/execution/runner.js:30:30)
    at Target.then (/app/node_modules/knex/lib/builder-interface-augmenter.js:24:43)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at safeBeat (/app/server/model/monitor.js:997:25)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-10-07T15:24:35-04:00 [MONITOR] ERROR: Please report to https://github.com/louislam/uptime-kuma/issues
Trace: Error: Unable to acquire a connection
    at Client_SQLite3.acquireConnection (/app/node_modules/knex/lib/client.js:311:13)
    at Runner.ensureConnection (/app/node_modules/knex/lib/execution/runner.js:305:46)
    at Runner.run (/app/node_modules/knex/lib/execution/runner.js:30:30)
    at Target.then (/app/node_modules/knex/lib/builder-interface-augmenter.js:24:43)
    at safeBeat (/app/server/model/monitor.js:997:25)
2025-10-07T15:24:35-04:00 [MONITOR] ERROR: Please report to https://github.com/louislam/uptime-kuma/issues
Trace: Error: Unable to acquire a connection
    at Client_SQLite3.acquireConnection (/app/node_modules/knex/lib/client.js:311:13)
    at Runner.ensureConnection (/app/node_modules/knex/lib/execution/runner.js:305:46)
    at Runner.run (/app/node_modules/knex/lib/execution/runner.js:30:30)
    at Target.then (/app/node_modules/knex/lib/builder-interface-augmenter.js:24:43)
    at safeBeat (/app/server/model/monitor.js:997:25)
2025-10-07T15:24:36-04:00 [MONITOR] ERROR: Please report to https://github.com/louislam/uptime-kuma/issues
2025-10-07T15:24:37-04:00 [DB] INFO: Database closed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions