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

πŸ› Bug: Nest 8 error #5815

Closed
1 task done
candideu opened this issue Jun 5, 2023 · 3 comments
Closed
1 task done

πŸ› Bug: Nest 8 error #5815

candideu opened this issue Jun 5, 2023 · 3 comments
Assignees

Comments

@candideu
Copy link
Contributor

candideu commented Jun 5, 2023

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Steps to reproduce ?

I'm unable to deploy my instance of nocodb on Railway. The deployment link throws a "cannot GET" error.

image

Desired Behavior

Working deployment

Project Details

NocoDB hosted on Railway

Attachments

Deployment logs (click to view) ο»Ώ[Nest] 10 - 06/05/2023, 2:19:05 AM LOG [NestFactory] Starting Nest application... ο»Ώ[Nest] 10 - 06/05/2023, 2:19:05 AM LOG [InstanceLoader] PassportModule dependencies initialized +79ms ο»Ώ[Nest] 10 - 06/05/2023, 2:19:05 AM LOG [InstanceLoader] MulterModule dependencies initialized +0ms ο»Ώ[Nest] 10 - 06/05/2023, 2:19:05 AM LOG [InstanceLoader] MulterModule dependencies initialized +0ms ο»Ώ[Nest] 10 - 06/05/2023, 2:19:05 AM LOG [InstanceLoader] o dependencies initialized +0ms ο»Ώ[Nest] 10 - 06/05/2023, 2:19:05 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +25ms ο»Ώ[Nest] 10 - 06/05/2023, 2:19:05 AM LOG [InstanceLoader] EventEmitterModule dependencies initialized +2ms ο»Ώ(node:10) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023. ο»ΏPlease migrate your code to use AWS SDK for JavaScript (v3). ο»ΏFor more information, check the migration guide at https://a.co/7PzMCcy ο»Ώ(Use `node --trace-warnings ...` to show where the warning was created) ╔══════════════════════════════════════════════════════════════════════════════╗║ β•‘β•‘ EXCEPTION OCCURED!! in PGClient @ createDatabaseIfNotExists β•‘β•‘ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - β•‘β•‘ - - - - - - - - - - - - - - - - - - - - - - β•‘β•‘ MESSAGE: β•‘β•‘ Knex: Timeout acquiring a connection. The pool is probably full. Are you β•‘β•‘ missing a .transacting(trx) call? β•‘β•‘ β•‘β•‘ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - β•‘β•‘ - - - - - - - - - - - - - - - - - - - - - - β•‘β•‘ CODE: β•‘β•‘ undefined β•‘β•‘ β•‘β•‘ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - β•‘β•‘ - - - - - - - - - - - - - - - - - - - - - - β•‘β•‘ STACK: β•‘β•‘ KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is β•‘β•‘ probably full. Are you missing a .transacting(trx) call? β•‘β•‘ at Client_PG.acquireConnection β•‘β•‘ (/usr/src/app/node_modules/knex/lib/client.js:307:26) β•‘β•‘ at async Runner.ensureConnection β•‘β•‘ (/usr/src/app/node_modules/knex/lib/execution/runner.js:287:28) β•‘β•‘ at async Runner.run β•‘β•‘ (/usr/src/app/node_modules/knex/lib/execution/runner.js:30:19) β•‘β•‘ at async f.createDatabaseIfNotExists β•‘β•‘ (/usr/src/app/docker/main.js:1:468119) β•‘β•‘ at async metaDbCreateIfNotExist (/usr/src/app/docker/main.js:1:1313979) β•‘β•‘ at async Function.create (/usr/src/app/docker/main.js:1:1312760) β•‘β•‘ at async InstanceWrapper.useFactory [as metatype] β•‘β•‘ (/usr/src/app/docker/main.js:1:888504) β•‘β•‘ at async Injector.instantiateClass β•‘β•‘ (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:355:37) β•‘β•‘ at async callback β•‘β•‘ (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:56:34) β•‘β•‘ at async Injector.resolveConstructorParams β•‘β•‘ (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:136:24) β•‘β•‘ β•‘β•‘ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - β•‘β•‘ - - - - - - - - - - - - - - - - - - - - - - β•‘β•‘ β•‘β•‘ β•‘β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• ο»ΏKnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call? ο»Ώat Client_PG.acquireConnection (/usr/src/app/node_modules/knex/lib/client.js:307:26) ο»Ώat async Runner.ensureConnection (/usr/src/app/node_modules/knex/lib/execution/runner.js:287:28) ο»Ώat async Runner.run (/usr/src/app/node_modules/knex/lib/execution/runner.js:30:19) ο»Ώat async f.createDatabaseIfNotExists (/usr/src/app/docker/main.js:1:468119) ο»Ώat async metaDbCreateIfNotExist (/usr/src/app/docker/main.js:1:1313979) ο»Ώat async Function.create (/usr/src/app/docker/main.js:1:1312760) ο»Ώat async InstanceWrapper.useFactory [as metatype] (/usr/src/app/docker/main.js:1:888504) ο»Ώat async Injector.instantiateClass (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:355:37) ο»Ώat async callback (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:56:34) ο»Ώat async Injector.resolveConstructorParams (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:136:24) { ο»Ώsql: "SELECT datname as database FROM pg_database WHERE datistemplate = false and datname = 'railway'", ο»Ώbindings: undefined ο»Ώ} ο»Ώ[Nest] 10 - 06/05/2023, 2:20:05 AM ERROR [ExceptionHandler] KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call? ο»ΏError: KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call? ο»Ώat Function.create (/usr/src/app/docker/main.js:1:1312808) ο»Ώat async InstanceWrapper.useFactory [as metatype] (/usr/src/app/docker/main.js:1:888504) ο»Ώat async Injector.instantiateClass (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:355:37) ο»Ώat async callback (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:56:34) ο»Ώat async Injector.resolveConstructorParams (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:136:24) ο»Ώat async Injector.loadInstance (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:61:13) ο»Ώat async /usr/src/app/node_modules/@nestjs/core/injector/instance-loader.js:56:13 ο»Ώat async Promise.all (index 3) ο»Ώat async InstanceLoader.createInstancesOfProviders (/usr/src/app/node_modules/@nestjs/core/injector/instance-loader.js:55:9) ο»Ώat async Injector.loadProvider (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:88:9) ο»Ώ[Nest] 8 - 06/05/2023, 2:20:11 AM LOG [NestFactory] Starting Nest application... ο»Ώ[Nest] 8 - 06/05/2023, 2:20:11 AM LOG [InstanceLoader] PassportModule dependencies initialized +76ms ο»Ώ[Nest] 8 - 06/05/2023, 2:20:11 AM LOG [InstanceLoader] MulterModule dependencies initialized +1ms ο»Ώ[Nest] 8 - 06/05/2023, 2:20:11 AM LOG [InstanceLoader] MulterModule dependencies initialized +0ms ο»Ώ[Nest] 8 - 06/05/2023, 2:20:11 AM LOG [InstanceLoader] o dependencies initialized +0ms ο»Ώ[Nest] 8 - 06/05/2023, 2:20:11 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +23ms ο»Ώ[Nest] 8 - 06/05/2023, 2:20:11 AM LOG [InstanceLoader] EventEmitterModule dependencies initialized +2ms ο»Ώ(node:8) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023. ο»ΏPlease migrate your code to use AWS SDK for JavaScript (v3). ο»ΏFor more information, check the migration guide at https://a.co/7PzMCcy ο»Ώ(Use `node --trace-warnings ...` to show where the warning was created) ╔══════════════════════════════════════════════════════════════════════════════╗║ β•‘β•‘ EXCEPTION OCCURED!! in PGClient @ createDatabaseIfNotExists β•‘β•‘ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - β•‘β•‘ - - - - - - - - - - - - - - - - - - - - - - β•‘β•‘ MESSAGE: β•‘β•‘ Knex: Timeout acquiring a connection. The pool is probably full. Are you β•‘β•‘ missing a .transacting(trx) call? β•‘β•‘ β•‘β•‘ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - β•‘β•‘ - - - - - - - - - - - - - - - - - - - - - - β•‘β•‘ CODE: β•‘β•‘ undefined β•‘β•‘ β•‘β•‘ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - β•‘β•‘ - - - - - - - - - - - - - - - - - - - - - - β•‘β•‘ STACK: β•‘β•‘ KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is β•‘β•‘ probably full. Are you missing a .transacting(trx) call? β•‘β•‘ at Client_PG.acquireConnection β•‘β•‘ (/usr/src/app/node_modules/knex/lib/client.js:307:26) β•‘β•‘ at async Runner.ensureConnection β•‘β•‘ (/usr/src/app/node_modules/knex/lib/execution/runner.js:287:28) β•‘β•‘ at async Runner.run β•‘β•‘ (/usr/src/app/node_modules/knex/lib/execution/runner.js:30:19) β•‘β•‘ at async f.createDatabaseIfNotExists β•‘β•‘ (/usr/src/app/docker/main.js:1:468119) β•‘β•‘ at async metaDbCreateIfNotExist (/usr/src/app/docker/main.js:1:1313979) β•‘β•‘ at async Function.create (/usr/src/app/docker/main.js:1:1312760) β•‘β•‘ at async InstanceWrapper.useFactory [as metatype] β•‘β•‘ (/usr/src/app/docker/main.js:1:888504) β•‘β•‘ at async Injector.instantiateClass β•‘β•‘ (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:355:37) β•‘β•‘ at async callback β•‘β•‘ (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:56:34) β•‘β•‘ at async Injector.resolveConstructorParams β•‘β•‘ (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:136:24) β•‘β•‘ β•‘β•‘ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - β•‘β•‘ - - - - - - - - - - - - - - - - - - - - - - β•‘β•‘ β•‘β•‘ β•‘β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• ο»ΏKnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call? ο»Ώat Client_PG.acquireConnection (/usr/src/app/node_modules/knex/lib/client.js:307:26) ο»Ώat async Runner.ensureConnection (/usr/src/app/node_modules/knex/lib/execution/runner.js:287:28) ο»Ώat async Runner.run (/usr/src/app/node_modules/knex/lib/execution/runner.js:30:19) ο»Ώat async f.createDatabaseIfNotExists (/usr/src/app/docker/main.js:1:468119) ο»Ώat async metaDbCreateIfNotExist (/usr/src/app/docker/main.js:1:1313979) ο»Ώat async Function.create (/usr/src/app/docker/main.js:1:1312760) ο»Ώat async InstanceWrapper.useFactory [as metatype] (/usr/src/app/docker/main.js:1:888504) ο»Ώat async Injector.instantiateClass (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:355:37) ο»Ώat async callback (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:56:34) ο»Ώat async Injector.resolveConstructorParams (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:136:24) { ο»Ώsql: "SELECT datname as database FROM pg_database WHERE datistemplate = false and datname = 'railway'", ο»Ώbindings: undefined ο»Ώ} ο»Ώ[Nest] 8 - 06/05/2023, 2:21:11 AM ERROR [ExceptionHandler] KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call? ο»ΏError: KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call? ο»Ώat Function.create (/usr/src/app/docker/main.js:1:1312808) ο»Ώat async InstanceWrapper.useFactory [as metatype] (/usr/src/app/docker/main.js:1:888504) ο»Ώat async Injector.instantiateClass (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:355:37) ο»Ώat async callback (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:56:34) ο»Ώat async Injector.resolveConstructorParams (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:136:24) ο»Ώat async Injector.loadInstance (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:61:13) ο»Ώat async Injector.loadProvider (/usr/src/app/node_modules/@nestjs/core/injector/injector.js:88:9) ο»Ώat async /usr/src/app/node_modules/@nestjs/core/injector/instance-loader.js:56:13
@pranavxc
Copy link
Member

Looks like it's related to your database, can you restart your database and then restart the nocodb app/docker.

@candideu
Copy link
Contributor Author

@pranavxc you're a life-saver! Restarting the database and redeploying the app worked perfectly!

@candideu
Copy link
Contributor Author

Potentially related: #390 #1150 #5467

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants