https://github.com/josephgodwinkimani/hello-world
https://github.com/josephgodwinkimani/hello-world
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/josephgodwinkimani/hello-world
- Owner: josephgodwinkimani
- Created: 2022-04-18T09:31:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-27T17:43:56.000Z (9 months ago)
- Last Synced: 2025-01-27T18:43:30.274Z (9 months ago)
- Language: TypeScript
- Homepage: https://github.com/adonisjs/lucid/issues/823#issuecomment-1101262763
- Size: 107 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Get Started
Install dependencies `yarn install`
Try running Database migrations with command `node ace migration:run`
Error trying migrations:
```
KnexTimeoutErrorKnex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
at Client_MySQL.acquireConnection C:/Users/home/adonisjs/hello-world/node_modules/knex/lib/client.js:310
305| debug('acquired connection from pool: %s', connection.__knexUid);
306| return connection;
307| } catch (error) {
308| let convertedError = error;
309| if (error instanceof TimeoutError) {
> 310| convertedError = new KnexTimeoutError(
311| 'Knex: Timeout acquiring a connection. The pool is probably full. ' +
312| 'Are you missing a .transacting(trx) call?'
313| );
314| }
315| throw convertedError;1 QueryRunner.executeUsingManagedConnection
C:/Users/home/adonisjs/hello-world/node_modules/@adonisjs/lucid/build/src/QueryRunner/index.js:1122 MysqlDialect.releaseAdvisoryLock
C:/Users/home/adonisjs/hello-world/node_modules/@adonisjs/lucid/build/src/Dialects/Mysql.js:1793 Migrator.releaseLock
C:/Users/home/adonisjs/hello-world/node_modules/@adonisjs/lucid/build/src/Migrator/index.js:2934 Migrator.shutdown
C:/Users/home/adonisjs/hello-world/node_modules/@adonisjs/lucid/build/src/Migrator/index.js:4265 Migrator.run
C:/Users/home/adonisjs/hello-world/node_modules/@adonisjs/lucid/build/src/Migrator/index.js:5536 Migrate.runMigrations
C:/Users/home/adonisjs/hello-world/node_modules/@adonisjs/lucid/build/commands/Migration/Base.js:1337 Migrate.runAsSubCommand
C:/Users/home/adonisjs/hello-world/node_modules/@adonisjs/lucid/build/commands/Migration/Run.js:1088 Migrate.runAsMain
C:/Users/home/adonisjs/hello-world/node_modules/@adonisjs/lucid/build/commands/Migration/Run.js:1179 Migrate.run
C:/Users/home/adonisjs/hello-world/node_modules/@adonisjs/lucid/build/commands/Migration/Run.js:124
```Run `node ace serve --watch`
Visit `http://localhost:3333/stores`
Expected Error:
`{"message":"Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?","stack":"KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?\n at Client_MySQL.acquireConnection (C:\\Users\\home\\adonisjs\\hello-world\\node_modules\\knex\\lib\\client.js:310:26)\n at QueryRunner.executeUsingManagedConnection (C:\\Users\\home\\adonisjs\\hello-world\\node_modules\\@adonisjs\\lucid\\build\\src\\QueryRunner\\index.js:112:28)\n at ModelQueryBuilder.execQuery (C:\\Users\\home\\adonisjs\\hello-world\\node_modules\\@adonisjs\\lucid\\build\\src\\Orm\\QueryBuilder\\index.js:185:22)\n at ModelQueryBuilder.exec (C:\\Users\\home\\adonisjs\\hello-world\\node_modules\\@adonisjs\\lucid\\build\\src\\Orm\\QueryBuilder\\index.js:654:24)\n at StoresController.index (C:\\Users\\home\\adonisjs\\hello-world\\app\\Controllers\\Http\\StoresController.ts:10:25)\n at Object.PreCompiler.runRouteHandler [as fn] (C:\\Users\\home\\adonisjs\\hello-world\\node_modules\\@adonisjs\\http-server\\build\\src\\Server\\PreCompiler\\index.js:47:31)\n at Server.handleRequest (C:\\Users\\home\\adonisjs\\hello-world\\node_modules\\@adonisjs\\http-server\\build\\src\\Server\\index.js:108:13)"}`