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
Trying to run migrations when using Node v14.5.0 causes "KnexTimeoutError" #3912
Comments
I'm running into this same issue with my docker-compose setup. EnvironmentNode: 14.5.0 IssueAttempting to run migrations or a simple query inside of my node container results in the following error:
Using environment: development
KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
at Client_PG.acquireConnection (/app/node_modules/knex/lib/client.js:349:26) Reverting to Node 12.18.2 does not resolve the issue for me and I'm still unable to even run migrations. I tried reverting Node-postgres (pg) per these issues, but still no luck. Any help is greatly appreciated! |
@ShawnStewart Are you still seeing the same error when you try to run migrations after you revert to Node 12.18.2 or is it a different error? I had an issue where I installed the packages using Node 14.xx which caused a load of issues after I reverted and the only way to fix it was to nuke node_modules and re-install while using Node 12.xx. |
@fdjones Sorry, I pasted the wrong error in my original comment - fixed it now. I'm getting the exact same error as you. And since I'm running in docker, I can do a rebuild and a fresh install of dependencies is done. |
@fdjones Just tested outside of docker. After reverting to Node 12.18.2 and fresh installing dependencies, still getting the same error. Are you connecting to Postgres running locally? |
Hmm, that's odd as reverting to Node 12 fixed the issue for me. Yes I'm running Postgres locally.. |
Experienced the same issue. Fixed it by upgrading both knex and pg to latest instead of downgrading to Node 12. YMMV |
having the same issue under wsl. tried with pg 8.3 and knex 0.21.1 switched to mysql2 and throws same error. |
@gates17 did you try dropping down to node 12, deleting node_modules and then re-installing your dependencies? |
as i said before tried with the node versions quoted below.
|
Thank you a lot! I don't have too much experience with node environment (I'm reading a book that uses node examples). I've just upgraded pg package to 8.4 and the error stopped. |
Environment
Node: 14.5.0
npm: 6.14.5
Knex version: 0.21.1
Database + version: PostgresQL 12.3
OSX: Catalina
Bug
When attempting to run migrations, the following error occurs:
When I revert my Node version to 12.18.2 the migrations run fine, so the issue is running the migrations while on Node 14.5.0.
The text was updated successfully, but these errors were encountered: