subversion 1.6 problem with apache 2 on CentOS 4

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
montrix
Posts: 7
Joined: 2010/08/30 17:04:20

subversion 1.6 problem with apache 2 on CentOS 4

Postby montrix » 2010/08/30 17:40:27

Hello !

I'm newbie on apache.... and I've a problem running subversion with apache via http://

First of all:
- I installed subversion 1.6.9 and mod_dav_svn 1.6.9
- I run "yum update httpd" and "yum update mod_dav_svn" successefully
- I followed configuration instruction
- It works well via file:// i.e.: "svn checkout file:///usr/local/svn/repository/libs libs" it's OK
- Also svnserve server works fine

[Mon Aug 30 19:24:42 2010] [info] Server: Apache/2.0.52, Interface: mod_ssl/2.0.52, Library: OpenSSL/0.9.7a
[Mon Aug 30 19:24:42 2010] [notice] Apache/2.0.52 (CentOS) configured -- resuming normal operations
[Mon Aug 30 19:24:42 2010] [info] Server built: Apr 11 2005 11:31:44

svn, version 1.6.9 (r901367)
compiled Apr 7 2010, 17:00:22

svnadmin, version 1.6.9 (r901367)
compiled Apr 7 2010, 17:00:22

When I try checkout it fails:
[roberto@montrix svn-test2]$ svn checkout http://localhost/repos/libs libs
svn: Could not open the requested SVN filesystem

