Error 503. Service Unavailable
Unanswered
Blue orchard bee posted this in #help-forum
Blue orchard beeOP
Hi i just uploaded my nextjs code to cpanel and i got this errors
The server is temporarily unavailable. Please check back shortly. If this problem persists, please contact our Technical Support department.
The server is temporarily unavailable. Please check back shortly. If this problem persists, please contact our Technical Support department.
returncode: 1
stdout:
> rhinoflix@0.1.0 start
> NODE_ENV=production node server.js
stderr:
node:internal/modules/cjs/loader:1146
throw err;
^
Error: Cannot find module 'next'
Require stack:
- /home/rhinjjar/rhinoflix/server.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
at Module._load (node:internal/modules/cjs/loader:984:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/home/rhinjjar/rhinoflix/server.js:3:14)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1206:32)
at Module._load (node:internal/modules/cjs/loader:1022:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/home/rhinjjar/rhinoflix/server.js' ]
}
Node.js v20.12.24 Replies
Blue orchard beeOP
What's wrong?
Netherland Dwarf
Hmm deploying in cpanel isnt great and this isnt a personal opinion
There are other services aside from vercel that make it easy to deploy next.js like railway. Il try to look into this but its usually best to go with other platform
Netherland Dwarf
You can try this doc https://codeless.co/deploy-next-js-app-to-cpanel/