Re: [documancer] Failed to lock the lock file

Vaclav Slavik <[email protected]> Thu, 5 Feb 2004 11:24:07 +0100
Newsgroups gmane.text.documancer.user
Message-ID <200402051124.11137.vaclav.slavik__22349.5624297813$1077411375@matfyz.cz>
--Boundary-02=_LnhIABHcUnj1GCg
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Description: signed data
Content-Disposition: inline

Hi,

[I'm CC'ing this to wx-users because it's a wxWindows question and=20
hopefully somebody will be able to give better answer than me]

arnd.baecker-S0/[email protected] wrote:
> I managed to compile
> Python/wxPython/mozilla/wxMozilla/swish-e/documancer on a SUSE
> Athlon based machine in our PC-Pool.
> Everything looks pretty fine, however, when trying to start
> documancer I get:
>   "Failed to lock the lock file
>   '/home/baecker/.documancer/documancer-baecker'
>   (error 37: Keine Sperren verfuegbar)
> ((I think this error 37 should roughly translate to "no locks
> available" - hmm, internationalization can be a pain ;-)).

And does it continue running after that? Failure to make the lock is=20
not fatal for Documancer (you only risk some damage if running two=20
instances of the app at the same time by the same user).=20

> I have no idea why this happens (the .documancer directory
> is created and also writable by the user).
> If it is of any importance here: the home-directories
> are NFS mounted and the access can be pretty slow sometimes.

Yes, it is, locking may not work over NFS. First thing to check is if=20
your wxWindows' copy setup.h has HAVE_FCNTL defined. If not, then it=20
won't work (see man flock). The same (Linux) manpage says that=20
fcntl() does work over NFS, "given a sufficiently recent version of=20
Linux and a server which supports locking."

I could create the lock file in $TMPDIR instead of in $HOME, but I=20
don't what what the current best practise is, security-wise.

Regards,
Vaclav

=2D-=20
PGP key: 0x465264C9, available from http://pgp.mit.edu/

--Boundary-02=_LnhIABHcUnj1GCg
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAIhnLxDYa/UZSZMkRAne0AKCloqGvlrrLUTP6HeeJaKAzwCJ8ngCgpOOD
b4WkZljCiGyYrskAWvgWPH4=
=R6yx
-----END PGP SIGNATURE-----

--Boundary-02=_LnhIABHcUnj1GCg--



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn