You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Bastien Semene <bs...@cyanide-studio.com> on 2010/07/23 11:09:31 UTC

SVN over NFS

  I think the documentation should mention that SVN needs file locking 
configuration while using NFS.
I have an Apache -> DAV_SVN -> repo access over NFS architecture, 
everything provided by FreeBSD.

On FreeBSD, you need to enable the following services :
- lockd
- statd

There's also a "fake lock access" option on nfsd (-L), but I'm not sure 
it's enough and anyway I think we should give real lock to prevent 
concurrent access from another way (i.e. local).

Here are the logs on apache when the error occurs because DAV hasn't 
locks :
[Tue Jul 20 15:40:08 2010] [error] [client 10.1.8.123] (20014)Internal 
error: Can't open file '/var/db/svn/repos/favicon.ico/format': No such 
file or directory, referer: http://domain.com/repo/
[Tue Jul 20 15:40:08 2010] [error] [client 10.1.8.123] Could not fetch 
resource information.  [500, #0], referer: http://domain.com/repo/
[Tue Jul 20 15:40:08 2010] [error] [client 10.1.8.123] Could not open 
the requested SVN filesystem  [500, #2], referer: http://domain.com/repo/
[Tue Jul 20 15:40:08 2010] [error] [client 10.1.8.123] Could not open 
the requested SVN filesystem  [500, #2], referer: http://domain.com/repo/

or

[Thu Jul 22 18:11:04 2010] [error] [client 10.1.8.123] (20014)Internal 
error: database is locked
[Thu Jul 22 18:11:04 2010] [error] [client 10.1.8.123] Could not fetch 
resource information.  [500, #0]
[Thu Jul 22 18:11:04 2010] [error] [client 10.1.8.123] Could not open 
the requested SVN filesystem  [500, #200030]
[Thu Jul 22 18:11:04 2010] [error] [client 10.1.8.123] Could not open 
the requested SVN filesystem  [500, #200030]


It can seem obvious that a databse lock should lead to file locking, but 
in my case this message appeared only once I activated lock access, 
during the first request after activation.
Now I do not have any of these messages.


Also, can anyone explain me the first line of the logs, what is doing 
"favicon.ico/format" here ?

-- 
Bastien Semene
Administrateur Réseau&  Système

Cyanide Studio - FRANCE


Re: SVN over NFS

Posted by Bastien Semene <bs...@cyanide-studio.com>.
 My bad.
Sorry for the lost time.

Thread closed.

Le 23/07/2010 14:23, Andy Levy a écrit :
> On Fri, Jul 23, 2010 at 08:05, Bastien Semene
> <bs...@cyanide-studio.com>  wrote:
>>   I've maybe missed something, but I found nothing related to locking access
>> with NFS in the FAQ and in the red-bean doc .
> Copied&  pasted from the FAQ link I provided:
>
> "If you are using the FSFS repository back end, then storing the
> repository on a modern NFS server (i.e., **one that supports
> locking**) should be fine."
>
> Locking is also explicitly mentioned as a requirement in the red box
> on the pages linked from the Google search results I provided.
>
>> Le 23/07/2010 12:35, Andy Levy a écrit :
>>> On Fri, Jul 23, 2010 at 06:34, Andy Levy<an...@gmail.com>    wrote:
>>>> On Fri, Jul 23, 2010 at 05:09, Bastien Semene
>>>> <bs...@cyanide-studio.com>    wrote:
>>>>>   I think the documentation should mention that SVN needs file locking
>>>>> configuration while using NFS.
>>>>> I have an Apache ->    DAV_SVN ->    repo access over NFS architecture,
>>>>> everything
>>>>> provided by FreeBSD.
>>>> The FAQ does. http://subversion.apache.org/faq.html#nfs
>>>>
>>>> The manual used to. http://bit.ly/48H7TF
>>>>
>>> That last link should be
>>>
>>> http://www.google.com/search?q=site:svnbook.red-bean.com+nfs+-webdav&hl=en&filter=0
>> --
>> Bastien Semene
>> Administrateur Réseau&    Système
>>
>> Cyanide Studio - FRANCE
>>
>>

-- 
Bastien Semene
Administrateur Réseau&  Système

Cyanide Studio - FRANCE

Re: SVN over NFS

Posted by Bastien Semene <bs...@cyanide-studio.com>.
  My bad.
Sorry for the lost time.

Thread closed.

Le 23/07/2010 14:23, Andy Levy a écrit :
> On Fri, Jul 23, 2010 at 08:05, Bastien Semene
> <bs...@cyanide-studio.com>  wrote:
>>   I've maybe missed something, but I found nothing related to locking access
>> with NFS in the FAQ and in the red-bean doc .
> Copied&  pasted from the FAQ link I provided:
>
> "If you are using the FSFS repository back end, then storing the
> repository on a modern NFS server (i.e., **one that supports
> locking**) should be fine."
>
> Locking is also explicitly mentioned as a requirement in the red box
> on the pages linked from the Google search results I provided.
>
>> Le 23/07/2010 12:35, Andy Levy a écrit :
>>> On Fri, Jul 23, 2010 at 06:34, Andy Levy<an...@gmail.com>    wrote:
>>>> On Fri, Jul 23, 2010 at 05:09, Bastien Semene
>>>> <bs...@cyanide-studio.com>    wrote:
>>>>>   I think the documentation should mention that SVN needs file locking
>>>>> configuration while using NFS.
>>>>> I have an Apache ->    DAV_SVN ->    repo access over NFS architecture,
>>>>> everything
>>>>> provided by FreeBSD.
>>>> The FAQ does. http://subversion.apache.org/faq.html#nfs
>>>>
>>>> The manual used to. http://bit.ly/48H7TF
>>>>
>>> That last link should be
>>>
>>> http://www.google.com/search?q=site:svnbook.red-bean.com+nfs+-webdav&hl=en&filter=0
>> --
>> Bastien Semene
>> Administrateur Réseau&    Système
>>
>> Cyanide Studio - FRANCE
>>
>>

-- 
Bastien Semene
Administrateur Réseau&  Système

Cyanide Studio - FRANCE


Re: SVN over NFS

Posted by Andy Levy <an...@gmail.com>.
On Fri, Jul 23, 2010 at 08:05, Bastien Semene
<bs...@cyanide-studio.com> wrote:
>  I've maybe missed something, but I found nothing related to locking access
> with NFS in the FAQ and in the red-bean doc .

Copied & pasted from the FAQ link I provided:

"If you are using the FSFS repository back end, then storing the
repository on a modern NFS server (i.e., **one that supports
locking**) should be fine."

Locking is also explicitly mentioned as a requirement in the red box
on the pages linked from the Google search results I provided.

> Le 23/07/2010 12:35, Andy Levy a écrit :
>>
>> On Fri, Jul 23, 2010 at 06:34, Andy Levy<an...@gmail.com>  wrote:
>>>
>>> On Fri, Jul 23, 2010 at 05:09, Bastien Semene
>>> <bs...@cyanide-studio.com>  wrote:
>>>>
>>>>  I think the documentation should mention that SVN needs file locking
>>>> configuration while using NFS.
>>>> I have an Apache ->  DAV_SVN ->  repo access over NFS architecture,
>>>> everything
>>>> provided by FreeBSD.
>>>
>>> The FAQ does. http://subversion.apache.org/faq.html#nfs
>>>
>>> The manual used to. http://bit.ly/48H7TF
>>>
>> That last link should be
>>
>> http://www.google.com/search?q=site:svnbook.red-bean.com+nfs+-webdav&hl=en&filter=0
>
> --
> Bastien Semene
> Administrateur Réseau&  Système
>
> Cyanide Studio - FRANCE
>
>

Re: SVN over NFS

Posted by Bastien Semene <bs...@cyanide-studio.com>.
  I've maybe missed something, but I found nothing related to locking 
access with NFS in the FAQ and in the red-bean doc .

Le 23/07/2010 12:35, Andy Levy a écrit :
> On Fri, Jul 23, 2010 at 06:34, Andy Levy<an...@gmail.com>  wrote:
>> On Fri, Jul 23, 2010 at 05:09, Bastien Semene
>> <bs...@cyanide-studio.com>  wrote:
>>>   I think the documentation should mention that SVN needs file locking
>>> configuration while using NFS.
>>> I have an Apache ->  DAV_SVN ->  repo access over NFS architecture, everything
>>> provided by FreeBSD.
>> The FAQ does. http://subversion.apache.org/faq.html#nfs
>>
>> The manual used to. http://bit.ly/48H7TF
>>
> That last link should be
> http://www.google.com/search?q=site:svnbook.red-bean.com+nfs+-webdav&hl=en&filter=0

-- 
Bastien Semene
Administrateur Réseau&  Système

Cyanide Studio - FRANCE


Re: SVN over NFS

Posted by Bastien Semene <bs...@cyanide-studio.com>.
 I've maybe missed something, but I found nothing related to locking 
access with NFS in the FAQ and in the red-bean doc .

Le 23/07/2010 12:35, Andy Levy a écrit :
> On Fri, Jul 23, 2010 at 06:34, Andy Levy<an...@gmail.com>  wrote:
>> On Fri, Jul 23, 2010 at 05:09, Bastien Semene
>> <bs...@cyanide-studio.com>  wrote:
>>>   I think the documentation should mention that SVN needs file locking
>>> configuration while using NFS.
>>> I have an Apache ->  DAV_SVN ->  repo access over NFS architecture, everything
>>> provided by FreeBSD.
>> The FAQ does. http://subversion.apache.org/faq.html#nfs
>>
>> The manual used to. http://bit.ly/48H7TF
>>
> That last link should be
> http://www.google.com/search?q=site:svnbook.red-bean.com+nfs+-webdav&hl=en&filter=0

-- 
Bastien Semene
Administrateur Réseau&  Système

Cyanide Studio - FRANCE

Re: SVN over NFS

Posted by Andy Levy <an...@gmail.com>.
On Fri, Jul 23, 2010 at 06:34, Andy Levy <an...@gmail.com> wrote:
> On Fri, Jul 23, 2010 at 05:09, Bastien Semene
> <bs...@cyanide-studio.com> wrote:
>>  I think the documentation should mention that SVN needs file locking
>> configuration while using NFS.
>> I have an Apache -> DAV_SVN -> repo access over NFS architecture, everything
>> provided by FreeBSD.
>
> The FAQ does. http://subversion.apache.org/faq.html#nfs
>
> The manual used to. http://bit.ly/48H7TF
>

That last link should be
http://www.google.com/search?q=site:svnbook.red-bean.com+nfs+-webdav&hl=en&filter=0

Re: SVN over NFS

Posted by Andy Levy <an...@gmail.com>.
On Fri, Jul 23, 2010 at 05:09, Bastien Semene
<bs...@cyanide-studio.com> wrote:
>  I think the documentation should mention that SVN needs file locking
> configuration while using NFS.
> I have an Apache -> DAV_SVN -> repo access over NFS architecture, everything
> provided by FreeBSD.

The FAQ does. http://subversion.apache.org/faq.html#nfs

The manual used to. http://bit.ly/48H7TF

Re: SVN over NFS

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jul 23, 2010, at 04:09, Bastien Semene wrote:

> [Tue Jul 20 15:40:08 2010] [error] [client 10.1.8.123] (20014)Internal error: Can't open file '/var/db/svn/repos/favicon.ico/format': No such file or directory, referer: http://domain.com/repo/

> Also, can anyone explain me the first line of the logs, what is doing "favicon.ico/format" here ?

Web browsers request the file "favicon.ico" at the root of any domain they visit.

http://en.wikipedia.org/wiki/Favicon

You are apparently using SVNParentPath inside a "Location /" block, which means *all* web requests, including those for favicon.ico, will be directed to Subversion to handle. SVNParentPath tells Subversion to handle the first component of the URL as a repository name, so it tries to access a repository called "favicon.ico"; because you don't have a repository by that name, an error is written to the log. For these and various other reasons it is often recommended not to use a "Location /" block for Subversion, but to use some subdirectory of the web space instead (i.e. "Location /svn/").