<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  
  
  <channel>
    <title>chrisjrob: davfs2</title>
    <link>https://chrisjrob.com</link>
    <atom:link href="https://chrisjrob.com/tag/davfs2/feed/index.xml" rel="self" type="application/rss+xml" />
    <description>GNU Linux, Perl and FLOSS</description>
    <language>en-gb</language>
    <pubDate>Fri, 13 Feb 2026 17:22:31 +0000</pubDate>
    <lastBuildDate>Fri, 13 Feb 2026 17:22:31 +0000</lastBuildDate>
    
    <item>
      <title>OpenOffice Lock Files Not Being Removed On DavFS2</title>
      <link>https://chrisjrob.com/2011/02/26/openoffice-lock-files-not-being-removed-on-davfs2/</link>
      <pubDate>Sat, 26 Feb 2011 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2011/02/26/openoffice-lock-files-not-being-removed-on-davfs2</guid>
      <description>
       <![CDATA[
         
         <p>I have a mystery - I have two Debian Lenny servers both running the same
version of davfs2 and the same version of openoffice.org.  When you open
an openoffice document, openoffice creates a lock file of the same name,
but prefixed with “.~lock”.  This file retains a copy of the document
until you save and exit, whereon it is removed automatically.</p>

<p>The mystery is that, at one of our branches, it reduces size to 0, but
is never actually removed; after which time the file cannot be edited
until that lock file is manually removed.</p>

<!--more-->

<p>Both servers have the same <code class="language-plaintext highlighter-rouge">davfs2.conf</code> and I have done a diff between
the two servers:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># for file in `find /usr/lib/openoffice/ -name *.xcs -type f`; \
  do echo "=== $file ==="; \
  ssh root@other-server "cat $file" | diff $file - ; \
  done
</code></pre></div></div>

<p>But there are no differences.  I have checked users’ <code class="language-plaintext highlighter-rouge">davfs2.conf</code> files,
but these are all commented out entirely.</p>

<p>Previously I had “fixed” this problem, by setting UseDocumentOOoLockFile
to false in:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>/usr/lib/openoffice/basis3.2/share/registry/schema/org/openoffice/Office/Common.xcs
</code></pre></div></div>

<p>This doesn’t stop the lock files being created, but it does tell
Openoffice not to worry about them.  Unfortunately this no longer seems
to be working, and I really can’t understand why.</p>

<p>Currently I have “fixed” the problem by setting <code class="language-plaintext highlighter-rouge">davfs2.conf</code> to:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>use_locks 0
</code></pre></div></div>

<p>This is now allowing the lock files to be removed properly.  I believe
that actually this will work quite well, with the <code class="language-plaintext highlighter-rouge">UseDocumentOOoLockFile</code>
set to true, given that 99.9% of our documents are Openoffice documents.
 Always assuming I can persuade Openoffice to obey its own registry!</p>


       ]]>
      </description>
    </item>
    
  </channel> 
</rss>
