Database connection ENOTFOUND

Hi there.

Getting this error on digitalocean connecting with managed database:

{"status":"500","code":"ENOTFOUND","message":"getaddrinfo ENOTFOUND db","stack":"Error: getaddrinfo ENOTFOUND db\n    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)"}

In wappler I can connect with the database manager without a problem.

I tried to re-deploy, shutdown and clear all services + deploy etc but still same problem.
The connection was working before. Anyone any idea what the problem might be?

If you are connecting to managed database for your live site, you will have to edit the Server Connection database connection to that target to point to the right credentials.

So switch to the target and edit the database connection in Workflows / Server Actions

Hi George,

That was already done. I’ve had it successfully connected to the live site before. Just having this problem with today’s updated deployment.

Ok solved now with this suggestion: Connecting to new, prod mysql8 db - connection timeout (Workbench connects perfectly)