This is the apache error log:
[Mon Aug 30 19:27:10 2010] [error] [client 127.0.0.1] (20014)Error string not specified yet: Expected version '3' of repository; found version '5'
[Mon Aug 30 19:27:10 2010] [error] [client 127.0.0.1] Could not fetch resource information. [500, #0]
[Mon Aug 30 19:27:10 2010] [error] [client 127.0.0.1] Could not open the requested SVN filesystem [500, #165005]
[Mon Aug 30 19:27:10 2010] [error] [client 127.0.0.1] Could not open the requested SVN filesystem [500, #165005]

It seems something not ok when svn is behind apache.
Clearly the repository is created in version 5 by "svnadmin create libs"
It seems mod_dav_svn or something else expect the old version 3 of repository... maybe: is it the native version in CentOS 4 ?

Please:
how can I do?
Is there something else to upgrade?

Thankyou in advance
Roberto

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

subversion 1.6 problem with apache 2 on CentOS 4

Postby pschaff » 2010/08/31 00:34:56

Welcome to the CentOS fora. The following reading is recommended for new users:
Readme First
Installing Software
Where to Find Answers
How to provide information about your system

CentOS-4 has subversion-1.1.4-3.el4_8.2. If you are going to replace core packages with much later versions you should not be surprised by breakages. Perhaps you should be checking out RHEL6 Beta in anticipation of CentOS-6 - coming in the next few months.

montrix
Posts: 7
Joined: 2010/08/30 17:04:20

Re: subversion 1.6 problem with apache 2 on CentOS 4

Postby montrix » 2010/09/01 08:13:37

Hello pschaff

Thankyou to notice me the native subversion package of CentOS-4!
It is exactly what I installed manually: first "subversion-1.1.4-3.el4_8.2.i386.rpm" and then "mod_dav_svn-1.1.4-3.el4_8.2.i386.rpm"
I did this manually.

Now if I ask yum to update subversion this is the result:
[root@montrix roberto]# yum update subversion
Setting up Update Process
Setting up Repos
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
update : ################################################## 1026/1026
base : ################################################## 1598/1598
extras : ################################################## 146/146
Could not find update match for subversion
No Packages marked for Update/Obsoletion

I seems ok.
Please, any other idea?
Roberto

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: subversion 1.6 problem with apache 2 on CentOS 4

Postby pschaff » 2010/09/01 11:00:18

So you have the standard packages and are still seeing the errors? Perhaps you have not removed the problematic versions. How did you install subversion 1.6.9 and mod_dav_svn 1.6.9?

montrix
Posts: 7
Joined: 2010/08/30 17:04:20

Re: subversion 1.6 problem with apache 2 on CentOS 4

Postby montrix » 2010/09/01 13:35:44

Yes I still seeing the errors!

I used the following command to install packages:
rpm --checksig mod_dav_svn-1.1.4-3.el4_8.2.i386.rpm
rpm -ivh /opt/archive/library/LINUX/svn/subversion-1.1.4-3.el4_8.2.i386.rpm
rpm -ivh /opt/archive/library/LINUX/svn/mod_dav_svn-1.1.4-3.el4_8.2.i386.rpm

and these to create reposytory:
svnadmin create libs
chown -R apache.apache libs/

Then I created the file "/etc/httpd/conf.d/subversion.conf" with the following content:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

DAV svn
SVNParentPath /usr/local/svn/repository


I setup ServerName in httpd.conf: please see attached file.

thank you, pschaff for your collaboration
regards
Roberto

montrix
Posts: 7
Joined: 2010/08/30 17:04:20

Re: subversion 1.6 problem with apache 2 on CentOS 4

Postby montrix » 2010/09/01 13:38:45

I'm sorry but the forum does not accept the file http.conf neither .gz neither .txt !!!!

Errors Returned While Uploading
Failed opening directory with write permission: /var/www/html/oldwebcopy.centos.org/uploads/newbb
MIME type not allowed: application/x-gzip

Errors Returned While Uploading
Failed opening directory with write permission: /var/www/html/oldwebcopy.centos.org/uploads/newbb
MIME type not allowed: text/plain

If you need it I can send it to you direcly

Roberto

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: subversion 1.6 problem with apache 2 on CentOS 4

Postby pschaff » 2010/09/01 14:14:55

The forum attachment function is permanently broken. For long files use http://pastebin.centos.org/ and set the retention time to longer than the default one day. For shorter files just past in-line preferably between code tags:

Code: Select all

...
your text
...


That said, it will not do much good to have me look at your http.conf, (not my area of expertise, and I'm not sure it is even relevant) but someone else may be able to see something in it.

If you have cleanly removed the "foreign" RPMs, then my current best guess is that the repository created while they were installed is still there and is not compatible with the CentOS packages.

montrix
Posts: 7
Joined: 2010/08/30 17:04:20

Re: subversion 1.6 problem with apache 2 on CentOS 4

Postby montrix » 2010/09/01 14:39:03

This is my httpd.conf

Code: Select all

# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".
#

ServerTokens OS
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15

<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       256
MaxRequestsPerChild  4000
</IfModule>

<IfModule worker.c>
StartServers         2
MaxClients         150
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

Listen 80

LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule auth_ldap_module modules/mod_auth_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so

Include conf.d/*.conf

User apache
Group apache

ServerAdmin roberto.bergo@robson.it
ServerName montrix.robson.local:80
UseCanonicalName On
DocumentRoot "/var/www/html"
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<IfModule mod_userdir.c>
    UserDir disable
</IfModule>

DirectoryIndex index.html index.html.var
AccessFileName .htaccess
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>
TypesConfig /etc/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog logs/error_log
LogLevel info
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access_log combined
ServerSignature On
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# WebDAV module configuration section.
#
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

... many other lines ...



Roberto

montrix
Posts: 7
Joined: 2010/08/30 17:04:20

Re: subversion 1.6 problem with apache 2 on CentOS 4

Postby montrix » 2010/09/21 13:07:24

Please:

nobody has any new suggestion?

I'm still deep in this problem and I didn't find solution neither hear nor in other svn dedicated forums!
If someone has any kind of suggestion, please, do not hesitate. I'm happy to try it.

Regards
Roberto

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: subversion 1.6 problem with apache 2 on CentOS 4

Postby pschaff » 2010/09/22 13:33:30

You don't say if you have checked the suggestions in post #7 to ensure that all 3rd party packages were cleanly removed and replaced by the CentOS versions, and that the subversion repository created by the 3rd party packages was completely removed and recreated with the CentOS version. Have you done those things?

If still having problems I'd suggest trying a clean install on a test machine, or on an alternate set of partitions or disk[s], or just a re-install if the original system install is considered expendable.