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: fastify-plugin: Plugin did not start in time: 'prisma'. #657

Open
6days9weeks opened this issue Jan 7, 2025 · 1 comment
Open

Bug: fastify-plugin: Plugin did not start in time: 'prisma'. #657

6days9weeks opened this issue Jan 7, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@6days9weeks
Copy link

What happened?

I get this error after building the latest commit of trunk branch on github.

2025-01-08 03:46:42,656 AM info  [database::migrations] ensuring database exists, if not creating database - may error if no permissions

/home/krane/zipline/node_modules/fastify/fastify.js:595
        ? appendStackTrace(err, new AVVIO_ERRORS_MAP[err.code](err.message))
                                ^
FastifyError [Error]: fastify-plugin: Plugin did not start in time: 'prisma'. You may have forgotten to call 'done' function or to resolve a Promise
    at manageErr (/home/krane/zipline/node_modules/fastify/fastify.js:595:33)
    at /home/krane/zipline/node_modules/fastify/fastify.js:582:11
    at Object._encapsulateThreeParam (/home/krane/zipline/node_modules/avvio/boot.js:562:7)
    at Boot.timeoutCall (/home/krane/zipline/node_modules/avvio/boot.js:458:5)
    at Boot.callWithCbOrNextTick (/home/krane/zipline/node_modules/avvio/boot.js:440:19)
    at release (/home/krane/zipline/node_modules/fastq/queue.js:149:16)
    at Object.resume (/home/krane/zipline/node_modules/fastq/queue.js:82:7)
    at /home/krane/zipline/node_modules/avvio/boot.js:174:18
    at /home/krane/zipline/node_modules/avvio/plugin.js:275:7
    at done (/home/krane/zipline/node_modules/avvio/plugin.js:200:5) {
  code: 'FST_ERR_PLUGIN_TIMEOUT',
  statusCode: 500,
  cause: AvvioError [Error]: Plugin did not start in time: 'prisma'. You may have forgotten to call 'done' function or to resolve a Promise
      at Timeout._onTimeout (/home/krane/zipline/node_modules/avvio/plugin.js:122:19)
      at listOnTimeout (node:internal/timers:594:17)
      at process.processTimers (node:internal/timers:529:7) {
    code: 'AVV_ERR_READY_TIMEOUT',
    fn: <ref *1> [AsyncFunction: prismaPlugin] {
      default: [Circular *1],
      prisma: [Circular *1],
      [Symbol(skip-override)]: true,
      [Symbol(fastify.display-name)]: 'prisma',
      [Symbol(plugin-meta)]: {
        name: 'prisma',
        fastify: '4.x',
        decorators: { fastify: [ 'config' ] },
        dependencies: [ 'config' ]
      }
    }
  }
}

Node.js v22.12.0

Version

other (provide version in additional info)

What browser(s) are you seeing the problem on?

No response

Zipline Logs

No response

Browser Logs

No response

Additional Info

latest github commit of branch trunk

@6days9weeks 6days9weeks added the bug Something isn't working label Jan 7, 2025
@6days9weeks
Copy link
Author

There was a similar issue but that was on docker but I'm running it by building it myself and running it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant