[GNC] Gnucash cannot obtain the lock

Adrien Monteleone adrien.monteleone at lusfiber.net
Tue Sep 10 14:49:12 EDT 2019


> On Sep 10, 2019 w37d253, at 1:30 PM, Bob Hammons <rdhammons at live.com> wrote:
> 
> I did find some .lck file on my computer.  Some of them I could delete but not all.  When I start the program it updates the .lck file to the present time.

If GnuCash is closed and there are .lck files in the directory where you save your GnuCash files (with the same names, save for the .lck extension) then you should be able to delete them. If they are being re-created with present time stamps that means those files *are* open somewhere. (same goes for OpenOffice .lck files as likely others)

> I have re booted the computer a couple of times.  Shouldn't this close any open files?

It should, but some computers don’t ‘cold’ reboot, this might be the case if you are using the ‘restart’ option in Windows rather than ‘Shutdown’ and then pressing the power button to turn it back on. (and even with pressing the power button to turn off, sometimes, the darn things just ‘hibernate’ as a convenience.)

Shutdown, pull power, and if a laptop, pull the battery. Wait a minute, plug it all back up. Power up. Now, you’ve truly rebooted.

> I think I have all administration rights.
> How do I check for open files ?

Not sure on Win10. I’d think a web search should turn up something you could run in cmd.exe though.

> I log in with a pin number to my .live account

I think that’s pretty standard for MS now with Win10. (or what they’d like you to do)

> I opened a small Open Office spreadsheet and it will not save changes  "General input/output error while accessing C:\ dir

If other apps can’t save either then it is definitely an OS problem. (or something is wrong with the drive)

> I then copied same file to the same thumb drive,  opened the file,  made changes,  the file saved successfully.
> I have looked all settings but can find nothing
> So it appears it is my computer problem ant not  a Gnucash problem.
> I still would like any more suggestions that anyone comes up with.
> 
> Thanks for your time

A quick web search indicates possible causes might be related to disk encryption issues. Do you have BitLocker turned on? Are you certain that you successfully logged in to *your* account? Can you save any file at all to the internal drive? (try copying something from the thumb)

I’m afraid I’m out of guesses beyond that point.

Regards,
Adrien

p.s. - when replying, especially to digest messages, please fix the subject line so it is more meaningful and trim non-relevant quoted material. That last post was several feet long!


More information about the gnucash-user mailing list