cpanel node.js Can't acquire lock for app: app
Asked Answered
H

7

25

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?

Hollywood answered 14/7, 2020 at 1:10 Comment(1)
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
B
67

Remove .lock file at source /home/<repo>/nodevenv/node/. Additionally, before executing npm install, you need to stop the application.

Bedmate answered 13/2, 2021 at 21:38 Comment(0)
C
7
  • 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
Comatose answered 16/3, 2023 at 19:48 Comment(0)
G
4

Delete .lock file from /home/nodevenv/

Glass answered 1/1, 2023 at 6:42 Comment(0)
H
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.

Habitant answered 21/1, 2021 at 9:59 Comment(0)
R
1

My solution Open File Manager find .lock:

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

then remove .lock file

Rhinitis answered 10/8, 2022 at 15:50 Comment(0)
A
1

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

Adaptation answered 19/8, 2022 at 13:3 Comment(0)
A
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.

Armagh answered 26/5, 2023 at 5:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.