Skip to content
This repository was archived by the owner on Nov 24, 2021. It is now read-only.
This repository was archived by the owner on Nov 24, 2021. It is now read-only.

keystone not working after heroku deployment #19

@datadu-de

Description

@datadu-de
2021-04-03T20:31:24.982547+00:00 app[web.1]: 
2021-04-03T20:31:24.982565+00:00 app[web.1]: > [email protected] prestart /app
2021-04-03T20:31:24.982565+00:00 app[web.1]: > npm run initialise_db
2021-04-03T20:31:24.982566+00:00 app[web.1]: 
2021-04-03T20:31:25.343799+00:00 app[web.1]: 
2021-04-03T20:31:25.343849+00:00 app[web.1]: > [email protected] initialise_db /app
2021-04-03T20:31:25.343850+00:00 app[web.1]: > knex seed:run && knex migrate:up
2021-04-03T20:31:25.343851+00:00 app[web.1]: 
2021-04-03T20:31:57.570539+00:00 app[web.1]: Could not connect to database: 'xxx'
2021-04-03T20:31:57.571038+00:00 app[web.1]: If this is the first time you've run Keystone, you can create your database with the following command:
2021-04-03T20:31:57.571134+00:00 app[web.1]: createdb xxx
2021-04-03T20:31:57.571668+00:00 app[web.1]: Error: Error while executing "/app/data/seeds/initial_data.js" seed: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
2021-04-03T20:31:57.571669+00:00 app[web.1]:     at Seeder._waterfallBatch (/app/node_modules/knex/lib/seed/Seeder.js:118:23)
2021-04-03T20:31:57.571670+00:00 app[web.1]: Error: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
2021-04-03T20:31:57.571671+00:00 app[web.1]:     at /app/node_modules/@keystonejs/utils/dist/utils.cjs.prod.js:45:97
2021-04-03T20:31:57.571671+00:00 app[web.1]:     at async Object.exports.seed (/app/data/seeds/initial_data.js:10:3)
2021-04-03T20:31:57.571672+00:00 app[web.1]:     at async Seeder._waterfallBatch (/app/node_modules/knex/lib/seed/Seeder.js:115:9)
2021-04-03T20:31:57.589002+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2021-04-03T20:31:57.589342+00:00 app[web.1]: npm ERR! errno 1
2021-04-03T20:31:57.595322+00:00 app[web.1]: npm ERR! [email protected] initialise_db: `knex seed:run && knex migrate:up`
2021-04-03T20:31:57.595402+00:00 app[web.1]: npm ERR! Exit status 1
2021-04-03T20:31:57.595518+00:00 app[web.1]: npm ERR! 
2021-04-03T20:31:57.595595+00:00 app[web.1]: npm ERR! Failed at the [email protected] initialise_db script.
2021-04-03T20:31:57.595686+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-04-03T20:31:57.603710+00:00 app[web.1]: 
2021-04-03T20:31:57.604015+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-04-03T20:31:57.604159+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2021-04-03T20_31_57_596Z-debug.log
2021-04-03T20:31:57.617713+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2021-04-03T20:31:57.617990+00:00 app[web.1]: npm ERR! errno 1
2021-04-03T20:31:57.623283+00:00 app[web.1]: npm ERR! [email protected] prestart: `npm run initialise_db`
2021-04-03T20:31:57.623364+00:00 app[web.1]: npm ERR! Exit status 1
2021-04-03T20:31:57.623466+00:00 app[web.1]: npm ERR! 
2021-04-03T20:31:57.623549+00:00 app[web.1]: npm ERR! Failed at the [email protected] prestart script.
2021-04-03T20:31:57.623616+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-04-03T20:31:57.629937+00:00 app[web.1]: 
2021-04-03T20:31:57.630158+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-04-03T20:31:57.630247+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2021-04-03T20_31_57_624Z-debug.log
2021-04-03T20:31:57.710482+00:00 heroku[web.1]: Process exited with status 1
2021-04-03T20:31:57.765381+00:00 heroku[web.1]: State changed from starting to crashed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions