[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Removing database locks
From: |
hendrik |
Subject: |
Re: [Monotone-devel] Removing database locks |
Date: |
Thu, 30 Oct 2008 10:23:25 -0400 |
User-agent: |
Mutt/1.5.9i |
On Thu, Oct 30, 2008 at 10:37:44AM +1100, Brian May wrote:
> Aarno Syvänen wrote:
> >how can i simply remove monotone database lock ?
> >I have manipulated the database only by myself, so
> >this does not cause any problems.
> What are you trying to do?
>
> The database it designed to be used by only one process at a time; if
> you try to access it by multiple processes you may get data corruption.
>
> First check if any other process has locked the database.
>
> Brian May
In my experience, monotone is pretty good at knowing when the
database is locked, despite system crashes, file system failures, and
the like. It the database seems to be locked, it is probably in use by
some process. Try lsof to find it, on every machine that has access to
that mounted file system.
The only excpetion I've found is with attampts to access a
monotone database over a misconfigured NFS connection. There was a
period of time when I had to run monotone on the same machine where my
database resided. Then onde day the problem disappeared -- apparently
a Debian upgrade had fixed the problem with NFS.
-- hendrik