Report this

What is the reason for this report?

Connection time out error when trying to connect Node App on app platform to a managed database?

Posted on April 19, 2022

Hey, so I’m using digital ocean for the first time and I’m working to deploy a node app on app platform and connecting to a mySQL database.

I’m having issues connecting the app to the managed database. I get this error

[2022-04-19 16:15:25] Error: connect ETIMEDOUT [2022-04-19 16:15:25] at PoolConnection._handleTimeoutError (/workspace/node_modules/mysql2/lib/connection.js:189:17) [2022-04-19 16:15:25] at listOnTimeout (internal/timers.js:554:17) [2022-04-19 16:15:25] at processTimers (internal/timers.js:497:7) { [2022-04-19 16:15:25] errorno: ‘ETIMEDOUT’, [2022-04-19 16:15:25] code: ‘ETIMEDOUT’, [2022-04-19 16:15:25] syscall: ‘connect’, [2022-04-19 16:15:25] fatal: true [2022-04-19 16:15:25] } [2022-04-19 16:15:25] Done in 13.29s.

I’ve seen that in this question: https://www.digitalocean.com/community/questions/error-connect-etimedout-10-108-0-2-xxxxx

This could be caused by the fact that a port is not opened. How can I open this on app platform?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.