[Samba] Strange locking behaviour upsets Apache

Dave Ewart davee at ceu.ox.ac.uk
Fri Jan 18 13:14:30 GMT 2008

On Friday, 18.01.2008 at 11:46 +0100, Volker Lendecke wrote:

> On Fri, Jan 18, 2008 at 10:07:00AM +0000, Dave Ewart wrote:
> > At the same time as the '500 Internal Server Error' is sent to the
> > browser, the following appears in the Apache logs:
> > 
> >     [error] (26)Text file busy: exec of
> >     /home/user/public_html/blah/blah.cgi failed
> >  
> > "Text file busy" is the key.  If one runs 'smbstatus | grep
> > epic_plasma' (in this case) and watches the locks shown for the file
> > being edited, a lock is seen:
> > 
> >     28434 1165 DENY_WRITE 0x2019f RDWR EXCLUSIVE+BATCH
> >     /home/user/public_html/blah/blah.cgi [...]
> Try using "oplocks = no". Be aware though that this has performance
> implications.

Hmmm, reading about the performance implications, I'm not sure that I'm
enthusiastic about trying it, really.

Can you explain what's actually going on in the above problem, please?
Is the Windows editor doing something wrong/unhelpful in generating the
lock?  Or is it simply taking advantage of behaviour which is allowed by
Samba?  Specifically, why does the lock take 10-15 seconds to go away?

Dave Ewart
davee at ceu.ox.ac.uk
Computing Manager, Cancer Epidemiology Unit
University of Oxford / Cancer Research UK
PGP: CC70 1883 BD92 E665 B840 118B 6E94 2CFD 694D E370
Get key from http://www.ceu.ox.ac.uk/~davee/davee-ceu-ox-ac-uk.asc
N 51.7518, W 1.2016
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/samba/attachments/20080118/d3c78c14/attachment.bin

More information about the samba mailing list