Earlier Commit to GIT checkout gives error on server connect login

I ran into some issues with my site and changes I made and reverted to an earlier commit by deleting current files and checking the commit out.

I ran npm install and update after checkout and checked that my security provider uses the db connection which I also tested.

Can access the db through a local client. everything running locally in a docker container

I also deleted the node modules after getting the error and reinstalled.

Still getting this error in browser when trying to login:

“status”: “500”,
“code”: “ENOTFOUND”,
“message”: “getaddrinfo ENOTFOUND db”,
“stack”: “Error: getaddrinfo ENOTFOUND db\n at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:72:26)\n --------------------\n at Protocol._enqueue (/Users/marcelschmidt/Documents/myadvisor/node_modules/mysql/lib/protocol/Protocol.js:144:48)\n at Protocol.handshake (/Users/marcelschmidt/Documents/myadvisor/node_modules/mysql/lib/protocol/Protocol.js:51:23)\n at Connection.connect (/Users/marcelschmidt/Documents/myadvisor/node_modules/mysql/lib/Connection.js:116:18)\n at /Users/marcelschmidt/Documents/myadvisor/node_modules/knex/lib/dialects/mysql/index.js:66:18\n at new Promise ()\n at Client_MySQL.acquireRawConnection (/Users/marcelschmidt/Documents/myadvisor/node_modules/knex/lib/dialects/mysql/index.js:61:12)\n at create (/Users/marcelschmidt/Documents/myadvisor/node_modules/knex/lib/client.js:247:39)”

Please help

Community Page
Last updated: