Page 1 of 1

SVN Subversion logging issue

Posted: Fri Mar 20, 2009 3:40 am
by jaoudestudios
For some reason my svn does not log access or errors, any ideas why?

This is my conf file

Code: Select all

 
<Location /svn>
          DAV svn
          SVNParentPath /var/www/svn/repository
 
# Limit write permission to list of valid users.
#   <LimitExcept GET PROPFIND OPTIONS REPORT>
#      # Require SSL connection for password protection.
#      # SSLRequireSSL
#
      Require valid-user
      AuthType Basic
      AuthName "Authorization Realm"
      AuthUserFile /etc/httpd/passwd/svnpasswords
 
#   </LimitExcept>
</Location>
 
 
Also for some reason root does not require a password to check stuff out, even if I setup the user root with a password?!?

Cheers

Re: SVN Subversion logging issue

Posted: Fri Mar 20, 2009 3:59 am
by Benjamin
Try this.

Code: Select all

 
<Location /svn>
          DAV svn
          SVNParentPath /var/www/svn/repository
 
# Limit write permission to list of valid users.
#   <LimitExcept GET PROPFIND OPTIONS REPORT>
#      # Require SSL connection for password protection.
#      # SSLRequireSSL
#
         Order deny,allow
         Deny from all
      Require valid-user
      AuthType Basic
      AuthName "Authorization Realm"
      AuthUserFile /etc/httpd/passwd/svnpasswords
 
#   </LimitExcept>
</Location>
 
 

Re: SVN Subversion logging issue

Posted: Fri Mar 20, 2009 4:38 am
by jaoudestudios
Thanks for the quick reply. i will give that a go :)

Re: SVN Subversion logging issue

Posted: Fri Mar 20, 2009 4:44 am
by jaoudestudios
That will hopefully fix my user root issue, any ideas on the logging issue?

Re: SVN Subversion logging issue

Posted: Fri Mar 20, 2009 6:22 am
by Benjamin
The log entries are being saved to the global log file I imagine. I'm not sure how to setup separate log files for a location. I know you can do it with virtual hosts.

Re: SVN Subversion logging issue

Posted: Fri Mar 20, 2009 8:37 am
by jaoudestudios
Order deny,allow
Deny from all
Using these 2 lines, it locked me out completely :?

Re: SVN Subversion logging issue

Posted: Fri Mar 20, 2009 12:19 pm
by Benjamin
You may have to add another one, Allow from authfile or something. I'm not exactly sure. Have a look at the apache manual.

Re: SVN Subversion logging issue

Posted: Fri Mar 20, 2009 12:30 pm
by Eran
What you wrote in the initial post should work. Are you sure root user is allowed access without password? maybe you already logged in as the root user? after logging in once with the basic authentication, your status is stored in a session. Try it in another browser where you are sure you are not logged in already and see if it asks for the password

Re: SVN Subversion logging issue

Posted: Fri Mar 20, 2009 1:00 pm
by jaoudestudios
I have not been testing it through a browser but through ssh (i.e. > svn co htpp://....)

And for some reason if you are logged in as root on the other box, then it does not ask for a password, even though the user root has a password (something random, that even I dont know).

Re: SVN Subversion logging issue

Posted: Fri Mar 20, 2009 6:36 pm
by Eran
You should test is through the browser then. I am not sure about this, but I think that if you run an http request to a SVN service on the same server, it's smart enough to rewrite it as a local link (file:///..).