Hi!
I'm trying to install SVN on a latest version of CentOS (5.3). I just did:
yum install subversion yum install mod_dav_svn
Then i edited /etc/httpd/conf.d/subversion.conf
and here is the content: ======================== <Location /svn> DAV svn SVNParentPath /var/www/svn
# Limit write permission to list of valid users. <LimitExcept GET PROPFIND OPTIONS REPORT> # Require SSL connection for password protection. # SSLRequireSSL
AuthType Basic AuthName "SVN 1" AuthUserFile /etc/svn/svn-auth-conf Require valid-user </LimitExcept> </Location>
After, i did: ============= mkdir -p //var/www/svn/applitv svnadmin create /var/www/svn/applitv svn mkdir file://localhost/var/www/svn/applitv/trunk -m "create" svn mkdir file://localhost/var/www/svn/applitv/branches -m "create" svn mkdir file://localhost/var/www/svn/applitv/tags -m "create" chown -R apache:apache /var/www/svn
Finally, i created the AUTH file: ================================= htpasswd -cm /etc/svn/svn-auth-conf user1 htpasswd -m /etc/svn/svn-auth-conf user2
I use the following URL to connect to the server: ================================================= http://10.0.4.32/svn/applitv
And i receive the following response: ===================================== This XML file does not appear to have any style information associated with it. The document tree is shown below.
− <D:error> <C:error/> <m:human-readable errcode="13"> Could not open the requested SVN filesystem </m:human-readable> </D:error>
In the log /etc/httpd/conf.d/subversion.conf, i have: ===================================================== [Sun Oct 11 15:48:39 2009] [error] [client 10.0.2.98] (20014)Internal error: Can't open file '/var/www/svn/applitv/format': Permission denied [Sun Oct 11 15:48:39 2009] [error] [client 10.0.2.98] Could not fetch resource information. [500, #0] [Sun Oct 11 15:48:39 2009] [error] [client 10.0.2.98] Could not open the requested SVN filesystem [500, #13] [Sun Oct 11 15:48:39 2009] [error] [client 10.0.2.98] Could not open the requested SVN filesystem [500, #13] [Sun Oct 11 15:48:39 2009] [error] [client 10.0.2.98] Could not fetch resource information. [403, #0] [Sun Oct 11 15:48:39 2009] [error] [client 10.0.2.98] (2)No such file or directory: The URI does not contain the name of a repository. [403, #190001]
What i find very strange is this: ================================= [root@svn mnt]# ll /var/www/svn/applitv/format -r--r--r-- 1 apache apache 2 Oct 11 11:40 /var/www/svn/applitv/format
The "format" file (which contains the value "5") is readable.
I searched a lot on Google but i still can't figure out what's going on. Any help would be appreciated!
MISC INFOS: =========== [root@svn www]# uname -a Linux svn.[removed].com 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:47:32 EDT 2009 i686 athlon i386 GNU/Linux (Guest running under Xen CentOS X64 Host)
[root@svn www]# cat /etc/issue CentOS release 5.3 (Final)
httpd-2.2.3-22.el5.centos.2 mod_dav_svn-1.4.2-4.el5_3.1
Thanks!
Guy Boisvert, ing. IngTegration inc.
Hi Guy;
On Sun, Oct 11, 2009 at 5:41 PM, Guy Boisvert boisvert.guy@videotron.ca wrote:
What i find very strange is this:
[root@svn mnt]# ll /var/www/svn/applitv/format -r--r--r-- 1 apache apache 2 Oct 11 11:40 /var/www/svn/applitv/format
Do you have SELinux enabled?
Also, what are the permissions on the underlying directory (/var/www/svn/applitv)
Also, I would recommend updating the version of your subversion and mod_dav_svn that's currently installed; there was a security vulnerability that could result in some nastyness (details at: http://freshmeat.net/articles/red-hat-updated-subversion-packages-fix-multip... )
Ian
Ian Wilson wrote:
Hi Guy;
On Sun, Oct 11, 2009 at 5:41 PM, Guy Boisvert boisvert.guy@videotron.ca wrote:
What i find very strange is this:
[root@svn mnt]# ll /var/www/svn/applitv/format -r--r--r-- 1 apache apache 2 Oct 11 11:40 /var/www/svn/applitv/format
Do you have SELinux enabled?
Also, what are the permissions on the underlying directory (/var/www/svn/applitv)
Also, I would recommend updating the version of your subversion and mod_dav_svn that's currently installed; there was a security vulnerability that could result in some nastyness (details at: http://freshmeat.net/articles/red-hat-updated-subversion-packages-fix-multip... )
Ian
[root@svn ~]# cat /selinux/enforce 0 [root@svn ~]#
So it's permissive mode (0). I checked that before posting! Thanks for your hint anyway.
As for updating subversion and mod_dav_svn, i have the latest versions from CentOS repositories and this server is only for internal use so i don't think i'll do it for now. Thanks again for the hint.
Guy Boisvert, ing. IngTegration inc.
Guy Boisvert wrote:
Ian Wilson wrote:
Hi Guy;
On Sun, Oct 11, 2009 at 5:41 PM, Guy Boisvert boisvert.guy@videotron.ca wrote:
What i find very strange is this:
[root@svn mnt]# ll /var/www/svn/applitv/format -r--r--r-- 1 apache apache 2 Oct 11 11:40 /var/www/svn/applitv/format
Do you have SELinux enabled?
Also, what are the permissions on the underlying directory (/var/www/svn/applitv)
Also, I would recommend updating the version of your subversion and mod_dav_svn that's currently installed; there was a security vulnerability that could result in some nastyness (details at: http://freshmeat.net/articles/red-hat-updated-subversion-packages-fix-multip... )
Ian
[root@svn ~]# cat /selinux/enforce 0 [root@svn ~]#
So it's permissive mode (0). I checked that before posting! Thanks for your hint anyway.
As for updating subversion and mod_dav_svn, i have the latest versions from CentOS repositories and this server is only for internal use so i don't think i'll do it for now. Thanks again for the hint.
Guy Boisvert, ing. IngTegration inc. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi,
There have still situations where permissive mode is not the same as disabled. I suggest that you try disabling to see if the the behavior is different.
Clint Dilks wrote:
Hi,
There have still situations where permissive mode is not the same as disabled. I suggest that you try disabling to see if the the behavior is different.
vim /etc/selinux/config ==> SELINUX=disabled
Rebooted, then same result: =========================== (Firefox: http://10.0.4.32/svn/applitv) This XML file does not appear to have any style information associated with it. The document tree is shown below.
− <D:error> <C:error/> <m:human-readable errcode="13"> Could not open the requested SVN filesystem </m:human-readable> </D:error>
[root@svn ~]# tail -6 /var/log/httpd/error_log [Sun Oct 11 18:56:26 2009] [error] [client 10.0.2.4] (20014)Internal error: Can't open file '/var/www/svn/applitv/format': Permission denied [Sun Oct 11 18:56:26 2009] [error] [client 10.0.2.4] Could not fetch resource information. [500, #0] [Sun Oct 11 18:56:26 2009] [error] [client 10.0.2.4] Could not open the requested SVN filesystem [500, #13] [Sun Oct 11 18:56:26 2009] [error] [client 10.0.2.4] Could not open the requested SVN filesystem [500, #13] [Sun Oct 11 18:56:26 2009] [error] [client 10.0.2.4] File does not exist: /var/www/html/favicon.ico [Sun Oct 11 18:56:29 2009] [error] [client 10.0.2.4] File does not exist: /var/www/html/favicon.ico
[root@svn ~]# ll /var/www/svn/applitv total 56 drwxr-xr-x 2 apache apache 4096 Oct 11 11:58 conf drwxr-xr-x 2 apache apache 4096 Oct 11 11:40 dav drwxr-sr-x 5 apache apache 4096 Oct 11 11:40 db -r--r--r-- 1 apache apache 2 Oct 11 11:40 format drwxr-xr-x 2 apache apache 4096 Oct 11 11:40 hooks drwxr-xr-x 2 apache apache 4096 Oct 11 11:40 locks -rw-r--r-- 1 apache apache 229 Oct 11 11:40 README.txt
[root@svn ~]# ll /var/www/svn total 16 drwxr-xr-x 7 apache apache 4096 Oct 11 11:40 applitv drw-rw-r-- 7 apache apache 4096 Oct 11 10:31 repos
So i'm stumped!
Maybe i'll have to use the advice from Les Mikesell & Ian Wilson and configure SourceForge...
Guy Boisvert, ing. IngTegration inc.
On Sun, Oct 11, 2009 at 7:05 PM, Guy Boisvert boisvert.guy@videotron.ca wrote:
So i'm stumped!
That's ok.
Have you tried switching to the apache user ('su - apache') to see if you can touch a file/read files in that directory? I'm still thinking this is a permissions issue.
Ian
Am 12.10.09 01:05, schrieb Guy Boisvert:
[root@svn ~]# ll /var/www/svn total 16 drwxr-xr-x 7 apache apache 4096 Oct 11 11:40 applitv drw-rw-r-- 7 apache apache 4096 Oct 11 10:31 repos
My repos directory has permissions 0750 - try to change into each directory as user apache und touch files there as suggested by Ian.
Peter.
Peter Hinse wrote:
Am 12.10.09 01:05, schrieb Guy Boisvert:
[root@svn ~]# ll /var/www/svn total 16 drwxr-xr-x 7 apache apache 4096 Oct 11 11:40 applitv drw-rw-r-- 7 apache apache 4096 Oct 11 10:31 repos
My repos directory has permissions 0750 - try to change into each directory as user apache und touch files there as suggested by Ian.
Peter.
Bingo! You were right on it Peter! Thanks!
I dunno why i didn't see it before but /var/www/svn was 0550...
There are days like that, where it's like you can't see your noze in your own face...
Apologies to the list for all this and thanks to everybody that helped me.
Guy Boisvert, ing. IngTegration inc.
Guy Boisvert wrote:
Hi!
I'm trying to install SVN on a latest version of CentOS (5.3). I just did:
yum install subversion yum install mod_dav_svn
Then i edited /etc/httpd/conf.d/subversion.conf
and here is the content:
<Location /svn> DAV svn SVNParentPath /var/www/svn
# Limit write permission to list of valid users. <LimitExcept GET PROPFIND OPTIONS REPORT> # Require SSL connection for password protection. # SSLRequireSSL AuthType Basic AuthName "SVN 1" AuthUserFile /etc/svn/svn-auth-conf Require valid-user </LimitExcept>
</Location>
After, i did:
mkdir -p //var/www/svn/applitv svnadmin create /var/www/svn/applitv svn mkdir file://localhost/var/www/svn/applitv/trunk -m "create" svn mkdir file://localhost/var/www/svn/applitv/branches -m "create" svn mkdir file://localhost/var/www/svn/applitv/tags -m "create" chown -R apache:apache /var/www/svn
Finally, i created the AUTH file:
htpasswd -cm /etc/svn/svn-auth-conf user1 htpasswd -m /etc/svn/svn-auth-conf user2
I use the following URL to connect to the server:
And i receive the following response:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
− <D:error> <C:error/> <m:human-readable errcode="13"> Could not open the requested SVN filesystem </m:human-readable> </D:error>
In the log /etc/httpd/conf.d/subversion.conf, i have:
[Sun Oct 11 15:48:39 2009] [error] [client 10.0.2.98] (20014)Internal error: Can't open file '/var/www/svn/applitv/format': Permission denied [Sun Oct 11 15:48:39 2009] [error] [client 10.0.2.98] Could not fetch resource information. [500, #0] [Sun Oct 11 15:48:39 2009] [error] [client 10.0.2.98] Could not open the requested SVN filesystem [500, #13] [Sun Oct 11 15:48:39 2009] [error] [client 10.0.2.98] Could not open the requested SVN filesystem [500, #13] [Sun Oct 11 15:48:39 2009] [error] [client 10.0.2.98] Could not fetch resource information. [403, #0] [Sun Oct 11 15:48:39 2009] [error] [client 10.0.2.98] (2)No such file or directory: The URI does not contain the name of a repository. [403, #190001]
What i find very strange is this:
[root@svn mnt]# ll /var/www/svn/applitv/format -r--r--r-- 1 apache apache 2 Oct 11 11:40 /var/www/svn/applitv/format
The "format" file (which contains the value "5") is readable.
I searched a lot on Google but i still can't figure out what's going on. Any help would be appreciated!
MISC INFOS:
[root@svn www]# uname -a Linux svn.[removed].com 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:47:32 EDT 2009 i686 athlon i386 GNU/Linux (Guest running under Xen CentOS X64 Host)
[root@svn www]# cat /etc/issue CentOS release 5.3 (Final)
httpd-2.2.3-22.el5.centos.2 mod_dav_svn-1.4.2-4.el5_3.1
Thanks!
Guy Boisvert, ing. IngTegration inc. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Are you running Security Enchanced Linux on the server ? A quick search here at http://subversion.tigris.org/faq.html
Found this
chcon -R -h -t httpd_sys_content_t /PATH_TO_REPOSITORY/
Guy Boisvert wrote:
Hi!
I'm trying to install SVN on a latest version of CentOS (5.3). I just did:
yum install subversion yum install mod_dav_svn
Your permission problem is probably selinux-related, but aside from that, the version of subversion in the centos repo is ancient. If you are just starting out, I'd use whatever 1.6 version you can find in rpmforge or elsewhere.