Skip to content

Plugin Timeout #38

@FlandiaYingman

Description

@FlandiaYingman

On server startup, the server load becomes high and so loading plugins becomes slow. Sometimes the timeout is exceeded and it terminates the service. Let's increase the timeout to 5 minutes.

/usr/src/app/node_modules/avvio/lib/plugin.js:114
      const readyTimeoutErr = new AVV_ERR_PLUGIN_EXEC_TIMEOUT(name)
                              ^
FastifyError [Error]: Plugin did not start in time: 'autoload'. You may have forgotten to call 'done' function or to resolve a Promise
    at Timeout._onTimeout (/usr/src/app/node_modules/avvio/lib/plugin.js:114:31)
    at listOnTimeout (node:internal/timers:581:17)
    at process.processTimers (node:internal/timers:519:7) {
  code: 'AVV_ERR_PLUGIN_EXEC_TIMEOUT',
  statusCode: 500,
  fn: <ref *1> [AsyncFunction: autoload] {
    fastifyAutoload: [Circular *1],
    default: [Circular *1],
    [Symbol(skip-override)]: true
  }
}

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