GEWIS / sudosos-backend

SudoSOS is a Node.js-based Bar and POS system made for study association GEWIS.
https://sudosos.gewis.nl
GNU Affero General Public License v3.0
6 stars 3 forks source link

[Bug] SudoSOS saturates all its available MariaDB connections #289

Open Yoronex opened 2 months ago

Yoronex commented 2 months ago

Current behavior

SudoSOS saturates all its available MariaDB connections and does not close any connections it is not using. This is problematic, as it is for example not possible to use the CLI. Also, when restarting, it might be that all connections are in use and the rebooted instance is not able to make any DB connections, thus not starting properly.

Desired behavior

Possible solutions might be:

API Route

No response

Steps to reproduce

Start SudoSOS prod on the GEWIS server. If you try to use the CLI, it will not have any connections available. Furthermore, a restart might cause it to hang on [INFO] Application - Starting application instance....

Logs and Error Messages

No response

Other Information

No response