a month ago
Unable to start server: ConnectionRefusedError [SequelizeConnectionRefusedError]
at ConnectionManager.connect (/app/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:92:17)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async ConnectionManager._connect (/app/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:222:24)
at async /app/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:174:32
at async ConnectionManager.getConnection (/app/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:197:7)
at async /app/node_modules/sequelize/lib/sequelize.js:305:26
at async Sequelize.authenticate (/app/node_modules/sequelize/lib/sequelize.js:457:5)
at async startServer (/app/server.js:68:5) {
parent: AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1134:18)
at afterConnectMultiple (node:net:1715:7) {
code: 'ECONNREFUSED',
fatal: true,
[errors]: [ [Error], [Error] ]
},
original: AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1134:18)
at afterConnectMultiple (node:net:1715:7) {
code: 'ECONNREFUSED',
fatal: true,
[errors]: [ [Error], [Error] ]
}
}
1 Replies
a month ago
Hi ramashrayy,
based on the stack trace I see, that you are trying to connect your application to a MySQL database. Is that correct?
Do you have your application and database in the same project, both hosted on Railway?
If so, Railyway either suggests to connect your app to the DB or otherwise you can also check the connection details by clicking on the DB and checking the variables tab.
Hope that helps.
Best regards
Daniel