Node.js Could not spawn process for application

gildas

Well-Known Member
Mar 30, 2017
58
5
8
Paris
cPanel Access Level
Root Administrator
Hello,

I create a node.js script in version 11.3.0 on my cpanel, however the call of the application via the https protocol, does not work.
In the logs the following error is present:
[E 2019-02-22 09: 56: 27.4327 452046 / T2o age / Cor / App / Implementation.cpp: 221]: Could not spawn process for application / home / USER / App: A timeout error occurred while spawning an application process .

the called code contains:
var https = require ('https');
var fs = require ('fs')
var options = {
key: fs.readFileSync ('/home/USER/ssl/keys/cle.key'),
cert: fs.readFileSync ('/home/USER/ssl/certs/certif.crt')
};

https.createServer (options, function (req, res) {
res.write ('Hello World');
res.end ();
}) Listen ().

do you know where this error came from? and how to correct it?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello @gildas,

Can you verify how you installed Node.JS on the system? For instance, are you using CloudLinux or some other implementation? Note that official support for Node.JS is planned as part of cPanel & WHM version 80:

nodejs Hosting

Thank you.