Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connection details are unavailable while the database is being provisioned Digital Ocean

I have trouble with the database connection. The application (Node.js/Strapi) can not be reaching to the database. We couldn’t see even the connection strings or database username/password. Currently using Digital Ocean Apps platform. (Webservice Node.js/Postgresql)

Database component shows use the following error:

Connection details are unavailable while the database is being provisioned.

In the meantime, I’ve disabled the “trusted connection” mark yesterday, could this be the cause of the problem? Now, I can not mark again, it doesn’t exist.

Related post: https://forum.strapi.io/t/digitalocean-database-connection-failed/1339

Database Component: enter image description here

Node.js Error:

enter image description here

like image 580
Mert Avatar asked Oct 20 '25 04:10

Mert


1 Answers

For anyone who's also stuck with this problem, you might need to add the environment variables for your Node.js application to make your application run before seeing the database credentials from UI, for example:

Add a DATABASE_URL with value {db.DATABASE_URL} (suppose your database service name is db)

enter image description here

See more DO dev database variables: https://docs.digitalocean.com/products/app-platform/how-to/use-environment-variables/#databases

like image 89
Preeti Y. Avatar answered Oct 22 '25 19:10

Preeti Y.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!