I am new to deployment. I have created a node droplet which I access successfully with Putty and also a database cluster, which in the mysql workbench works fine, also when I connect it with the code in development so locally works just fine. The problem is that when I access the droplet, clone the project, after npm install and npm start to test it shows me timeout error from the database:
Error: connect ETIMEDOUT
at Connection._handleTimeoutError (/root/gmd-server/node_modules/mysql2/lib/connection.js:178:17)
at ontimeout (timers.js:482:11)
at tryOnTimeout (timers.js:317:5)
at Timer.listOnTimeout (timers.js:277:5)
I hope I was clear. How can I fix it? Thanks in advance.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there @majkellveizaj,
This sounds like a firewall problem, I could suggest a few things:
If you have added trusted sources for your cluster, make sure to allow your Droplet’s IP address as well
If you are using a firewall on your Droplet like UFW for example, make sure to open the Managed Database port for outgoing TCP connections from your Droplet
Let me know how it goes! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.