GnuCash could not obtain the lock for file....

life0riley life0s_50 at yahoo.com
Mon Apr 13 10:48:19 EDT 2015



On 04/13/2015 07:01 AM, Derek Atkins wrote:
> life0riley <life0s_50 at yahoo.com> writes:
>
>> On 04/10/2015 07:26 PM, John Ralls wrote:
>>>> On Apr 10, 2015, at 6:47 PM, life0riley <life0s_50 at yahoo.com> wrote:
>>>>
>>>> Is clicking "open anyway" the preferred method?
>>>>
>>>> GnuCash terminated abnormally once on me after I left it open for
>>>> some time.  I confirmed there were no other instances running and
>>>> simply went to the directory where the GnuCash data file is stored
>>>> and deleted the lock file.  I was able to open GnuCash after that
>>>> without issue.  At that time I was using GnuCash 2.6.1 in Xubuntu
>>>> 14.04.
>>> Yes, that's the reason for the dialog box.
>>>
>>> Regards,
>>> John Ralls
>>>
>> I mistakenly assumed that clicking "open anyway" would open the data
>> file as read only.
> No, that's what the "Open Readonly" button is for.
>
>> I reviewed the GnuCash Tutorial and Concepts Guide, section
>> 2.6.3. Lock files (.LNK and .LCK), which states the following:
>> "If *|GnuCash|* crashes while you have a data file open, the |.LCK|
>> and |.LNK| files are not deleted. The next time you try to open
>> *|GnuCash|*, you will get a warning message that the file is
>> locked. The warning message appears because the |.LNK| and |.LCK|
>> files are still in your directory. It is safe to choose Yes to open
>> the file, but you should delete the |.LNK| and |.LCK| files (using a
>> terminal window or your file manager). Once those files are deleted,
>> you will not get the warning message again unless *|GnuCash|*
>> crashes."
>>
>> Is it still necessary to delete the .LNK and .LCK files or will they
>> be automatically deleted?
> They get handled automatically.
>
>> Thanks,
>> life0riley
>> Please remember to CC this list on all your replies.
>> You can do this by using Reply-To-List or Reply-All.
> -derek
>

Derick,

Thanks for your explanation.

The Lock files (.LNK and .LCK) section of the Tutorial and Concepts 
Guide may need to be updated.  I reviewed it again and can't find any 
mention that the lock files should be deleted automatically after 
clicking the "open anyway" button.

I'm currently using GnuCash 2.6.6 on Fedora 21.

-life0riley


More information about the gnucash-user mailing list