K
K
komigor2021-09-05 11:36:37
Node.js
komigor, 2021-09-05 11:36:37

Why is The pool is probably full in Knex.js?

When I try to run migrations in knex.js, npm run migrateI get an error

KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
    at Client_PG.acquireConnection (/home/ihor/matema-booking-api/node_modules/knex/lib/client.js:348:26)

But if you just run the project with npm start, then everything is fine. What is the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question