Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stalling in docker #2208

Closed
2 tasks done
IrishOfficial opened this issue Oct 9, 2022 · 1 comment
Closed
2 tasks done

Stalling in docker #2208

IrishOfficial opened this issue Oct 9, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@IrishOfficial
Copy link

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

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

Trace: KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
at Client_SQLite3.acquireConnection (/home/container/node_modules/knex/lib/client.js:305:26)
at async Runner.ensureConnection (/home/container/node_modules/knex/lib/execution/runner.js:259:28)
at async Runner.run (/home/container/node_modules/knex/lib/execution/runner.js:30:19)
at async RedBeanNode.normalizeRaw (/home/container/node_modules/redbean-node/dist/redbean-node.js:588:22)
at async RedBeanNode.getRow (/home/container/node_modules/redbean-node/dist/redbean-node.js:574:22)
at async Function.calcUptime (/home/container/server/model/monitor.js:826:22)
at async Function.sendUptime (/home/container/server/model/monitor.js:889:24)
at async Function.sendStats (/home/container/server/model/monitor.js:767:13) {
sql: '\n' +
' SELECT\n' +
' -- SUM all duration, also trim off the beat out of time window\n' +
' SUM(\n' +
' CASE\n' +
' WHEN (JULIANDAY(time) - JULIANDAY(?)) * 86400 < duration\n' +
' THEN (JULIANDAY(time) - JULIANDAY(?)) * 86400\n' +
' ELSE duration\n' +
' END\n' +
' ) AS total_duration,\n' +
'\n' +
' -- SUM all uptime duration, also trim off the beat out of time window\n' +
' SUM(\n' +
' CASE\n' +
' WHEN (status = 1)\n' +
' THEN\n' +
' CASE\n' +
' WHEN (JULIANDAY(time) - JULIANDAY(?)) * 86400 < duration\n' +
' THEN (JULIANDAY(time) - JULIANDAY(?)) * 86400\n' +
' ELSE duration\n' +
' END\n' +
' END\n' +
' ) AS uptime_duration\n' +
' FROM heartbeat\n' +
' WHERE time > ?\n' +
' AND monitor_id = ?\n' +
' ',
bindings: [
'2022-10-08 17:14:31',
'2022-10-08 17:14:31',
'2022-10-08 17:14:31',
'2022-10-08 17:14:31',
'2022-10-08 17:14:31',
11
]
}
at process. (/home/container/server/server.js:1728:13)
at process.emit (events.js:400:28)
at processPromiseRejections (internal/process/promises.js:245:33)
at processTicksAndRejections (internal/process/task_queues.js:96:32)
If you keep encountering errors, please report to https://github.com/louislam/uptime-kuma/issues

👟 Reproduction steps

Happens on multiple different container services and starts about a day after fully setting up system.

Stalls the system out and everything becomes uneditable.

👀 Expected behavior

To not stall

😓 Actual Behavior

Stalls

🐻 Uptime-Kuma Version

1.18.3

💻 Operating System and Arch

Ubuntu 20.04

🌐 Browser

Chrome

🐋 Docker Version

20.10.9

🟩 NodeJS Version

14.18

📝 Relevant log output

Trace: KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
    at Client_SQLite3.acquireConnection (/home/container/node_modules/knex/lib/client.js:305:26)
    at async Runner.ensureConnection (/home/container/node_modules/knex/lib/execution/runner.js:259:28)
    at async Runner.run (/home/container/node_modules/knex/lib/execution/runner.js:30:19)
    at async RedBeanNode.normalizeRaw (/home/container/node_modules/redbean-node/dist/redbean-node.js:588:22)
    at async RedBeanNode.getRow (/home/container/node_modules/redbean-node/dist/redbean-node.js:574:22)
    at async Function.calcUptime (/home/container/server/model/monitor.js:826:22)
    at async Function.sendUptime (/home/container/server/model/monitor.js:889:24)
    at async Function.sendStats (/home/container/server/model/monitor.js:767:13) {
  sql: '\n' +
    '            SELECT\n' +
    '               -- SUM all duration, also trim off the beat out of time window\n' +
    '                SUM(\n' +
    '                    CASE\n' +
    '                        WHEN (JULIANDAY(`time`) - JULIANDAY(?)) * 86400 < duration\n' +
    '                        THEN (JULIANDAY(`time`) - JULIANDAY(?)) * 86400\n' +
    '                        ELSE duration\n' +
    '                    END\n' +
    '                ) AS total_duration,\n' +
    '\n' +
    '               -- SUM all uptime duration, also trim off the beat out of time window\n' +
    '                SUM(\n' +
    '                    CASE\n' +
    '                        WHEN (status = 1)\n' +
    '                        THEN\n' +
    '                            CASE\n' +
    '                                WHEN (JULIANDAY(`time`) - JULIANDAY(?)) * 86400 < duration\n' +
    '                                    THEN (JULIANDAY(`time`) - JULIANDAY(?)) * 86400\n' +
    '                                ELSE duration\n' +
    '                            END\n' +
    '                        END\n' +
    '                ) AS uptime_duration\n' +
    '            FROM heartbeat\n' +
    '            WHERE time > ?\n' +
    '            AND monitor_id = ?\n' +
    '        ',
  bindings: [
    '2022-10-08 17:14:31',
    '2022-10-08 17:14:31',
    '2022-10-08 17:14:31',
    '2022-10-08 17:14:31',
    '2022-10-08 17:14:31',
    11
  ]
}
    at process.<anonymous> (/home/container/server/server.js:1728:13)
    at process.emit (events.js:400:28)
    at processPromiseRejections (internal/process/promises.js:245:33)
    at processTicksAndRejections (internal/process/task_queues.js:96:32)
If you keep encountering errors, please report to https://github.com/louislam/uptime-kuma/issues
@IrishOfficial IrishOfficial added the bug Something isn't working label Oct 9, 2022
@louislam
Copy link
Owner

louislam commented Oct 9, 2022

Duplicate of #1397

@louislam louislam marked this as a duplicate of #1397 Oct 9, 2022
@louislam louislam closed this as completed Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants