Jelle_Timmer
Basic Pleskian
Hi all,
I have some issues setting up a working NodeJS environment.
In terminal i've got it working after adding the NodeJS-binary directory to the environment-path. But in a webbrowser even Plesk's own 'Hello World'-sample doesn't work!
NodeJS settings:

I tried changing the version to 8 or 9, but without success...
The webbrowser returns this page:




Apache errorlog gives me this:
I know those are 2 different Error-id's, i got both on 1 pageload.
Server is running CentOS 6.10 with Onyx 17.8.11#32.
Error remains the same on CentOS 7.5 with Onyx 17.8.11#32
On this site PHP is turned off, Nginx and Apache are both active. Switching to Nginx-only doesn't solve the problem. The only change is the location of the above loglines. Those will appear in the Nginx errorlog.
Can somebody help me out? Am i missing something? Google isn't very helpfull... (or i'm searching with the wrong keywords)
I have some issues setting up a working NodeJS environment.
In terminal i've got it working after adding the NodeJS-binary directory to the environment-path. But in a webbrowser even Plesk's own 'Hello World'-sample doesn't work!
Code:
const http = require('http');
http.createServer(function(request, response) {
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end("Hello, World!\n");
}).listen(process.env.PORT);
console.log('App is running...');
NodeJS settings:

I tried changing the version to 8 or 9, but without success...
The webbrowser returns this page:




Apache errorlog gives me this:
Code:
App 13557 output: App is running...
[ E 2018-11-28 15:41:13.1095 13351/To age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /var/www/vhosts/nodejs.codetest.XXXXX/hello-world: The application process exited prematurely.
Error ID: 4753f939
Error details saved to: /tmp/passenger-error-mvUyWh.html
[ E 2018-11-28 15:41:13.1178 13351/T7 age/Cor/Con/CheckoutSession.cpp:276 ]: [Client 1-2] Cannot checkout session because a spawning error occurred. The identifier of the error is 4753f939. Please see earlier logs for details about the error.
[ N 2018-11-28 15:41:13.3096 13351/T6 age/Cor/SecurityUpdateChecker.h:517 ]: Security update check: no update found (next check in 24 hours)
App 13619 output: App is running...
[ E 2018-11-28 15:41:13.7118 13351/Tt age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /var/www/vhosts/nodejs.codetest.XXXXX/hello-world: The application process exited prematurely.
Error ID: 2e3a79bf
Error details saved to: /tmp/passenger-error-EO0jhZ.html
[ E 2018-11-28 15:41:13.7171 13351/Ta age/Cor/Con/CheckoutSession.cpp:276 ]: [Client 2-2] Cannot checkout session because a spawning error occurred. The identifier of the error is 2e3a79bf. Please see earlier logs for details about the error.
Server is running CentOS 6.10 with Onyx 17.8.11#32.
Error remains the same on CentOS 7.5 with Onyx 17.8.11#32
On this site PHP is turned off, Nginx and Apache are both active. Switching to Nginx-only doesn't solve the problem. The only change is the location of the above loglines. Those will appear in the Nginx errorlog.
Can somebody help me out? Am i missing something? Google isn't very helpfull... (or i'm searching with the wrong keywords)
Last edited: