how to get rid of stale lock file?

How do I get rid of a stale lock file?

MacBook Pro, Mac OS X (10.7.4)

Posted on Jul 16, 2012 9:18 PM

Reply
25 replies

Jul 16, 2012 10:35 PM in response to Mark Fears

OK is it in the plist files? I had a save given to me tonight. Maybe you cannot find your library.

NOT The HD library, but the user library.

Open FInder and then go to GO in menu bar at top, and hold a click on that while also pressing option and command and then you will see a finder window open showing the library. Check preferences first...

but scour that, and when you find the one (if that is in fact IT) trash it. BUT- just in case- one trick I was told years ago in a trouble shooting I cannot even recall (circa 2004 or 5)- pull the file to desktop and then restart, and if no troubles and nothing missing (and if it works now!) then is o k to trash And delete...

Jul 16, 2012 11:19 PM in response to Mark Fears

Lockfiles are associated with the preferences writing routines in OS X. Hold the Option key and choose "Library" from the "Go" menu. Then go to the Preferences folder in there and you should see a number of files like "com.apple.AddressBook.plist" along with a cooresponding lockfile (ie, "com.apple.AddressBook.plist.lockfile"). This file is an empty file that is used as a checkout flag of sorts to ensure one program accesses and writes to the preferences at once. You can access the one for your program by looking it up by developer and program name (they should be in the file name), and then removing it.


See here for more info: http://reviews.cnet.com/8301-13727_7-20093292-263/lockfiles-and-other-plist-file -subtypes-in-os-x-lion/

Jan 5, 2013 5:11 PM in response to Mark Fears

I had the exact same problem. I used the Terminal command like above:


sudo mv /users/edylee/.jbapps-edylee ~/Desktop/jbapps-edylee


And I was able to open the application Jawbone Updater. However, now I get an error message of:


"Failed to inspect the lock file 'Users/edylee/.jbapps-edylee' (error 2: No such file or directory)"


I realize that I moved the lockfile to the Desktop, which is why the file is missing. But what can I do to make this error messgage go away? At least I'm able to open the applicaiton, but this error box is kinda annoying.


Unfortunately Jawbone isn't much help. I've tried the idea where you go to System Preferences>Users and Groups and delete the Login Items which use Jawbone, but I still get this message.
Is there a way I can put a version of the lockfile in my folder (possibly uncorrupted) that will make this go away? I've tried re-installing the software, and that doesn't seem to work. Neither does restarting.
Hmmm... Any thoughts?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

how to get rid of stale lock file?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.