R
Railway9mo ago
samim

DB connection failed

Strapi Application crashed and seem to having issue during database connection , Manual restart Works , auto retrying Failed to connect database
No description
16 Replies
Percy
Percy9mo ago
Project ID: 64042865-edb3-44db-a3e3-63e068bfcbc4
samim
samimOP9mo ago
64042865-edb3-44db-a3e3-63e068bfcbc4
Brody
Brody9mo ago
please add a 3 second sleep to the beginning of your start script
samim
samimOP9mo ago
After rebuild I have not found past logging data May be those logging data vanished after rebuild how to do that, could you hlp me regarding that? what was the issue?
Brody
Brody9mo ago
whats your current start script
samim
samimOP9mo ago
yarn start
Brody
Brody9mo ago
right but what is the start script
samim
samimOP9mo ago
"start": "strapi start",
Brody
Brody9mo ago
change it to sleep 3 && strapi start also, what is your pool min set to?
samim
samimOP9mo ago
min: 2, max: 10 can I get the pool value?
samim
samimOP9mo ago
ok , could you clarify how this config changes or solve the problem , and what was happening now with min 2, just for learning purpose
Brody
Brody9mo ago
for more information on that please refer to the caution banner found in strapi's docs https://docs.strapi.io/dev-docs/configurations/database#database-pooling-options
samim
samimOP9mo ago
Ok.Thanks for your time
Brody
Brody9mo ago
no problem, make these two changes and test the waters, then let me know if you still see issues
samim
samimOP9mo ago
ok
Want results from more Discord servers?
Add your server