Project

General

Profile

Log spammed with "AH01797: client denied by server configuration: svn:/opt/bitnami/"

Added by vic dog almost 9 years ago

Hi team,

Please help me with this error, I have the bitnami redmine stack running with full SVN integration.

I followed all of the guides on both here and bitnami, and everything seems to be working okay.

Users can commit, access and view projects that they are assigned to and the SVN repos that are associated with those.

The problem is, I have noticed my apache error log is absolutely spammed with this error:
[Tue Feb 09 04:54:02.009306 2016] [access_compat:error] [pid 24233:tid 140571645564672] [IP ADDRESS] AH01797: client denied by server configuration: svn:/opt/bitnami/.....file name

On every single file request, I feel this is slowing down and even bringing down my server.

Does anyone know why this is?

My svn conf as follows:

   #PerlModule Apache::DBI
   PerlOptions +GlobalRequest

   # /svn location for users
   PerlLoadModule Apache2::Redmine
   <Location />
     DAV svn
     SVNAllowBulkUpdates Prefer

     SVNParentPath "/opt/bitnami/repository/svn" 
     Order deny,allow
     Deny from all
     Satisfy any

     # If a client tries to svn update which involves updating many files,
     # the update request might result in an error Server sent unexpected
     # return value (413 Request  Entity Too Large) in response to REPORT
     # request,because the size of the update request exceeds the limit
     # allowed by the server. You can avoid this error by disabling the
     # request size limit by adding the line LimitXMLRequestBody 0
     # between the <Location...> and </Location> lines. 
     #LimitXMLRequestBody 0

     # Only check Authentication for root path, nor again for recursive
     # folder.
     # Redmine core does only permit access on repository level, so this
     # doesn't hurt security. On the other hand it does boost performance
     # a lot!
     SVNPathAuthz off

     PerlAccessHandler Apache::Authn::Redmine::access_handler
     PerlAuthenHandler Apache::Authn::Redmine::authen_handler
     AuthType Basic
AuthName "Team Server" 
AuthUserFile /dev/null

     #read-only access    
     <Limit GET PROPFIND OPTIONS REPORT>
        Require valid-user
        Allow from 127.0.0.1
         Satisfy any
     </Limit>
     # write access
     <LimitExcept GET PROPFIND OPTIONS REPORT>
       Require valid-user
     </LimitExcept>

   # for mysql
  RedmineDSN "DBI:mysql:database=bitnami_redmine;host=localhost;mysql_socket=/opt/bitnami/mysql/tmp/mysql.sock" 

  RedmineDbUser "bitnami" 
  RedmineDbPass "bitnami" 
  </Location>

and it is within a virtual host to have a an svn subdomain:

<VirtualHost *:80>
    ServerName svn.team.net
Include "/opt/bitnami/apps/redmine/conf/httpd-svn.conf" 
</VirtualHost>


Replies (6)

RE: Log spammed with "AH01797: client denied by server configuration: svn:/opt/bitnami/" - Added by vic dog almost 9 years ago

I believe this is an issue with the auth of redmine?

I think it has to do with having the SVN repo in the root directory of the virtual host, do you know if the config above is correct for that scenario?

RE: Log spammed with "AH01797: client denied by server configuration: svn:/opt/bitnami/" - Added by Toshi MARUYAMA almost 9 years ago

AFAIK, Redmine core does not provide any apache setting file.

RE: Log spammed with "AH01797: client denied by server configuration: svn:/opt/bitnami/" - Added by Toshi MARUYAMA almost 9 years ago

Did you ask bitnami team?
I think you get good answer from them because they customize apache conf.

RE: Log spammed with "AH01797: client denied by server configuration: svn:/opt/bitnami/" - Added by vic dog almost 9 years ago

Hi,
Thank you for the reply however this is caused by the integration of redmine, svn and authentication as instructed on this website and not Bitnami.

The slowness happens from having to poll the database for every single file being viewed by SVN, is there a way around this?

    (1-6/6)