UserOfficeProject / issue-tracker

Shared place for features and bugs from all collaborators.
0 stars 0 forks source link

Proposal backend stops working with Knex timeout error #1163

Closed simonfernandes closed 1 month ago

simonfernandes commented 2 months ago

The proposal system has gone down a couple of times in the past week where where the backend has completely stopped working due to a Knex error:

{"errors":[{"message":"Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?","locations":[{"line":2,"column":3}],"path":["settings"]}],"context":{"req ││ [2024-09-11T07:39:57.291Z] ERROR - GraphQL response contained error(s)

Relevant threads on Teams:

simonfernandes commented 2 months ago

This is happening quite frequently on dev, we think it's related to the Scheduler sending requests for PDFs, possibly worse on dev because of testing.

As of now, this has happened on these dates (links to Teams threads)

Prod

Dev

simonfernandes commented 1 month ago

Closed via https://github.com/UserOfficeProject/user-office-core/pull/779 and https://github.com/UserOfficeProject/user-office-core/pull/781