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

backend crashes with "KnexTimeoutError: Knex: Timeout acquiring a connection." #117

Open
maxaudron opened this issue May 21, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@maxaudron
Copy link
Collaborator

runtime has been 38days, there might be some connection pool running full with time or so.

[debug]	2021-05-21 17:55:32: IrcMessageProcessor.ts: Parsing new IRC message
[info]	2021-05-21 17:55:32: IrcMessageProcessor.ts: New message: :[email protected]/user/Eldbogi QUIT :Connection closed
[debug]	2021-05-21 17:55:32: ircconnection.ts: Parsed IRC message: {"ircMessage":{"prefix":"[email protected]/user/Eldbogi","command":"QUIT","params":["Connection closed"]}}

/lmrdashboard/backend/node_modules/knex/lib/client.js:348
        convertedError = new KnexTimeoutError(
                         ^
KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
    at Client_MySQL.acquireConnection (/lmrdashboard/backend/node_modules/knex/lib/client.js:348:26)
    at runMicrotasks (<anonymous>)
    at runNextTicks (node:internal/process/task_queues:58:5)
    at listOnTimeout (node:internal/timers:524:9)
    at processTimers (node:internal/timers:498:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@maxaudron maxaudron added the bug Something isn't working label May 21, 2021
@LoLei
Copy link
Member

LoLei commented May 22, 2021

I increased the pool limit (c44c5a6) and timeout (cc18066) as a quickfix, if that doesn't help we may look into using transactions as those are mentioned a few times in related threads (knex/knex#2820). The version upgrade of pg would not help in our case I assume since we're using mysql.

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