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