-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Nov 19, 2009, at 11:59 PM, Greg Larkin wrote:

Glen Johnson wrote:
On Nov 19, 2009, at 11:43 AM, Greg Larkin wrote:

Glen Johnson wrote:
FreeBSD-questions,
I am attempting to use FreeBSD as my Subversion server.  I have
Subversion working, and I have Apache working. However when I try to
use http:/my_server/svn/my_project I get:
<?xml version="1.0" encoding="utf-8"?>
<D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns";
xmlns:C="svn:">
<C:error/>
<m:human-readable errcode="2">
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>

1 I tried chmod -R 777 /home/svn/repos.
2 I tried recompiling apache, db, and subversion.
3 I looked at /var/log/http-error.log (partial list below)
[Thu Nov 19 09:35:52 2009] [notice] Graceful restart requested, doing
restart
[Thu Nov 19 09:35:53 2009] [notice] Digest: generating secret for digest
authentication ...
[Thu Nov 19 09:35:53 2009] [notice] Digest: done
[Thu Nov 19 09:35:54 2009] [notice] Apache/2.2.13 (FreeBSD)
mod_ssl/2.2.13 OpenSSL/0.9.8e DAV/2 SVN/1.6.6 configured -- resuming
normal operations
[Thu Nov 19 09:36:10 2009] [error] [client 192.168.2.12] (20014)Internal
error: Can't open file '/usr/home/svn/repos/default/format': No such
file or directory
[Thu Nov 19 09:36:10 2009] [error] [client 192.168.2.12] Could not fetch
resource information.  [500, #0]
[Thu Nov 19 09:36:10 2009] [error] [client 192.168.2.12] Could not open
the requested SVN filesystem  [500, #2]


What am I missing?
Thank you,
Glen

Hi Glen,

Please post the relevant bits from your httpd.conf where you set up the SVNPath, etc. It looks like maybe the SVNPath directive is pointing to
the wrong place.

Thanks for your reply.  I currently have this info in
/usr/local/etc/apache22/Includes/svn.conf. Apache22 loads all the conf
files in this directory when httpd.conf is loaded.
<Location /svn>
        DAV svn
        SVNParentPath /usr/home/svn/repos
        SVNListParentPath on
        SVNPathAuthz off
        SVNIndexXSLT "/data-dist/svnindex.xsl"

        # anonymous first
        Satisfy Any
        Require valid-user

        # authenticating them valid ones
        AuthType Basic
        AuthName "Subversion Repositories"
        AuthUserFile /usr/home/svn/access/users
</Location>


Hi Glen,

At first glance, that looks OK to me. The next tests are:

- - Does /usr/home/svn/repos/default exist? (I know, dumb question!)
No, not so dumb. It is good not to make assumptions that I may overlook. This however is not one. This is what I did to verify I do have a project. 1. svn co file:///usr/home/svn/repos def # Then for fun I added hello.txt in def/trunk. More about this below.
2. svn co svn://usr/home/svn/repos def  # Still works fine.
3. svn co file:///usr/home/svn/repos def # SVN: Could not open the requested SVN filesystem (Error message from svn)

- - If it does, are permissions set such that the httpd process user can
read the directory? You said "chmod 777" on the repository parent
directory didn't work.
I tried:
chmod -R 777 /usr/home/svn/repos
chmod -R www:www /usr/home/svn/repos

By the way here are the settings for user www and group www.

grep www /etc/passwd
www:*:80:80:World Wide Web Owner:/nonexistent:/usr/sbin/nologin

grep www /etc/group
www:*:80:glen,root


- - Please post the output of "ls -laR /usr/home/svn/repos"
First I noticed that there are some files that are owned by glen due to me adding repos/trunk/hello.txt.
Ok you asked for this:
total 24
drwxrwxrwx  10 www   www  512 Nov 20 08:48 ./
drwxrwxrwx   5 root  www  512 Nov 20 08:46 ../
drwxrwxrwx   6 www   www  512 Nov 20 08:48 .svn/
- -rwxrwxrwx   1 www   www  229 Nov 20 08:46 README.txt*
drwxrwxrwx   3 www   www  512 Nov 20 08:48 branches/
drwxrwxrwx   2 www   www  512 Nov 20 08:46 conf/
drwxrwxrwx   6 www   www  512 Nov 20 09:01 db/
- -rwxrwxrwx   1 www   www    2 Nov 20 08:46 format*
drwxrwxrwx   2 www   www  512 Nov 20 08:46 hooks/
drwxrwxrwx   2 www   www  512 Nov 20 08:46 locks/
drwxrwxrwx   3 www   www  512 Nov 20 08:48 tags/
drwxrwxrwx   3 www   www  512 Nov 20 08:48 trunk/

/usr/home/svn/repos/.svn:
total 14
drwxrwxrwx   6 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  10 www  www  512 Nov 20 08:48 ../
- -rwxrwxrwx   1 www  www  193 Nov 20 08:48 entries*
drwxrwxrwx   2 www  www  512 Nov 20 08:48 prop-base/
drwxrwxrwx   2 www  www  512 Nov 20 08:48 props/
drwxrwxrwx   2 www  www  512 Nov 20 08:48 text-base/
drwxrwxrwx   5 www  www  512 Nov 20 08:48 tmp/

/usr/home/svn/repos/.svn/prop-base:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/.svn/props:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/.svn/text-base:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/.svn/tmp:
total 10
drwxrwxrwx  5 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ../
drwxrwxrwx  2 www  www  512 Nov 20 08:48 prop-base/
drwxrwxrwx  2 www  www  512 Nov 20 08:48 props/
drwxrwxrwx  2 www  www  512 Nov 20 08:48 text-base/

/usr/home/svn/repos/.svn/tmp/prop-base:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  5 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/.svn/tmp/props:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  5 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/.svn/tmp/text-base:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  5 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/branches:
total 6
drwxrwxrwx   3 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  10 www  www  512 Nov 20 08:48 ../
drwxrwxrwx   6 www  www  512 Nov 20 08:48 .svn/

/usr/home/svn/repos/branches/.svn:
total 14
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  3 www  www  512 Nov 20 08:48 ../
- -rwxrwxrwx  1 www  www  164 Nov 20 08:48 entries*
drwxrwxrwx  2 www  www  512 Nov 20 08:48 prop-base/
drwxrwxrwx  2 www  www  512 Nov 20 08:48 props/
drwxrwxrwx  2 www  www  512 Nov 20 08:48 text-base/
drwxrwxrwx  5 www  www  512 Nov 20 08:48 tmp/

/usr/home/svn/repos/branches/.svn/prop-base:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/branches/.svn/props:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/branches/.svn/text-base:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/branches/.svn/tmp:
total 10
drwxrwxrwx  5 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ../
drwxrwxrwx  2 www  www  512 Nov 20 08:48 prop-base/
drwxrwxrwx  2 www  www  512 Nov 20 08:48 props/
drwxrwxrwx  2 www  www  512 Nov 20 08:48 text-base/

/usr/home/svn/repos/branches/.svn/tmp/prop-base:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  5 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/branches/.svn/tmp/props:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  5 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/branches/.svn/tmp/text-base:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  5 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/conf:
total 12
drwxrwxrwx   2 www  www   512 Nov 20 08:46 ./
drwxrwxrwx  10 www  www   512 Nov 20 08:48 ../
- -rwxrwxrwx   1 www  www  1080 Nov 20 08:46 authz*
- -rwxrwxrwx   1 www  www   309 Nov 20 08:46 passwd*
- -rwxrwxrwx   1 www  www  2279 Nov 20 08:46 svnserve.conf*

/usr/home/svn/repos/db:
total 30
drwxrwxrwx   6 www   www   512 Nov 20 09:01 ./
drwxrwxrwx  10 www   www   512 Nov 20 08:48 ../
- -rwxrwxrwx   1 glen  www     2 Nov 20 09:01 current*
- -rwxrwxrwx   1 www   www    22 Nov 20 08:46 format*
- -rwxrwxrwx   1 www   www     5 Nov 20 08:46 fs-type*
- -rwxrwxrwx   1 www   www  1920 Nov 20 08:46 fsfs.conf*
- -rwxrwxrwx   1 www   www     2 Nov 20 08:46 min-unpacked-rev*
- -rwxrwxrwx   1 www   www  4096 Nov 20 09:01 rep-cache.db*
drwxrwxrwx   3 www   www   512 Nov 20 08:46 revprops/
drwxrwxrwx   3 www   www   512 Nov 20 08:46 revs/
drwxrwxrwx   2 www   www   512 Nov 20 09:01 transactions/
- -rwxrwxrwx   1 glen  www     2 Nov 20 09:01 txn-current*
- -rwxrwxrwx   1 www   www     0 Nov 20 08:46 txn-current-lock*
drwxrwxrwx   2 www   www   512 Nov 20 09:01 txn-protorevs/
- -rwxrwxrwx   1 www   www    37 Nov 20 08:46 uuid*
- -rwxrwxrwx   1 www   www     0 Nov 20 08:46 write-lock*

/usr/home/svn/repos/db/revprops:
total 6
drwxrwxrwx  3 www  www  512 Nov 20 08:46 ./
drwxrwxrwx  6 www  www  512 Nov 20 09:01 ../
drwxrwxrwx  2 www  www  512 Nov 20 09:01 0/

/usr/home/svn/repos/db/revprops/0:
total 10
drwxrwxrwx  2 www   www  512 Nov 20 09:01 ./
drwxrwxrwx  3 www   www  512 Nov 20 08:46 ../
- -rwxrwxrwx  1 www   www   50 Nov 20 08:46 0*
- -rwxrwxrwx  1 www   www  108 Nov 20 08:46 1*
- -rwxrwxrwx  1 glen  www  108 Nov 20 09:01 2*

/usr/home/svn/repos/db/revs:
total 6
drwxrwxrwx  3 www  www  512 Nov 20 08:46 ./
drwxrwxrwx  6 www  www  512 Nov 20 09:01 ../
drwxrwxrwx  2 www  www  512 Nov 20 09:01 0/

/usr/home/svn/repos/db/revs/0:
total 10
drwxrwxrwx  2 www   www  512 Nov 20 09:01 ./
drwxrwxrwx  3 www   www  512 Nov 20 08:46 ../
- -rwxrwxrwx  1 www   www  115 Nov 20 08:46 0*
- -rwxrwxrwx  1 www   www  556 Nov 20 08:46 1*
- -rwxrwxrwx  1 glen  www  695 Nov 20 09:01 2*

/usr/home/svn/repos/db/transactions:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 09:01 ./
drwxrwxrwx  6 www  www  512 Nov 20 09:01 ../

/usr/home/svn/repos/db/txn-protorevs:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 09:01 ./
drwxrwxrwx  6 www  www  512 Nov 20 09:01 ../

/usr/home/svn/repos/hooks:
total 34
drwxrwxrwx   2 www  www   512 Nov 20 08:46 ./
drwxrwxrwx  10 www  www   512 Nov 20 08:48 ../
- -rwxrwxrwx   1 www  www  1955 Nov 20 08:46 post-commit.tmpl*
- -rwxrwxrwx   1 www  www  1638 Nov 20 08:46 post-lock.tmpl*
- -rwxrwxrwx   1 www  www  2267 Nov 20 08:46 post-revprop-change.tmpl*
- -rwxrwxrwx   1 www  www  1567 Nov 20 08:46 post-unlock.tmpl*
- -rwxrwxrwx   1 www  www  3410 Nov 20 08:46 pre-commit.tmpl*
- -rwxrwxrwx   1 www  www  2416 Nov 20 08:46 pre-lock.tmpl*
- -rwxrwxrwx   1 www  www  2764 Nov 20 08:46 pre-revprop-change.tmpl*
- -rwxrwxrwx   1 www  www  2106 Nov 20 08:46 pre-unlock.tmpl*
- -rwxrwxrwx   1 www  www  2758 Nov 20 08:46 start-commit.tmpl*

/usr/home/svn/repos/locks:
total 8
drwxrwxrwx   2 www  www  512 Nov 20 08:46 ./
drwxrwxrwx  10 www  www  512 Nov 20 08:48 ../
- -rwxrwxrwx   1 www  www  139 Nov 20 08:46 db-logs.lock*
- -rwxrwxrwx   1 www  www  139 Nov 20 08:46 db.lock*

/usr/home/svn/repos/tags:
total 6
drwxrwxrwx   3 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  10 www  www  512 Nov 20 08:48 ../
drwxrwxrwx   6 www  www  512 Nov 20 08:48 .svn/

/usr/home/svn/repos/tags/.svn:
total 14
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  3 www  www  512 Nov 20 08:48 ../
- -rwxrwxrwx  1 www  www  160 Nov 20 08:48 entries*
drwxrwxrwx  2 www  www  512 Nov 20 08:48 prop-base/
drwxrwxrwx  2 www  www  512 Nov 20 08:48 props/
drwxrwxrwx  2 www  www  512 Nov 20 08:48 text-base/
drwxrwxrwx  5 www  www  512 Nov 20 08:48 tmp/

/usr/home/svn/repos/tags/.svn/prop-base:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/tags/.svn/props:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/tags/.svn/text-base:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/tags/.svn/tmp:
total 10
drwxrwxrwx  5 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ../
drwxrwxrwx  2 www  www  512 Nov 20 08:48 prop-base/
drwxrwxrwx  2 www  www  512 Nov 20 08:48 props/
drwxrwxrwx  2 www  www  512 Nov 20 08:48 text-base/

/usr/home/svn/repos/tags/.svn/tmp/prop-base:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  5 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/tags/.svn/tmp/props:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  5 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/tags/.svn/tmp/text-base:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  5 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/trunk:
total 6
drwxrwxrwx   3 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  10 www  www  512 Nov 20 08:48 ../
drwxrwxrwx   6 www  www  512 Nov 20 08:48 .svn/

/usr/home/svn/repos/trunk/.svn:
total 14
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  3 www  www  512 Nov 20 08:48 ../
- -rwxrwxrwx  1 www  www  161 Nov 20 08:48 entries*
drwxrwxrwx  2 www  www  512 Nov 20 08:48 prop-base/
drwxrwxrwx  2 www  www  512 Nov 20 08:48 props/
drwxrwxrwx  2 www  www  512 Nov 20 08:48 text-base/
drwxrwxrwx  5 www  www  512 Nov 20 08:48 tmp/

/usr/home/svn/repos/trunk/.svn/prop-base:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/trunk/.svn/props:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/trunk/.svn/text-base:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/trunk/.svn/tmp:
total 10
drwxrwxrwx  5 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  6 www  www  512 Nov 20 08:48 ../
drwxrwxrwx  2 www  www  512 Nov 20 08:48 prop-base/
drwxrwxrwx  2 www  www  512 Nov 20 08:48 props/
drwxrwxrwx  2 www  www  512 Nov 20 08:48 text-base/

/usr/home/svn/repos/trunk/.svn/tmp/prop-base:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  5 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/trunk/.svn/tmp/props:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  5 www  www  512 Nov 20 08:48 ../

/usr/home/svn/repos/trunk/.svn/tmp/text-base:
total 4
drwxrwxrwx  2 www  www  512 Nov 20 08:48 ./
drwxrwxrwx  5 www  www  512 Nov 20 08:48 ../
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFLBqdsiOtlC/1IyboRAvfmAKCNncZ/IyavnaXPQC4afvjWsmaCdQCfRRfS
BRkWRijDquNKlg4V4zaoiw4=
=Rsv0
-----END PGP SIGNATURE-----

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to