dirigeants / klasa-pieces

MIT License
44 stars 55 forks source link

pg provider timeout exceeded #215

Open Satont opened 5 years ago

Satont commented 5 years ago

When bot starts after while pg seems to be broke

[2019-09-08 01:39:38] Error: timeout exceeded when trying to connect
[2019-09-08 01:39:38]     at Timeout._onTimeout (/root/scripts/forgespirit/node_modules/pg-pool/index.js:180:27)
[2019-09-08 01:39:38]     at listOnTimeout (internal/timers.js:531:17)
[2019-09-08 01:39:38]     at processTimers (internal/timers.js:475:7)

Just spams this error in console. I has like 15 other projects on the same server with the same postgresql server, they have no problems. My settings:

"postgresql": {
  "options": {
     "max": 20,
     "idleTimeoutMillis": 30000,
     "connectionTimeoutMillis": 2000
  }
},
Satont commented 5 years ago

Version of pg ^7.12.1

favna commented 4 years ago

Klasa is dead. The new framework is Sapphire. You can join the Discord invite through this link: https://discord.com/invite/j8ACK6u