i am trying to deploy a node.js app. after creating and installing modules using cpanel interface. when i run script, i get this error: Can't acquire lock for app: app. any idea?
cpanel node.js Can't acquire lock for app: app
Asked Answered
I've had this problem before and I had to contact the provider to get the app reset. If you have shell access you can apparently kill the running node processes and that will bring things back to normal. –
Lumbricoid
Remove .lock
file at source /home/<repo>/nodevenv/node/
. Additionally, before executing npm install
, you need to stop the application.
- Remove lock from home/nodevenv/{domain}/.lock
- Stop the app
- Change node version to be up to date with your application
- npm install all dependencies
- Restart the app
try a look at this:
You need to access via terminal to kill the process.
I'm still trying to run a node.js application that not expose a web interface but works like a bot.
My solution Open File Manager find .lock:
/home/[username]/nodevenv/[domain]
then remove .lock file
I solved this by going the virtualenv
folder and deleting the .lock
file
Copy this: nodevenv/public_html/
Visit your Cpanel > file manager > Then Paste it and Search for it
You will find all of your nodejs projects.
From there just open the nodejs app on which you are getting the error.
Simply, Delete the .lock file from there.
© 2022 - 2024 — McMap. All rights reserved.