I am trying to run my nest.js app by
that works nicely locally and used to work nicely with cpanel node-selector at my hoster until two days ago when I suspect my hoster changed sth, though they deny it. However now I get the follwowing error in my log file
{"errno":-17,"code":"EEXIST","syscall":"uv_pipe_open"}
I am not sure what to make of it and a search did not result in anything meaningfull? Any ideas someone?
Simple erxpress works like the one below work at my hoster
So it seems to be some interworking between cpanel and nest.js and as said the apps works nicely on my machine (with a dedicated port - cpanel howver requires auto-assignment if understand it right and it used to work)
Cheers Tom
ps: sorry about the formatting. Couldnt get code formatting to work right.
function log(s: any) {
fs.appendFileSync('./serverStart.log', JSON.stringify(s) + "\n");
}
async function bootstrap() {
try {
const app = await NestFactory.create(AppModule);
log("app created")
app.setGlobalPrefix('api');
log("app set prefix")
await app.listen(0);
log("started")
} catch (e) {
log(e);
}
}
bootstrap();
that works nicely locally and used to work nicely with cpanel node-selector at my hoster until two days ago when I suspect my hoster changed sth, though they deny it. However now I get the follwowing error in my log file
{"errno":-17,"code":"EEXIST","syscall":"uv_pipe_open"}
I am not sure what to make of it and a search did not result in anything meaningfull? Any ideas someone?
Simple erxpress works like the one below work at my hoster
var http = require('http');
var server = http.createServer(function(req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
var response = "All good";
res.end(response);
});
server.listen();
So it seems to be some interworking between cpanel and nest.js and as said the apps works nicely on my machine (with a dedicated port - cpanel howver requires auto-assignment if understand it right and it used to work)
Cheers Tom
ps: sorry about the formatting. Couldnt get code formatting to work right.