DB connection failed
Strapi Application crashed and seem to having issue during database connection , Manual restart Works , auto retrying Failed to connect database
16 Replies
Project ID:
64042865-edb3-44db-a3e3-63e068bfcbc4
64042865-edb3-44db-a3e3-63e068bfcbc4
please add a 3 second sleep to the beginning of your start script
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?
whats your current start script
yarn start
right but what is the start script
"start": "strapi start",
change it to
sleep 3 && strapi start
also, what is your pool min set to?min: 2, max: 10 can I get the pool value?
https://github.com/railwayapp-templates/strapi/blob/main/config/database.js#L7
make sure the min is set to 0
ok , could you clarify how this config changes or solve the problem , and what was happening now with min 2, just for learning purpose
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
Ok.Thanks for your time
no problem, make these two changes and test the waters, then let me know if you still see issues
ok