2.5b4: Could not acquire lock [Errno 5] (dirstate)

jari jari.aalto at cante.net
Wed Dec 21 08:49:11 UTC 2011


On 2011-12-21 10:28, Martin Pool wrote:
| On 21 December 2011 09:26, Jari Aalto <jari.aalto at cante.net> wrote:
| 
| > I can't checkout a LP project (or work in it) on a NFS mounted home
| > directory:
| >
| >    bzr clone lp:mediawiki-el
| >
| >    ... after few tries
| >    ...
| >    bzr: ERROR: Could not acquire lock
| > "/home/jaalto/vc/epackage/mediawiki-el/.bzr/checkout/dirstate": [Errno 5]
| > put/output error
| >
| > If I do the same in /tmp, no problems.
| >
| 
| Locking is disabled on your nfs filesystem.  You need to enable it eg by
| starting lockd or setting a mount option.  See http://pad.lv/108605

On the /home server:
 
    $ ps -ef | grep lock
    root        15     2  0  2010 ?        00:01:11 [kblockd/0]
    root      1386     2  0  2010 ?        00:03:42 [lockd]

    $ dpkg-query '--showformat=${Version}\n' -W nfs-kernel-server
    1:1.2.5-2

On the client host:

    $ ps -ef | grep lock
    root        19     2  0 Dec10 ?        00:00:00 [kblockd]
    root      2077     2  0 Dec10 ?        00:00:00 [lockd]

    $ mount | grep /home
    home:/home on /home type nfs (rw,noatime,nodiratime,hard,intr,bg,sec=sys,retry=1,addr=192.168.1.2)

    $ cat /proc/mounts | grep /home
    home:/home/ /home nfs rw,noatime,nodiratime,vers=3,rsize=8192,wsize=8192,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.2,mountvers=3,mountport=55499,mountproto=udp,local_lock=none,addr=192.168.1.2 0 0

    $ uname -a
    Linux host 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64 GNU/Linux

    $ dpkg-query '--showformat=${Version}\n' -W nfs-kernel-server
    1:1.2.5-2

It would look like there is lockd running. Do I need something else?
Let me know what other information I can provide.

Jari



More information about the bazaar mailing list