server error

mudassir434TRIAL

a year ago

app has been crashed and railway show server error

9 Replies

a year ago

Mind sharing the full error message?


mudassir434TRIAL

a year ago

app crashed show


a year ago

Could you go to your service's logs and share the error message?

Your app must've crashed for a reason


mudassir434TRIAL

a year ago

Could you go to your service's logs and share the error message?

Your app must've crashed for a reason

sir when i deployed then show sucees port 3000 after all some minuted app crashed and domain show server error


a year ago

Mind copy and pasting your deployment logs in here?


mudassir434TRIAL

a year ago

> Mind copy and pasting your deployment logs in here?

Connected success port: 3000
/app/nodemodules/mysql2/promise.js:341 const localErr = new Error(); ^ Error: getaddrinfo ENOTFOUND http://malikmysql.67d13c0402.onlitegix.com:35715 at PromisePool.query (/app/nodemodules/mysql2/promise.js:341:22)
at callee$ (/app/src/controllers/homeController.js:8:41) at tryCatch (/app/src/controllers/homeController.js:15:2404) at Generator.invoke (/app/src/controllers/homeController.js:15:1964)
at Generator.next (/app/src/controllers/homeController.js:15:3255)
at asyncGeneratorStep (/app/src/controllers/homeController.js:29:103)
at _next (/app/src/controllers/homeController.js:31:194)
at /app/src/controllers/homeController.js:31:364
at new Promise ()
at /app/src/controllers/homeController.js:31:97 {
code: 'ENOTFOUND',
errno: -3008,
sql: undefined,
sqlState: undefined,
sqlMessage: undefined
}
Node.js v18.18.2
[nodemon] app crashed - waiting for file changes before starting…


mudassir434TRIAL

a year ago

Mind copy and pasting your deployment logs in here?
sir???


a year ago

Seems your app is crashing because your MySQL database is unreachable, are you sure your MySQL database is running?


mudassir434TRIAL

a year ago

yes i am sure database is running