Legacy Migrated to V2 but my application refuses the database

arnaualvarez3
HOBBY

a year ago

I did the migration, everything seems to be migrated but my app now cannot fetch the data from the database.

This is the log when trying to execute gets from the DB.
Error al ejecutar la consulta: Error: connect ETIMEDOUT
at PromisePool.query (/app/nodemodules/mysql2/promise.js:356:22) at file:///app/src/app.js:40:35 at Layer.handle as handlerequest
at next (/app/nodemodules/express/lib/router/route.js:144:13) at Route.dispatch (/app/nodemodules/express/lib/router/route.js:114:3)
at Layer.handle as handlerequest at /app/nodemodules/express/lib/router/index.js:284:15
at Function.processparams (/app/nodemodules/express/lib/router/index.js:346:12)
at next (/app/nodemodules/express/lib/router/index.js:280:10) at SendStream.error (/app/nodemodules/serve-static/index.js:121:7) {
code: 'ETIMEDOUT',
errno: undefined,
sql: undefined,
sqlState: undefined,
sqlMessage: undefined
}

1 Replies

a year ago

you likely are still attempting to connect to the now shut down legacy database, please read this docs page for the next steps

https://docs.railway.app/guides/database-migration-guide#switching-over-connections