title: Ubuntu + SVN: Could not open the requested SVN filesystem
body: <p>I'm aware this question has been asked a lot of times. I believe I understand the answers, but I still had no luck.</p>
  
  <p>I tried both <code>one repo</code> and <code>multiple repos</code> configurations, having the same issue for both of them.</p>
  
  <p>So, with the config I'm interested in:</p>
  
  <pre><code>&lt;Location /svn&gt;
    DAV svn
    #SVNPath /media/ssd/svn/test
    SVNParentPath /media/ssd/svn
    SVNListParentPath On
    AuthType Basic
    AuthName "Subversion Repository"
    AuthUserFile /etc/apache2/dav_svn.passwd
    Require valid-user
  &lt;/Location&gt;
  </code></pre>
  
  <p>My repository</p>
  
  <pre><code>luso@bender:/media/ssd/svn$ ls -lart
  total 16
  drwx------ 7 luso     luso 4096 2012-09-15 16:20 ..
  drwxr-sr-x 6 www-data svn  4096 2012-09-24 22:13 test
  drwxrwsr-x 4 www-data svn  4096 2012-09-24 22:31 .
  drwxr-sr-x 6 www-data svn  4096 2012-09-24 22:31 test2
  </code></pre>
  
  <p>Inside a project</p>
  
  <pre><code>luso@bender:/media/ssd/svn/test$ ls -lart
  total 32
  -rw-r--r-- 1 www-data svn  229 2012-09-24 22:13 README.txt
  drwxr-sr-x 2 www-data svn 4096 2012-09-24 22:13 locks
  drwxr-sr-x 2 www-data svn 4096 2012-09-24 22:13 hooks
  drwxr-sr-x 2 www-data svn 4096 2012-09-24 22:13 conf
  -r--r--r-- 1 www-data svn    2 2012-09-24 22:13 format
  drwxr-sr-x 6 www-data svn 4096 2012-09-24 22:13 .
  drwxrwsr-x 4 www-data svn 4096 2012-09-24 22:31 ..
  drwxr-sr-x 6 www-data svn 4096 2012-09-24 22:40 db
  </code></pre>
  
  <p>the user <strong>luso</strong> and <strong>www-data</strong> are in <strong>both the svn and www-data groups</strong>. However, when /system/administration/users and groups, if I select the www-data user there is a warning: This account is disabled ¿¿?? If I try to enable it, it asks me to set a password. I didn't do it...</p>
  
  <p>/media/ssd is my /dev/sdc drive (an ssd drive) </p>
  
  <p>I can co using file:// protocol</p>
  
  <pre><code>luso@bender:~$ svn co file:///media/ssd/svn/test test
  A    test/.classpath
  A    test/.project
  A    test/target
  A    test/target/test-my-app-0.0.1-SNAPSHOT.jar
  ...
  ...
  </code></pre>
  
  <p>However,</p>
  
  <pre><code>luso@bender:~$ svn co http://localhost/svn/test test and
  luso@bender:~$ svn co http://localhost/svn/test/trunk test
  </code></pre>
  
  <p>lead me to:</p>
  
  <pre><code>Authentication realm: &lt;http://localhost:80&gt; Subversion Repository
  Password for 'luso': 
  svn: Could not open the requested SVN filesystem
  </code></pre>
  
  <p>more precisely</p>
  
  <pre><code>&lt;D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns" xmlns:C="svn:"&gt;
  &lt;C:error/&gt;
  &lt;m:human-readable errcode="13"&gt;Could not open the requested SVN filesystem&lt;/m:human-readable&gt;
  &lt;/D:error&gt;
  </code></pre>
  
  <p>Of course, the same happens if I try to access via web browser...</p>
  
  <p>And the same happens if I change </p>
  
  <pre><code>#SVNPath /media/ssd/svn/test
  SVNParentPath /media/ssd/svn
  SVNListParentPath On
  </code></pre>
  
  <p>with: </p>
  
  <pre><code>SVNPath /media/ssd/svn/test
  #SVNParentPath /media/ssd/svn
  #SVNListParentPath On
  </code></pre>
  
  <p>and reload/restart apache2</p>
  
  <p>Also, the same happens when trying to access via https:// which is working fine.</p>
  
  <p>I've read something indicating SELinux had something to do, but I don't dare to change this. I don't really know how to...</p>
  
  <p>Might it be some kind of conflict with permissions? The /media/ssd drive is owned by luso... (no idea, just guessing)</p>
  
  <p>So any other clue?</p>
  
  <p>I'm running Ubuntu 10.04, Apache2, and StackOverflow :D</p>
  
  <p>Thank you all.</p>
  
  <p><strong>EDIT:</strong> As suggested by p_strand, I've added a line</p>
  
  <pre><code>AuthzSVNAccessFile /etc/apache2/svn-policy-file
  </code></pre>
  
  <p>in dav_svn.conf config</p>
  
  <p>Now, if I try <code>http://localhost/svn/test</code> it remains the same, and if I try <code>http://localhost/svn</code> I get a <strong>403 Forbidden</strong></p>