A NodeJS application on a CloudLinux server cannot be started and NodeJS Selector displays the following error.
Can't acquire lock for app:
Daemonized apps or apps that run as services should not be started via the UI, as there is no interface to stop them. The running app can be terminated from the command line.
Please note that daemonized apps, long-running apps, and apps run as services should be started via the command line.
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Use the lsof command to locate the process with the lock.
lsof -u $cpusername|grep lockPlease note that "$cpusername" must be replaced with the cPanel user's username.
- Stop the process.
kill -15 $pidPlease note that "$pid" must be replaced with the process ID found in the previous command.