Why does my app fail to build while trying to connect to a DigitalOcean Managed Database?

App Platform does not support connecting to DigitalOcean Managed Databases during the build process if the database has trusted sources enabled. This is because the app’s network configuration information can only be provided to the database’s trusted sources list after the app has been built.

This limitation is by design.

As a workaround, you can temporarily disable trusted sources for your app. However, we recommend not connecting your database to your app at build time. This keeps the build process self-contained and independent of external services that might otherwise cause the build to fail.

If an app’s health check fails, the app currently does not restart. This is because App Platform does not currently support liveness probes. An app only automatically restarts if the app crashes or if its disk or RAM usage exceeds the its limits.
You can find the client IP address of a request connecting to your app in the do-connecting-ip HTTP header.
Timeouts can be caused by high CPU utilization, so check your app’s CPU utilization and consider scaling your app.
In this article...