[CentOS] SVN hell!

2009-10-11 Thread Guy Boisvert
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:
=
[r...@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:
===
[r...@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)

[r...@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


Re: [CentOS] SVN hell!

2009-10-11 Thread Ian Wilson
Hi Guy;


On Sun, Oct 11, 2009 at 5:41 PM, Guy Boisvert boisvert@videotron.ca wrote:
 What i find very strange is this:
 =
 [r...@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-multiple-security-issues
)

Ian

-- 
Ian Wilson
ian.m.wil...@gmail.com
http://ianwilson.org || http://www.ians-blog.com

Solving site load issues with database replication is a lot like
solving your own personal problems with heroin -- at first, it sorta
works, but after a while things just get out of hand.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SVN hell!

2009-10-11 Thread Clint Dilks
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:
 =
 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:
 =
 [r...@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:
 ===
 [r...@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)

 [r...@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/

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SVN hell!

2009-10-11 Thread Les Mikesell
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.

-- 
   Les Mikesell
lesmikes...@gmail.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SVN hell!

2009-10-11 Thread Guy Boisvert
Ian Wilson wrote:
 Hi Guy;
 
 
 On Sun, Oct 11, 2009 at 5:41 PM, Guy Boisvert boisvert@videotron.ca 
 wrote:
 What i find very strange is this:
 =
 [r...@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-multiple-security-issues
 )
 
 Ian
 


[r...@svn ~]# cat /selinux/enforce
0
[r...@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


Re: [CentOS] SVN hell!

2009-10-11 Thread Clint Dilks
Guy Boisvert wrote:
 Ian Wilson wrote:
   
 Hi Guy;


 On Sun, Oct 11, 2009 at 5:41 PM, Guy Boisvert boisvert@videotron.ca 
 wrote:
 
 What i find very strange is this:
 =
 [r...@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-multiple-security-issues
 )

 Ian

 


 [r...@svn ~]# cat /selinux/enforce
 0
 [r...@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.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SVN hell!

2009-10-11 Thread Guy Boisvert
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


[r...@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




[r...@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 apache2 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

[r...@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.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SVN hell!

2009-10-11 Thread Ian Wilson
On Sun, Oct 11, 2009 at 7:05 PM, Guy Boisvert boisvert@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
-- 
Ian Wilson
ian.m.wil...@gmail.com
http://ianwilson.org || http://www.ians-blog.com

Solving site load issues with database replication is a lot like
solving your own personal problems with heroin -- at first, it sorta
works, but after a while things just get out of hand.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SVN hell!

2009-10-11 Thread Peter Hinse
Am 12.10.09 01:05, schrieb Guy Boisvert:

 [r...@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.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SVN hell! [RESOLVED]

2009-10-11 Thread Guy Boisvert
Peter Hinse wrote:
 Am 12.10.09 01:05, schrieb Guy Boisvert:
 
 [r...@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.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos