I get the following error message when I attempt to add a new contact to the address book: resource '/home/tom/.kde/share/apps/kabc/std.vcf' is locked by application ''. Does anyone have any ideas on how to correct this error? Thanks... Tom.
On Monday 06 March 2006 00:17, Tom Cada wrote:
I get the following error message when I attempt to add a new contact to the address book:
resource '/home/tom/.kde/share/apps/kabc/std.vcf' is locked by application ''.
Does anyone have any ideas on how to correct this error?
Thanks... Tom.
Hi Tom, Try lsof | grep vcf at the command line and see if it shows you what process is locking the file. regards, Carl
On Monday 06 March 2006 06:30, Carl Hartung wrote:
On Monday 06 March 2006 00:17, Tom Cada wrote:
I get the following error message when I attempt to add a new contact to the address book:
resource '/home/tom/.kde/share/apps/kabc/std.vcf' is locked by application ''.
Does anyone have any ideas on how to correct this error?
this shouldn't happen - but the worst case scenario is pretty easy to fix 0) Quit Kontact 1) cd into /home/tom/.kde/share/apps/kabc/locks 2) cat * This will give you a list of the processes that locked your addressbook in the form PROCESSID or PROCESSIDappname 3) check that the processes are no longer running. Use ksysguard (ctrl+esc in KDE), typing PROCESSID obtained in 2) into the search line, or ps -ef | grep PROCESSID if you dig the command line, and end those applications or kill them either in ksysguard or manually (kill PROCESSID). 4) clean up the lock files in /home/tom/.kde/share/apps/kabc/locks: rm /home/tom/.kde/share/apps/kabc/locks/* 5) restart Kontact. 6) If any of the processes that had had locks _were_ still running, please let me know what they were so I can try and figure out why.
Try lsof | grep vcf at the command line and see if it shows you what process is locking the file.
Carl - there's a separate locking system built into the kabc library that creates the above lock files. It is supposed to clean them up again when the application that requested a save ticket for the addressbook finished saving, but sometimes they don't give back the ticket or crash whilst writing, hence the stale locks hanging around, and we haven't got a lock cleaner. HTH Will
On Monday 06 March 2006 10:24, Will Stephenson wrote:
Carl - there's a separate locking system built into the kabc library that creates the above lock files. It is supposed to clean them up again when the application that requested a save ticket for the addressbook finished saving, but sometimes they don't give back the ticket or crash whilst writing, hence the stale locks hanging around, and we haven't got a lock cleaner.
Thanks for this post, Will. You've supplied a very nicely written. succinct procedure and explanation. This one's a "keeper" :-) regards, Carl
On Monday 06 March 2006 10:38 am, Carl Hartung wrote:
On Monday 06 March 2006 10:24, Will Stephenson wrote:
Carl - there's a separate locking system built into the kabc library that creates the above lock files. It is supposed to clean them up again when the application that requested a save ticket for the addressbook finished saving, but sometimes they don't give back the ticket or crash whilst writing, hence the stale locks hanging around, and we haven't got a lock cleaner.
Thanks for this post, Will. You've supplied a very nicely written. succinct procedure and explanation. This one's a "keeper" :-)
regards,
Carl
I deleted the offending file before I got any of your replies. I will certainly save Will's outline of the process to correct the problem for future reference. Many thanks for your comments... Tom.
On Monday 06 March 2006 12:17 am, Tom Cada wrote:
I get the following error message when I attempt to add a new contact to the address book:
resource '/home/tom/.kde/share/apps/kabc/std.vcf' is locked by application ''.
Does anyone have any ideas on how to correct this error?
Thanks... Tom.
Never mind. I found the lock file and deleted it. Tom.
On Mon, 2006-03-06 at 00:17 -0500, Tom Cada wrote:
I get the following error message when I attempt to add a new contact to the address book:
resource '/home/tom/.kde/share/apps/kabc/std.vcf' is locked by application ''.
Does anyone have any ideas on how to correct this error?
restart x to break the lock. as root init 3 then init 5 -- ___ _ _ _ ____ _ _ _ | | | | [__ | | | |___ |_|_| ___] | \/
participants (4)
-
Carl Hartung
-
Carl William Spitzer IV
-
Tom Cada
-
Will Stephenson