title: svn error, access via apcahe, E170013: Unable to connect to a repository at URL
body: <p>I know there are many questions and answers about similar issues, but none have solved my issues so far.</p>
  <p>I have SVN 1.13 and Apache 2.4.54 running on Raspberry Pi OS (2022-04-04 bullseye) running on a Pi 3b+, the svn repos are on an external USB HDD mounted to &quot;/media/andy/seagate2tb&quot;.</p>
  <p>My dav_svn.conf looks like...</p>
  <pre><code>&lt;Location /svn&gt;
    DAV svn
    SVNParentPath /media/andy/seagate2tb/repos
    AuthType Basic
    AuthName &quot;Repository&quot;
    AuthUserFile /home/andy/svn_password
    Require valid-user
  &lt;/Location&gt;
  </code></pre>
  <p>I can access the repos via the local file system, like...</p>
  <pre><code>svn info file:///media/andy/seagate2tb/repos/test-repo
  Path: test-repo
  URL: file:///media/andy/seagate2tb/repos/test-repo
  Relative URL: ^/
  Repository Root: file:///media/andy/seagate2tb/repos/test-repo
  Repository UUID: 45167b5d-3a41-4afe-90c8-bfd8fee77701
  </code></pre>
  <p>But via Apache I get...</p>
  <pre><code>svn info http://pi-server-1/svn/test-repo
  svn: E170013: Unable to connect to a repository at URL 'http://pi-server-1/svn/test-repo'
  svn: E000013: Could not open the requested SVN filesystem
  </code></pre>
  <p>I had a look at the Apache error log, and it says...</p>
  <pre><code>[Wed Aug 24 17:08:46.048282 2022] [:error] [pid 1654:tid 1888478208] (20014)Internal error (specific information not available): [client 192.168.1.49:39970] Can't open file '/media/andy/seagate2tb/repos/test-repo/format': Permission denied
  [Wed Aug 24 17:08:46.048482 2022] [dav:error] [pid 1654:tid 1888478208] [client 192.168.1.49:39970] Could not fetch resource information.  [500, #0]
  [Wed Aug 24 17:08:46.048523 2022] [dav:error] [pid 1654:tid 1888478208] [client 192.168.1.49:39970] Could not open the requested SVN filesystem  [500, #13]
  [Wed Aug 24 17:08:46.048559 2022] [dav:error] [pid 1654:tid 1888478208] [client 192.168.1.49:39970] Could not open the requested SVN filesystem  [500, #13]
  </code></pre>
  <p>It seems like this sort of issue is usually down to permissions, and the apache error log also points clearly to that.  So....</p>
  <pre><code>[Wed Aug 24 17:08:46.048282 2022] [:error] [pid 1654:tid 1888478208] (20014)Internal error (specific information not available): [client 192.168.1.49:39970] Can't open file '/media/andy/seagate2tb/repos/test-repo/format': Permission denied
  </code></pre>
  <p>...would suggest an issue with the /media/andy/seagate2tb/repos/test-repo/format file.  But that looks ok...</p>
  <pre><code>/media/andy/seagate2tb/repos/test-repo $ ls -la /media/andy/seagate2tb/repos/test-repo/format
  -rwxrwxrwx 1 www-data www-data 2 Aug 24 16:03 /media/andy/seagate2tb/repos/test-repo/format
  </code></pre>
  <p>I think the permissions at various levels, generally, look ok, like...</p>
  <pre><code>/media/andy/seagate2tb $ ls -la
  total 168
  drwxrwxrwx     7 root     root       4096 Feb  1  2021 .
  drwxr-x---+    3 root     root       4096 Aug 24 11:18 ..
  drwxrwxrwx     4 www-data www-data   4096 Aug 24 16:03 repos
  </code></pre>
  <p>...and...</p>
  <pre><code>/media/andy/seagate2tb/repos $ ls -la
  total 16
  drwxrwxrwx 4 www-data www-data 4096 Aug 24 16:03 .
  drwxrwxrwx 7 root     root     4096 Feb  1  2021 ..
  drwxrwxrwx 6 www-data www-data 4096 Aug 24 16:03 test-repo
  drwxrwxrwx 6 www-data www-data 4096 Apr 15  2018 work
  </code></pre>
  <p>...and...</p>
  <pre><code>/media/andy/seagate2tb/repos/test-repo $ ls -la
  total 32
  drwxrwxrwx 6 www-data www-data 4096 Aug 24 16:03 .
  drwxrwxrwx 4 www-data www-data 4096 Aug 24 16:03 ..
  drwxrwxrwx 2 www-data www-data 4096 Aug 24 16:03 conf
  drwxrwsrwx 6 www-data www-data 4096 Aug 24 16:03 db
  -rwxrwxrwx 1 www-data www-data    2 Aug 24 16:03 format
  drwxrwxrwx 2 www-data www-data 4096 Aug 24 16:03 hooks
  drwxrwxrwx 2 www-data www-data 4096 Aug 24 16:03 locks
  -rwxrwxrwx 1 www-data www-data  246 Aug 24 16:03 README.txt
  </code></pre>
  <p>So I'm a bit stuck, any ideas or help would be greatly appreciated.</p>