Redmine +svn : Error 501 "Not Implemented"

Added by Jean-Luc Pinardon over 11 years ago

Dear all,

Contrary to what I said in a preceeding thread, I finally still have a problem with my configuration.
  • SVN repository without redmine can be accessed OK
  • Redmine runs OK, with mongrel_cluster + apache.
  • Automatic Redmine project detection and svn repository creation is also OK, through reposman.rb called in a crontab.

The problem is to access repository via http when mongrel_cluster is running along with apache and the proxy_balancer configuration.
When running :

svn list http://svn.ccm_process.org/unessai

I get the error (sorry, in french):

svn: Le serveur a envoyé une valeur inattendue (501 Not Implemented) en réponse à la requête OPTIONS pour 'http://svn.ccm_process.org/unessai'

And the access.log file contains :

127.0.0.1 - - [06/Jan/2009:17:12:49 +0100] "OPTIONS /svn/myproj HTTP/1.1" 501 6938 "-" "SVN/1.5.1 (r32289) neon/0.27.2"

I attach the apache configuration file for both the redmine/svn site and the cluster.
Note that if I disable redmine.ccm-process.org, the same svn list command runs OK. So I guess the problem is tied to something in redmine.ccm-process.org conf file, or to an inconsistency between this file and redmine.conf.

Thanks for your help and best regards.
J-L P.

redmine.ccm-process.org (831 Bytes)

redmine.conf (916 Bytes)

Replies (2)

RE: Redmine +svn : Error 501 "Not Implemented" - Added by Jean-Luc Pinardon over 11 years ago

I think I have a problem with the Apache::Redmine module.

Right now, and to conform with the documentation found here, the situation is as follows.
  • I have copied Redmine.pm onto /usr/lib/perl5/Apache.
  • The corresponding configuration is :
    
       PerlLoadModule Apache::Redmine
       <Location /svn>
         DAV svn
         SVNParentPath "/var/svn" 
       SVNListParentPath On
         AuthType Basic
         AuthName CCMProcessEnvironment
         Require valid-user
         PerlAccessHandler Apache::Redmine::access_handler
         PerlAuthenHandler Apache::Redmine::authen_handler
    
    ...etc...
    
    
  • After an Apache restart, I still have a problem with svn commands :
    
    > svn list http://127.0.0.1/svn/myproj
    svn: Le serveur a envoyé une valeur inattendue (500 Internal Server Error) en réponse à la requête OPTIONS pour 'http://127.0.0.1/svn/myproj'
    
    

    And I get this error in the log file :
/usr/lib/perl5/Apache$ [Wed Jan 07 09:34:58 2009] [error] [client 127.0.0.1] failed to resolve handler
`Apache::Redmine::access_handler': Can't locate Apache/Redmine/access_handler.pm in @INC (@INC contains: 
/etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8
/usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/apache2) at (eval 6) line 3.\n

It looks like if there should be a access_handler.pm file, while access_handler is obviously a sub defined in Redmine.pm.

Please could you help me to make it work ?

Thanks a lot,
J-L

RE: Redmine +svn : Error 501 "Not Implemented" - Added by Jean-Luc Pinardon over 11 years ago

Well, reading perldoc Redmine.pm and conforming exactly to the configuration listed within, I get again the Error 501 Not Implemented error.
Having added a few traces into Redmine.pm, I am sure it is loaded when apache is restarted.
But when running a svn list, It seems that neither access_handler nor authen_handler are called.

So, it really seems that the problem comes from something in the configuration.

J-L

(1-2/2)