[Case 86773] home virtfs _lock timed out after 25 attempts

webicom

Well-Known Member
PartnerNOC
Mar 30, 2004
57
1
156
Slovenia
Hello,

I have a user who have problems with cronjobs after (I think) we have ugrade php from 5.2 to 5.3. Anyone knows how to fix this problem?
After cronjob runs he get error: attempt to lock file /home/virtfs/_lock/32674 timed out after 25 attempts; lock still held by pid 0 Could not create lock file: /home/virtfs/_lock/32674

Best regards, Erik
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
Hello :)

It looks like that is a stale lock file. An internal case is open to improve the handling of stale locks. For reference, the case number is 86773. You can monitor our change log to determine when a resolution associated with this case number is released.

cPanel - Change Log

In the meantime, the workaround is to forcibly remove the lock file. EX:

Code:
rm -f /home/virtfs/_lock/32674
Note that "32674" is UID of the account, so this number would change if you experience the issue with a different account in the future. Please be extra cautious with this command. It's important to only delete the individual lock file itself, and no other data in /home/virtfs.

Thank you.
 

sparek-3

Well-Known Member
Aug 10, 2002
1,929
178
343
cPanel Access Level
Root Administrator
Any particular reason why this fix wasn't rolled out to 11.40? Or was it fixed? I see it mentioned in the 11.42 changelog, but not in the 11.40 changelog. 11.40 is still being supported, isn't it?
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
Any particular reason why this fix wasn't rolled out to 11.40? Or was it fixed? I see it mentioned in the 11.42 changelog, but not in the 11.40 changelog. 11.40 is still being supported, isn't it?
Yes, cPanel version 11.40 is still supported. Resolutions for internal cases are not always backported to earlier versions of cPanel. Are you still using cPanel version 11.40 at this time? If so, let me know, and I can submit a request to have this case backported to version 11.40. Note that you may also want to consider upgrading to version 11.42. It's in the "Stable" build tier and widely used on production machines.

Thank you.
 

durangod

Well-Known Member
May 12, 2012
452
28
78
cPanel Access Level
Website Owner
I just ran across this post, i received this on a cron that i run every 5 min

lock file /home/virtfs/_lock/512 created by pid xxxxx was not removed before the process died.

so should i run

Code:
rm -f /home/virtfs/_lock/512

please advise thanks :)
 

arjanvr

Well-Known Member
Dec 13, 2013
113
1
18
cPanel Access Level
Root Administrator
lockfile

I got this email twice now. What is causing this, and is it a problem?


"lock file /home/virtfs/_lock/560 created by pid 1357 was not removed before the process died."