Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working Fine on Localhost But crash on Cpanel #2077

Open
zoobibackups opened this issue Jun 20, 2023 · 3 comments
Open

Working Fine on Localhost But crash on Cpanel #2077

zoobibackups opened this issue Jun 20, 2023 · 3 comments

Comments

@zoobibackups
Copy link

when i import this statment on the app.js my app crash.
const mysql = require('mysql2');

the Package.json

{
  "name": "testApp",
  "version": "1.0.0",
  "private": true,
  "scripts": {
    "start": "node ./app.js",
    "start:dev": "nodemon ./app.js"
  },
  "dependencies": {
    "axios": "^1.4.0",
    "body-parser": "^1.19.0",
    "cookie-parser": "~1.4.4",
    "express": "^4.17.1",
    "joi": "^17.2.1",
    "moment": "^2.29.4",
    "morgan": "~1.9.1",
    "multer": "^1.4.5-lts.1",
    "mysql2": "^3.4.0",
    "node-cron": "^3.0.2",
    "nodemailer": "^6.4.11",
    "rootpath": "^0.1.2",
    "sequelize": "^6.28.0",
    "sequelize-auto": "^0.8.8"
  }
}

i also try const mysql = require("mysql2/promise"); not working

@sidorares
Copy link
Owner

can you give a bit more details about the crash? Do you see any error message? Can you paste the stack trace?

@zoobibackups
Copy link
Author

The application process exited prematurely.
App 575050 output: at Object. (/home/truecall/nodevenv/public_html/truecaller/10/lib/node_modules/lru-cache/dist/cjs/index-cjs.js:5:36)

@sidorares
Copy link
Owner

might be related to #1965 or #1885 but would help to see the full stack ( and error message itself for the original error )
"The application process exited prematurely." is likely coming from some top level handler for process exit event

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants