R
Railway8mo 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
Percy8mo ago
Project ID: 64042865-edb3-44db-a3e3-63e068bfcbc4
samim
samim8mo ago
64042865-edb3-44db-a3e3-63e068bfcbc4
Brody
Brody8mo ago
please add a 3 second sleep to the beginning of your start script
samim
samim8mo 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
Brody8mo ago
whats your current start script
samim
samim8mo ago
yarn start
Brody
Brody8mo ago
right but what is the start script
samim
samim8mo ago
"start": "strapi start",
Brody
Brody8mo ago
change it to sleep 3 && strapi start also, what is your pool min set to?
samim
samim8mo ago
min: 2, max: 10 can I get the pool value?
samim
samim8mo 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
Brody8mo 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
samim8mo ago
Ok.Thanks for your time
Brody
Brody8mo ago
no problem, make these two changes and test the waters, then let me know if you still see issues
samim
samim8mo ago
ok
Want results from more Discord servers?
Add your server