20

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?

mahdikmg
  • 833
  • 2
  • 6
  • 13
  • 2
    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. – Alterlife Jul 14 '20 at 01:55

7 Answers7

57

Remove .lock file at source /home/<repo>/nodevenv/node/

General Grievance
  • 4,555
  • 31
  • 31
  • 45
Moaud louhichi
  • 623
  • 5
  • 9
5
  • 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
Leksyking
  • 322
  • 3
  • 5
3

Delete .lock file from /home/nodevenv/

John Driscoll
  • 365
  • 1
  • 2
  • 7
1

try a look at this:

https://cloudlinux.zendesk.com/hc/en-us/articles/360010988820--NodeJS-Selector-not-Working-with-an-Error-Can-t-acquire-lock-for-app

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.

General Grievance
  • 4,555
  • 31
  • 31
  • 45
Andrea
  • 65
  • 6
1

My solution Open File Manager find .lock:

/home/[username]/nodevenv/[domain]

then remove .lock file

Dũng IT
  • 2,751
  • 30
  • 29
1

I solved this by going the virtualenv folder and deleting the .lock file

Omar Magdy
  • 2,331
  • 14
  • 13
0

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.